diff --git a/src/main.py b/src/main.py index f380d5d..a93abdf 100644 --- a/src/main.py +++ b/src/main.py @@ -1,4 +1,4 @@ -from flask import Flask, request, render_template, send_from_directory +from flask import Flask, request, render_template, send_from_directory, abort from flask_session import Session from dotenv import load_dotenv from os import getenv as env @@ -29,7 +29,6 @@ db = database.Database(db_name=env('DB_NAME', default='db.sqlite')) @app.route('/') def index(): - logging.info("Rendering index page") return render_template('index.html') @@ -43,6 +42,14 @@ def web_stuffs(): ) +@app.route('/') +def catch_all(path): + try: + return render_template(path + '.html') + except Exception as e: + abort(404) + + @app.route('/404') @app.errorhandler(404) def not_found(): diff --git a/static/content/toaster.png b/static/content/toaster.png new file mode 100644 index 0000000..abe1a2f Binary files /dev/null and b/static/content/toaster.png differ diff --git a/static/css/base.css b/static/css/base.css index 9e1112c..57c1956 100644 --- a/static/css/base.css +++ b/static/css/base.css @@ -393,6 +393,10 @@ section.rowsect>div { font-weight: 900; } +.title-font { + font-family: var(--title-font); +} + @media screen and (max-width: 1000px) { body { background-color: var(--background-color); diff --git a/static/css/toaster.css b/static/css/toaster.css new file mode 100644 index 0000000..c2a9a06 --- /dev/null +++ b/static/css/toaster.css @@ -0,0 +1,54 @@ +ul#toaster-specs { + padding: 0; + margin: 5px 0; + display: flex; + flex-direction: column; + gap: 2px; +} + +ul#toaster-specs li { + display: flex; + justify-content: space-between; + gap: 2rem; + height: 35px; + align-items: center; +} + +.color { + border-radius: 10px; + border: 2px solid var(--secondary-background-color); + padding: 1px 5px; + box-sizing: border-box; + height: min-content; +} + +#toaster-img { + max-width: 100%; + object-fit: contain; + border-radius: 10px; + border: 2px solid var(--secondary-background-color); +} + +.flex-col { + display: flex; + flex-direction: column; + gap: 1rem; +} + +.flex-row { + display: flex; + flex-direction: row; + gap: 1rem; +} + +.no-sect { + backdrop-filter: none; + border: none; + border-radius: 0; + padding: 0; + box-sizing: border-box; +} + +.fill-height { + height: 100%; +} \ No newline at end of file diff --git a/templates/base.html b/templates/base.html index dbe782e..fc40873 100644 --- a/templates/base.html +++ b/templates/base.html @@ -27,6 +27,7 @@

Things to see :3