add register, login and main page with basic functionality
This commit is contained in:
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user