diff options
Diffstat (limited to 'templates/homepage.html.jinja')
-rw-r--r-- | templates/homepage.html.jinja | 95 |
1 files changed, 95 insertions, 0 deletions
diff --git a/templates/homepage.html.jinja b/templates/homepage.html.jinja new file mode 100644 index 0000000..39ed94f --- /dev/null +++ b/templates/homepage.html.jinja | |||
@@ -0,0 +1,95 @@ | |||
1 | {# | ||
2 | UGE / L2 / Intro to relational databases / Python project prototype | ||
3 | Author: Pacien TRAN-GIRARD | ||
4 | Licence: EUPL-1.2 | ||
5 | #} | ||
6 | |||
7 | {% extends '_base.html.jinja' %} | ||
8 | |||
9 | {% block title %}Homepage{% endblock %} | ||
10 | |||
11 | {% block content %} | ||
12 | <div class="pure-g"> | ||
13 | |||
14 | <form | ||
15 | method="post" | ||
16 | action="/account/register" | ||
17 | class="pure-form pure-form-aligned pure-u-1 pure-u-md-1-2"> | ||
18 | |||
19 | <h2>Create a new account</h2> | ||
20 | |||
21 | <fieldset> | ||
22 | <div class="pure-control-group"> | ||
23 | <label for="register-name">Username</label> | ||
24 | <input | ||
25 | type="text" | ||
26 | id="register-name" | ||
27 | name="username" | ||
28 | minlength="4" | ||
29 | maxlength="16" | ||
30 | required /> | ||
31 | </div> | ||
32 | <div class="pure-control-group"> | ||
33 | <label for="register-password">Password</label> | ||
34 | <input | ||
35 | type="password" | ||
36 | id="register-password" | ||
37 | name="password" | ||
38 | minlength="4" | ||
39 | maxlength="32" | ||
40 | required /> | ||
41 | </div> | ||
42 | <div class="pure-controls"> | ||
43 | <label for="register-terms" class="pure-checkbox"> | ||
44 | <input type="checkbox" id="register-terms" required /> | ||
45 | I trust you* | ||
46 | </label> | ||
47 | |||
48 | <button | ||
49 | type="submit" | ||
50 | class="pure-button pure-button-primary dark-blue-bg"> | ||
51 | ✎ Open an account | ||
52 | </button> | ||
53 | </div> | ||
54 | </fieldset> | ||
55 | </form> | ||
56 | |||
57 | <form | ||
58 | method="post" | ||
59 | action="/account/login" | ||
60 | class="pure-form pure-form-aligned pure-u-1 pure-u-md-1-2"> | ||
61 | |||
62 | <h2>Log in into your account</h2> | ||
63 | |||
64 | <fieldset> | ||
65 | <div class="pure-control-group"> | ||
66 | <label for="login-name">Username</label> | ||
67 | <input | ||
68 | type="text" | ||
69 | id="login-name" | ||
70 | name="username" | ||
71 | minlength="4" | ||
72 | maxlength="16" | ||
73 | required /> | ||
74 | </div> | ||
75 | <div class="pure-control-group"> | ||
76 | <label for="login-password">Password</label> | ||
77 | <input | ||
78 | type="password" | ||
79 | id="login-password" | ||
80 | name="password" | ||
81 | minlength="4" | ||
82 | maxlength="32" | ||
83 | required /> </div> | ||
84 | <div class="pure-controls"> | ||
85 | <button | ||
86 | type="submit" | ||
87 | class="pure-button pure-button-primary light-blue-bg"> | ||
88 | 🔑 Log in | ||
89 | </button> | ||
90 | </div> | ||
91 | </fieldset> | ||
92 | </form> | ||
93 | |||
94 | </div> | ||
95 | {% endblock %} | ||