-
Notifications
You must be signed in to change notification settings - Fork 3
/
register.html
51 lines (43 loc) · 1.77 KB
/
register.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/tailwindcss/dist/tailwind.min.css" rel="stylesheet">
<title>Login</title>
<style>.nunito{font-family: 'Nunito', sans-serif;}</style>
</head>
<body class="bg-grey-lighter h-screen nunito">
<div class="container mx-auto h-full flex justify-center items-center">
<div class="w-1/3">
<h1 class="font-hairline mb-6 text-center">Login to LudoLatin</h1>
<div class="border-teal p-8 border-t-12 bg-white mb-6 rounded-lg shadow-lg">
<form method="post">
{% from 'auth/_form_fields.html' import email, password, submit %}
{{ form.hidden_tag() }}
<div class="mb-4">
<label class="text-grey-darker block mb-2">Username</label>
{{ form.username(
class="block appearance-none w-full bg-white border border-grey-light hover:border-grey px-2 py-2 rounded shadow",
placeholder="e.g., Lando Calrissian",
maxlength=64,
autocapitalize="off",
autocorrect="off",
) }}
</div>
{{ email(form, type="email") }}
{{ password(form) }}
<div class="flex items-center justify-between">
{{ submit(form) }}
</div>
</form>
</div>
<div class="text-center">
<p class="text-grey-dark text-sm">Already registered? <a href="{{ url_for('auth.login') }}" class="no-underline text-blue">Click here to login</a>.</p>
</div>
</div>
</div>
</body>
</html>