Fazbeeer commited on
Commit
a850532
·
verified ·
1 Parent(s): efc394c

bring the cart to front bc its behind the website

Browse files
Files changed (1) hide show
  1. index.html +20 -18
index.html CHANGED
@@ -39,8 +39,21 @@
39
  <!-- Vanta.js Background -->
40
  <div id="vanta-bg" class="fixed top-0 left-0 w-full h-full z-0"></div>
41
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
  <!-- Navigation -->
43
- <nav class="relative z-10 bg-black bg-opacity-80 border-b border-gold-500">
44
  <div class="container mx-auto px-6 py-4">
45
  <div class="flex justify-between items-center">
46
  <div class="flex items-center space-x-2">
@@ -58,23 +71,12 @@
58
  <a href="results.html" class="text-white hover:text-yellow-500 transition">Results</a>
59
  </div>
60
  <div class="flex items-center space-x-4">
61
- <div class="relative">
62
- <button id="cart-button" class="flex items-center space-x-1 bg-black bg-opacity-50 px-3 py-2 rounded-lg border border-yellow-500 hover:bg-yellow-500 hover:text-black transition">
63
- <i data-feather="shopping-cart" class="text-yellow-500 hover:text-black"></i>
64
- <span id="cart-count" class="text-white">0</span>
65
- </button>
66
- <div id="cart-dropdown" class="hidden absolute right-0 mt-2 w-72 bg-black border border-yellow-500 rounded-lg shadow-lg py-2 z-20">
67
- <div class="px-4 py-2 text-white border-b border-gray-700">Your Cart</div>
68
- <div id="cart-items" class="max-h-60 overflow-y-auto">
69
- <div class="px-4 py-3 text-gray-300 text-center">Your cart is empty</div>
70
- </div>
71
- <div class="px-4 py-2 border-t border-gray-700">
72
- <button id="checkout-btn" class="w-full bg-yellow-500 hover:bg-yellow-600 text-black font-bold py-2 rounded transition disabled:opacity-50" disabled>
73
- Checkout
74
- </button>
75
- </div>
76
- </div>
77
- </div>
78
  <div class="relative group">
79
  <button class="flex items-center space-x-1 bg-black bg-opacity-50 px-3 py-2 rounded-lg border border-yellow-500">
80
  <i data-feather="globe" class="text-yellow-500"></i>
 
39
  <!-- Vanta.js Background -->
40
  <div id="vanta-bg" class="fixed top-0 left-0 w-full h-full z-0"></div>
41
 
42
+ <!-- Cart Dropdown (moved before navigation) -->
43
+ <div id="cart-dropdown" class="hidden absolute right-0 mt-2 w-72 bg-black border border-yellow-500 rounded-lg shadow-lg py-2 z-50">
44
+ <div class="px-4 py-2 text-white border-b border-gray-700">Your Cart</div>
45
+ <div id="cart-items" class="max-h-60 overflow-y-auto">
46
+ <div class="px-4 py-3 text-gray-300 text-center">Your cart is empty</div>
47
+ </div>
48
+ <div class="px-4 py-2 border-t border-gray-700">
49
+ <button id="checkout-btn" class="w-full bg-yellow-500 hover:bg-yellow-600 text-black font-bold py-2 rounded transition disabled:opacity-50" disabled>
50
+ Checkout
51
+ </button>
52
+ </div>
53
+ </div>
54
+
55
  <!-- Navigation -->
56
+ <nav class="relative z-10 bg-black bg-opacity-80 border-b border-gold-500">
57
  <div class="container mx-auto px-6 py-4">
58
  <div class="flex justify-between items-center">
59
  <div class="flex items-center space-x-2">
 
71
  <a href="results.html" class="text-white hover:text-yellow-500 transition">Results</a>
72
  </div>
73
  <div class="flex items-center space-x-4">
74
+ <div class="relative">
75
+ <button id="cart-button" class="flex items-center space-x-1 bg-black bg-opacity-50 px-3 py-2 rounded-lg border border-yellow-500 hover:bg-yellow-500 hover:text-black transition">
76
+ <i data-feather="shopping-cart" class="text-yellow-500 hover:text-black"></i>
77
+ <span id="cart-count" class="text-white">0</span>
78
+ </button>
79
+ </div>
 
 
 
 
 
 
 
 
 
 
 
80
  <div class="relative group">
81
  <button class="flex items-center space-x-1 bg-black bg-opacity-50 px-3 py-2 rounded-lg border border-yellow-500">
82
  <i data-feather="globe" class="text-yellow-500"></i>