Spaces:
Sleeping
Sleeping
Update templates/menu.html
Browse files- templates/menu.html +226 -199
templates/menu.html
CHANGED
@@ -8,205 +8,232 @@
|
|
8 |
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
|
9 |
<style>
|
10 |
body {
|
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 |
</style>
|
211 |
</head>
|
212 |
<body>
|
|
|
8 |
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
|
9 |
<style>
|
10 |
body {
|
11 |
+
font-family: Arial, sans-serif;
|
12 |
+
background-color: #ffffff; /* Updated background color */
|
13 |
+
margin: 0;
|
14 |
+
padding: 0;
|
15 |
+
}
|
16 |
+
.container {
|
17 |
+
max-width: 900px;
|
18 |
+
}
|
19 |
+
.menu-card {
|
20 |
+
max-width: 350px;
|
21 |
+
border-radius: 15px;
|
22 |
+
overflow: hidden;
|
23 |
+
background-color: #fff;
|
24 |
+
margin: auto;
|
25 |
+
}
|
26 |
+
.menu-image {
|
27 |
+
height: 200px;
|
28 |
+
width: 100%;
|
29 |
+
object-fit: cover;
|
30 |
+
border-radius: 15px 15px 0 0;
|
31 |
+
}
|
32 |
+
.card-title {
|
33 |
+
font-size: 1.2rem;
|
34 |
+
font-weight: bold;
|
35 |
+
}
|
36 |
+
.card-text {
|
37 |
+
font-size: 1rem;
|
38 |
+
color: #6c757d;
|
39 |
+
}
|
40 |
+
.btn-primary {
|
41 |
+
font-size: 0.9rem;
|
42 |
+
border-radius: 20px;
|
43 |
+
width: 100px;
|
44 |
+
background-color: #FF6B35; /* Updated button background color */
|
45 |
+
border-color: #28a745;
|
46 |
+
}
|
47 |
+
.btn-primary:hover {
|
48 |
+
background-color: #4a5d68;
|
49 |
+
border-color: #1e7e34;
|
50 |
+
}
|
51 |
+
.btn-primary:active,
|
52 |
+
.btn-primary:focus {
|
53 |
+
background-color: #4a5d68;
|
54 |
+
border-color: #1e7e34;
|
55 |
+
box-shadow: none;
|
56 |
+
}
|
57 |
+
.view-cart-container {
|
58 |
+
position: fixed;
|
59 |
+
bottom: 20px;
|
60 |
+
right: 20px;
|
61 |
+
z-index: 999;
|
62 |
+
}
|
63 |
+
.view-cart-button {
|
64 |
+
background-color: #FF6B35; /* Updated View Cart button background color */
|
65 |
+
color: #fff;
|
66 |
+
padding: 10px 20px;
|
67 |
+
border-radius: 50px;
|
68 |
+
font-size: 1rem;
|
69 |
+
font-weight: bold;
|
70 |
+
text-decoration: none;
|
71 |
+
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
|
72 |
+
display: flex;
|
73 |
+
align-items: center;
|
74 |
+
justify-content: center;
|
75 |
+
}
|
76 |
+
.view-cart-button:hover {
|
77 |
+
background-color: #e25a2a; /* Slightly darker shade for hover effect */
|
78 |
+
text-decoration: none;
|
79 |
+
}
|
80 |
+
.avatar-dropdown-container {
|
81 |
+
position: relative;
|
82 |
+
}
|
83 |
+
.avatar-icon {
|
84 |
+
width: 40px;
|
85 |
+
height: 40px;
|
86 |
+
border-radius: 50%;
|
87 |
+
background-color: #5bbfc1;
|
88 |
+
cursor: pointer;
|
89 |
+
display: flex;
|
90 |
+
align-items: center;
|
91 |
+
justify-content: center;
|
92 |
+
color: white;
|
93 |
+
font-size: 20px;
|
94 |
+
font-weight: bold;
|
95 |
+
}
|
96 |
+
.dropdown-menu {
|
97 |
+
position: absolute;
|
98 |
+
right: 0;
|
99 |
+
top: 100%;
|
100 |
+
background-color: #fff;
|
101 |
+
border-radius: 5px;
|
102 |
+
width: 200px; /* Adjust width as needed */
|
103 |
+
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
|
104 |
+
display: none;
|
105 |
+
}
|
106 |
+
.avatar-dropdown-container:hover .dropdown-menu {
|
107 |
+
display: block;
|
108 |
+
}
|
109 |
+
.dropdown-menu .dropdown-item {
|
110 |
+
padding: 10px 15px;
|
111 |
+
text-decoration: none;
|
112 |
+
color: #333;
|
113 |
+
border-bottom: 1px solid #ddd;
|
114 |
+
display: block; /* Make each item stack vertically */
|
115 |
+
}
|
116 |
+
.dropdown-menu .dropdown-item:last-child {
|
117 |
+
border-bottom: none; /* Remove the bottom border from the last item */
|
118 |
+
}
|
119 |
+
.dropdown-menu .dropdown-item:hover {
|
120 |
+
background-color: #f1f1f1;
|
121 |
+
}
|
122 |
+
.fixed-search-container {
|
123 |
+
position: absolute;
|
124 |
+
top: 90px; /* Move it slightly lower */
|
125 |
+
left: 50%;
|
126 |
+
transform: translateX(-50%);
|
127 |
+
width: 80%;
|
128 |
+
max-width: 600px;
|
129 |
+
z-index: 999; /* Keep it above content */
|
130 |
+
background-color: white;
|
131 |
+
padding: 10px;
|
132 |
+
border-radius: 25px;
|
133 |
+
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
|
134 |
+
}
|
135 |
+
/* Ensure the category filter dropdown does not overlap */
|
136 |
+
form.text-center.mb-4 {
|
137 |
+
margin-top: 120px !important; /* Increase spacing below search bar */
|
138 |
+
}
|
139 |
+
/* Ensure the container has enough margin so nothing is overlapped */
|
140 |
+
.container {
|
141 |
+
margin-top: 180px; /* Adjust spacing based on navbar and search bar */
|
142 |
+
}
|
143 |
+
.fixed-top-bar {
|
144 |
+
position: fixed;
|
145 |
+
top: 0;
|
146 |
+
left: 0;
|
147 |
+
width: 100%;
|
148 |
+
z-index: 1000; /* Ensures it stays on top of other elements */
|
149 |
+
background-color: #FF6B35; /* Updated header background */
|
150 |
+
color: white;
|
151 |
+
padding: 15px;
|
152 |
+
display: flex;
|
153 |
+
justify-content: space-between;
|
154 |
+
align-items: center;
|
155 |
+
}
|
156 |
+
/* Style for customization sections */
|
157 |
+
.addon-section {
|
158 |
+
background-color: #f8f9fa; /* Light gray background */
|
159 |
+
border: 2px solid #FF6B35; /* Border color */
|
160 |
+
border-radius: 8px;
|
161 |
+
padding: 12px;
|
162 |
+
margin-bottom: 15px; /* Spacing between sections */
|
163 |
+
}
|
164 |
+
/* Customization section title */
|
165 |
+
.addon-section h6 {
|
166 |
+
margin-bottom: 10px;
|
167 |
+
font-size: 1.1rem;
|
168 |
+
font-weight: bold;
|
169 |
+
color: #333;
|
170 |
+
}
|
171 |
+
/* Style for add-on checkboxes */
|
172 |
+
.addon-section .form-check {
|
173 |
+
margin-left: 10px;
|
174 |
+
}
|
175 |
+
|
176 |
+
/* Category Filter with Custom Radio Buttons */
|
177 |
+
form.text-center.mb-4 {
|
178 |
+
display: flex;
|
179 |
+
flex-direction: column;
|
180 |
+
align-items: center;
|
181 |
+
}
|
182 |
+
|
183 |
+
.form-check {
|
184 |
+
display: inline-block;
|
185 |
+
margin-right: 15px;
|
186 |
+
margin-bottom: 10px; /* Add space between buttons */
|
187 |
+
}
|
188 |
+
|
189 |
+
.form-check-inline {
|
190 |
+
margin-right: 10px;
|
191 |
+
}
|
192 |
+
|
193 |
+
.form-check-label {
|
194 |
+
font-size: 16px;
|
195 |
+
margin-left: 8px; /* Space between radio button and label */
|
196 |
+
}
|
197 |
+
|
198 |
+
.custom-radio {
|
199 |
+
appearance: none;
|
200 |
+
-webkit-appearance: none;
|
201 |
+
-moz-appearance: none;
|
202 |
+
width: 18px;
|
203 |
+
height: 18px;
|
204 |
+
border: 2px solid #333;
|
205 |
+
border-radius: 50%;
|
206 |
+
margin-right: 10px; /* Increased spacing between button and label */
|
207 |
+
outline: none;
|
208 |
+
cursor: pointer;
|
209 |
+
position: relative;
|
210 |
+
}
|
211 |
+
|
212 |
+
.custom-radio:checked {
|
213 |
+
background-color: #007bff;
|
214 |
+
border-color: #007bff;
|
215 |
+
}
|
216 |
+
|
217 |
+
.custom-radio:checked::after {
|
218 |
+
content: '';
|
219 |
+
position: absolute;
|
220 |
+
top: 4px;
|
221 |
+
left: 4px;
|
222 |
+
width: 8px;
|
223 |
+
height: 8px;
|
224 |
+
background-color: #fff;
|
225 |
+
border-radius: 50%;
|
226 |
+
}
|
227 |
+
|
228 |
+
.custom-radio:hover {
|
229 |
+
border-color: #007bff;
|
230 |
+
}
|
231 |
+
|
232 |
+
/* Optional: Style the labels */
|
233 |
+
.form-check-label {
|
234 |
+
font-size: 16px;
|
235 |
+
margin-left: 8px; /* Space between the radio button and the label */
|
236 |
+
}
|
237 |
</style>
|
238 |
</head>
|
239 |
<body>
|