DSatishchandra commited on
Commit
7ef9f6d
·
verified ·
1 Parent(s): e4c08cd

Update templates/menu.html

Browse files
Files changed (1) hide show
  1. 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
- 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
- /* Custom Radio Button Styles */
176
- .custom-radio {
177
- appearance: none;
178
- -webkit-appearance: none;
179
- -moz-appearance: none;
180
- width: 18px;
181
- height: 18px;
182
- border: 2px solid #333;
183
- border-radius: 50%;
184
- margin-right: 10px;
185
- outline: none;
186
- cursor: pointer;
187
- position: relative;
188
- }
189
- .custom-radio:checked {
190
- background-color: #007bff;
191
- border-color: #007bff;
192
- }
193
- .custom-radio:checked::after {
194
- content: '';
195
- position: absolute;
196
- top: 4px;
197
- left: 4px;
198
- width: 8px;
199
- height: 8px;
200
- background-color: #fff;
201
- border-radius: 50%;
202
- }
203
- .custom-radio:hover {
204
- border-color: #007bff;
205
- }
206
- /* Optional: Style the labels */
207
- .form-check-label {
208
- font-size: 16px;
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>