From e1dc193153378cdafa400512fff8431b1fecf994 Mon Sep 17 00:00:00 2001 From: Linnnus Date: Mon, 1 Apr 2024 12:50:19 +0200 Subject: Add join form HTML --- app.py | 4 ++++ static/styles/join.css | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++ views/join.html | 30 +++++++++++++++++++++++++++++ 3 files changed, 86 insertions(+) create mode 100644 static/styles/join.css create mode 100644 views/join.html diff --git a/app.py b/app.py index cfedee5..c58833c 100644 --- a/app.py +++ b/app.py @@ -8,6 +8,10 @@ app = Bottle() def index(): return template("index") +@app.route("/join.html") +def join_form(): + return template("join") + @app.route("//") def server_static(type, filename): return static_file(filename, root=f"./static/{type}/") diff --git a/static/styles/join.css b/static/styles/join.css new file mode 100644 index 0000000..102b797 --- /dev/null +++ b/static/styles/join.css @@ -0,0 +1,52 @@ +/* + * This file contains styles specific to the "join" view. The corresponding + * HTML/template file is `views/join.html`. + */ + +main { + width: 100%; + max-width: 500px; + margin: 2rem auto; +} + +.signup { + +} + +.signup__box { + margin-bottom: 1reM; +} + +.signup__label { + font-weight: bold; +} + +.signup__input { + width: 100%; +} + +textarea.signup__input { + /* Remove UA's default monospace font */ + font-family: inherit; + + /* Horizontal resizing totally breaks our layout :( */ + resize: vertical; +} + +.signup__submit { + /* Horizontally center the element */ + display: block; + margin-inline: auto; + + /* Make it look dark and twisted */ + background-color: #6e1818; + color: white; + border: none; + border-radius: 500px; + padding: 1rem; + font-size: large; +} + +/* The usual dimming effect makes interaction feel more tactile */ +.signup__submit:hover { filter: brightness(90%); } +.signup__submit:active { filter: brightness(60%); } \ No newline at end of file diff --git a/views/join.html b/views/join.html new file mode 100644 index 0000000..1fb341b --- /dev/null +++ b/views/join.html @@ -0,0 +1,30 @@ +{% extends "base.html" %} + +{% block head %} + +{% endblock %} + +{% block content %} + +{% endblock %} \ No newline at end of file -- cgit v1.2.3