-
Notifications
You must be signed in to change notification settings - Fork 1
/
order-cake.html
221 lines (217 loc) · 9.16 KB
/
order-cake.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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
<!DOCTYPE html>
<html lang="en">
<head>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-eOJMYsd53ii+scO/bJGFsiCZc+5NDVN2yr8+0RDqr0Ql0h+rP48ckxlpbzKgwra6" crossorigin="anonymous">
<script async src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-JEW9xMcG8R+pH31jmWH6WWP0WintQrMb4s7ZOdauHnUtxwoG2vI5DkLtS3qm9Ekf"
crossorigin="anonymous"></script>
<link href="assets/store.css" rel="stylesheet">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Dancing+Script&family=Noto+Sans+SC&family=Lato&display=swap"
rel="stylesheet">
<link rel="apple-touch-icon" sizes="180x180" href="assets/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="assets/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="assets/favicon-16x16.png">
<link rel="manifest" href="assets/site.webmanifest">
<title>Georgina Bakes Order</title>
<meta name="description"
content="Georgina's kitchen provides its customers with the finest selection of cakes and treats in Galway. Order now">
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="viewport"
content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0">
</head>
<body class="d-flex flex-column h-100">
<header class="navbar navbar-expand-md navbar-dark">
<div class="d-sm-block">
<a class="navbar-brand" href="./index.html">
<img src="assets/logo.png" width="200" height="63" alt="Georgina's kitchen logo.">
</a>
</div>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar"
aria-controls="navbarTogglerDemo01" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse justify-content-end" id="navbar">
<ul class="navbar-nav mb-2 mb-sm-0">
<li class="nav-item">
<a class="nav-link" href="./index.html">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="./about-us.html">About</a>
</li>
<li class="nav-item">
<a class="nav-link" href="./our-products.html">Products</a>
</li>
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="./order-cake.html">Order</a>
</li>
<li class="nav-item">
<a class="nav-link" href="./contact-us.html">Contact Us</a>
</li>
</ul>
</div>
</header>
<!-- backdiv has custom css code for the im age background -->
<div class="backDiv">
<div class="container">
<div class="text-center pt-5">
<h1> Order a cake </h2>
</div>
<div class="row justify-content-md-center">
<div class="col-8">
<!-- Validate form before submitting it -->
<form name="myForm" onsubmit="return validateForm()" method="get" required>
<div class="row mb-3">
<!-- use for property to be able to click on the label and get the focus in input -->
<label for="firstname" class="col-md-3 col-form-label"><strong>First Name:</strong></label>
<div class="col-md-9 col">
<input class="form-control" type="text" id="firstname" name="firstname" maxlength="50" />
</div>
</div>
<div class="row mb-3">
<label for="surname" class="col-sm-3 col-form-label"><strong>Surname:</strong></label>
<div class="col-sm-9">
<input class="form-control" type="text" id="surname" name="surname" maxlength="50" />
</div>
</div>
<div class="row mb-3">
<label for="number" class="col-sm-3 col-form-label"><strong>Phone number:</strong></label>
<div class="col-sm-9">
<input class="form-control" type="tel" id="number" name="number" maxlength="50" />
</div>
</div>
<div class="row mb-3">
<label for="email" class="col-sm-3 col-form-label"><strong>E-mail Address:</strong></label>
<div class="col-sm-9">
<!-- use email type for better autocompletion -->
<input class="form-control" type="email" id="email" aria-describedby="emailHelp" name="email" maxlength="50">
</div>
</div>
<div class="row mb-3">
<label for="cake" class="col-sm-3 col-form-label"><strong>Cake:</strong></label>
<div class="col-sm-9">
<select id="cake" class="form-select form-select-sm" name="cake">
<option value="Cake6">Black Forest Gateaux</option>
<option value="Cake2">Carrot cake</option>
<option value="Cake1">Cheesecake</option>
<option value="Cake3">Red velvet</option>
<option value="Cake4">Tiramisu</option>
<option value="Cake5">Victoria Sponge</option>
</select>
</div>
</div>
<div class="row mb-3">
<label for="size" class="col-md-3 col-form-label"><strong>Size:</strong></label>
<div class="col-md-9 col">
<select id="size" class="form-select form-select-sm" name="size">
<option value="feeds6">Feeds 8</option>
<option value="feeds12">Feeds 12</option>
</select>
</div>
</div>
<div class="row mb-3">
<label for="chocomessage" class="form-label">Chocolate message (optional):</label>
<div class="ps-3">
<textarea class="form-control" id="chocomessage" name="chocomessage" rows="5" maxlength="30"></textarea>
</div>
</div>
<div class="row mb-3">
<label for="topper" class="col-sm-3 col-form-label"><strong>Free topper:</strong></label>
<div class="col-sm-9">
<select id="topper" name="topper" class="form-select form-select-sm">
<option value="None">None</option>
<option value="Happy Birthday">Happy Birthday</option>
<option value="Happy Anniversary">Happy Anniversary</option>
<option value="Congratulations">Congratulations</option>
<option value="Baby boy">Baby boy</option>
<option value="Baby girl">Baby girl</option>
</select>
</div>
</div>
<div class="row pb-3">
<div class="col-6">
<input class="form-check-input" type="radio" name="which" id="pickup" value="pickup"
checked>
<label class="form-check-label" for="pickup">
Pick Up
</label>
</div>
<div class="col-6">
<input class="form-check-input" type="radio" name="which" id="delivery"
value="delivery">
<label class="form-check-label" for="delivery">
Delivery (Galway city only - €5)
</label>
</div>
</div>
<div class="row mb-3">
<label for="time" class="col-sm-3 col-form-label"><strong>Pick up/Delivery
time</strong></label>
<div class="col-sm-5">
<input type="date" id="date" name="date">
</div>
<div class="col-sm-4">
<select id="time" name="time">
<option value="1">9am-11am</option>
<option value="2">11am-1pm</option>
<option value="3">1pm-3pm</option>
<option value="4">3pm-5pm</option>
</select>
</div>
</div>
<div class="row mb-3">
<label for="housenumber" class="col-sm-2 col-form-label"><strong>Address
1:</strong></label>
<div class="col-sm-10">
<input class="form-control" type="text" name="housenumber" id="housenumber" maxlength="50" />
</div>
</div>
<div class="row mb-3">
<label for="street" class="col-sm-2 col-form-label"><strong>Address 2:</strong></label>
<div class="col-sm-10">
<input class="form-control" type="text" name="street" id="street" maxlength="50" />
</div>
</div>
<div class="row mb-3">
<label for="city" class="col-sm-2 col-form-label"><strong>City:</strong></label>
<div class="col-sm-10">
<input class="form-control" type="text" name="city" placeholder="Galway" maxlength="50" id="city" />
</div>
</div>
<div class="row mb-3">
<div class="col-4 gap-2 d-grid">
<!-- calculate the order cost -->
<a role="button" class="btn btn-order" onclick="myCal()"><strong>Calculate
Cost</strong></a>
</div>
<div class="col-4">
<p id="cal"></p>
</div>
<div class="col-4 gap-2 d-grid">
<button type="submit" class="btn-order-now btn" type="button" acti><strong>Order
Now</strong></button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<footer class="footer mt-auto py-3 text-center">
<div class="container">
<p>
Copyright © 2021 Georgina's kitchen
</p>
<p>
<span>📧<span class="visually-hidden">Send us email</span><a href="mailto:[email protected]">[email protected]</a></span>
<span>📱<span class="visually-hidden">Phone us on</span><a href="tel:083-456-7890">083-456-7890</span>
</p>
</div>
</footer>
</body>
<script src="assets/script.js"></script>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
</html>