nagasurendra commited on
Commit
c0ffc80
·
verified ·
1 Parent(s): 068deb5

Update templates/menu.html

Browse files
Files changed (1) hide show
  1. templates/menu.html +86 -30
templates/menu.html CHANGED
@@ -41,18 +41,18 @@
41
  font-size: 0.9rem;
42
  border-radius: 20px;
43
  width: 100px;
44
- background-color: #5bbfc1; !important; /* Green color */
45
- border-color: #28a745 !important;
46
  }
47
  .btn-primary:hover {
48
- background-color: #4a5d68; !important; /* Darker green on hover */
49
- border-color: #1e7e34 !important;
50
  }
51
  .btn-primary:active,
52
  .btn-primary:focus {
53
- background-color: #4a5d68 !important; /* Same as hover color */
54
- border-color: #1e7e34 !important;
55
- box-shadow: none !important; /* Removes Bootstrap's focus outline */
56
  }
57
 
58
  .filter-container {
@@ -96,35 +96,61 @@
96
  justify-content: center;
97
  }
98
  .view-cart-button:hover {
99
- background-color: #4a5d68; /* This is causing the blue hover effect */
100
  text-decoration: none;
101
  }
102
- .view-cart-button:hover,
103
- .view-cart-button:focus,
104
- .view-cart-button:active {
105
- background-color: #4a5d68 !important; /* Keep the original background */
106
- color: #fff !important;
107
- text-decoration: none;
108
- box-shadow: none !important;
109
  }
110
 
111
- .new-link {
112
- background-color: #4CAF50; /* Green background for the link */
 
 
 
 
 
 
 
113
  color: white;
114
- padding: 8px 16px;
115
- border-radius: 25px;
116
- text-decoration: none;
117
  font-weight: bold;
118
- font-size: 1rem;
119
- transition: background-color 0.3s ease;
120
  }
121
 
122
- .new-link:hover {
123
- background-color: #45a049; /* Darker green on hover */
 
 
 
 
 
 
 
124
  }
125
- .view-cart-button:hover {
126
- background-color: #0056b3;
127
- text-decoration: none;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
128
  }
129
  </style>
130
  </head>
@@ -133,8 +159,6 @@
133
  <div>
134
  <h6>Referral Code: <span id="referral-code">{{ referral_code }}</span></h6>
135
  </div>
136
- <!-- Include Bootstrap Icons -->
137
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons/font/bootstrap-icons.css">
138
 
139
  <div class="d-flex align-items-center">
140
  <a href="{{ url_for('order_history') }}" class="text-white mx-2" title="Order History">
@@ -148,6 +172,34 @@
148
  <div>
149
  <h6>Reward Points: <span id="reward-points">{{ reward_points | round(1) }}</span></h6>
150
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
151
  </div>
152
 
153
  <div class="container mt-4">
@@ -188,7 +240,6 @@
188
  {% endfor %}
189
  </div>
190
 
191
-
192
  <!-- View Cart Button -->
193
  <div class="view-cart-container">
194
  <a href="/cart" class="view-cart-button">
@@ -196,6 +247,11 @@
196
  </a>
197
  </div>
198
 
 
 
 
 
 
199
  <!-- Modal for Item Details -->
200
  <div class="modal fade" id="itemModal" tabindex="-1" aria-labelledby="itemModalLabel" aria-hidden="true">
201
  <div class="modal-dialog modal-dialog-centered">
 
41
  font-size: 0.9rem;
42
  border-radius: 20px;
43
  width: 100px;
44
+ background-color: #5bbfc1;
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
 
58
  .filter-container {
 
96
  justify-content: center;
97
  }
98
  .view-cart-button:hover {
99
+ background-color: #4a5d68;
100
  text-decoration: none;
101
  }
102
+
103
+ .avatar-dropdown-container {
104
+ position: relative;
 
 
 
 
105
  }
106
 
107
+ .avatar-icon {
108
+ width: 40px;
109
+ height: 40px;
110
+ border-radius: 50%;
111
+ background-color: #5bbfc1;
112
+ cursor: pointer;
113
+ display: flex;
114
+ align-items: center;
115
+ justify-content: center;
116
  color: white;
117
+ font-size: 20px;
 
 
118
  font-weight: bold;
 
 
119
  }
120
 
121
+ .dropdown-menu {
122
+ position: absolute;
123
+ right: 0;
124
+ top: 100%;
125
+ background-color: #fff;
126
+ border-radius: 5px;
127
+ width: 300px;
128
+ box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
129
+ display: none;
130
  }
131
+
132
+ .avatar-dropdown-container:hover .dropdown-menu {
133
+ display: block;
134
+ }
135
+
136
+ .dropdown-menu .dropdown-item {
137
+ padding: 10px 15px;
138
+ display: flex;
139
+ justify-content: space-between;
140
+ border-bottom: 1px solid #ddd;
141
+ }
142
+
143
+ .dropdown-menu .dropdown-item:last-child {
144
+ border-bottom: none;
145
+ }
146
+
147
+ .dropdown-menu .dropdown-item:hover {
148
+ background-color: #f1f1f1;
149
+ }
150
+
151
+ .dropdown-column {
152
+ flex: 1;
153
+ padding: 5px;
154
  }
155
  </style>
156
  </head>
 
159
  <div>
160
  <h6>Referral Code: <span id="referral-code">{{ referral_code }}</span></h6>
161
  </div>
 
 
162
 
163
  <div class="d-flex align-items-center">
164
  <a href="{{ url_for('order_history') }}" class="text-white mx-2" title="Order History">
 
172
  <div>
173
  <h6>Reward Points: <span id="reward-points">{{ reward_points | round(1) }}</span></h6>
174
  </div>
175
+
176
+ <!-- Avatar and Dropdown -->
177
+ <div class="avatar-dropdown-container">
178
+ <div class="avatar-icon">
179
+ <span>A</span>
180
+ </div>
181
+ <div class="dropdown-menu">
182
+ <div class="d-flex">
183
+ <!-- Customer Details Column -->
184
+ <div class="dropdown-column">
185
+ <h6>Customer Details</h6>
186
+ <a href="{{ url_for('customer_details') }}" class="dropdown-item">View Profile</a>
187
+ </div>
188
+
189
+ <!-- Orders Column -->
190
+ <div class="dropdown-column">
191
+ <h6>Orders</h6>
192
+ <a href="{{ url_for('order_history') }}" class="dropdown-item">Order History</a>
193
+ </div>
194
+
195
+ <!-- Logout Column -->
196
+ <div class="dropdown-column">
197
+ <h6>Logout</h6>
198
+ <a href="{{ url_for('logout') }}" class="dropdown-item">Logout</a>
199
+ </div>
200
+ </div>
201
+ </div>
202
+ </div>
203
  </div>
204
 
205
  <div class="container mt-4">
 
240
  {% endfor %}
241
  </div>
242
 
 
243
  <!-- View Cart Button -->
244
  <div class="view-cart-container">
245
  <a href="/cart" class="view-cart-button">
 
247
  </a>
248
  </div>
249
 
250
+ <!-- Bootstrap JS -->
251
+ <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
252
+
253
+
254
+
255
  <!-- Modal for Item Details -->
256
  <div class="modal fade" id="itemModal" tabindex="-1" aria-labelledby="itemModalLabel" aria-hidden="true">
257
  <div class="modal-dialog modal-dialog-centered">