Swathi6 commited on
Commit
075312b
·
verified ·
1 Parent(s): 5f983ee

Update templates/menu.html

Browse files
Files changed (1) hide show
  1. templates/menu.html +60 -119
templates/menu.html CHANGED
@@ -61,29 +61,31 @@
61
  border-color: #ffffff;
62
  box-shadow: none;
63
  }
64
- .view-cart-container {
65
- position: fixed;
66
- bottom: 20px;
67
- right: 20px;
68
- z-index: 999;
69
- }
70
- .view-cart-button {
71
- background-color: #0FAA39; /* Updated View Cart button background color */
72
- color: #fff;
73
- padding: 10px 20px;
74
- border-radius: 30px;
75
- font-size: 1rem;
76
- font-weight: bold;
77
- text-decoration: none;
78
- box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
79
- display: flex;
80
- align-items: center;
81
- justify-content: center;
82
- }
83
- .view-cart-button:hover {
84
- background-color: #109835; /* Slightly darker shade for hover effect */
85
- text-decoration: none;
86
- }
 
 
87
  .avatar-dropdown-container {
88
  position: relative;
89
  }
@@ -180,29 +182,32 @@ h1.text-center {
180
  z-index: 1000; /* Make sure it's still above other content */
181
  }
182
  .search-bar-container {
183
- padding: 10px;
184
- position: absolute;
185
- left: 20px;
186
- top: 50%;
187
- transform: translateY(-50%);
188
- display: flex;
189
- justify-content: flex-start;
190
- align-items: center;
191
- width: 300px; /* Adjust width as needed */
192
- }
193
- .search-bar-container input {
194
- width: 85%;
195
- padding: 8px 10px 8px 30px; /* Add padding for the icon */
196
- font-size: 16px;
197
- border-radius: 10px;
198
- border: none;
199
- }
200
- .search-icon {
201
- position: absolute;
202
- left: 15px; /* Position the icon inside the input box */
203
- font-size: 20px;
204
- color: #888; /* Icon color */
205
- }
 
 
 
206
  /* Style for customization sections */
207
  .addon-section {
208
  background-color: #fff; /* Light gray background */
@@ -394,6 +399,14 @@ form-check-input addon-option{
394
  </style>
395
  </head>
396
  <body>
 
 
 
 
 
 
 
 
397
 
398
  <div class="fixed-top-bar">
399
  <!-- Avatar and Dropdown -->
@@ -408,12 +421,7 @@ form-check-input addon-option{
408
  </div>
409
  </div>
410
 
411
- <!-- Search Bar Section -->
412
- <div class="search-bar-container">
413
- <input type="text" id="searchBar" class="form-control" placeholder="Search items or sections..." onkeyup="filterMenu()">
414
- <i class="bi bi-search search-icon"></i> <!-- Search icon inside the input -->
415
- </div>
416
- </div>
417
 
418
  <!-- Category Filter with Custom Radio Buttons -->
419
  <form method="get" action="/menu" class="text-center mb-4">
@@ -480,73 +488,7 @@ form-check-input addon-option{
480
  {% endif %}
481
 
482
  </div>
483
- <meta charset="UTF-8">
484
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
485
- <title>Hover Effect for Chicken Biryani Video</title>
486
- <style>
487
- /* Container for the video */
488
- .menu-item {
489
- width: 320px;
490
- height: 180px;
491
- position: relative;
492
- overflow: hidden;
493
- border-radius: 15px; /* Rounded corners */
494
- box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
495
- cursor: pointer;
496
- }
497
-
498
- /* The video element */
499
- .menu-item video {
500
- width: 100%;
501
- height: 100%;
502
- object-fit: cover;
503
- transition: opacity 0.5s ease-in-out;
504
- }
505
-
506
- /* Description overlay */
507
- .menu-item .description {
508
- position: absolute;
509
- bottom: 20px;
510
- left: 20px;
511
- background: rgba(0, 0, 0, 0.6);
512
- color: white;
513
- padding: 10px;
514
- font-size: 16px;
515
- font-weight: bold;
516
- border-radius: 5px;
517
- opacity: 0;
518
- transition: opacity 0.3s ease-in-out;
519
- }
520
 
521
- /* When hovering over the menu item, the video plays and the description becomes visible */
522
- .menu-item:hover video {
523
- opacity: 1;
524
- }
525
-
526
- .menu-item:hover .description {
527
- opacity: 1;
528
- }
529
-
530
- /* Optional: Hover effect when the user hovers over the menu */
531
- .menu-item:hover {
532
- transform: scale(1.05);
533
- box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
534
- }
535
- </style>
536
- </head>
537
- <body>
538
-
539
- <div class="menu-item">
540
- <!-- Chicken Biryani Video -->
541
- <video id="biryani-video" muted preload="auto" loop>
542
- <source src="https://www.w3schools.com/html/mov_bbb.mp4" type="video/mp4">
543
- Your browser does not support the video tag.
544
- </video>
545
- <!-- Description that will appear on hover -->
546
- <div class="description">Chicken Biryani - Delicious & Flavorful</div>
547
- </div>
548
-
549
-
550
  <!-- View Cart Button -->
551
  <div class="view-cart-container">
552
  <a href="/cart" class="view-cart-button">
@@ -612,7 +554,6 @@ form-check-input addon-option{
612
  modalSectionEl.setAttribute('data-category', selectedCategory);
613
  // Set the default quantity to 1
614
  document.getElementById('quantityInput').value = 1;
615
-
616
 
617
  // Fetch customization options based on the section
618
  fetch(`/api/addons?item_name=${encodeURIComponent(name)}&item_section=${encodeURIComponent(section)}`)
 
61
  border-color: #ffffff;
62
  box-shadow: none;
63
  }
64
+ .view-cart-container {
65
+ text-align: center;
66
+ margin-top: 20px;
67
+ }
68
+ .view-cart-button {
69
+ display: inline-flex;
70
+ align-items: center;
71
+ justify-content: center;
72
+ background-color: #007BFF; /* Blue color */
73
+ color: white;
74
+ padding: 10px 20px;
75
+ border-radius: 50px; /* Rounded corners */
76
+ font-size: 16px;
77
+ font-weight: bold;
78
+ text-decoration: none;
79
+ box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Shadow effect */
80
+ transition: background-color 0.3s ease;
81
+ }
82
+ .view-cart-button:hover {
83
+ background-color: #0056b3; /* Darker blue on hover */
84
+ }
85
+ .cart-icon {
86
+ margin-right: 10px; /* Space between icon and text */
87
+ font-size: 20px; /* Icon size */
88
+ }
89
  .avatar-dropdown-container {
90
  position: relative;
91
  }
 
182
  z-index: 1000; /* Make sure it's still above other content */
183
  }
184
  .search-bar-container {
185
+ padding: 10px;
186
+ position: absolute;
187
+ left: 20px;
188
+ top: 50%;
189
+ transform: translateY(-50%);
190
+ display: flex;
191
+ align-items: center;
192
+ width: 300px; /* Adjust width as needed */
193
+ background-color: white; /* Background color for the input container */
194
+ border-radius: 25px; /* Rounded corners for the input box */
195
+ box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Slight shadow effect */
196
+ }
197
+ .search-bar-container input {
198
+ width: 100%; /* Ensure input takes up full width of container */
199
+ padding: 8px 10px 8px 30px; /* Padding for text and icon */
200
+ font-size: 16px;
201
+ border-radius: 25px; /* Rounded corners */
202
+ border: 1px solid #ddd; /* Light border color */
203
+ outline: none; /* Remove outline */
204
+ }
205
+ .search-icon {
206
+ position: absolute;
207
+ left: 15px; /* Position the icon inside the input box */
208
+ font-size: 18px;
209
+ color: #888; /* Icon color */
210
+ }
211
  /* Style for customization sections */
212
  .addon-section {
213
  background-color: #fff; /* Light gray background */
 
399
  </style>
400
  </head>
401
  <body>
402
+ <!-- Search Bar Section -->
403
+ <div class="search-bar-container">
404
+ <input type="text" id="searchBar" class="form-control" placeholder="Search items or sections..." onkeyup="filterMenu()">
405
+ <span class="search-icon"><i class="bi bi-search"></i></span> <!-- Search icon inside the input -->
406
+ </div>
407
+
408
+ <!-- Bootstrap Icons CDN -->
409
+ <link href="https://cdn.jsdelivr.net/npm/bootstrap-icons/font/bootstrap-icons.css" rel="stylesheet">
410
 
411
  <div class="fixed-top-bar">
412
  <!-- Avatar and Dropdown -->
 
421
  </div>
422
  </div>
423
 
424
+
 
 
 
 
 
425
 
426
  <!-- Category Filter with Custom Radio Buttons -->
427
  <form method="get" action="/menu" class="text-center mb-4">
 
488
  {% endif %}
489
 
490
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
491
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
492
  <!-- View Cart Button -->
493
  <div class="view-cart-container">
494
  <a href="/cart" class="view-cart-button">
 
554
  modalSectionEl.setAttribute('data-category', selectedCategory);
555
  // Set the default quantity to 1
556
  document.getElementById('quantityInput').value = 1;
 
557
 
558
  // Fetch customization options based on the section
559
  fetch(`/api/addons?item_name=${encodeURIComponent(name)}&item_section=${encodeURIComponent(section)}`)