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():
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__":
with app.app_context():

View file

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

View file

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

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 %}