Spaces:
Running
Running
Add 3 files
Browse files- README.md +7 -5
- index.html +726 -19
- prompts.txt +2 -0
README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: shop-store
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: pink
|
| 5 |
+
colorTo: purple
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite
|
| 10 |
---
|
| 11 |
|
| 12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
|
@@ -1,19 +1,726 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>VB LED - Professional Lighting Solutions</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 9 |
+
<style>
|
| 10 |
+
.cart-slider {
|
| 11 |
+
transform: translateX(100%);
|
| 12 |
+
transition: transform 0.3s ease-in-out;
|
| 13 |
+
}
|
| 14 |
+
.cart-slider.open {
|
| 15 |
+
transform: translateX(0);
|
| 16 |
+
}
|
| 17 |
+
.product-card:hover {
|
| 18 |
+
transform: translateY(-5px);
|
| 19 |
+
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
|
| 20 |
+
}
|
| 21 |
+
.category-block:hover {
|
| 22 |
+
transform: scale(1.03);
|
| 23 |
+
}
|
| 24 |
+
.hero-section {
|
| 25 |
+
background-image: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80');
|
| 26 |
+
background-size: cover;
|
| 27 |
+
background-position: center;
|
| 28 |
+
position: relative;
|
| 29 |
+
}
|
| 30 |
+
.hero-overlay {
|
| 31 |
+
position: absolute;
|
| 32 |
+
top: 0;
|
| 33 |
+
left: 0;
|
| 34 |
+
right: 0;
|
| 35 |
+
bottom: 0;
|
| 36 |
+
background-color: rgba(0, 0, 0, 0.5);
|
| 37 |
+
}
|
| 38 |
+
.hero-content {
|
| 39 |
+
position: relative;
|
| 40 |
+
z-index: 1;
|
| 41 |
+
}
|
| 42 |
+
</style>
|
| 43 |
+
</head>
|
| 44 |
+
<body class="font-sans bg-white text-black">
|
| 45 |
+
<!-- Header -->
|
| 46 |
+
<header class="sticky top-0 z-50 bg-white shadow-sm">
|
| 47 |
+
<div class="container mx-auto px-4 py-3 flex items-center justify-between">
|
| 48 |
+
<!-- Logo -->
|
| 49 |
+
<div class="flex items-center">
|
| 50 |
+
<a href="#" class="text-2xl font-bold text-blue-600">VB LED</a>
|
| 51 |
+
</div>
|
| 52 |
+
|
| 53 |
+
<!-- Navigation -->
|
| 54 |
+
<nav class="hidden md:flex space-x-8">
|
| 55 |
+
<a href="#" class="font-medium hover:text-blue-600">Shop All Products</a>
|
| 56 |
+
<a href="#" class="font-medium hover:text-blue-600">Support</a>
|
| 57 |
+
<a href="#" class="font-medium hover:text-blue-600">My Account</a>
|
| 58 |
+
</nav>
|
| 59 |
+
|
| 60 |
+
<!-- Cart -->
|
| 61 |
+
<div class="flex items-center">
|
| 62 |
+
<button id="cart-button" class="relative">
|
| 63 |
+
<i class="fas fa-shopping-cart text-xl"></i>
|
| 64 |
+
<span id="cart-count" class="absolute -top-2 -right-2 bg-blue-600 text-white text-xs rounded-full h-5 w-5 flex items-center justify-center">0</span>
|
| 65 |
+
</button>
|
| 66 |
+
</div>
|
| 67 |
+
</div>
|
| 68 |
+
</header>
|
| 69 |
+
|
| 70 |
+
<!-- Mobile Menu Button (hidden on desktop) -->
|
| 71 |
+
<div class="md:hidden bg-white py-2 px-4 flex justify-between items-center">
|
| 72 |
+
<button id="mobile-menu-button" class="text-xl">
|
| 73 |
+
<i class="fas fa-bars"></i>
|
| 74 |
+
</button>
|
| 75 |
+
<a href="#" class="text-xl font-bold text-blue-600">VB LED</a>
|
| 76 |
+
<button id="mobile-cart-button" class="relative">
|
| 77 |
+
<i class="fas fa-shopping-cart text-xl"></i>
|
| 78 |
+
<span id="mobile-cart-count" class="absolute -top-2 -right-2 bg-blue-600 text-white text-xs rounded-full h-5 w-5 flex items-center justify-center">0</span>
|
| 79 |
+
</button>
|
| 80 |
+
</div>
|
| 81 |
+
|
| 82 |
+
<!-- Mobile Menu (hidden by default) -->
|
| 83 |
+
<div id="mobile-menu" class="hidden md:hidden bg-white shadow-lg">
|
| 84 |
+
<div class="px-4 py-2 space-y-3">
|
| 85 |
+
<a href="#" class="block py-2 font-medium border-b">Shop All Products</a>
|
| 86 |
+
<a href="#" class="block py-2 font-medium border-b">Support</a>
|
| 87 |
+
<a href="#" class="block py-2 font-medium border-b">My Account</a>
|
| 88 |
+
</div>
|
| 89 |
+
</div>
|
| 90 |
+
|
| 91 |
+
<!-- Hero Section -->
|
| 92 |
+
<section class="hero-section py-16 md:py-24">
|
| 93 |
+
<div class="hero-overlay"></div>
|
| 94 |
+
<div class="container mx-auto px-4 hero-content text-center">
|
| 95 |
+
<h1 class="text-3xl md:text-5xl font-bold mb-4 text-white">Professional-Grade Lighting Solutions</h1>
|
| 96 |
+
<p class="text-lg md:text-xl text-gray-200 mb-8">Premium quality lighting components designed for electricians and professional installers.</p>
|
| 97 |
+
<a href="#all-products" class="bg-blue-600 hover:bg-blue-700 text-white font-bold py-3 px-8 rounded-lg transition duration-300 inline-block">Explore Products</a>
|
| 98 |
+
</div>
|
| 99 |
+
</section>
|
| 100 |
+
|
| 101 |
+
<!-- Service Icons -->
|
| 102 |
+
<section class="py-12 bg-white">
|
| 103 |
+
<div class="container mx-auto px-4">
|
| 104 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
|
| 105 |
+
<div class="text-center p-6 rounded-lg">
|
| 106 |
+
<div class="text-blue-600 text-4xl mb-4">
|
| 107 |
+
<i class="fas fa-truck"></i>
|
| 108 |
+
</div>
|
| 109 |
+
<h3 class="text-xl font-bold mb-2">Fast Shipping</h3>
|
| 110 |
+
<p class="text-gray-600">Nationwide delivery within 2–3 business days</p>
|
| 111 |
+
</div>
|
| 112 |
+
<div class="text-center p-6 rounded-lg">
|
| 113 |
+
<div class="text-blue-600 text-4xl mb-4">
|
| 114 |
+
<i class="fas fa-shield-alt"></i>
|
| 115 |
+
</div>
|
| 116 |
+
<h3 class="text-xl font-bold mb-2">5-Year Warranty</h3>
|
| 117 |
+
<p class="text-gray-600">All products include industry-leading coverage</p>
|
| 118 |
+
</div>
|
| 119 |
+
<div class="text-center p-6 rounded-lg">
|
| 120 |
+
<div class="text-blue-600 text-4xl mb-4">
|
| 121 |
+
<i class="fas fa-tools"></i>
|
| 122 |
+
</div>
|
| 123 |
+
<h3 class="text-xl font-bold mb-2">Expert Support</h3>
|
| 124 |
+
<p class="text-gray-600">Our team includes experienced electricians</p>
|
| 125 |
+
</div>
|
| 126 |
+
</div>
|
| 127 |
+
</div>
|
| 128 |
+
</section>
|
| 129 |
+
|
| 130 |
+
<!-- Featured Categories -->
|
| 131 |
+
<section class="py-12 bg-gray-50">
|
| 132 |
+
<div class="container mx-auto px-4">
|
| 133 |
+
<h2 class="text-3xl font-bold mb-12 text-center">Shop By Category</h2>
|
| 134 |
+
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6">
|
| 135 |
+
<!-- Pixel LEDs -->
|
| 136 |
+
<a href="#all-products" data-category="pixel-leds" class="category-block bg-white rounded-lg overflow-hidden shadow-md transition duration-300">
|
| 137 |
+
<img src="https://img.icons8.com/ios/500/light-on.png" alt="Pixel LEDs" class="w-full h-48 object-contain p-4">
|
| 138 |
+
<div class="p-4">
|
| 139 |
+
<h3 class="text-xl font-bold mb-2">Pixel LEDs</h3>
|
| 140 |
+
<p class="text-gray-600">High-quality LED strings and modules</p>
|
| 141 |
+
</div>
|
| 142 |
+
</a>
|
| 143 |
+
|
| 144 |
+
<!-- Controllers & Power -->
|
| 145 |
+
<a href="#all-products" data-category="controllers-power" class="category-block bg-white rounded-lg overflow-hidden shadow-md transition duration-300">
|
| 146 |
+
<img src="https://img.icons8.com/ios/500/light-on.png" alt="Controllers & Power" class="w-full h-48 object-contain p-4">
|
| 147 |
+
<div class="p-4">
|
| 148 |
+
<h3 class="text-xl font-bold mb-2">Controllers & Power</h3>
|
| 149 |
+
<p class="text-gray-600">Control boxes and 24V power supplies</p>
|
| 150 |
+
</div>
|
| 151 |
+
</a>
|
| 152 |
+
|
| 153 |
+
<!-- Aluminum Rails -->
|
| 154 |
+
<a href="#all-products" data-category="aluminum-rails" class="category-block bg-white rounded-lg overflow-hidden shadow-md transition duration-300">
|
| 155 |
+
<img src="https://img.icons8.com/ios/500/light-on.png" alt="Aluminum Rails" class="w-full h-48 object-contain p-4">
|
| 156 |
+
<div class="p-4">
|
| 157 |
+
<h3 class="text-xl font-bold mb-2">Aluminum Rails</h3>
|
| 158 |
+
<p class="text-gray-600">Track 8 and Track 4 mounting solutions</p>
|
| 159 |
+
</div>
|
| 160 |
+
</a>
|
| 161 |
+
|
| 162 |
+
<!-- Wiring & Tools -->
|
| 163 |
+
<a href="#all-products" data-category="wiring-tools" class="category-block bg-white rounded-lg overflow-hidden shadow-md transition duration-300">
|
| 164 |
+
<img src="https://img.icons8.com/ios/500/light-on.png" alt="Wiring & Tools" class="w-full h-48 object-contain p-4">
|
| 165 |
+
<div class="p-4">
|
| 166 |
+
<h3 class="text-xl font-bold mb-2">Wiring & Tools</h3>
|
| 167 |
+
<p class="text-gray-600">Wire spools and installation accessories</p>
|
| 168 |
+
</div>
|
| 169 |
+
</a>
|
| 170 |
+
</div>
|
| 171 |
+
|
| 172 |
+
<div class="text-center mt-12">
|
| 173 |
+
<a href="#all-products" class="inline-block bg-blue-600 hover:bg-blue-700 text-white font-bold py-3 px-8 rounded-lg transition duration-300">View All Products</a>
|
| 174 |
+
</div>
|
| 175 |
+
</div>
|
| 176 |
+
</section>
|
| 177 |
+
|
| 178 |
+
<!-- Shop All Products Section -->
|
| 179 |
+
<section id="all-products" class="py-12 bg-white">
|
| 180 |
+
<div class="container mx-auto px-4">
|
| 181 |
+
<h2 class="text-3xl font-bold mb-8 text-center">All Products</h2>
|
| 182 |
+
|
| 183 |
+
<div class="flex flex-col md:flex-row">
|
| 184 |
+
<!-- Filters Sidebar -->
|
| 185 |
+
<div class="w-full md:w-1/4 pr-0 md:pr-8 mb-8 md:mb-0">
|
| 186 |
+
<div class="bg-white p-4 rounded-lg shadow-sm">
|
| 187 |
+
<h3 class="font-bold mb-4">Filters</h3>
|
| 188 |
+
|
| 189 |
+
<div class="mb-6">
|
| 190 |
+
<h4 class="font-medium mb-2">Categories</h4>
|
| 191 |
+
<div class="space-y-2">
|
| 192 |
+
<label class="flex items-center">
|
| 193 |
+
<input type="checkbox" class="mr-2 category-filter" value="pixel-leds"> Pixel LEDs
|
| 194 |
+
</label>
|
| 195 |
+
<label class="flex items-center">
|
| 196 |
+
<input type="checkbox" class="mr-2 category-filter" value="controllers-power"> Controllers & Power
|
| 197 |
+
</label>
|
| 198 |
+
<label class="flex items-center">
|
| 199 |
+
<input type="checkbox" class="mr-2 category-filter" value="aluminum-rails"> Aluminum Rails
|
| 200 |
+
</label>
|
| 201 |
+
<label class="flex items-center">
|
| 202 |
+
<input type="checkbox" class="mr-2 category-filter" value="wiring-tools"> Wiring & Tools
|
| 203 |
+
</label>
|
| 204 |
+
</div>
|
| 205 |
+
</div>
|
| 206 |
+
|
| 207 |
+
<button id="apply-filters" class="w-full bg-blue-600 hover:bg-blue-700 text-white py-2 rounded">Apply Filters</button>
|
| 208 |
+
</div>
|
| 209 |
+
</div>
|
| 210 |
+
|
| 211 |
+
<!-- Product Grid -->
|
| 212 |
+
<div class="w-full md:w-3/4">
|
| 213 |
+
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6" id="product-grid">
|
| 214 |
+
<!-- Product 1 -->
|
| 215 |
+
<div class="product-card bg-white rounded-lg overflow-hidden shadow-md transition duration-300" data-category="pixel-leds">
|
| 216 |
+
<a href="#">
|
| 217 |
+
<img src="https://img.icons8.com/ios/500/light-on.png" alt="LED Strip" class="w-full h-48 object-contain p-4">
|
| 218 |
+
</a>
|
| 219 |
+
<div class="p-4">
|
| 220 |
+
<a href="#" class="text-lg font-bold mb-2 hover:text-blue-600">24V RGB LED Strip</a>
|
| 221 |
+
<p class="text-gray-600 text-sm mb-3">High-density 120 LEDs/m, waterproof</p>
|
| 222 |
+
<p class="text-xl font-bold mb-4">$29.99</p>
|
| 223 |
+
<div class="flex items-center justify-between">
|
| 224 |
+
<div class="flex items-center border rounded">
|
| 225 |
+
<button class="quantity-btn px-3 py-1">-</button>
|
| 226 |
+
<span class="quantity-display px-3">1</span>
|
| 227 |
+
<button class="quantity-btn px-3 py-1">+</button>
|
| 228 |
+
</div>
|
| 229 |
+
<button class="add-to-cart bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded text-sm"
|
| 230 |
+
data-id="1"
|
| 231 |
+
data-name="24V RGB LED Strip"
|
| 232 |
+
data-price="29.99"
|
| 233 |
+
data-image="https://img.icons8.com/ios/500/light-on.png">Add to Cart</button>
|
| 234 |
+
</div>
|
| 235 |
+
</div>
|
| 236 |
+
</div>
|
| 237 |
+
|
| 238 |
+
<!-- Product 2 -->
|
| 239 |
+
<div class="product-card bg-white rounded-lg overflow-hidden shadow-md transition duration-300" data-category="pixel-leds">
|
| 240 |
+
<a href="#">
|
| 241 |
+
<img src="https://img.icons8.com/ios/500/light-on.png" alt="LED Module" class="w-full h-48 object-contain p-4">
|
| 242 |
+
</a>
|
| 243 |
+
<div class="p-4">
|
| 244 |
+
<a href="#" class="text-lg font-bold mb-2 hover:text-blue-600">RGB LED Module</a>
|
| 245 |
+
<p class="text-gray-600 text-sm mb-3">50W high-power RGB module</p>
|
| 246 |
+
<p class="text-xl font-bold mb-4">$39.99</p>
|
| 247 |
+
<div class="flex items-center justify-between">
|
| 248 |
+
<div class="flex items-center border rounded">
|
| 249 |
+
<button class="quantity-btn px-3 py-1">-</button>
|
| 250 |
+
<span class="quantity-display px-3">1</span>
|
| 251 |
+
<button class="quantity-btn px-3 py-1">+</button>
|
| 252 |
+
</div>
|
| 253 |
+
<button class="add-to-cart bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded text-sm"
|
| 254 |
+
data-id="2"
|
| 255 |
+
data-name="RGB LED Module"
|
| 256 |
+
data-price="39.99"
|
| 257 |
+
data-image="https://img.icons8.com/ios/500/light-on.png">Add to Cart</button>
|
| 258 |
+
</div>
|
| 259 |
+
</div>
|
| 260 |
+
</div>
|
| 261 |
+
|
| 262 |
+
<!-- Product 3 -->
|
| 263 |
+
<div class="product-card bg-white rounded-lg overflow-hidden shadow-md transition duration-300" data-category="controllers-power">
|
| 264 |
+
<a href="#">
|
| 265 |
+
<img src="https://img.icons8.com/ios/500/light-on.png" alt="LED Controller" class="w-full h-48 object-contain p-4">
|
| 266 |
+
</a>
|
| 267 |
+
<div class="p-4">
|
| 268 |
+
<a href="#" class="text-lg font-bold mb-2 hover:text-blue-600">24V RGB Controller</a>
|
| 269 |
+
<p class="text-gray-600 text-sm mb-3">4-zone control, WiFi enabled</p>
|
| 270 |
+
<p class="text-xl font-bold mb-4">$49.99</p>
|
| 271 |
+
<div class="flex items-center justify-between">
|
| 272 |
+
<div class="flex items-center border rounded">
|
| 273 |
+
<button class="quantity-btn px-3 py-1">-</button>
|
| 274 |
+
<span class="quantity-display px-3">1</span>
|
| 275 |
+
<button class="quantity-btn px-3 py-1">+</button>
|
| 276 |
+
</div>
|
| 277 |
+
<button class="add-to-cart bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded text-sm"
|
| 278 |
+
data-id="3"
|
| 279 |
+
data-name="24V RGB Controller"
|
| 280 |
+
data-price="49.99"
|
| 281 |
+
data-image="https://img.icons8.com/ios/500/light-on.png">Add to Cart</button>
|
| 282 |
+
</div>
|
| 283 |
+
</div>
|
| 284 |
+
</div>
|
| 285 |
+
|
| 286 |
+
<!-- Product 4 -->
|
| 287 |
+
<div class="product-card bg-white rounded-lg overflow-hidden shadow-md transition duration-300" data-category="controllers-power">
|
| 288 |
+
<a href="#">
|
| 289 |
+
<img src="https://img.icons8.com/ios/500/light-on.png" alt="Power Supply" class="w-full h-48 object-contain p-4">
|
| 290 |
+
</a>
|
| 291 |
+
<div class="p-4">
|
| 292 |
+
<a href="#" class="text-lg font-bold mb-2 hover:text-blue-600">24V 200W Power Supply</a>
|
| 293 |
+
<p class="text-gray-600 text-sm mb-3">Waterproof, DIN rail mount</p>
|
| 294 |
+
<p class="text-xl font-bold mb-4">$79.99</p>
|
| 295 |
+
<div class="flex items-center justify-between">
|
| 296 |
+
<div class="flex items-center border rounded">
|
| 297 |
+
<button class="quantity-btn px-3 py-1">-</button>
|
| 298 |
+
<span class="quantity-display px-3">1</span>
|
| 299 |
+
<button class="quantity-btn px-3 py-1">+</button>
|
| 300 |
+
</div>
|
| 301 |
+
<button class="add-to-cart bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded text-sm"
|
| 302 |
+
data-id="4"
|
| 303 |
+
data-name="24V 200W Power Supply"
|
| 304 |
+
data-price="79.99"
|
| 305 |
+
data-image="https://img.icons8.com/ios/500/light-on.png">Add to Cart</button>
|
| 306 |
+
</div>
|
| 307 |
+
</div>
|
| 308 |
+
</div>
|
| 309 |
+
|
| 310 |
+
<!-- Product 5 -->
|
| 311 |
+
<div class="product-card bg-white rounded-lg overflow-hidden shadow-md transition duration-300" data-category="aluminum-rails">
|
| 312 |
+
<a href="#">
|
| 313 |
+
<img src="https://img.icons8.com/ios/500/light-on.png" alt="Aluminum Rail" class="w-full h-48 object-contain p-4">
|
| 314 |
+
</a>
|
| 315 |
+
<div class="p-4">
|
| 316 |
+
<a href="#" class="text-lg font-bold mb-2 hover:text-blue-600">Track 8 Aluminum Rail</a>
|
| 317 |
+
<p class="text-gray-600 text-sm mb-3">1m length, matte black finish</p>
|
| 318 |
+
<p class="text-xl font-bold mb-4">$14.99</p>
|
| 319 |
+
<div class="flex items-center justify-between">
|
| 320 |
+
<div class="flex items-center border rounded">
|
| 321 |
+
<button class="quantity-btn px-3 py-1">-</button>
|
| 322 |
+
<span class="quantity-display px-3">1</span>
|
| 323 |
+
<button class="quantity-btn px-3 py-1">+</button>
|
| 324 |
+
</div>
|
| 325 |
+
<button class="add-to-cart bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded text-sm"
|
| 326 |
+
data-id="5"
|
| 327 |
+
data-name="Track 8 Aluminum Rail"
|
| 328 |
+
data-price="14.99"
|
| 329 |
+
data-image="https://img.icons8.com/ios/500/light-on.png">Add to Cart</button>
|
| 330 |
+
</div>
|
| 331 |
+
</div>
|
| 332 |
+
</div>
|
| 333 |
+
|
| 334 |
+
<!-- Product 6 -->
|
| 335 |
+
<div class="product-card bg-white rounded-lg overflow-hidden shadow-md transition duration-300" data-category="aluminum-rails">
|
| 336 |
+
<a href="#">
|
| 337 |
+
<img src="https://img.icons8.com/ios/500/light-on.png" alt="Aluminum Rail" class="w-full h-48 object-contain p-4">
|
| 338 |
+
</a>
|
| 339 |
+
<div class="p-4">
|
| 340 |
+
<a href="#" class="text-lg font-bold mb-2 hover:text-blue-600">Track 4 Aluminum Rail</a>
|
| 341 |
+
<p class="text-gray-600 text-sm mb-3">1m length, matte black finish</p>
|
| 342 |
+
<p class="text-xl font-bold mb-4">$12.99</p>
|
| 343 |
+
<div class="flex items-center justify-between">
|
| 344 |
+
<div class="flex items-center border rounded">
|
| 345 |
+
<button class="quantity-btn px-3 py-1">-</button>
|
| 346 |
+
<span class="quantity-display px-3">1</span>
|
| 347 |
+
<button class="quantity-btn px-3 py-1">+</button>
|
| 348 |
+
</div>
|
| 349 |
+
<button class="add-to-cart bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded text-sm"
|
| 350 |
+
data-id="6"
|
| 351 |
+
data-name="Track 4 Aluminum Rail"
|
| 352 |
+
data-price="12.99"
|
| 353 |
+
data-image="https://img.icons8.com/ios/500/light-on.png">Add to Cart</button>
|
| 354 |
+
</div>
|
| 355 |
+
</div>
|
| 356 |
+
</div>
|
| 357 |
+
|
| 358 |
+
<!-- Product 7 -->
|
| 359 |
+
<div class="product-card bg-white rounded-lg overflow-hidden shadow-md transition duration-300" data-category="wiring-tools">
|
| 360 |
+
<a href="#">
|
| 361 |
+
<img src="https://img.icons8.com/ios/500/light-on.png" alt="Wire Spool" class="w-full h-48 object-contain p-4">
|
| 362 |
+
</a>
|
| 363 |
+
<div class="p-4">
|
| 364 |
+
<a href="#" class="text-lg font-bold mb-2 hover:text-blue-600">18AWG Wire Spool</a>
|
| 365 |
+
<p class="text-gray-600 text-sm mb-3">100ft roll, black/red pair</p>
|
| 366 |
+
<p class="text-xl font-bold mb-4">$19.99</p>
|
| 367 |
+
<div class="flex items-center justify-between">
|
| 368 |
+
<div class="flex items-center border rounded">
|
| 369 |
+
<button class="quantity-btn px-3 py-1">-</button>
|
| 370 |
+
<span class="quantity-display px-3">1</span>
|
| 371 |
+
<button class="quantity-btn px-3 py-1">+</button>
|
| 372 |
+
</div>
|
| 373 |
+
<button class="add-to-cart bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded text-sm"
|
| 374 |
+
data-id="7"
|
| 375 |
+
data-name="18AWG Wire Spool"
|
| 376 |
+
data-price="19.99"
|
| 377 |
+
data-image="https://img.icons8.com/ios/500/light-on.png">Add to Cart</button>
|
| 378 |
+
</div>
|
| 379 |
+
</div>
|
| 380 |
+
</div>
|
| 381 |
+
|
| 382 |
+
<!-- Product 8 -->
|
| 383 |
+
<div class="product-card bg-white rounded-lg overflow-hidden shadow-md transition duration-300" data-category="wiring-tools">
|
| 384 |
+
<a href="#">
|
| 385 |
+
<img src="https://img.icons8.com/ios/500/light-on.png" alt="Installation Kit" class="w-full h-48 object-contain p-4">
|
| 386 |
+
</a>
|
| 387 |
+
<div class="p-4">
|
| 388 |
+
<a href="#" class="text-lg font-bold mb-2 hover:text-blue-600">Installation Tool Kit</a>
|
| 389 |
+
<p class="text-gray-600 text-sm mb-3">Includes all essential tools</p>
|
| 390 |
+
<p class="text-xl font-bold mb-4">$49.99</p>
|
| 391 |
+
<div class="flex items-center justify-between">
|
| 392 |
+
<div class="flex items-center border rounded">
|
| 393 |
+
<button class="quantity-btn px-3 py-1">-</button>
|
| 394 |
+
<span class="quantity-display px-3">1</span>
|
| 395 |
+
<button class="quantity-btn px-3 py-1">+</button>
|
| 396 |
+
</div>
|
| 397 |
+
<button class="add-to-cart bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded text-sm"
|
| 398 |
+
data-id="8"
|
| 399 |
+
data-name="Installation Tool Kit"
|
| 400 |
+
data-price="49.99"
|
| 401 |
+
data-image="https://img.icons8.com/ios/500/light-on.png">Add to Cart</button>
|
| 402 |
+
</div>
|
| 403 |
+
</div>
|
| 404 |
+
</div>
|
| 405 |
+
</div>
|
| 406 |
+
|
| 407 |
+
<!-- Pagination -->
|
| 408 |
+
<div class="mt-8 flex justify-center">
|
| 409 |
+
<nav class="flex items-center space-x-2">
|
| 410 |
+
<a href="#" class="px-3 py-1 rounded border">«</a>
|
| 411 |
+
<a href="#" class="px-3 py-1 rounded border bg-blue-600 text-white">1</a>
|
| 412 |
+
<a href="#" class="px-3 py-1 rounded border">2</a>
|
| 413 |
+
<a href="#" class="px-3 py-1 rounded border">3</a>
|
| 414 |
+
<a href="#" class="px-3 py-1 rounded border">»</a>
|
| 415 |
+
</nav>
|
| 416 |
+
</div>
|
| 417 |
+
</div>
|
| 418 |
+
</div>
|
| 419 |
+
</div>
|
| 420 |
+
</section>
|
| 421 |
+
|
| 422 |
+
<!-- Footer -->
|
| 423 |
+
<footer class="bg-gray-900 text-white py-12">
|
| 424 |
+
<div class="container mx-auto px-4">
|
| 425 |
+
<div class="grid grid-cols-1 md:grid-cols-4 gap-8">
|
| 426 |
+
<div>
|
| 427 |
+
<h3 class="text-xl font-bold mb-4">VB LED</h3>
|
| 428 |
+
<p class="text-gray-400">Professional lighting solutions for electricians and installers.</p>
|
| 429 |
+
</div>
|
| 430 |
+
|
| 431 |
+
<div>
|
| 432 |
+
<h4 class="font-bold mb-4">Quick Links</h4>
|
| 433 |
+
<ul class="space-y-2">
|
| 434 |
+
<li><a href="#" class="text-gray-400 hover:text-white">Shop All Products</a></li>
|
| 435 |
+
<li><a href="#" class="text-gray-400 hover:text-white">Support</a></li>
|
| 436 |
+
<li><a href="#" class="text-gray-400 hover:text-white">My Account</a></li>
|
| 437 |
+
<li><a href="#" class="text-gray-400 hover:text-white">Dealer Application</a></li>
|
| 438 |
+
</ul>
|
| 439 |
+
</div>
|
| 440 |
+
|
| 441 |
+
<div>
|
| 442 |
+
<h4 class="font-bold mb-4">Company</h4>
|
| 443 |
+
<ul class="space-y-2">
|
| 444 |
+
<li><a href="#" class="text-gray-400 hover:text-white">About Us</a></li>
|
| 445 |
+
<li><a href="#" class="text-gray-400 hover:text-white">Contact</a></li>
|
| 446 |
+
<li><a href="#" class="text-gray-400 hover:text-white">Terms & Conditions</a></li>
|
| 447 |
+
<li><a href="#" class="text-gray-400 hover:text-white">Privacy Policy</a></li>
|
| 448 |
+
</ul>
|
| 449 |
+
</div>
|
| 450 |
+
|
| 451 |
+
<div>
|
| 452 |
+
<h4 class="font-bold mb-4">Newsletter</h4>
|
| 453 |
+
<p class="text-gray-400 mb-4">Subscribe for product updates and special offers.</p>
|
| 454 |
+
<form class="flex">
|
| 455 |
+
<input type="email" placeholder="Your email" class="px-3 py-2 rounded-l text-gray-900 w-full">
|
| 456 |
+
<button type="submit" class="bg-blue-600 hover:bg-blue-700 px-4 py-2 rounded-r">
|
| 457 |
+
<i class="fas fa-paper-plane"></i>
|
| 458 |
+
</button>
|
| 459 |
+
</form>
|
| 460 |
+
<div class="mt-4 flex space-x-4">
|
| 461 |
+
<a href="#" class="text-gray-400 hover:text-white text-xl"><i class="fab fa-instagram"></i></a>
|
| 462 |
+
<a href="#" class="text-gray-400 hover:text-white text-xl"><i class="fab fa-linkedin"></i></a>
|
| 463 |
+
</div>
|
| 464 |
+
</div>
|
| 465 |
+
</div>
|
| 466 |
+
|
| 467 |
+
<div class="border-t border-gray-800 mt-8 pt-8 text-center text-gray-400">
|
| 468 |
+
<p>© 2023 VB LED. All rights reserved.</p>
|
| 469 |
+
</div>
|
| 470 |
+
</div>
|
| 471 |
+
</footer>
|
| 472 |
+
|
| 473 |
+
<!-- Cart Slider -->
|
| 474 |
+
<div id="cart-slider" class="cart-slider fixed top-0 right-0 w-full md:w-1/3 h-full bg-white shadow-xl z-50 overflow-y-auto">
|
| 475 |
+
<div class="p-6">
|
| 476 |
+
<div class="flex justify-between items-center mb-6">
|
| 477 |
+
<h3 class="text-xl font-bold">Your Cart</h3>
|
| 478 |
+
<button id="close-cart" class="text-gray-500 hover:text-gray-700">
|
| 479 |
+
<i class="fas fa-times"></i>
|
| 480 |
+
</button>
|
| 481 |
+
</div>
|
| 482 |
+
|
| 483 |
+
<div id="cart-items" class="space-y-4">
|
| 484 |
+
<!-- Cart items will be added here dynamically -->
|
| 485 |
+
<div class="text-center py-8">
|
| 486 |
+
<i class="fas fa-shopping-cart text-4xl text-gray-300 mb-4"></i>
|
| 487 |
+
<p class="text-gray-500">Your cart is empty</p>
|
| 488 |
+
</div>
|
| 489 |
+
</div>
|
| 490 |
+
|
| 491 |
+
<div class="border-t border-gray-200 mt-6 pt-6">
|
| 492 |
+
<div class="flex justify-between mb-2">
|
| 493 |
+
<span class="font-medium">Subtotal</span>
|
| 494 |
+
<span id="cart-subtotal" class="font-bold">$0.00</span>
|
| 495 |
+
</div>
|
| 496 |
+
<button id="checkout-button" class="w-full bg-blue-600 hover:bg-blue-700 text-white font-bold py-3 px-4 rounded-lg transition duration-300">
|
| 497 |
+
Checkout
|
| 498 |
+
</button>
|
| 499 |
+
</div>
|
| 500 |
+
</div>
|
| 501 |
+
</div>
|
| 502 |
+
|
| 503 |
+
<!-- Overlay for cart -->
|
| 504 |
+
<div id="cart-overlay" class="hidden fixed inset-0 bg-black bg-opacity-50 z-40"></div>
|
| 505 |
+
|
| 506 |
+
<script>
|
| 507 |
+
// Mobile menu toggle
|
| 508 |
+
const mobileMenuButton = document.getElementById('mobile-menu-button');
|
| 509 |
+
const mobileMenu = document.getElementById('mobile-menu');
|
| 510 |
+
|
| 511 |
+
mobileMenuButton.addEventListener('click', () => {
|
| 512 |
+
mobileMenu.classList.toggle('hidden');
|
| 513 |
+
});
|
| 514 |
+
|
| 515 |
+
// Cart functionality
|
| 516 |
+
const cartButton = document.getElementById('cart-button');
|
| 517 |
+
const mobileCartButton = document.getElementById('mobile-cart-button');
|
| 518 |
+
const closeCart = document.getElementById('close-cart');
|
| 519 |
+
const cartSlider = document.getElementById('cart-slider');
|
| 520 |
+
const cartOverlay = document.getElementById('cart-overlay');
|
| 521 |
+
const cartCount = document.getElementById('cart-count');
|
| 522 |
+
const mobileCartCount = document.getElementById('mobile-cart-count');
|
| 523 |
+
const cartItemsContainer = document.getElementById('cart-items');
|
| 524 |
+
const cartSubtotal = document.getElementById('cart-subtotal');
|
| 525 |
+
const checkoutButton = document.getElementById('checkout-button');
|
| 526 |
+
const applyFiltersButton = document.getElementById('apply-filters');
|
| 527 |
+
|
| 528 |
+
let cart = [];
|
| 529 |
+
|
| 530 |
+
function toggleCart() {
|
| 531 |
+
cartSlider.classList.toggle('open');
|
| 532 |
+
cartOverlay.classList.toggle('hidden');
|
| 533 |
+
document.body.style.overflow = cartSlider.classList.contains('open') ? 'hidden' : '';
|
| 534 |
+
}
|
| 535 |
+
|
| 536 |
+
function updateCartCount() {
|
| 537 |
+
const totalItems = cart.reduce((total, item) => total + item.quantity, 0);
|
| 538 |
+
cartCount.textContent = totalItems;
|
| 539 |
+
mobileCartCount.textContent = totalItems;
|
| 540 |
+
}
|
| 541 |
+
|
| 542 |
+
function updateCartDisplay() {
|
| 543 |
+
if (cart.length === 0) {
|
| 544 |
+
cartItemsContainer.innerHTML = `
|
| 545 |
+
<div class="text-center py-8">
|
| 546 |
+
<i class="fas fa-shopping-cart text-4xl text-gray-300 mb-4"></i>
|
| 547 |
+
<p class="text-gray-500">Your cart is empty</p>
|
| 548 |
+
</div>
|
| 549 |
+
`;
|
| 550 |
+
cartSubtotal.textContent = '$0.00';
|
| 551 |
+
checkoutButton.disabled = true;
|
| 552 |
+
return;
|
| 553 |
+
}
|
| 554 |
+
|
| 555 |
+
let itemsHTML = '';
|
| 556 |
+
let subtotal = 0;
|
| 557 |
+
|
| 558 |
+
cart.forEach(item => {
|
| 559 |
+
const itemTotal = item.price * item.quantity;
|
| 560 |
+
subtotal += itemTotal;
|
| 561 |
+
|
| 562 |
+
itemsHTML += `
|
| 563 |
+
<div class="flex items-center justify-between py-4 border-b">
|
| 564 |
+
<div class="flex items-center">
|
| 565 |
+
<img src="${item.image}" alt="${item.name}" class="w-16 h-16 object-cover rounded">
|
| 566 |
+
<div class="ml-4">
|
| 567 |
+
<h4 class="font-medium">${item.name}</h4>
|
| 568 |
+
<p class="text-gray-600 text-sm">$${item.price.toFixed(2)}</p>
|
| 569 |
+
</div>
|
| 570 |
+
</div>
|
| 571 |
+
<div class="flex items-center">
|
| 572 |
+
<div class="flex items-center border rounded">
|
| 573 |
+
<button class="decrease-quantity px-2 py-1" data-id="${item.id}">-</button>
|
| 574 |
+
<span class="px-2">${item.quantity}</span>
|
| 575 |
+
<button class="increase-quantity px-2 py-1" data-id="${item.id}">+</button>
|
| 576 |
+
</div>
|
| 577 |
+
<button class="remove-item ml-4 text-red-500" data-id="${item.id}">
|
| 578 |
+
<i class="fas fa-trash"></i>
|
| 579 |
+
</button>
|
| 580 |
+
</div>
|
| 581 |
+
</div>
|
| 582 |
+
`;
|
| 583 |
+
});
|
| 584 |
+
|
| 585 |
+
cartItemsContainer.innerHTML = itemsHTML;
|
| 586 |
+
cartSubtotal.textContent = `$${subtotal.toFixed(2)}`;
|
| 587 |
+
checkoutButton.disabled = false;
|
| 588 |
+
|
| 589 |
+
// Add event listeners to the new buttons
|
| 590 |
+
document.querySelectorAll('.decrease-quantity').forEach(button => {
|
| 591 |
+
button.addEventListener('click', (e) => {
|
| 592 |
+
const id = e.target.getAttribute('data-id');
|
| 593 |
+
updateQuantity(id, -1);
|
| 594 |
+
});
|
| 595 |
+
});
|
| 596 |
+
|
| 597 |
+
document.querySelectorAll('.increase-quantity').forEach(button => {
|
| 598 |
+
button.addEventListener('click', (e) => {
|
| 599 |
+
const id = e.target.getAttribute('data-id');
|
| 600 |
+
updateQuantity(id, 1);
|
| 601 |
+
});
|
| 602 |
+
});
|
| 603 |
+
|
| 604 |
+
document.querySelectorAll('.remove-item').forEach(button => {
|
| 605 |
+
button.addEventListener('click', (e) => {
|
| 606 |
+
const id = e.target.closest('button').getAttribute('data-id');
|
| 607 |
+
removeItem(id);
|
| 608 |
+
});
|
| 609 |
+
});
|
| 610 |
+
}
|
| 611 |
+
|
| 612 |
+
function addToCart(product) {
|
| 613 |
+
const existingItem = cart.find(item => item.id === product.id);
|
| 614 |
+
|
| 615 |
+
if (existingItem) {
|
| 616 |
+
existingItem.quantity += product.quantity;
|
| 617 |
+
} else {
|
| 618 |
+
cart.push({...product});
|
| 619 |
+
}
|
| 620 |
+
|
| 621 |
+
updateCartCount();
|
| 622 |
+
updateCartDisplay();
|
| 623 |
+
}
|
| 624 |
+
|
| 625 |
+
function updateQuantity(id, change) {
|
| 626 |
+
const item = cart.find(item => item.id === id);
|
| 627 |
+
|
| 628 |
+
if (item) {
|
| 629 |
+
item.quantity += change;
|
| 630 |
+
|
| 631 |
+
if (item.quantity <= 0) {
|
| 632 |
+
cart = cart.filter(item => item.id !== id);
|
| 633 |
+
}
|
| 634 |
+
|
| 635 |
+
updateCartCount();
|
| 636 |
+
updateCartDisplay();
|
| 637 |
+
}
|
| 638 |
+
}
|
| 639 |
+
|
| 640 |
+
function removeItem(id) {
|
| 641 |
+
cart = cart.filter(item => item.id !== id);
|
| 642 |
+
updateCartCount();
|
| 643 |
+
updateCartDisplay();
|
| 644 |
+
}
|
| 645 |
+
|
| 646 |
+
// Event listeners
|
| 647 |
+
cartButton.addEventListener('click', toggleCart);
|
| 648 |
+
mobileCartButton.addEventListener('click', toggleCart);
|
| 649 |
+
closeCart.addEventListener('click', toggleCart);
|
| 650 |
+
cartOverlay.addEventListener('click', toggleCart);
|
| 651 |
+
|
| 652 |
+
// Add to cart buttons with quantity
|
| 653 |
+
document.querySelectorAll('.add-to-cart').forEach(button => {
|
| 654 |
+
button.addEventListener('click', (e) => {
|
| 655 |
+
const product = {
|
| 656 |
+
id: button.getAttribute('data-id'),
|
| 657 |
+
name: button.getAttribute('data-name'),
|
| 658 |
+
price: parseFloat(button.getAttribute('data-price')),
|
| 659 |
+
image: button.getAttribute('data-image'),
|
| 660 |
+
quantity: parseInt(button.closest('.product-card').querySelector('.quantity-display').textContent)
|
| 661 |
+
};
|
| 662 |
+
addToCart(product);
|
| 663 |
+
});
|
| 664 |
+
});
|
| 665 |
+
|
| 666 |
+
// Quantity buttons in product cards
|
| 667 |
+
document.querySelectorAll('.quantity-btn').forEach(button => {
|
| 668 |
+
button.addEventListener('click', (e) => {
|
| 669 |
+
const quantityElement = e.target.parentElement.querySelector('.quantity-display');
|
| 670 |
+
let quantity = parseInt(quantityElement.textContent);
|
| 671 |
+
|
| 672 |
+
if (e.target.textContent === '+') {
|
| 673 |
+
quantity++;
|
| 674 |
+
} else if (e.target.textContent === '-' && quantity > 1) {
|
| 675 |
+
quantity--;
|
| 676 |
+
}
|
| 677 |
+
|
| 678 |
+
quantityElement.textContent = quantity;
|
| 679 |
+
});
|
| 680 |
+
});
|
| 681 |
+
|
| 682 |
+
// Category filtering
|
| 683 |
+
document.querySelectorAll('[data-category]').forEach(link => {
|
| 684 |
+
link.addEventListener('click', (e) => {
|
| 685 |
+
if (link.getAttribute('href') === '#all-products') {
|
| 686 |
+
e.preventDefault();
|
| 687 |
+
const category = link.getAttribute('data-category');
|
| 688 |
+
|
| 689 |
+
// Uncheck all category filters
|
| 690 |
+
document.querySelectorAll('.category-filter').forEach(checkbox => {
|
| 691 |
+
checkbox.checked = false;
|
| 692 |
+
});
|
| 693 |
+
|
| 694 |
+
// Check the selected category
|
| 695 |
+
document.querySelector(`.category-filter[value="${category}"]`).checked = true;
|
| 696 |
+
|
| 697 |
+
// Apply filters
|
| 698 |
+
applyFilters();
|
| 699 |
+
|
| 700 |
+
// Scroll to products section
|
| 701 |
+
document.getElementById('all-products').scrollIntoView({ behavior: 'smooth' });
|
| 702 |
+
}
|
| 703 |
+
});
|
| 704 |
+
});
|
| 705 |
+
|
| 706 |
+
applyFiltersButton.addEventListener('click', applyFilters);
|
| 707 |
+
|
| 708 |
+
function applyFilters() {
|
| 709 |
+
const selectedCategories = Array.from(document.querySelectorAll('.category-filter:checked')).map(cb => cb.value);
|
| 710 |
+
|
| 711 |
+
document.querySelectorAll('.product-card').forEach(product => {
|
| 712 |
+
const productCategory = product.getAttribute('data-category');
|
| 713 |
+
|
| 714 |
+
if (selectedCategories.length === 0 || selectedCategories.includes(productCategory)) {
|
| 715 |
+
product.style.display = 'block';
|
| 716 |
+
} else {
|
| 717 |
+
product.style.display = 'none';
|
| 718 |
+
}
|
| 719 |
+
});
|
| 720 |
+
}
|
| 721 |
+
|
| 722 |
+
// Initialize cart
|
| 723 |
+
updateCartDisplay();
|
| 724 |
+
</script>
|
| 725 |
+
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=VisionBleuLED/shop-store" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 726 |
+
</html>
|
prompts.txt
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Here are step-by-step instructions for your web developer (or Shopify designer) to build the VB LED product store using Shopify, based on your exact layout, branding, and functionality requirements. VB LED Shopify Store – Homepage Build Guide 1. GLOBAL SETTINGS Platform: Shopify Theme Suggestion: “Warehouse” or “Impulse” for clean, product-focused layout Main Colors: Background: White Accent: Blue (#007BFF or baby blue variant) Text/Icons: Black 2. HEADER (Always Visible at Top) Position Element Left VB LED Logo (clickable to homepage) Center Three clickable buttons: Shop All Products Support My Account | | Right | Cart Icon: Displays small circle badge showing total item count On click, opens a cart slider panel from the right Slider Panel Includes: List of added items with quantity selector & price Remove item button Checkout Button (Blue, full-width at bottom) 3. HERO SECTION (Top Banner Area) Headline: Professional-Grade Lighting Solutions Subheadline: Premium quality lighting components designed for electricians and professional installers. Main CTA Button: Blue Button: Explore Products Background Image: Subtle high-res image showing pixel lighting installed or clean product showcase (pixels, controller, rail). 4. SERVICE ICONS SECTION (Below Hero) Use a 3-column row with minimalist icons and short descriptions: Icon Title Description Truck Icon Fast Shipping Nationwide delivery within 2–3 business days Shield Icon 5-Year Warranty All products include industry-leading coverage Tools Icon Expert Support Our team includes experienced electricians 5. FEATURED PRODUCT CATEGORIES (4-Block Grid) Make this visually bold with product images for each category. Block Title Image Idea Pixel LEDs Show LED strings/modules Controllers & Power Show control box + 24V PSU Aluminum Rails Show rails (Track 8 or 4) Wiring & Tools Show wire spools & tubing Each block links to the respective category page. 6. FEATURED PRODUCTS SECTION (Grid) Below category blocks, display 6–8 top-selling products in a clean product grid with: Product Image Product Name Price Quantity selector Add to Cart Button (Blue) Clicking the product image or title opens the dedicated product page with: Full description Specs Breaker limits Bulk discounts (if applicable) 7. SHOP ALL PRODUCTS SECTION (Below Featured Grid) Display all products from the catalog Filtering sidebar (by category, price, etc.) Mobile-responsive grid Cart actions consistent with slider style above 8. FOOTER Contact Info Dealer Application Link Terms & Conditions / Privacy Policy Instagram or LinkedIn (optional) Newsletter Signup ✅ Important Notes for Developer: Prioritize fast-loading image compression Keep quantity selectors & add-to-cart functionality on both product grid and individual pages Cart slider must function on desktop + mobile Shopify apps may be needed for: Cart drawer functionality Product filter/search (e.g., Searchanise, Boost) Wholesale tiers if needed in future
|
| 2 |
+
NOW REMOVE THE FEATURED PRODUCTS SECTION. ADD THE BUTTON VIEW ALL PRODUCTS UNDER THE SHOP BY CATEGORY. THIS BUTTON WILL SCROLL DOWN TO THE ALL PRODUCTS SECTION AT THE BOTTOM OF THE PAGE. AT THE BOTTOM OF THE PAGE ALL PRODUCTS, REMOVE THE PRICE RANGE. MAKE IT ALSO SO THAT WHEN WE ADD THE QUANTITIES AND CLICK ADD TO CART IT ALSO ADDS THOSE QUANTITIES TO THE CART AS WELL. ADD A LIGHTBULB IMAGE OR RENDER ONE FOR ALL THE PRODUCTS FOR NOW. MAKE IT ALSO SO THAT WHEN WE CLICK SHOP BY CATEGORY LETS SAY WE CLICK PIXEL LEDs CATEGORY IT WILL SCROLL TO THE ALL PRODUCTS SECTION AT THE BOTTOM AND JUST FILTER BY PIXEL LEDs, DO THIS FOR ALL FOUR CATEGORY. AND IN THE HERO SECTION, MAKE THE IMAGE THE BACKGROUND AND CHOOSE AN IMAGE OF A HOUSE. AND CENTER THE TITLE AND SUBTITLES.
|