Spaces:
Sleeping
Sleeping
Update templates/Menu.html
Browse files- templates/Menu.html +61 -19
templates/Menu.html
CHANGED
@@ -13,17 +13,57 @@
|
|
13 |
}
|
14 |
/* Header */
|
15 |
.header {
|
16 |
-
background: white;
|
17 |
-
padding: 15px 20px;
|
18 |
display: flex;
|
19 |
justify-content: space-between;
|
20 |
align-items: center;
|
21 |
-
|
|
|
|
|
22 |
}
|
23 |
-
.
|
24 |
-
|
25 |
-
|
26 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
}
|
28 |
.nav-links {
|
29 |
list-style: none;
|
@@ -149,21 +189,23 @@
|
|
149 |
</head>
|
150 |
<body>
|
151 |
|
152 |
-
|
153 |
-
<
|
154 |
-
|
155 |
-
|
156 |
-
<
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
</
|
|
|
|
|
163 |
|
164 |
<!-- Main Content -->
|
165 |
<div class="container">
|
166 |
-
<h2>
|
167 |
<div id="menu"></div>
|
168 |
</div>
|
169 |
|
|
|
13 |
}
|
14 |
/* Header */
|
15 |
.header {
|
|
|
|
|
16 |
display: flex;
|
17 |
justify-content: space-between;
|
18 |
align-items: center;
|
19 |
+
background: #ff6b00;
|
20 |
+
padding: 15px;
|
21 |
+
color: white;
|
22 |
}
|
23 |
+
.search-bar {
|
24 |
+
flex-grow: 1;
|
25 |
+
margin: 0 10px;
|
26 |
+
}
|
27 |
+
.search-bar input {
|
28 |
+
width: 70%;
|
29 |
+
padding: 8px;
|
30 |
+
border-radius: 5px;
|
31 |
+
border: none;
|
32 |
+
}
|
33 |
+
.avatar {
|
34 |
+
width: 40px;
|
35 |
+
height: 40px;
|
36 |
+
border-radius: 50%;
|
37 |
+
background: white;
|
38 |
+
display: flex;
|
39 |
+
align-items: center;
|
40 |
+
justify-content: center;
|
41 |
+
cursor: pointer;
|
42 |
+
position: relative;
|
43 |
+
}
|
44 |
+
.avatar-menu {
|
45 |
+
display: none;
|
46 |
+
position: absolute;
|
47 |
+
top: 50px;
|
48 |
+
right: 0;
|
49 |
+
background: white;
|
50 |
+
color: black;
|
51 |
+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
52 |
+
border-radius: 5px;
|
53 |
+
width: 150px;
|
54 |
+
text-align: left;
|
55 |
+
}
|
56 |
+
.avatar-menu a {
|
57 |
+
display: block;
|
58 |
+
padding: 10px;
|
59 |
+
text-decoration: none;
|
60 |
+
color: black;
|
61 |
+
}
|
62 |
+
.avatar-menu a:hover {
|
63 |
+
background: #f0f0f0;
|
64 |
+
}
|
65 |
+
.avatar:hover .avatar-menu {
|
66 |
+
display: block;
|
67 |
}
|
68 |
.nav-links {
|
69 |
list-style: none;
|
|
|
189 |
</head>
|
190 |
<body>
|
191 |
|
192 |
+
<div class="header">
|
193 |
+
<div class="search-bar">
|
194 |
+
<input type="text" id="search" placeholder="Search food items..." onkeyup="searchMenu()">
|
195 |
+
</div>
|
196 |
+
<div class="avatar">👤
|
197 |
+
<div class="avatar-menu">
|
198 |
+
<a href="#">Profile</a>
|
199 |
+
<a href="#">Rewards</a>
|
200 |
+
<a href="#">My Orders</a>
|
201 |
+
<a href="#" onclick="logout()">Logout</a>
|
202 |
+
</div>
|
203 |
+
</div>
|
204 |
+
</div>
|
205 |
|
206 |
<!-- Main Content -->
|
207 |
<div class="container">
|
208 |
+
<h2>Menu</h2>
|
209 |
<div id="menu"></div>
|
210 |
</div>
|
211 |
|