diff --git a/static/style.css b/static/style.css index 34eb3ff..4ab395b 100644 --- a/static/style.css +++ b/static/style.css @@ -12,7 +12,7 @@ body { background-color: #444a5c; padding:10px; } -.container.light { +.light { background-color: #4d5366; } .column { @@ -42,6 +42,27 @@ body { width: 100%; } +.bot-icon { + width: 100px; + height: 100px; + background: center/contain url("https://lynnesbian.space/img/bune.png"); +} +.bot-icon, .bot-text, .bot-actions { + display: inline-block; + align-self: center; +} +.bot-text { + flex-grow: 1; + margin: 0 10px; +} +.bot-name { + font-size: 1.8em; + margin: 10px 0; +} +.bot-actions { + margin-right: 10px; +} + .button { color: white; line-height:1.2em; @@ -80,6 +101,13 @@ input.button { font-size: 1.6em; } +.btn-dangerous { + background-color: #e22; +} +.btn-dangerous:hover { + background-color: #c22; +} + a { color: mediumpurple; text-decoration: none; diff --git a/templates/home.html b/templates/home.html new file mode 100644 index 0000000..5de473f --- /dev/null +++ b/templates/home.html @@ -0,0 +1,41 @@ + + + + + FediBooks + {% include 'imports.html' %} + + +
+

Home

+

Hi there! You have 1 bots, all of which are currently active.

+

+ New bot + Account settings + Sign out +

+
+ +
+
+
+
+
My bot!!
+
Online, learning from 3 accounts, 12345 posts in database
+
+
+ +
+
+
+ +
+

Support the author

+

FediBooks is a passion project I develop and maintain in my free time. If you'd like to contribute, you can do so here.

+ Patreon + PayPal + Ko-fi +
+ {% include 'footer.html' %} + + diff --git a/webui.py b/webui.py index a8a3d51..4e9c035 100644 --- a/webui.py +++ b/webui.py @@ -1,10 +1,15 @@ -from flask import Flask, render_template +from flask import Flask, render_template, session app = Flask(__name__) +app.secret_key = "debug key" @app.route("/") def hello(): - return render_template("front_page.html") + session['userid'] = 1 + if 'userid' in session: + return render_template("home.html") + else: + return render_template("front_page.html") @app.route("/welcome") def welcome():