diff --git a/static/style.css b/static/style.css index e9050e4..7686c4b 100644 --- a/static/style.css +++ b/static/style.css @@ -80,4 +80,8 @@ button:hover, .button:hover{ margin: 20px auto; font-size:1.8em; font-weight:300; -} \ No newline at end of file +} +#ccprompt { + font-size: 1.2em; + line-height:2.6em; +} diff --git a/templates/cc_connect.html b/templates/cc_connect.html new file mode 100644 index 0000000..168d166 --- /dev/null +++ b/templates/cc_connect.html @@ -0,0 +1,18 @@ + + + + Curious Greg - Curious Cat Connection + {% include 'imports.html' %} + + +

Connect to Curious Cat

+ +
+
+
+
+ +
+{% include 'footer.html' %} + + \ No newline at end of file diff --git a/templates/home.html b/templates/home.html index c3fb83f..ed3644d 100644 --- a/templates/home.html +++ b/templates/home.html @@ -17,6 +17,12 @@
{{ session['cc'] }}

+{% if session['cc'] == "None" or session['cc'] == None %} +
+ You haven't connected your Curious Cat account yet.
+ Connect +
+{% endif %} {% include 'footer.html' %} \ No newline at end of file diff --git a/web.py b/web.py index 5d850e7..b0c62e8 100755 --- a/web.py +++ b/web.py @@ -176,3 +176,9 @@ def create_account(): c.execute("INSERT INTO data (username, instance, avi, password, secret, client_id, client_secret) VALUES (%s, %s, %s, %s, %s, %s, %s)", (session['username'], session['instance'], session['avi'], pw, session['secret'], session['client_id'], session['client_secret'])) db.commit() return redirect(url_for('home')) + + #cc connection + + @app.route('/cc_connect') + def cc_connect(): + return render_template('cc_connect.html')