-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
118 lines (113 loc) · 3.79 KB
/
index.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="description" content="Online Fruit Shop" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link rel="shortcut icon" type="image/x-icon" href="./public/favicon.ico" />
<link rel="stylesheet" href="./public/css/reset.css" />
<link rel="stylesheet" href="./public/css/index.css" />
<link
href="https://fonts.googleapis.com/css?family=Luckiest+Guy|Roboto&display=swap"
rel="stylesheet"
/>
<title>FAC Fruit Basket</title>
</head>
<body>
<section class="heading-section">
<h1>FAC Fruit Basket</h1>
</section>
<section class="nameField fWrapper">
<div class="user-form-container">
<!-- /* Changed from submitname to registername - amend on post request and router*/ -->
<form action="/registername" method="post">
<fieldset>
<legend>Register new user</legend>
<div class="input-field">
<input
id="new-username"
aria-label="Create new username"
type="text"
autocomplete="off"
required
pattern='[a-z0-9]+'
/>
<label for="new-username">New username</label>
</div>
<div class="input-field">
<input
id="new-password"
aria-label="Create new password"
type="password"
autocomplete="off"
minlength='6'
pattern="^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?!.*\s).*$"
/>
<label for="new-password">New password</label>
</div>
<div class="input-field">
<input
id="confirm-new-password"
aria-label="Confirm password"
type="password"
autocomplete="off"
required
minlength='6'
pattern="^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?!.*\s).*$"
/>
<label for="confirm-new-password">Confirm password</label>
</div>
<p id="userErr"></p>
<button
id="registerBtn"
aria-label="Submit your details"
type="submit"
>
Register
</button>
</fieldset>
</form>
</div>
</section>
<section class="fWrapper">
<div class="user-form-container">
<!-- should this be a post or get request? -->
<form action="/existinguser" method="post">
<fieldset>
<legend>Existing users</legend>
<div class="input-field">
<input
id="existing-username"
aria-label="Enter your existing username"
type="text"
autocomplete="off"
required
/>
<label for="existing-username">Username</label>
</div>
<div class="input-field">
<input
id="existing-password"
aria-label="Enter your password"
type="password"
autocomplete="off"
required
/>
<label for="existing-password">Password</label>
</div>
<button
id="loginBtn"
aria-label="Submit your details"
type="submit"
>
Login
</button>
</fieldset>
</form>
</div>
</section>
<script type="text/javascript" src="./public/scripts/index.js"></script>
<script type="text/javascript" src="./public/scripts/validation.js"></script>
</body>
</html>