Z User commited on
Commit
cbd6709
·
1 Parent(s): ee268fe

fix: Remove duplicate inline mobile navs from ai-chat.html and search-result.html

Browse files

Both pages had their OWN inline mobile bottom nav IN ADDITION to the shared
navbar. This caused them to show the OLD nav (Home/Shops/Cart/Account with
'AI Shop' center button) instead of the NEW shared nav
(Home/Category/Discover/Cart/Account).

Now ALL pages with the navbar use ONLY the shared navbar.html — no
duplicates. The mobile bottom nav is identical across index.html,
ai-chat.html, categories.html, videos.html, and all other pages:

Home | Category | Discover (centered) | Cart | Account

Files changed (2) hide show
  1. ai-chat.html +0 -28
  2. search-result.html +0 -28
ai-chat.html CHANGED
@@ -225,34 +225,6 @@
225
  </div>
226
 
227
  <!-- Bottom Navigation -->
228
- <nav class="mobile-nav fixed bottom-0 left-0 right-0 bg-white border-t border-gray-200 z-50">
229
- <div class="flex items-center justify-around py-2 max-w-lg mx-auto">
230
- <a href="/" class="flex flex-col items-center gap-0.5 p-1.5 sm:p-2 text-gray-400 hover:text-gray-600 transition-colors">
231
- <i class="fas fa-home text-lg sm:text-xl"></i>
232
- <span class="text-[10px] sm:text-xs">Home</span>
233
- </a>
234
- <a href="categories.html" class="flex flex-col items-center gap-0.5 p-1.5 sm:p-2 text-gray-400 hover:text-gray-600 transition-colors">
235
- <i class="fas fa-th-large text-lg sm:text-xl"></i>
236
- <span class="text-[10px] sm:text-xs">Categories</span>
237
- </a>
238
- <a href="ai-chat.html" class="flex flex-col items-center gap-0.5 p-1.5 sm:p-2 text-cyan-500 relative">
239
- <div class="absolute -top-1 left-1/2 -translate-x-1/2 w-12 h-1 bg-cyan-500 rounded-full"></div>
240
- <div class="w-10 h-10 sm:w-11 sm:h-11 bg-gradient-to-br from-cyan-400 to-cyan-700 rounded-full flex items-center justify-center shadow-lg -mt-5">
241
- <i class="fas fa-robot text-white text-base sm:text-lg"></i>
242
- </div>
243
- <span class="text-[10px] sm:text-xs font-semibold text-cyan-500">AI Shop</span>
244
- </a>
245
- <a href="cart.html" class="flex flex-col items-center gap-0.5 p-1.5 sm:p-2 text-gray-400 hover:text-gray-600 transition-colors relative">
246
- <i class="fas fa-shopping-cart text-lg sm:text-xl"></i>
247
- <span class="text-[10px] sm:text-xs">Cart</span>
248
- <span id="mobileCartCount" class="absolute top-0 right-1 w-4 h-4 bg-red-500 text-white text-[10px] font-bold rounded-full flex items-center justify-center">0</span>
249
- </a>
250
- <a href="login.html" class="flex flex-col items-center gap-0.5 p-1.5 sm:p-2 text-gray-400 hover:text-gray-600 transition-colors">
251
- <i class="fas fa-user text-lg sm:text-xl"></i>
252
- <span class="text-[10px] sm:text-xs">Account</span>
253
- </a>
254
- </div>
255
- </nav>
256
 
257
  <!-- Scripts: Supabase config + Cart module + AI Assistant (shared logic) -->
258
  <!-- Scripts: Edge function client (no Supabase SDK) + Cart + AI Assistant -->
 
225
  </div>
226
 
227
  <!-- Bottom Navigation -->
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
228
 
229
  <!-- Scripts: Supabase config + Cart module + AI Assistant (shared logic) -->
230
  <!-- Scripts: Edge function client (no Supabase SDK) + Cart + AI Assistant -->
search-result.html CHANGED
@@ -467,34 +467,6 @@
467
  </main>
468
 
469
  <!-- Mobile Navigation (Bottom) -->
470
- <nav class="mobile-nav fixed bottom-0 left-0 right-0 bg-white border-t border-gray-200 lg:hidden z-50">
471
- <div class="flex items-center justify-around py-2">
472
- <a href="index.html" class="flex flex-col items-center gap-1 p-2 text-gray-500">
473
- <i class="fas fa-home text-lg"></i>
474
- <span class="text-xs">Home</span>
475
- </a>
476
- <a href="categories.html" class="flex flex-col items-center gap-1 p-2 text-gray-500">
477
- <i class="fas fa-th-large text-lg"></i>
478
- <span class="text-xs">Categories</span>
479
- </a>
480
- <a href="#" class="flex flex-col items-center gap-1 p-2 text-cyan-500">
481
- <i class="fas fa-search text-lg"></i>
482
- <span class="text-xs font-medium">Search</span>
483
- </a>
484
- <a href="cart.html" class="flex flex-col items-center gap-1 p-2 text-gray-500 relative">
485
- <i class="fas fa-shopping-cart text-lg"></i>
486
- <span class="text-xs">Cart</span>
487
- <span id="mobileCartCount" class="absolute top-0 right-1 w-4 h-4 bg-red-500 text-white text-[10px] font-bold rounded-full flex items-center justify-center">0</span>
488
- </a>
489
- <a id="mobileAccountBtn" href="login.html" class="flex flex-col items-center gap-1 p-2 text-gray-500">
490
- <div class="relative">
491
- <i class="fas fa-user text-lg"></i>
492
- <i id="loggedInCheck" class="fas fa-check-circle text-green-500 text-xs absolute -bottom-0.5 -right-0.5 hidden"></i>
493
- </div>
494
- <span class="text-xs">Account</span>
495
- </a>
496
- </div>
497
- </nav>
498
 
499
  <!-- Auth Modal -->
500
  <div id="authModal" class="fixed inset-0 bg-black/50 backdrop-blur-sm z-50 hidden items-center justify-center p-4">
 
467
  </main>
468
 
469
  <!-- Mobile Navigation (Bottom) -->
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
470
 
471
  <!-- Auth Modal -->
472
  <div id="authModal" class="fixed inset-0 bg-black/50 backdrop-blur-sm z-50 hidden items-center justify-center p-4">