-
Notifications
You must be signed in to change notification settings - Fork 5
/
register.html
160 lines (144 loc) · 6.68 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
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="shortcut icon" href="assets/img/logox150.png">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<!-- Custom CSS -->
<link rel="stylesheet" href="css/style.css">
<!-- Fontawesome -->
<script src="https://kit.fontawesome.com/aacb82e018.js" crossorigin="anonymous"></script>
<title>What's for dinner?</title>
</head>
<body>
<main>
<!-- Begin Navbar -->
<nav class="navbar navbar-expand-lg navbar-light justify-space-around burbank text-sm">
<img class="navbar-brand img-fluid" src="assets/img/logo.png" alt="What's for dinner? logo">
<button class="custom-toggler navbar-toggler bg-lettuce" type="button" data-toggle="collapse"
data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false"
aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="container"></div> <!-- Blank div to split navbar -->
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link" href="index.html">Home</a>
</li>
<li class="nav-item">
<a class="nav-link text-nowrap" href="mykitchen.html">My kitchen</a>
</li>
<li class="nav-item">
<a class="nav-link" href="faq.html">FAQ</a>
</li>
<li class="nav-item active dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown"
aria-haspopup="true" aria-expanded="false">
<i class="fas fa-2x fa-user-circle"></i>
</a>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="register.html">Register <span class="sr-only">(current)</span></a>
<a class="dropdown-item" href="signin.html">Sign in</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#">Sign out</a>
</div>
</li>
</ul>
</div>
</nav>
<!-- End Navbar -->
<!-- Begin title -->
<section class="container">
<div class="row justify-content-center">
<div class="col-12 food-fact pt-1 pb-5">
<p class="h1 burbank text-center text-lg green-frame-text" id="title">Register</p>
</div>
</div>
</section>
<!-- End title -->
<!-- Begin form -->
<div class="container">
<div class="row justify-content-md-center" id="registration-form">
<form class="w-100 p-5">
<div class="form-group">
<label class="burbank text-sm" for="first-name">First Name</label>
<input type="text" class="form-control" id="first-name" autocomplete="given-name"
placeholder="Enter your first name" required>
</div>
<div class="form-group">
<label class="burbank text-sm" for="first-name">Last Name</label>
<input type="text" class="form-control" id="last-name" autocomplete="family-name"
placeholder="Enter your last name" required>
</div>
<div class="form-group">
<label class="burbank text-sm" for="email">Email address</label>
<input type="email" class="form-control" id="email" autocomplete="email" placeholder="Enter email" required>
<small id="emailHelp" class="form-text text-muted">No spam, we promise.</small>
</div>
<div id="email-error"></div>
<div id="duplicate-email-error"></div>
<div class="form-group">
<label class="burbank text-sm" for="country">Where do you live?</label>
<input type="text" class="form-control" id="country" autocomplete="country-name"
placeholder="Enter your country" required>
</div>
<div class="form-group">
<label class="burbank text-sm" for="password">Choose a Password</label>
<input type="password" class="form-control" id="password" autocomplete="new-password" placeholder="Password"
required>
</div>
<div id="password-error"></div>
<div class="form-group">
<label class="burbank text-sm" for="confirm-password">Confirm your Password</label>
<input type="password" class="form-control" id="confirm-password" autocomplete="new-password"
placeholder="Once more, with feeling" required>
</div>
<div id="confirm-password-error"></div>
<!-- Begin error status container -->
<section class="container-fluid">
<div class="row justify-content-center">
<div class="col-lg-6 col-md-12 col-sm-12 py-1">
<div id="status-error">
<!-- Error status messages go here -->
</div>
</div>
</div>
</section>
<!-- End error status container -->
<button type="submit" id="register-button" class="btn btn-lg bg-lettuce burbank text-white" onclick="register.saveData(event)" disabled>Register</button>
</form>
</div>
</div>
<!-- End form -->
<!-- Copyright info -->
<footer class="container-fluid pt-3 mt-5 bg-dark text-white">
<div class="container">
<div class="row">
<div class="col">
<p>Copyright © 2019 What's for dinner?</p>
</div>
</div>
</div>
</footer>
<!-- End copyright info -->
</main>
<!-- Load user handling scripts -->
<script src="js/User.js"></script>
<script src="js/Validator.js"></script>
<script src="js/Register.js"></script>
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous">
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous">
</script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous">
</script>
</body>
</html>