undefined - Initial Deployment
Browse files- README.md +7 -5
- index.html +569 -19
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: frontend
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: purple
|
| 5 |
+
colorTo: yellow
|
| 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,569 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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|
| 6 |
+
<title>MultiVendor - Shop from multiple vendors</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 |
+
.sidebar {
|
| 11 |
+
transition: all 0.3s ease;
|
| 12 |
+
}
|
| 13 |
+
.sidebar-mobile {
|
| 14 |
+
transform: translateX(-100%);
|
| 15 |
+
}
|
| 16 |
+
.sidebar-mobile.active {
|
| 17 |
+
transform: translateX(0);
|
| 18 |
+
}
|
| 19 |
+
.overlay {
|
| 20 |
+
display: none;
|
| 21 |
+
}
|
| 22 |
+
.overlay.active {
|
| 23 |
+
display: block;
|
| 24 |
+
background-color: rgba(0, 0, 0, 0.5);
|
| 25 |
+
}
|
| 26 |
+
.product-card:hover {
|
| 27 |
+
transform: translateY(-5px);
|
| 28 |
+
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
|
| 29 |
+
}
|
| 30 |
+
.skeleton {
|
| 31 |
+
animation: pulse 2s infinite ease-in-out;
|
| 32 |
+
}
|
| 33 |
+
@keyframes pulse {
|
| 34 |
+
0%, 100% {
|
| 35 |
+
opacity: 0.6;
|
| 36 |
+
}
|
| 37 |
+
50% {
|
| 38 |
+
opacity: 0.3;
|
| 39 |
+
}
|
| 40 |
+
}
|
| 41 |
+
</style>
|
| 42 |
+
</head>
|
| 43 |
+
<body class="bg-gray-50">
|
| 44 |
+
<!-- Header/Navbar -->
|
| 45 |
+
<header class="bg-white shadow-sm sticky top-0 z-10">
|
| 46 |
+
<div class="container mx-auto px-4 py-3">
|
| 47 |
+
<div class="flex items-center justify-between">
|
| 48 |
+
<!-- Logo -->
|
| 49 |
+
<div class="flex items-center">
|
| 50 |
+
<button id="mobile-menu-button" class="md:hidden mr-4 text-gray-700">
|
| 51 |
+
<i class="fas fa-bars text-xl"></i>
|
| 52 |
+
</button>
|
| 53 |
+
<a href="#" class="text-2xl font-bold text-indigo-600">MultiVendor</a>
|
| 54 |
+
</div>
|
| 55 |
+
|
| 56 |
+
<!-- Search Bar -->
|
| 57 |
+
<div class="hidden md:flex flex-1 mx-8">
|
| 58 |
+
<div class="relative w-full max-w-xl">
|
| 59 |
+
<input type="text" placeholder="Search for products..."
|
| 60 |
+
class="w-full px-4 py-2 border border-gray-300 rounded-l-lg focus:outline-none focus:ring-2 focus:ring-indigo-500">
|
| 61 |
+
<button class="absolute right-0 top-0 h-full px-4 text-gray-500">
|
| 62 |
+
<i class="fas fa-search"></i>
|
| 63 |
+
</button>
|
| 64 |
+
</div>
|
| 65 |
+
<button class="bg-indigo-600 text-white px-4 py-2 rounded-r-lg hover:bg-indigo-700">
|
| 66 |
+
Search
|
| 67 |
+
</button>
|
| 68 |
+
</div>
|
| 69 |
+
|
| 70 |
+
<!-- User Actions -->
|
| 71 |
+
<div class="flex items-center space-x-4">
|
| 72 |
+
<a href="#" class="hidden md:block text-gray-700 hover:text-indigo-600">
|
| 73 |
+
<i class="fas fa-heart text-xl"></i>
|
| 74 |
+
</a>
|
| 75 |
+
<a href="#" class="hidden md:block text-gray-700 hover:text-indigo-600">
|
| 76 |
+
<i class="fas fa-shopping-cart text-xl"></i>
|
| 77 |
+
</a>
|
| 78 |
+
<a href="#" class="hidden md:block text-gray-700 hover:text-indigo-600">
|
| 79 |
+
<i class="fas fa-user text-xl"></i>
|
| 80 |
+
</a>
|
| 81 |
+
<button id="mobile-search-button" class="md:hidden text-gray-700">
|
| 82 |
+
<i class="fas fa-search text-xl"></i>
|
| 83 |
+
</button>
|
| 84 |
+
</div>
|
| 85 |
+
</div>
|
| 86 |
+
|
| 87 |
+
<!-- Mobile Search (hidden by default) -->
|
| 88 |
+
<div id="mobile-search" class="mt-3 hidden">
|
| 89 |
+
<div class="relative">
|
| 90 |
+
<input type="text" placeholder="Search for products..."
|
| 91 |
+
class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500">
|
| 92 |
+
<button class="absolute right-3 top-2.5 text-gray-500">
|
| 93 |
+
<i class="fas fa-search"></i>
|
| 94 |
+
</button>
|
| 95 |
+
</div>
|
| 96 |
+
</div>
|
| 97 |
+
</div>
|
| 98 |
+
</header>
|
| 99 |
+
|
| 100 |
+
<!-- Mobile Sidebar Overlay -->
|
| 101 |
+
<div id="overlay" class="overlay fixed inset-0 z-20"></div>
|
| 102 |
+
|
| 103 |
+
<!-- Sidebar -->
|
| 104 |
+
<aside id="sidebar" class="sidebar sidebar-mobile fixed top-0 left-0 z-30 w-64 h-full bg-white shadow-lg overflow-y-auto">
|
| 105 |
+
<div class="p-4 border-b">
|
| 106 |
+
<div class="flex items-center justify-between">
|
| 107 |
+
<h2 class="text-lg font-semibold">Filters</h2>
|
| 108 |
+
<button id="close-sidebar" class="text-gray-500">
|
| 109 |
+
<i class="fas fa-times"></i>
|
| 110 |
+
</button>
|
| 111 |
+
</div>
|
| 112 |
+
</div>
|
| 113 |
+
<div class="p-4">
|
| 114 |
+
<!-- Categories -->
|
| 115 |
+
<div class="mb-6">
|
| 116 |
+
<h3 class="font-medium text-gray-900 mb-3">Categories</h3>
|
| 117 |
+
<div class="space-y-2">
|
| 118 |
+
<div class="flex items-center">
|
| 119 |
+
<input id="cat-electronics" type="checkbox" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded">
|
| 120 |
+
<label for="cat-electronics" class="ml-3 text-sm text-gray-700">Electronics</label>
|
| 121 |
+
</div>
|
| 122 |
+
<div class="flex items-center">
|
| 123 |
+
<input id="cat-fashion" type="checkbox" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded">
|
| 124 |
+
<label for="cat-fashion" class="ml-3 text-sm text-gray-700">Fashion</label>
|
| 125 |
+
</div>
|
| 126 |
+
<div class="flex items-center">
|
| 127 |
+
<input id="cat-home" type="checkbox" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded">
|
| 128 |
+
<label for="cat-home" class="ml-3 text-sm text-gray-700">Home & Kitchen</label>
|
| 129 |
+
</div>
|
| 130 |
+
<div class="flex items-center">
|
| 131 |
+
<input id="cat-beauty" type="checkbox" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded">
|
| 132 |
+
<label for="cat-beauty" class="ml-3 text-sm text-gray-700">Beauty</label>
|
| 133 |
+
</div>
|
| 134 |
+
<div class="flex items-center">
|
| 135 |
+
<input id="cat-sports" type="checkbox" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded">
|
| 136 |
+
<label for="cat-sports" class="ml-3 text-sm text-gray-700">Sports & Outdoors</label>
|
| 137 |
+
</div>
|
| 138 |
+
</div>
|
| 139 |
+
</div>
|
| 140 |
+
|
| 141 |
+
<!-- Price Range -->
|
| 142 |
+
<div class="mb-6">
|
| 143 |
+
<h3 class="font-medium text-gray-900 mb-3">Price Range</h3>
|
| 144 |
+
<div class="flex items-center space-x-2 mb-2">
|
| 145 |
+
<input type="number" placeholder="Min" class="w-full px-3 py-1 border border-gray-300 rounded">
|
| 146 |
+
<span class="text-gray-500">to</span>
|
| 147 |
+
<input type="number" placeholder="Max" class="w-full px-3 py-1 border border-gray-300 rounded">
|
| 148 |
+
</div>
|
| 149 |
+
<button class="w-full bg-indigo-600 text-white py-1.5 rounded hover:bg-indigo-700">
|
| 150 |
+
Apply
|
| 151 |
+
</button>
|
| 152 |
+
</div>
|
| 153 |
+
|
| 154 |
+
<!-- Vendors -->
|
| 155 |
+
<div class="mb-6">
|
| 156 |
+
<h3 class="font-medium text-gray-900 mb-3">Vendors</h3>
|
| 157 |
+
<div class="space-y-2">
|
| 158 |
+
<div class="flex items-center">
|
| 159 |
+
<input id="vendor-techhub" type="checkbox" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded">
|
| 160 |
+
<label for="vendor-techhub" class="ml-3 text-sm text-gray-700">TechHub</label>
|
| 161 |
+
</div>
|
| 162 |
+
<div class="flex items-center">
|
| 163 |
+
<input id="vendor-fashionista" type="checkbox" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded">
|
| 164 |
+
<label for="vendor-fashionista" class="ml-3 text-sm text-gray-700">Fashionista</label>
|
| 165 |
+
</div>
|
| 166 |
+
<div class="flex items-center">
|
| 167 |
+
<input id="vendor-homeplus" type="checkbox" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded">
|
| 168 |
+
<label for="vendor-homeplus" class="ml-3 text-sm text-gray-700">HomePlus</label>
|
| 169 |
+
</div>
|
| 170 |
+
<div class="flex items-center">
|
| 171 |
+
<input id="vendor-beautify" type="checkbox" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded">
|
| 172 |
+
<label for="vendor-beautify" class="ml-3 text-sm text-gray-700">Beautify</label>
|
| 173 |
+
</div>
|
| 174 |
+
</div>
|
| 175 |
+
</div>
|
| 176 |
+
|
| 177 |
+
<button class="w-full bg-gray-200 text-gray-800 py-2 rounded hover:bg-gray-300">
|
| 178 |
+
Reset Filters
|
| 179 |
+
</button>
|
| 180 |
+
</div>
|
| 181 |
+
</aside>
|
| 182 |
+
|
| 183 |
+
<!-- Main Content -->
|
| 184 |
+
<main class="container mx-auto px-4 py-6">
|
| 185 |
+
<div class="flex flex-col md:flex-row">
|
| 186 |
+
<!-- Desktop Sidebar -->
|
| 187 |
+
<aside class="hidden md:block w-64 pr-6">
|
| 188 |
+
<div class="bg-white p-4 rounded-lg shadow-sm sticky top-24">
|
| 189 |
+
<!-- Categories -->
|
| 190 |
+
<div class="mb-6">
|
| 191 |
+
<h3 class="font-medium text-gray-900 mb-3">Categories</h3>
|
| 192 |
+
<div class="space-y-2">
|
| 193 |
+
<div class="flex items-center">
|
| 194 |
+
<input id="cat-electronics-desk" type="checkbox" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded">
|
| 195 |
+
<label for="cat-electronics-desk" class="ml-3 text-sm text-gray-700">Electronics</label>
|
| 196 |
+
</div>
|
| 197 |
+
<div class="flex items-center">
|
| 198 |
+
<input id="cat-fashion-desk" type="checkbox" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded">
|
| 199 |
+
<label for="cat-fashion-desk" class="ml-3 text-sm text-gray-700">Fashion</label>
|
| 200 |
+
</div>
|
| 201 |
+
<div class="flex items-center">
|
| 202 |
+
<input id="cat-home-desk" type="checkbox" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded">
|
| 203 |
+
<label for="cat-home-desk" class="ml-3 text-sm text-gray-700">Home & Kitchen</label>
|
| 204 |
+
</div>
|
| 205 |
+
<div class="flex items-center">
|
| 206 |
+
<input id="cat-beauty-desk" type="checkbox" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded">
|
| 207 |
+
<label for="cat-beauty-desk" class="ml-3 text-sm text-gray-700">Beauty</label>
|
| 208 |
+
</div>
|
| 209 |
+
<div class="flex items-center">
|
| 210 |
+
<input id="cat-sports-desk" type="checkbox" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded">
|
| 211 |
+
<label for="cat-sports-desk" class="ml-3 text-sm text-gray-700">Sports & Outdoors</label>
|
| 212 |
+
</div>
|
| 213 |
+
</div>
|
| 214 |
+
</div>
|
| 215 |
+
|
| 216 |
+
<!-- Price Range -->
|
| 217 |
+
<div class="mb-6">
|
| 218 |
+
<h3 class="font-medium text-gray-900 mb-3">Price Range</h3>
|
| 219 |
+
<div class="flex items-center space-x-2 mb-2">
|
| 220 |
+
<input type="number" placeholder="Min" class="w-full px-3 py-1 border border-gray-300 rounded">
|
| 221 |
+
<span class="text-gray-500">to</span>
|
| 222 |
+
<input type="number" placeholder="Max" class="w-full px-3 py-1 border border-gray-300 rounded">
|
| 223 |
+
</div>
|
| 224 |
+
<button class="w-full bg-indigo-600 text-white py-1.5 rounded hover:bg-indigo-700">
|
| 225 |
+
Apply
|
| 226 |
+
</button>
|
| 227 |
+
</div>
|
| 228 |
+
|
| 229 |
+
<!-- Vendors -->
|
| 230 |
+
<div class="mb-6">
|
| 231 |
+
<h3 class="font-medium text-gray-900 mb-3">Vendors</h3>
|
| 232 |
+
<div class="space-y-2">
|
| 233 |
+
<div class="flex items-center">
|
| 234 |
+
<input id="vendor-techhub-desk" type="checkbox" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded">
|
| 235 |
+
<label for="vendor-techhub-desk" class="ml-3 text-sm text-gray-700">TechHub</label>
|
| 236 |
+
</div>
|
| 237 |
+
<div class="flex items-center">
|
| 238 |
+
<input id="vendor-fashionista-desk" type="checkbox" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded">
|
| 239 |
+
<label for="vendor-fashionista-desk" class="ml-3 text-sm text-gray-700">Fashionista</label>
|
| 240 |
+
</div>
|
| 241 |
+
<div class="flex items-center">
|
| 242 |
+
<input id="vendor-homeplus-desk" type="checkbox" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded">
|
| 243 |
+
<label for="vendor-homeplus-desk" class="ml-3 text-sm text-gray-700">HomePlus</label>
|
| 244 |
+
</div>
|
| 245 |
+
<div class="flex items-center">
|
| 246 |
+
<input id="vendor-beautify-desk" type="checkbox" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded">
|
| 247 |
+
<label for="vendor-beautify-desk" class="ml-3 text-sm text-gray-700">Beautify</label>
|
| 248 |
+
</div>
|
| 249 |
+
</div>
|
| 250 |
+
</div>
|
| 251 |
+
|
| 252 |
+
<button class="w-full bg-gray-200 text-gray-800 py-2 rounded hover:bg-gray-300">
|
| 253 |
+
Reset Filters
|
| 254 |
+
</button>
|
| 255 |
+
</div>
|
| 256 |
+
</aside>
|
| 257 |
+
|
| 258 |
+
<!-- Product Grid -->
|
| 259 |
+
<div class="flex-1">
|
| 260 |
+
<div class="flex items-center justify-between mb-6">
|
| 261 |
+
<h2 class="text-xl font-semibold">Featured Products</h2>
|
| 262 |
+
<div class="flex items-center">
|
| 263 |
+
<span class="text-sm text-gray-600 mr-2">Sort by:</span>
|
| 264 |
+
<select class="border border-gray-300 rounded px-3 py-1 text-sm focus:outline-none focus:ring-2 focus:ring-indigo-500">
|
| 265 |
+
<option>Popularity</option>
|
| 266 |
+
<option>Price: Low to High</option>
|
| 267 |
+
<option>Price: High to Low</option>
|
| 268 |
+
<option>Newest First</option>
|
| 269 |
+
<option>Customer Rating</option>
|
| 270 |
+
</select>
|
| 271 |
+
</div>
|
| 272 |
+
</div>
|
| 273 |
+
|
| 274 |
+
<!-- Loading Skeleton -->
|
| 275 |
+
<div id="loading-skeleton" class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6">
|
| 276 |
+
<div class="bg-white rounded-lg shadow-sm overflow-hidden skeleton">
|
| 277 |
+
<div class="h-48 bg-gray-200"></div>
|
| 278 |
+
<div class="p-4">
|
| 279 |
+
<div class="h-4 bg-gray-200 rounded w-3/4 mb-2"></div>
|
| 280 |
+
<div class="h-3 bg-gray-200 rounded w-1/2 mb-3"></div>
|
| 281 |
+
<div class="h-3 bg-gray-200 rounded w-full mb-1"></div>
|
| 282 |
+
<div class="h-3 bg-gray-200 rounded w-2/3"></div>
|
| 283 |
+
</div>
|
| 284 |
+
</div>
|
| 285 |
+
<div class="bg-white rounded-lg shadow-sm overflow-hidden skeleton">
|
| 286 |
+
<div class="h-48 bg-gray-200"></div>
|
| 287 |
+
<div class="p-4">
|
| 288 |
+
<div class="h-4 bg-gray-200 rounded w-3/4 mb-2"></div>
|
| 289 |
+
<div class="h-3 bg-gray-200 rounded w-1/2 mb-3"></div>
|
| 290 |
+
<div class="h-3 bg-gray-200 rounded w-full mb-1"></div>
|
| 291 |
+
<div class="h-3 bg-gray-200 rounded w-2/3"></div>
|
| 292 |
+
</div>
|
| 293 |
+
</div>
|
| 294 |
+
<div class="bg-white rounded-lg shadow-sm overflow-hidden skeleton">
|
| 295 |
+
<div class="h-48 bg-gray-200"></div>
|
| 296 |
+
<div class="p-4">
|
| 297 |
+
<div class="h-4 bg-gray-200 rounded w-3/4 mb-2"></div>
|
| 298 |
+
<div class="h-3 bg-gray-200 rounded w-1/2 mb-3"></div>
|
| 299 |
+
<div class="h-3 bg-gray-200 rounded w-full mb-1"></div>
|
| 300 |
+
<div class="h-3 bg-gray-200 rounded w-2/3"></div>
|
| 301 |
+
</div>
|
| 302 |
+
</div>
|
| 303 |
+
<div class="bg-white rounded-lg shadow-sm overflow-hidden skeleton">
|
| 304 |
+
<div class="h-48 bg-gray-200"></div>
|
| 305 |
+
<div class="p-4">
|
| 306 |
+
<div class="h-4 bg-gray-200 rounded w-3/4 mb-2"></div>
|
| 307 |
+
<div class="h-3 bg-gray-200 rounded w-1/2 mb-3"></div>
|
| 308 |
+
<div class="h-3 bg-gray-200 rounded w-full mb-1"></div>
|
| 309 |
+
<div class="h-3 bg-gray-200 rounded w-2/3"></div>
|
| 310 |
+
</div>
|
| 311 |
+
</div>
|
| 312 |
+
</div>
|
| 313 |
+
|
| 314 |
+
<!-- Product Grid -->
|
| 315 |
+
<div id="product-grid" class="hidden grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6">
|
| 316 |
+
<!-- Products will be inserted here by JavaScript -->
|
| 317 |
+
</div>
|
| 318 |
+
|
| 319 |
+
<!-- Pagination -->
|
| 320 |
+
<div class="mt-8 flex justify-center">
|
| 321 |
+
<nav class="flex items-center space-x-1">
|
| 322 |
+
<button class="px-3 py-1 rounded border border-gray-300 text-gray-500 hover:bg-gray-100">
|
| 323 |
+
<i class="fas fa-chevron-left"></i>
|
| 324 |
+
</button>
|
| 325 |
+
<button class="px-3 py-1 rounded border border-indigo-500 bg-indigo-50 text-indigo-600 font-medium">1</button>
|
| 326 |
+
<button class="px-3 py-1 rounded border border-gray-300 text-gray-700 hover:bg-gray-100">2</button>
|
| 327 |
+
<button class="px-3 py-1 rounded border border-gray-300 text-gray-700 hover:bg-gray-100">3</button>
|
| 328 |
+
<span class="px-2 text-gray-500">...</span>
|
| 329 |
+
<button class="px-3 py-1 rounded border border-gray-300 text-gray-700 hover:bg-gray-100">8</button>
|
| 330 |
+
<button class="px-3 py-1 rounded border border-gray-300 text-gray-500 hover:bg-gray-100">
|
| 331 |
+
<i class="fas fa-chevron-right"></i>
|
| 332 |
+
</button>
|
| 333 |
+
</nav>
|
| 334 |
+
</div>
|
| 335 |
+
</div>
|
| 336 |
+
</div>
|
| 337 |
+
</main>
|
| 338 |
+
|
| 339 |
+
<!-- Footer -->
|
| 340 |
+
<footer class="bg-gray-800 text-white py-8">
|
| 341 |
+
<div class="container mx-auto px-4">
|
| 342 |
+
<div class="grid grid-cols-1 md:grid-cols-4 gap-8">
|
| 343 |
+
<div>
|
| 344 |
+
<h3 class="text-lg font-semibold mb-4">MultiVendor</h3>
|
| 345 |
+
<p class="text-gray-400">Shop from multiple vendors in one place. The best deals and quality products.</p>
|
| 346 |
+
</div>
|
| 347 |
+
<div>
|
| 348 |
+
<h4 class="font-medium mb-4">Customer Service</h4>
|
| 349 |
+
<ul class="space-y-2">
|
| 350 |
+
<li><a href="#" class="text-gray-400 hover:text-white">Contact Us</a></li>
|
| 351 |
+
<li><a href="#" class="text-gray-400 hover:text-white">FAQs</a></li>
|
| 352 |
+
<li><a href="#" class="text-gray-400 hover:text-white">Shipping Policy</a></li>
|
| 353 |
+
<li><a href="#" class="text-gray-400 hover:text-white">Returns & Refunds</a></li>
|
| 354 |
+
</ul>
|
| 355 |
+
</div>
|
| 356 |
+
<div>
|
| 357 |
+
<h4 class="font-medium mb-4">About</h4>
|
| 358 |
+
<ul class="space-y-2">
|
| 359 |
+
<li><a href="#" class="text-gray-400 hover:text-white">About Us</a></li>
|
| 360 |
+
<li><a href="#" class="text-gray-400 hover:text-white">Careers</a></li>
|
| 361 |
+
<li><a href="#" class="text-gray-400 hover:text-white">Terms & Conditions</a></li>
|
| 362 |
+
<li><a href="#" class="text-gray-400 hover:text-white">Privacy Policy</a></li>
|
| 363 |
+
</ul>
|
| 364 |
+
</div>
|
| 365 |
+
<div>
|
| 366 |
+
<h4 class="font-medium mb-4">Stay Connected</h4>
|
| 367 |
+
<div class="flex space-x-4 mb-4">
|
| 368 |
+
<a href="#" class="text-gray-400 hover:text-white"><i class="fab fa-facebook-f"></i></a>
|
| 369 |
+
<a href="#" class="text-gray-400 hover:text-white"><i class="fab fa-twitter"></i></a>
|
| 370 |
+
<a href="#" class="text-gray-400 hover:text-white"><i class="fab fa-instagram"></i></a>
|
| 371 |
+
<a href="#" class="text-gray-400 hover:text-white"><i class="fab fa-pinterest"></i></a>
|
| 372 |
+
</div>
|
| 373 |
+
<p class="text-gray-400">Subscribe to our newsletter</p>
|
| 374 |
+
<div class="mt-2 flex">
|
| 375 |
+
<input type="email" placeholder="Your email" class="px-3 py-2 text-gray-800 rounded-l w-full">
|
| 376 |
+
<button class="bg-indigo-600 px-3 rounded-r hover:bg-indigo-700">
|
| 377 |
+
<i class="fas fa-paper-plane"></i>
|
| 378 |
+
</button>
|
| 379 |
+
</div>
|
| 380 |
+
</div>
|
| 381 |
+
</div>
|
| 382 |
+
<div class="border-t border-gray-700 mt-8 pt-6 text-center text-gray-400">
|
| 383 |
+
<p>© 2023 MultiVendor. All rights reserved.</p>
|
| 384 |
+
</div>
|
| 385 |
+
</div>
|
| 386 |
+
</footer>
|
| 387 |
+
|
| 388 |
+
<script>
|
| 389 |
+
// Mobile menu toggle
|
| 390 |
+
const mobileMenuButton = document.getElementById('mobile-menu-button');
|
| 391 |
+
const mobileSearchButton = document.getElementById('mobile-search-button');
|
| 392 |
+
const mobileSearch = document.getElementById('mobile-search');
|
| 393 |
+
const sidebar = document.getElementById('sidebar');
|
| 394 |
+
const closeSidebar = document.getElementById('close-sidebar');
|
| 395 |
+
const overlay = document.getElementById('overlay');
|
| 396 |
+
|
| 397 |
+
mobileMenuButton.addEventListener('click', () => {
|
| 398 |
+
sidebar.classList.add('active');
|
| 399 |
+
overlay.classList.add('active');
|
| 400 |
+
});
|
| 401 |
+
|
| 402 |
+
mobileSearchButton.addEventListener('click', () => {
|
| 403 |
+
mobileSearch.classList.toggle('hidden');
|
| 404 |
+
});
|
| 405 |
+
|
| 406 |
+
closeSidebar.addEventListener('click', () => {
|
| 407 |
+
sidebar.classList.remove('active');
|
| 408 |
+
overlay.classList.remove('active');
|
| 409 |
+
});
|
| 410 |
+
|
| 411 |
+
overlay.addEventListener('click', () => {
|
| 412 |
+
sidebar.classList.remove('active');
|
| 413 |
+
overlay.classList.remove('active');
|
| 414 |
+
});
|
| 415 |
+
|
| 416 |
+
// Simulate fetching products from API
|
| 417 |
+
document.addEventListener('DOMContentLoaded', () => {
|
| 418 |
+
// Mock product data (in a real app, this would come from an API)
|
| 419 |
+
const mockProducts = [
|
| 420 |
+
{
|
| 421 |
+
id: 1,
|
| 422 |
+
title: "Wireless Bluetooth Headphones",
|
| 423 |
+
price: 59.99,
|
| 424 |
+
originalPrice: 79.99,
|
| 425 |
+
description: "High-quality wireless headphones with noise cancellation and 20hr battery life.",
|
| 426 |
+
image: "https://images.unsplash.com/photo-1505740420928-5e560c06d30e?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8M3x8aGVhZHBob25lc3xlbnwwfHwwfHx8MA%3D%3D&auto=format&fit=crop&w=500&q=60",
|
| 427 |
+
vendor: "TechHub",
|
| 428 |
+
rating: 4.5,
|
| 429 |
+
reviewCount: 124,
|
| 430 |
+
isNew: true
|
| 431 |
+
},
|
| 432 |
+
{
|
| 433 |
+
id: 2,
|
| 434 |
+
title: "Men's Casual Shirt",
|
| 435 |
+
price: 29.99,
|
| 436 |
+
originalPrice: 39.99,
|
| 437 |
+
description: "Comfortable cotton shirt for casual outings. Available in multiple colors.",
|
| 438 |
+
image: "https://images.unsplash.com/photo-1529374255404-311a2a4f1fd9?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8NXx8c2hpcnR8ZW58MHx8MHx8fDA%3D&auto=format&fit=crop&w=500&q=60",
|
| 439 |
+
vendor: "Fashionista",
|
| 440 |
+
rating: 4.2,
|
| 441 |
+
reviewCount: 89,
|
| 442 |
+
isNew: false
|
| 443 |
+
},
|
| 444 |
+
{
|
| 445 |
+
id: 3,
|
| 446 |
+
title: "Stainless Steel Cookware Set",
|
| 447 |
+
price: 129.99,
|
| 448 |
+
originalPrice: 159.99,
|
| 449 |
+
description: "10-piece premium cookware set for your kitchen. Induction compatible.",
|
| 450 |
+
image: "https://images.unsplash.com/photo-1583773727937-cefe3f6d9449?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTB8fGNvb2t3YXJlfGVufDB8fDB8fHww&auto=format&fit=crop&w=500&q=60",
|
| 451 |
+
vendor: "HomePlus",
|
| 452 |
+
rating: 4.7,
|
| 453 |
+
reviewCount: 210,
|
| 454 |
+
isNew: true
|
| 455 |
+
},
|
| 456 |
+
{
|
| 457 |
+
id: 4,
|
| 458 |
+
title: "Smartphone 128GB",
|
| 459 |
+
price: 499.99,
|
| 460 |
+
originalPrice: 549.99,
|
| 461 |
+
description: "Latest smartphone with 6.5\" display, triple camera and fast charging.",
|
| 462 |
+
image: "https://images.unsplash.com/photo-1592899677977-9c10ca588bbd?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTJ8fHNtYXJ0cGhvbmV8ZW58MHx8MHx8fDA%3D&auto=format&fit=crop&w=500&q=60",
|
| 463 |
+
vendor: "TechHub",
|
| 464 |
+
rating: 4.8,
|
| 465 |
+
reviewCount: 356,
|
| 466 |
+
isNew: false
|
| 467 |
+
},
|
| 468 |
+
{
|
| 469 |
+
id: 5,
|
| 470 |
+
title: "Women's Running Shoes",
|
| 471 |
+
price: 69.99,
|
| 472 |
+
originalPrice: 89.99,
|
| 473 |
+
description: "Lightweight running shoes with cushioned soles for maximum comfort.",
|
| 474 |
+
image: "https://images.unsplash.com/photo-1542291026-7eec264c27ff?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTB8fHNuZWFrZXJzfGVufDB8fDB8fHww&auto=format&fit=crop&w=500&q=60",
|
| 475 |
+
vendor: "Fashionista",
|
| 476 |
+
rating: 4.4,
|
| 477 |
+
reviewCount: 167,
|
| 478 |
+
isNew: true
|
| 479 |
+
},
|
| 480 |
+
{
|
| 481 |
+
id: 6,
|
| 482 |
+
title: "Organic Face Cream",
|
| 483 |
+
price: 24.99,
|
| 484 |
+
originalPrice: 34.99,
|
| 485 |
+
description: "Natural face cream with aloe vera and vitamin E for glowing skin.",
|
| 486 |
+
image: "https://images.unsplash.com/photo-1522335789203-aabd1fc54bc9?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTF8fGJlYXV0eSUyMHByb2R1Y3RzfGVufDB8fDB8fHww&auto=format&fit=crop&w=500&q=60",
|
| 487 |
+
vendor: "Beautify",
|
| 488 |
+
rating: 4.6,
|
| 489 |
+
reviewCount: 92,
|
| 490 |
+
isNew: false
|
| 491 |
+
},
|
| 492 |
+
{
|
| 493 |
+
id: 7,
|
| 494 |
+
title: "Air Fryer XL",
|
| 495 |
+
price: 89.99,
|
| 496 |
+
originalPrice: 109.99,
|
| 497 |
+
description: "5.5L capacity air fryer with digital display and 8 preset functions.",
|
| 498 |
+
image: "https://images.unsplash.com/photo-1615873968403-89e068629265?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTJ8fGFpciUyMGZyeWVyfGVufDB8fDB8fHww&auto=format&fit=crop&w=500&q=60",
|
| 499 |
+
vendor: "HomePlus",
|
| 500 |
+
rating: 4.3,
|
| 501 |
+
reviewCount: 143,
|
| 502 |
+
isNew: true
|
| 503 |
+
},
|
| 504 |
+
{
|
| 505 |
+
id: 8,
|
| 506 |
+
title: "Wireless Earbuds",
|
| 507 |
+
price: 39.99,
|
| 508 |
+
originalPrice: 49.99,
|
| 509 |
+
description: "True wireless earbuds with 15hr playtime and touch controls.",
|
| 510 |
+
image: "https://images.unsplash.com/photo-1590658268037-6bf12165a8df?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTZ8fGVhcmJ1ZHN8ZW58MHx8MHx8fDA%3D&auto=format&fit=crop&w=500&q=60",
|
| 511 |
+
vendor: "TechHub",
|
| 512 |
+
rating: 4.1,
|
| 513 |
+
reviewCount: 78,
|
| 514 |
+
isNew: false
|
| 515 |
+
}
|
| 516 |
+
];
|
| 517 |
+
|
| 518 |
+
// Simulate API delay
|
| 519 |
+
setTimeout(() => {
|
| 520 |
+
const loadingSkeleton = document.getElementById('loading-skeleton');
|
| 521 |
+
const productGrid = document.getElementById('product-grid');
|
| 522 |
+
|
| 523 |
+
loadingSkeleton.classList.add('hidden');
|
| 524 |
+
productGrid.classList.remove('hidden');
|
| 525 |
+
|
| 526 |
+
// Render products
|
| 527 |
+
mockProducts.forEach(product => {
|
| 528 |
+
const productCard = document.createElement('div');
|
| 529 |
+
productCard.className = 'bg-white rounded-lg shadow-sm overflow-hidden product-card transition duration-300';
|
| 530 |
+
|
| 531 |
+
productCard.innerHTML = `
|
| 532 |
+
<div class="relative">
|
| 533 |
+
<img src="${product.image}" alt="${product.title}" class="w-full h-48 object-cover">
|
| 534 |
+
${product.isNew ? '<span class="absolute top-2 left-2 bg-indigo-600 text-white text-xs px-2 py-1 rounded">NEW</span>' : ''}
|
| 535 |
+
<span class="absolute top-2 right-2 bg-white text-gray-800 text-xs px-2 py-1 rounded font-medium">${product.vendor}</span>
|
| 536 |
+
<button class="absolute bottom-2 right-2 bg-white p-2 rounded-full shadow-md hover:bg-gray-100">
|
| 537 |
+
<i class="far fa-heart text-gray-700"></i>
|
| 538 |
+
</button>
|
| 539 |
+
</div>
|
| 540 |
+
<div class="p-4">
|
| 541 |
+
<h3 class="font-medium text-gray-900 mb-1 truncate">${product.title}</h3>
|
| 542 |
+
<div class="flex items-center mb-2">
|
| 543 |
+
<div class="flex text-yellow-400">
|
| 544 |
+
${Array(5).fill().map((_, i) =>
|
| 545 |
+
i < Math.floor(product.rating) ?
|
| 546 |
+
'<i class="fas fa-star"></i>' :
|
| 547 |
+
(i < product.rating ? '<i class="fas fa-star-half-alt"></i>' : '<i class="far fa-star"></i>')
|
| 548 |
+
).join('')}
|
| 549 |
+
</div>
|
| 550 |
+
<span class="text-xs text-gray-500 ml-1">(${product.reviewCount})</span>
|
| 551 |
+
</div>
|
| 552 |
+
<div class="flex items-center">
|
| 553 |
+
<span class="text-lg font-semibold text-indigo-600">$${product.price.toFixed(2)}</span>
|
| 554 |
+
${product.originalPrice ? `<span class="text-sm text-gray-500 line-through ml-2">$${product.originalPrice.toFixed(2)}</span>` : ''}
|
| 555 |
+
</div>
|
| 556 |
+
<p class="text-sm text-gray-500 mt-2 line-clamp-2">${product.description}</p>
|
| 557 |
+
<button class="w-full mt-4 bg-indigo-600 text-white py-2 rounded hover:bg-indigo-700 transition">
|
| 558 |
+
Add to Cart
|
| 559 |
+
</button>
|
| 560 |
+
</div>
|
| 561 |
+
`;
|
| 562 |
+
|
| 563 |
+
productGrid.appendChild(productCard);
|
| 564 |
+
});
|
| 565 |
+
}, 1500);
|
| 566 |
+
});
|
| 567 |
+
</script>
|
| 568 |
+
<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=coolshano/frontend" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 569 |
+
</html>
|