add register, login and main page with basic functionality

This commit is contained in:
2026-02-24 17:07:18 +01:00
parent f5ac44886b
commit 81ca96ed77
9 changed files with 162 additions and 3 deletions
+9
View File
@@ -0,0 +1,9 @@
<h1>Login</h1>
<form method="POST">
<input name="username" placeholder="Username" required />
<input name="password" type="password" placeholder="Password" required />
<button type="submit">Login</button>
</form>
<a href="{{ url_for('auth.register') }}">Register</a>
+20
View File
@@ -0,0 +1,20 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Chess</title>
<link
rel="stylesheet"
href="{{ url_for('static', filename='style.css') }}"
/>
</head>
<body>
<h1>Chess Game</h1>
<p>main page</p>
<a href="{{ url_for('auth.login') }}" class="link-button"> Login </a>
<a href="{{ url_for('auth.register') }}" class="link-button"> Register </a>
</body>
</html>
+9
View File
@@ -0,0 +1,9 @@
<h1>Register</h1>
<form method="POST">
<input name="username" placeholder="Username" required />
<input name="password" type="password" required />
<button type="submit">Create Account</button>
</form>
<a href="{{ url_for('auth.login') }}">Back to Login</a>