-
Notifications
You must be signed in to change notification settings - Fork 0
/
customer.html
196 lines (189 loc) · 6.68 KB
/
customer.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Customer Dashboard</title>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Roboto', sans-serif;
margin: 0;
padding: 0;
box-sizing: border-box;
display: flex;
flex-direction: column;
min-height: 100vh;
}
header {
background-color: #e21b70;
color: white;
padding: 0.5rem;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
}
header img {
height: 80px;
vertical-align: middle;
}
nav {
display: flex;
gap: 1rem;
margin-top: 0.5rem;
justify-content: center;
}
nav button {
background-color: #e21b70;
color: white;
border: none;
padding: 0.5rem 1rem;
font-size: 1rem;
cursor: pointer;
border-radius: 4px;
transition: background-color 0.3s ease;
}
nav button:hover {
background-color: #c2185b;
}
main {
flex: 1;
padding: 1rem;
}
.section {
display: none;
margin-bottom: 2rem;
}
.section.active {
display: block;
}
form {
display: flex;
flex-direction: column;
gap: 1rem;
max-width: 500px;
margin: 0 auto;
}
form label {
margin-bottom: 0.5rem;
}
form select {
padding: 0.75rem;
border: 1px solid #ddd;
border-radius: 4px;
}
form button {
background-color: #e21b70;
color: white;
border: none;
padding: 0.75rem;
font-size: 1rem;
cursor: pointer;
border-radius: 4px;
transition: background-color 0.3s ease;
}
form button:hover {
background-color: #c2185b;
}
footer {
background-color: #e21b70;
color: white;
padding: 0.2rem;
text-align: center;
}
ul {
list-style:decimal;
padding: 0;
max-width: 500px;
margin: 0 auto;
}
ul li {
margin-bottom: 1rem;
font-size: 1.25rem;
}
</style>
</head>
<body>
<header>
<img src="eatwithease.png" alt="Logo">
<h1>Welcome Valued Customer</h1>
</header>
<main>
<nav>
<button onclick="showSection('restaurant-list')">List of Restaurants</button>
<button onclick="showSection('available-dishes')">Available Dishes</button>
<button onclick="showSection('order-form')">Order Placement</button>
</nav>
<section id="restaurant-list" class="section">
<h2>List of Restaurants</h2>
<ul>
<li>Serena Khaplu Palace, Gilgit-Baltistan </li>
<li>Cafe de Hunza, Hunza Valley </li>
<li>Habibi Restaurant, Mardan</li>
<li>La' Cucina Hotel, Lahore</li>
<li>Platter House, Nowshera</li>
<li>Ambrosia, Faisalabad </li>
<li>The Forest, Murree </li>
<li>Sialkot Restaurants </li>
<li>Quetta Restaurants </li>
</ul>
</section>
<section id="available-dishes" class="section">
<h2>Available Dishes</h2>
<ul>
<li>Pizza - Large Size - PRICE: 2000PKR</li>
<li>Pasta - Large Plate - PRICE: 1100PKR</li>
<li>Burger - Medium Size - PRICE: 1100PKR</li>
<li>Sandwich - Medium - PRICE: 600PKR</li>
<li>Fried Chicken - Small Size - PRICE: 1100PKR</li>
<li>Burger - Drink - Large - PRICE: 200PKR</li>
</ul>
</section>
<section id="order-form" class="section">
<h2>Order Placement</h2>
<form id="order-form-content">
<label for="restaurant">Select Restaurant:</label>
<select id="restaurant" name="restaurant" required>
<option value="restaurant-a">Serena Khaplu Palace, Gilgit-Baltistan</option>
<option value="restaurant-b">Habibi Restaurant, Mardan</option>
<option value="restaurant-c">La' Cucina Hotel, Lahore</option>
<option value="restaurant-c">Cafe de Hunza, Hunza Valley</option>
<option value="restaurant-c">Sialkot Restaurants</option>
<option value="restaurant-c">Quetta Restaurants</option>
<option value="restaurant-c">The Forest, Murree</option>
<option value="restaurant-c">Ambrosia, Faisalabad</option>
<option value="restaurant-c">Platter House, Nowshera</option>
</select>
<label for="dish">Select Dish:</label>
<select id="dish" name="dish" required>
<option value="dish-1">Pizza</option>
<option value="dish-2">Burger</option>
<option value="dish-3">Pasta</option>
<option value="dish-3">Biryani</option>
<option value="dish-3">Chicken</option>
<option value="dish-3">Mutton</option>
<option value="dish-3">Salad</option>
<option value="dish-3">Drink</option>
</select>
<button type="submit">Place Order</button>
</form>
</section>
</main>
<footer>
<p>© 2024 Zaryab Hussain</p>
</footer>
<script>
function showSection(sectionId) {
const sections = document.querySelectorAll('.section');
sections.forEach(section => {
section.classList.remove('active');
});
document.getElementById(sectionId).classList.add('active');
}
// Show the 'restaurant-list' section by default
showSection('restaurant-list');
</script>
</body>
</html>