adicionado /register /login

This commit is contained in:
bacalhau 2026-03-03 19:05:11 +00:00
parent 8c1eb7dee8
commit 9d3efaadfe
8 changed files with 76 additions and 22 deletions

BIN
src/font/font-Bold.ttf Normal file

Binary file not shown.

BIN
src/font/font.ttf Normal file

Binary file not shown.

View file

@ -47,6 +47,13 @@ class User(db.Model):
def home(): def home():
return render_template("index.html") return render_template("index.html")
@app.route("/register")
def register():
return render_template("register.html")
@app.route("/login")
def login():
return render_template("login.html")
if __name__ == "__main__": if __name__ == "__main__":
with app.app_context(): with app.app_context():

View file

@ -14,7 +14,7 @@
} }
body { body {
background: #111011; background: #101210;
color: #e0e0e0; color: #e0e0e0;
text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8); text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
max-width: 800px; max-width: 800px;
@ -44,22 +44,21 @@ strong, b {
h1 { h1 {
color: #ffffff; color: #00ff00;
text-decoration: underline #FF00FF; text-decoration: underline yellow;
text-align: center; text-align: center;
} }
h2 { h2 {
text-align: center; color: #00ff00;
color: #ff00ff;
} }
h3 { h3 {
color: #ff00ff; color: #00ff00;
} }
a { a {
color: #0000ff; color: #ffff00;
} }
a:hover { a:hover {
@ -67,8 +66,8 @@ a:hover {
} }
summary { summary {
color: #ff00ff; color: #008800;
background: #111011; background: #101210;
} }
details { details {

View file

@ -1,13 +1,15 @@
<!DOCTYPE html> {% extends "page.html" %}
<html>
<head> {% block content %}
<title>onions</title> <h2>Home</h2>
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}"> <p>Page text</p>
</head> <p>Page text</p>
<header><h1>onions</h1><p><h2>find the onion of your life!</h2></p></header> <p>Page text</p>
<nav><a href="/register">register</a> / <a href="/login">login</a> / <a href="/search">search</a></nav> <p>Page text</p>
<body> <p>Page text</p>
<h1>Welcome!</h1> <p>Page text</p>
<p>WIP<p> <p>Page text</p>
</body> <p>Page text</p>
</html> <p>Page text</p>
<p>Page text</p>
{% endblock %}

15
src/templates/login.html Normal file
View file

@ -0,0 +1,15 @@
{% extends "page.html" %}
{% block content %}
<h2>Login</h2>
<p>Page text</p>
<p>Page text</p>
<p>Page text</p>
<p>Page text</p>
<p>Page text</p>
<p>Page text</p>
<p>Page text</p>
<p>Page text</p>
<p>Page text</p>
<p>Page text</p>
{% endblock %}

16
src/templates/page.html Normal file
View file

@ -0,0 +1,16 @@
<!DOCTYPE html>
<html>
<head>
<title>Dating Website</title>
<link rel="stylesheet" href="{{ url_for('static', filename='drip.css') }}">
</head>
<header><h1>Dating Website</h1></header>
<nav><a href="/">home</a> / <a href="/register">register</a> / <a href="login">login</a></nav>
<body>
{% block content %}{% endblock %}
<footer>Dating Website</footer>
</body>
</html>

View file

@ -0,0 +1,15 @@
{% extends "page.html" %}
{% block content %}
<h2>Register</h2>
<p>Page text</p>
<p>Page text</p>
<p>Page text</p>
<p>Page text</p>
<p>Page text</p>
<p>Page text</p>
<p>Page text</p>
<p>Page text</p>
<p>Page text</p>
<p>Page text</p>
{% endblock %}