forked from NicholasLennox/BEDVOC-pizzatime-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
144 lines (142 loc) · 3.63 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Pizza Store</title>
<link rel="stylesheet" href="site.css" />
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
<script src="app.js" defer></script>
</head>
<body>
<div id="pizza-container">
<div class="form-wrapper">
<h2>It's Pizza Time <span class="spider-icon">🕷</span></h2>
<form id="pizza-form" class="form">
<!--Pizza type-->
<div class="form-group-stacked">
<!--Select with options-->
<p>What are you hungery for?</p>
<select name="pizzas" id="pizza-type">
<option value="Margherita-100">
Margherita (+100 NOK)
</option>
<option value="Pepperoni-120">
Pepperoni (+120 NOK)
</option>
<option value="BBQChicken-130">
BBQ Chicken (+130 NOK)
</option>
<option value="Vegetarian-110">
Vegetarian (+110 NOK)
</option>
<option value="FriendlySpecial-140">
Friendly Neighborhood Special (+140 NOK)
</option>
</select>
</div>
<!--Pizza size-->
<div class="form-group-stacked">
<!--Select with options-->
<p>What are you hungery for?</p>
<select name="pizzaSize" id="pizza-size">
<option value="Small-0">
Small (No extra cost)
</option>
<option value="Medium-20">Medium (+20 NOK)</option>
<option value="Large-40">Large (+40 NOK)</option>
<option value="SpideySize-60">
Spidey Size (+60 NOK)
</option>
</select>
</div>
<!--Toppings-->
<fieldset class="toppings-wrapper">
<!--Input (type checkbox) + labels-->
<legend>Any toppings? (+10 NOK each)</legend>
<div>
<label for="pepperoni">
<input
type="checkbox"
name="toppings"
value="Pepperoni-10"
/>
Pepperoni (+10 NOK)
</label>
</div>
<div>
<label for="mushrooms">
<input
type="checkbox"
name="toppings"
value="Mushrooms-10"
/>
Mushrooms (+10 NOK)
</label>
</div>
<div>
<label for="webSlingingSpice">
<input
type="checkbox"
name="toppings"
value="WebSlingingSpice-10"
/>
Web-Slinging Spice (+10 NOK)
</label>
</div>
</fieldset>
<!--Quantity-->
<div class="inline-form-group">
<!--Label + input, min 1, max 10, default value 1-->
<input
type="number"
id="amount"
value="1"
min="1"
max="10"
/>
</div>
<!--Form buttons-->
<div class="inline-form-group">
<!--Sumbit and reset buttons-->
<input
type="button"
value="Add to order"
class="btn-submit"
id="btn-submit"
/>
<input
type="button"
value="Clear order"
class="btn-clear"
id="btn-clear"
/>
</div>
</form>
</div>
</div>
<div id="order-summary-container">
<div class="order-summary">
<h3>Order Summary</h3>
<ul id="order-list"></ul>
<p>
<strong>Total:</strong> <span id="order-total">0</span> NOK
</p>
</div>
<div class="payment-panel">
<h3>Complete Your Purchase</h3>
<label for="credit-card">Enter your credit card number:</label>
<input
type="text"
id="credit-card"
name="credit-card"
placeholder="1234-5678-9012-3456"
/>
<button class="btn-submit-payment" id="submit-payment">
Pay
</button>
<p id="payment-message"></p>
</div>
</div>
</body>
</html>