generated from Code-Institute-Org/gitpod-full-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
login.html
48 lines (44 loc) · 2.13 KB
/
login.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
{% extends "base.html" %}
{% block content %}
<!-- codes below from materializecss.com and CI tutorials -->
<h3 class="center-align blue-grey-text text-lighten-5">Log In</h3>
<div class="row container">
<form class="col s12" method="POST" action="{{ url_for('login') }}">
<!-- username input -->
<div class="card-panel blue-grey lighten-5">
<div class="row">
<div class="input-field col s12">
<i class="fas fa-user-cog prefix grey-text text-darken-4"></i>
<input id="username" name="username" type="text" minlength="5"
maxlength="15" pattern="^[a-zA-Z0-9]{5-15}" class="validate">
<label for="username">Username</label>
</div>
</div>
<!-- password input -->
<div class="row">
<div class="input-field col s12">
<i class="fas fa-user-lock prefix grey-text text-darken-4"></i>
<input id="password" name="password" type="password" minlength="5"
maxlength="15" pattern="^[a-zA-Z0-9]{5-15}" class="validate">
<label for="password">Password</label>
</div>
</div>
<!-- login -->
<div class="row">
<button type="submit" class="col s12 waves-effect waves-light btn-large blue-grey-text text-lighten-5 grey darken-2 z-depth-3">
Log In <i class="fas fa-sign-in-alt"></i>
</button>
</div>
</div>
</form>
</div>
<!-- code from CI tutorials -->
<div class="row s12 container">
<div class="col s12">
<p class="center-align blue-grey-text text-lighten-5">
<i class="fas fa-hand-peace"></i> New here? Join our awesome project!
<a href="{{ url_for('register') }}" class="red-text text-darken-3"><strong>Register Account</strong></a>
</p>
</div>
</div>
{% endblock %}