Spaces:
Running
Running
Create a professional, warm-themed website (called "digiCradle") that sells printable products (e.g., thank-you cards, invitations, planners). The design should be clean, visually appealing, and user-friendly, with smooth animations and intuitive navigation. Tech Stack Frontend: HTML, CSS, JavaScript Backend/Database: Supabase (for product data, user accounts, cart, and favorites) Homepage Layout 1. Hero Section A full-width banner with: A high-quality background image (e.g., a desk with printed cards). A call-to-action (CTA) button (e.g., "Shop Now"). A short tagline (e.g., "Beautiful Printables for Every Occasion"). 2. Horizontal Category Menu Minimalist design (no borders, just text). Hover & Click Effects: Smooth color change or underline animation on hover. Active category is highlighted (e.g., bold or accent color). Categories: e.g., "Thank You Cards," "Invitations," "Planners," "Wall Art." 3. Separation Line A thin, elegant divider (e.g., a dashed or wavy line in a warm color). 4. Product Filters & Sorting "Sort by" dropdown (Price: Low-High, Newest, Popular). "Filter" button (opens a modal/sidebar with options like Occasion, Theme, etc.). 5. Product Grid (Card Layout) Each product card displays: Image Carousel: Loops between the first two product images slowly (5-7 sec per slide). Product Name (below the image). Price (below the name). Hover Effect: If the user hovers over the image, it smoothly enlarges (like a lightbox). Clicking a product opens its detailed view. Product Detail Page Left Side: Image Gallery (all available images, user can click to enlarge). Right Side: Product Title Price File Formats (e.g., PDF, PNG, JPG). Size Options (e.g., A4, US Letter). Occasion & Theme (e.g., Wedding, Birthday). Description (detailed text). Reviews Section (star ratings + user comments). Buttons: "Add to Cart" (cart icon). "Add to Favorites" (heart icon, saved in Supabase if logged in). Additional Features Responsive Design (works on mobile & desktop). Supabase Integration: Stores product data, user accounts, cart, and favorites. Smooth Animations: Hover effects, image transitions, and category switches. Design Guidelines Color Theme: Warm tones (soft oranges, creams, muted pinks). Fonts: Clean & elegant (e.g., "Playfair Display" for headings, "Lato" for body text). Icons: Use Font Awesome or similar for cart/favorite buttons. Example JavaScript Logic Needed Category Switching: javascript document.querySelectorAll('.category-item').forEach(item => { item.addEventListener('click', () => { // Fetch & display products from Supabase based on category }); }); Image Carousel & Hover Zoom: javascript // Slow carousel for product images setInterval(() => { // Rotate between two images }, 5000); // Hover zoom effect productCards.forEach(card => { card.addEventListener('mouseenter', () => { // Enlarge image smoothly }); }); - Follow Up Deployment
Browse files- index.html +566 -453
index.html
CHANGED
|
@@ -3,553 +3,666 @@
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
-
<title>
|
| 7 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
-
<
|
| 9 |
-
<link href="https://
|
| 10 |
-
<link href="https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap" rel="stylesheet">
|
| 11 |
<style>
|
| 12 |
-
:root {
|
| 13 |
-
--gold: #D4AF37;
|
| 14 |
-
--emerald: #064E3B;
|
| 15 |
-
--rose: #FCE7F3;
|
| 16 |
-
--white: #FFFFFF;
|
| 17 |
-
}
|
| 18 |
-
|
| 19 |
body {
|
| 20 |
-
font-family: '
|
|
|
|
|
|
|
| 21 |
}
|
| 22 |
-
|
| 23 |
-
.font-serif {
|
| 24 |
font-family: 'Playfair Display', serif;
|
| 25 |
}
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
background:
|
|
|
|
| 29 |
}
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
}
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
background: linear-gradient(135deg, #064E3B 0%, #10B981 100%);
|
| 37 |
}
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
}
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
}
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
}
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
70% { box-shadow: 0 0 0 10px rgba(212, 175, 55, 0); }
|
| 56 |
-
100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
|
| 57 |
}
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
transition: all 0.3s ease;
|
| 61 |
}
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
}
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
}
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
transform: translateY(-5px);
|
| 73 |
-
box-shadow: 0 20px 40px rgba(0,0,0,0.1);
|
| 74 |
}
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
transition: all 0.3s ease;
|
| 78 |
-
border: 2px solid transparent;
|
| 79 |
}
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
border-color: #D4AF37;
|
| 83 |
-
transform: translateY(-5px);
|
| 84 |
}
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 89 |
}
|
| 90 |
</style>
|
| 91 |
</head>
|
| 92 |
-
<body
|
| 93 |
-
<!--
|
| 94 |
-
<
|
| 95 |
-
<div class="
|
| 96 |
-
<div class="flex
|
| 97 |
-
<
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
<
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 105 |
</div>
|
| 106 |
-
<button id="
|
| 107 |
-
<
|
| 108 |
-
|
| 109 |
-
|
|
|
|
| 110 |
</button>
|
| 111 |
</div>
|
| 112 |
</div>
|
| 113 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 114 |
|
| 115 |
<!-- Hero Section -->
|
| 116 |
-
<section class="
|
| 117 |
-
<div class="
|
| 118 |
-
<
|
| 119 |
-
|
|
|
|
|
|
|
|
|
|
| 120 |
</div>
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
<
|
| 127 |
-
|
| 128 |
-
</
|
| 129 |
-
<
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
<button onclick="scrollToSection('how-it-works')" class="border-2 border-gold text-gold px-8 py-4 rounded-full font-semibold text-lg hover:bg-gold hover:text-white transition">
|
| 134 |
-
See How It Works
|
| 135 |
-
</button>
|
| 136 |
-
</div>
|
| 137 |
</div>
|
|
|
|
| 138 |
</section>
|
| 139 |
|
| 140 |
-
<!--
|
| 141 |
-
<section
|
| 142 |
-
<div class="
|
| 143 |
-
<
|
| 144 |
-
<
|
| 145 |
-
|
| 146 |
-
<
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
<
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
<
|
| 156 |
-
<p class="text-gray-600">Discover and secure Sydney's most stunning venues, perfectly matched to your vision and budget.</p>
|
| 157 |
-
</div>
|
| 158 |
-
|
| 159 |
-
<div data-aos="fade-up" data-aos-delay="100" class="service-card bg-white p-8 rounded-2xl shadow-lg">
|
| 160 |
-
<div class="w-16 h-16 emerald-gradient rounded-full flex items-center justify-center mb-4">
|
| 161 |
-
<svg class="w-8 h-8 text-white" fill="currentColor" viewBox="0 0 20 20">
|
| 162 |
-
<path d="M3 4a1 1 0 011-1h12a1 1 0 011 1v2a1 1 0 01-1 1H4a1 1 0 01-1-1V4zM3 10a1 1 0 011-1h6a1 1 0 011 1v6a1 1 0 01-1 1H4a1 1 0 01-1-1v-6zM14 9a1 1 0 00-1 1v6a1 1 0 001 1h2a1 1 0 001-1v-6a1 1 0 00-1-1h-2z"></path>
|
| 163 |
-
</svg>
|
| 164 |
-
</div>
|
| 165 |
-
<h3 class="font-serif text-2xl font-semibold mb-3">Custom Event Planning</h3>
|
| 166 |
-
<p class="text-gray-600">Creative, personalized plans for proposals, birthdays, reunions, and any high-stakes celebration.</p>
|
| 167 |
-
</div>
|
| 168 |
-
|
| 169 |
-
<div data-aos="fade-up" data-aos-delay="200" class="service-card bg-white p-8 rounded-2xl shadow-lg">
|
| 170 |
-
<div class="w-16 h-16 gold-gradient rounded-full flex items-center justify-center mb-4">
|
| 171 |
-
<svg class="w-8 h-8 text-white" fill="currentColor" viewBox="0 0 20 20">
|
| 172 |
-
<path d="M13 6a3 3 0 11-6 0 3 3 0 016 0zM18 8a2 2 0 11-4 0 2 2 0 014 0zM14 15a4 4 0 00-8 0v3h8v-3z"></path>
|
| 173 |
-
</svg>
|
| 174 |
-
</div>
|
| 175 |
-
<h3 class="font-serif text-2xl font-semibold mb-3">Crowd Sourcing</h3>
|
| 176 |
-
<p class="text-gray-600">Organize flash mobs or audience participation to amplify the surprise and create viral moments.</p>
|
| 177 |
-
</div>
|
| 178 |
-
|
| 179 |
-
<div data-aos="fade-up" class="service-card bg-white p-8 rounded-2xl shadow-lg">
|
| 180 |
-
<div class="w-16 h-16 emerald-gradient rounded-full flex items-center justify-center mb-4">
|
| 181 |
-
<svg class="w-8 h-8 text-white" fill="currentColor" viewBox="0 0 20 20">
|
| 182 |
-
<path d="M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"></path>
|
| 183 |
-
</svg>
|
| 184 |
-
</div>
|
| 185 |
-
<h3 class="font-serif text-2xl font-semibold mb-3">Musicians & Entertainers</h3>
|
| 186 |
-
<p class="text-gray-600">Book Sydney's finest musicians, vocalists, and performers to elevate your celebration.</p>
|
| 187 |
-
</div>
|
| 188 |
-
|
| 189 |
-
<div data-aos="fade-up" data-aos-delay="100" class="service-card bg-white p-8 rounded-2xl shadow-lg">
|
| 190 |
-
<div class="w-16 h-16 gold-gradient rounded-full flex items-center justify-center mb-4">
|
| 191 |
-
<svg class="w-8 h-8 text-white" fill="currentColor" viewBox="0 0 20 20">
|
| 192 |
-
<path d="M3 4a1 1 0 011-1h12a1 1 0 011 1v2a1 1 0 01-1 1H4a1 1 0 01-1-1V4zM3 10a1 1 0 011-1h6a1 1 0 011 1v6a1 1 0 01-1 1H4a1 1 0 01-1-1v-6zM14 9a1 1 0 00-1 1v6a1 1 0 001 1h2a1 1 0 001-1v-6a1 1 0 00-1-1h-2z"></path>
|
| 193 |
-
</svg>
|
| 194 |
-
</div>
|
| 195 |
-
<h3 class="font-serif text-2xl font-semibold mb-3">Venue Decoration</h3>
|
| 196 |
-
<p class="text-gray-600">Thematic décor including floral arrangements, lighting, personalized props, and meaningful signs.</p>
|
| 197 |
-
</div>
|
| 198 |
-
|
| 199 |
-
<div data-aos="fade-up" data-aos-delay="200" class="service-card bg-white p-8 rounded-2xl shadow-lg">
|
| 200 |
-
<div class="w-16 h-16 emerald-gradient rounded-full flex items-center justify-center mb-4">
|
| 201 |
-
<svg class="w-8 h-8 text-white" fill="currentColor" viewBox="0 0 20 20">
|
| 202 |
-
<path fill-rule="evenodd" d="M4 5a2 2 0 00-2 2v8a2 2 0 002 2h12a2 2 0 002-2V7a2 2 0 00-2-2H4zm3 2a1 1 0 000 2h6a1 1 0 100-2H7z" clip-rule="evenodd"></path>
|
| 203 |
-
</svg>
|
| 204 |
-
</div>
|
| 205 |
-
<h3 class="font-serif text-2xl font-semibold mb-3">Photography & Videography</h3>
|
| 206 |
-
<p class="text-gray-600">Professional capture of every emotional moment, ensuring your memories last forever.</p>
|
| 207 |
</div>
|
| 208 |
</div>
|
| 209 |
</div>
|
| 210 |
</section>
|
| 211 |
|
| 212 |
-
<!--
|
| 213 |
-
<section
|
| 214 |
-
<div class="
|
| 215 |
-
<
|
| 216 |
-
|
| 217 |
-
<
|
| 218 |
-
|
| 219 |
-
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
|
| 223 |
-
|
| 224 |
-
<p class="text-gray-600">Tell us about your dream moment</p>
|
| 225 |
-
<button onclick="openForm()" class="mt-4 text-gold hover:underline">Start Now</button>
|
| 226 |
</div>
|
| 227 |
-
|
| 228 |
-
|
| 229 |
-
<
|
| 230 |
-
<
|
| 231 |
-
|
| 232 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 233 |
</div>
|
| 234 |
-
|
| 235 |
-
|
| 236 |
-
|
| 237 |
-
|
| 238 |
-
|
| 239 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 240 |
</div>
|
| 241 |
-
|
| 242 |
-
|
| 243 |
-
<
|
| 244 |
-
<
|
| 245 |
-
|
| 246 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 247 |
</div>
|
| 248 |
</div>
|
| 249 |
-
</div>
|
| 250 |
-
</section>
|
| 251 |
|
| 252 |
-
|
| 253 |
-
|
| 254 |
-
|
| 255 |
-
|
| 256 |
-
|
| 257 |
-
|
| 258 |
-
|
| 259 |
-
|
| 260 |
-
|
| 261 |
-
<div data-aos="fade-up" class="package-card bg-white p-8 rounded-2xl shadow-lg">
|
| 262 |
-
<h3 class="font-serif text-2xl font-bold mb-4">Proposal Planning</h3>
|
| 263 |
-
<p class="text-gray-600 mb-4">Creative planning & consultation</p>
|
| 264 |
-
<p class="text-3xl font-bold text-gold mb-6">$250</p>
|
| 265 |
-
<ul class="text-gray-600 mb-6 space-y-2">
|
| 266 |
-
<li>• Initial consultation</li>
|
| 267 |
-
<li>• Creative concept design</li>
|
| 268 |
-
<li>• Timeline planning</li>
|
| 269 |
-
</ul>
|
| 270 |
-
<button onclick="selectPackage('Proposal Planning')" class="w-full gold-gradient text-white py-3 rounded-full font-semibold hover:opacity-90 transition">
|
| 271 |
-
Book This Package
|
| 272 |
-
</button>
|
| 273 |
</div>
|
| 274 |
-
|
| 275 |
-
|
| 276 |
-
<
|
| 277 |
-
<
|
| 278 |
-
|
| 279 |
-
|
| 280 |
-
<
|
| 281 |
-
<
|
| 282 |
-
|
| 283 |
-
|
| 284 |
-
<
|
| 285 |
-
Book This Package
|
| 286 |
-
</button>
|
| 287 |
</div>
|
| 288 |
-
|
| 289 |
-
|
| 290 |
-
|
| 291 |
-
|
| 292 |
-
|
| 293 |
-
<
|
| 294 |
-
|
| 295 |
-
|
| 296 |
-
|
| 297 |
-
|
| 298 |
-
|
| 299 |
-
Book This Package
|
| 300 |
-
</button>
|
| 301 |
</div>
|
| 302 |
-
|
| 303 |
-
|
| 304 |
-
<
|
| 305 |
-
<
|
| 306 |
-
|
| 307 |
-
|
| 308 |
-
|
| 309 |
-
<
|
| 310 |
-
|
| 311 |
-
<
|
| 312 |
-
|
| 313 |
-
</ul>
|
| 314 |
-
<button onclick="selectPackage('VIP Package')" class="w-full gold-gradient text-white py-3 rounded-full font-semibold hover:opacity-90 transition">
|
| 315 |
-
Book This Package
|
| 316 |
-
</button>
|
| 317 |
</div>
|
| 318 |
</div>
|
| 319 |
</div>
|
| 320 |
</section>
|
| 321 |
|
| 322 |
-
<!--
|
| 323 |
-
<
|
| 324 |
-
<div class="
|
| 325 |
-
<
|
| 326 |
-
|
| 327 |
-
<
|
| 328 |
-
</
|
| 329 |
-
|
| 330 |
-
|
| 331 |
-
|
| 332 |
-
|
| 333 |
-
|
| 334 |
-
<
|
| 335 |
-
|
| 336 |
-
|
| 337 |
-
|
| 338 |
-
<
|
| 339 |
-
|
| 340 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 341 |
</div>
|
| 342 |
-
|
| 343 |
-
|
| 344 |
-
|
| 345 |
-
|
| 346 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 347 |
</div>
|
| 348 |
</div>
|
| 349 |
-
|
| 350 |
-
|
| 351 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
| 352 |
</div>
|
|
|
|
|
|
|
|
|
|
| 353 |
</div>
|
| 354 |
-
</
|
|
|
|
| 355 |
|
| 356 |
-
<!--
|
| 357 |
-
<
|
| 358 |
-
<div class="max-w-4xl
|
| 359 |
-
<div class="
|
| 360 |
-
<
|
| 361 |
-
<
|
|
|
|
|
|
|
| 362 |
</div>
|
| 363 |
-
|
| 364 |
-
|
| 365 |
-
|
| 366 |
-
|
| 367 |
-
|
| 368 |
-
|
| 369 |
</div>
|
| 370 |
-
<div>
|
| 371 |
-
<
|
| 372 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 373 |
</div>
|
| 374 |
</div>
|
| 375 |
-
|
| 376 |
-
|
| 377 |
-
<
|
| 378 |
-
|
| 379 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 380 |
</div>
|
| 381 |
-
|
| 382 |
-
|
| 383 |
-
<
|
| 384 |
-
|
| 385 |
-
<
|
| 386 |
-
<
|
| 387 |
-
<
|
| 388 |
-
|
| 389 |
-
</select>
|
| 390 |
</div>
|
| 391 |
-
|
| 392 |
-
|
| 393 |
-
|
| 394 |
-
|
| 395 |
-
|
| 396 |
-
|
|
|
|
|
|
|
| 397 |
</div>
|
| 398 |
-
|
| 399 |
-
|
| 400 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 401 |
</div>
|
| 402 |
</div>
|
| 403 |
-
|
| 404 |
-
<div>
|
| 405 |
-
<label class="block text-sm font-medium text-gray-700 mb-2">Desired Package</label>
|
| 406 |
-
<select name="package" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-gold focus:border-transparent">
|
| 407 |
-
<option>Proposal Planning</option>
|
| 408 |
-
<option>Venue & Decoration</option>
|
| 409 |
-
<option>Proposal Execution</option>
|
| 410 |
-
<option>VIP Package</option>
|
| 411 |
-
<option>Custom</option>
|
| 412 |
-
</select>
|
| 413 |
-
</div>
|
| 414 |
-
|
| 415 |
-
<div>
|
| 416 |
-
<label class="block text-sm font-medium text-gray-700 mb-2">Special Requests</label>
|
| 417 |
-
<textarea name="message" rows="4" placeholder="Tell us more about your vision..." class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-gold focus:border-transparent"></textarea>
|
| 418 |
-
</div>
|
| 419 |
-
|
| 420 |
-
<button type="submit" class="w-full gold-gradient text-white py-4 rounded-full font-semibold text-lg hover:opacity-90 transition">
|
| 421 |
-
Submit & Get My Quote
|
| 422 |
-
</button>
|
| 423 |
-
</form>
|
| 424 |
</div>
|
| 425 |
-
</
|
| 426 |
|
| 427 |
<!-- Footer -->
|
| 428 |
-
<footer class="bg-
|
| 429 |
-
<div class="
|
| 430 |
-
<div class="grid md:grid-cols-4 gap-8">
|
| 431 |
<div>
|
| 432 |
-
<h3 class="
|
| 433 |
-
<p class="
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 434 |
</div>
|
| 435 |
<div>
|
| 436 |
-
<h4 class="font-
|
| 437 |
-
<ul class="
|
| 438 |
-
<li><a href="#" class="hover:text-
|
| 439 |
-
<li><a href="#" class="hover:text-
|
| 440 |
-
<li><a href="#" class="hover:text-
|
| 441 |
-
<li><a href="#" class="hover:text-
|
| 442 |
</ul>
|
| 443 |
</div>
|
| 444 |
<div>
|
| 445 |
-
<h4 class="font-
|
| 446 |
-
<ul class="
|
| 447 |
-
<li>
|
| 448 |
-
<li>
|
| 449 |
-
<li>
|
|
|
|
| 450 |
</ul>
|
| 451 |
</div>
|
| 452 |
<div>
|
| 453 |
-
<h4 class="font-
|
| 454 |
-
<
|
| 455 |
-
<
|
| 456 |
-
|
| 457 |
-
<
|
| 458 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 459 |
</div>
|
| 460 |
</div>
|
| 461 |
-
<div class="border-t border-
|
| 462 |
-
<p>©
|
| 463 |
</div>
|
| 464 |
</div>
|
| 465 |
</footer>
|
| 466 |
|
| 467 |
-
<!-- Chat Bubble -->
|
| 468 |
-
<div class="fixed bottom-6 right-6 z-50">
|
| 469 |
-
<button id="chatBtn" class="chat-bubble w-16 h-16 gold-gradient rounded-full shadow-lg flex items-center justify-center">
|
| 470 |
-
<svg class="w-8 h-8 text-white" fill="currentColor" viewBox="0 0 20 20">
|
| 471 |
-
<path fill-rule="evenodd" d="M18 10c0 3.866-3.582 7-8 7a8.841 8.841 0 01-4.083-.98L2 17l1.338-3.123C2.493 12.767 2 11.434 2 10c0-3.866 3.582-7 8-7s8 3.134 8 7zM7 9H5v2h2V9zm8 0h-2v2h2V9zM9 9h2v2H9V9z" clip-rule="evenodd"></path>
|
| 472 |
-
</svg>
|
| 473 |
-
</button>
|
| 474 |
-
</div>
|
| 475 |
-
|
| 476 |
-
<!-- Chat Modal -->
|
| 477 |
-
<div id="chatModal" class="fixed inset-0 bg-black bg-opacity-50 z-50 hidden">
|
| 478 |
-
<div class="absolute bottom-20 right-6 w-80 bg-white rounded-2xl shadow-2xl">
|
| 479 |
-
<div class="p-4 border-b">
|
| 480 |
-
<div class="flex justify-between items-center">
|
| 481 |
-
<h3 class="font-semibold">Chat with us</h3>
|
| 482 |
-
<button onclick="closeChat()" class="text-gray-500 hover:text-gray-700">
|
| 483 |
-
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
| 484 |
-
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path>
|
| 485 |
-
</svg>
|
| 486 |
-
</button>
|
| 487 |
-
</div>
|
| 488 |
-
</div>
|
| 489 |
-
<div class="p-4 h-64 overflow-y-auto">
|
| 490 |
-
<div class="mb-4">
|
| 491 |
-
<div class="bg-gray-100 p-3 rounded-lg">
|
| 492 |
-
<p class="text-sm">Hi! How can we help you create an unforgettable moment?</p>
|
| 493 |
-
</div>
|
| 494 |
-
</div>
|
| 495 |
-
</div>
|
| 496 |
-
<div class="p-4 border-t">
|
| 497 |
-
<input type="text" placeholder="Type your message..." class="w-full px-3 py-2 border rounded-lg">
|
| 498 |
-
</div>
|
| 499 |
-
</div>
|
| 500 |
-
</div>
|
| 501 |
-
|
| 502 |
<script>
|
| 503 |
-
//
|
| 504 |
-
|
| 505 |
-
|
| 506 |
-
|
|
|
|
|
|
|
| 507 |
});
|
| 508 |
|
| 509 |
-
//
|
| 510 |
-
|
| 511 |
-
|
| 512 |
-
|
| 513 |
-
|
| 514 |
-
|
| 515 |
-
|
| 516 |
-
|
| 517 |
-
|
| 518 |
-
|
| 519 |
});
|
| 520 |
|
| 521 |
-
//
|
| 522 |
-
|
| 523 |
-
|
| 524 |
-
|
| 525 |
-
|
| 526 |
-
|
| 527 |
-
|
| 528 |
-
|
| 529 |
-
|
| 530 |
-
|
| 531 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 532 |
});
|
| 533 |
|
| 534 |
-
|
| 535 |
-
|
| 536 |
-
|
| 537 |
-
|
| 538 |
-
|
| 539 |
-
|
| 540 |
-
|
| 541 |
-
|
| 542 |
-
|
| 543 |
-
|
| 544 |
-
|
| 545 |
-
|
|
|
|
| 546 |
}
|
| 547 |
});
|
| 548 |
|
| 549 |
-
//
|
| 550 |
-
|
| 551 |
-
|
| 552 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 553 |
</script>
|
| 554 |
<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=concensure/a-word-or-two" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 555 |
</html>
|
|
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>digiCradle - Beautiful Printables for Every Occasion</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 |
+
<link href="https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Lato:wght@300;400;700&display=swap" rel="stylesheet">
|
|
|
|
| 10 |
<style>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
body {
|
| 12 |
+
font-family: 'Lato', sans-serif;
|
| 13 |
+
background-color: #fff9f5;
|
| 14 |
+
color: #5a4a42;
|
| 15 |
}
|
| 16 |
+
h1, h2, h3, h4, h5, h6 {
|
|
|
|
| 17 |
font-family: 'Playfair Display', serif;
|
| 18 |
}
|
| 19 |
+
.hero-section {
|
| 20 |
+
background-image: linear-gradient(rgba(255, 245, 235, 0.7), rgba(255, 245, 235, 0.7)), url('https://images.unsplash.com/photo-1603486002254-4d0c9bc2b0f9?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80');
|
| 21 |
+
background-size: cover;
|
| 22 |
+
background-position: center;
|
| 23 |
}
|
| 24 |
+
.category-item {
|
| 25 |
+
transition: all 0.3s ease;
|
| 26 |
+
position: relative;
|
| 27 |
}
|
| 28 |
+
.category-item:hover {
|
| 29 |
+
color: #d9777a;
|
|
|
|
| 30 |
}
|
| 31 |
+
.category-item.active {
|
| 32 |
+
color: #d9777a;
|
| 33 |
+
font-weight: 600;
|
| 34 |
}
|
| 35 |
+
.category-item.active::after {
|
| 36 |
+
content: '';
|
| 37 |
+
position: absolute;
|
| 38 |
+
bottom: -5px;
|
| 39 |
+
left: 0;
|
| 40 |
+
width: 100%;
|
| 41 |
+
height: 2px;
|
| 42 |
+
background-color: #d9777a;
|
| 43 |
+
animation: underline 0.3s ease;
|
| 44 |
}
|
| 45 |
+
@keyframes underline {
|
| 46 |
+
from { transform: scaleX(0); }
|
| 47 |
+
to { transform: scaleX(1); }
|
| 48 |
}
|
| 49 |
+
.divider {
|
| 50 |
+
height: 1px;
|
| 51 |
+
background: repeating-linear-gradient(to right, #e2c8c0, #e2c8c0 10px, transparent 10px, transparent 20px);
|
|
|
|
|
|
|
| 52 |
}
|
| 53 |
+
.product-card {
|
| 54 |
+
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
|
|
|
| 55 |
}
|
| 56 |
+
.product-card:hover {
|
| 57 |
+
transform: translateY(-5px);
|
| 58 |
+
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
|
| 59 |
}
|
| 60 |
+
.product-image {
|
| 61 |
+
transition: transform 0.3s ease;
|
| 62 |
+
overflow: hidden;
|
| 63 |
}
|
| 64 |
+
.product-card:hover .product-image img {
|
| 65 |
+
transform: scale(1.05);
|
|
|
|
|
|
|
| 66 |
}
|
| 67 |
+
.carousel-image {
|
| 68 |
+
transition: opacity 1s ease-in-out;
|
|
|
|
|
|
|
| 69 |
}
|
| 70 |
+
.carousel-image.fade-out {
|
| 71 |
+
opacity: 0;
|
|
|
|
|
|
|
| 72 |
}
|
| 73 |
+
.modal {
|
| 74 |
+
transition: opacity 0.3s ease, transform 0.3s ease;
|
| 75 |
+
}
|
| 76 |
+
.modal.hidden {
|
| 77 |
+
opacity: 0;
|
| 78 |
+
pointer-events: none;
|
| 79 |
+
transform: translateY(-20px);
|
| 80 |
+
}
|
| 81 |
+
.filter-sidebar {
|
| 82 |
+
transition: transform 0.3s ease;
|
| 83 |
+
}
|
| 84 |
+
.filter-sidebar.hidden {
|
| 85 |
+
transform: translateX(100%);
|
| 86 |
+
}
|
| 87 |
+
.cart-count {
|
| 88 |
+
position: absolute;
|
| 89 |
+
top: -8px;
|
| 90 |
+
right: -8px;
|
| 91 |
+
background-color: #d9777a;
|
| 92 |
+
color: white;
|
| 93 |
+
border-radius: 50%;
|
| 94 |
+
width: 20px;
|
| 95 |
+
height: 20px;
|
| 96 |
+
display: flex;
|
| 97 |
+
align-items: center;
|
| 98 |
+
justify-content: center;
|
| 99 |
+
font-size: 12px;
|
| 100 |
}
|
| 101 |
</style>
|
| 102 |
</head>
|
| 103 |
+
<body>
|
| 104 |
+
<!-- Header -->
|
| 105 |
+
<header class="bg-white shadow-sm">
|
| 106 |
+
<div class="container mx-auto px-4 py-4 flex justify-between items-center">
|
| 107 |
+
<div class="flex items-center">
|
| 108 |
+
<h1 class="text-2xl font-bold text-amber-900">digi<span class="text-rose-400">Cradle</span></h1>
|
| 109 |
+
</div>
|
| 110 |
+
<nav class="hidden md:flex space-x-8">
|
| 111 |
+
<a href="#" class="text-amber-900 hover:text-rose-400 transition">Home</a>
|
| 112 |
+
<a href="#" class="text-amber-900 hover:text-rose-400 transition">Shop</a>
|
| 113 |
+
<a href="#" class="text-amber-900 hover:text-rose-400 transition">About</a>
|
| 114 |
+
<a href="#" class="text-amber-900 hover:text-rose-400 transition">Contact</a>
|
| 115 |
+
</nav>
|
| 116 |
+
<div class="flex items-center space-x-4">
|
| 117 |
+
<div class="relative">
|
| 118 |
+
<button id="cart-button" class="text-amber-900 hover:text-rose-400 transition">
|
| 119 |
+
<i class="fas fa-shopping-cart text-xl"></i>
|
| 120 |
+
<span id="cart-count" class="cart-count hidden">0</span>
|
| 121 |
+
</button>
|
| 122 |
</div>
|
| 123 |
+
<button id="user-button" class="text-amber-900 hover:text-rose-400 transition">
|
| 124 |
+
<i class="fas fa-user text-xl"></i>
|
| 125 |
+
</button>
|
| 126 |
+
<button id="mobile-menu-button" class="md:hidden text-amber-900">
|
| 127 |
+
<i class="fas fa-bars text-xl"></i>
|
| 128 |
</button>
|
| 129 |
</div>
|
| 130 |
</div>
|
| 131 |
+
<!-- Mobile Menu -->
|
| 132 |
+
<div id="mobile-menu" class="md:hidden hidden bg-white py-2 px-4 shadow-md">
|
| 133 |
+
<a href="#" class="block py-2 text-amber-900 hover:text-rose-400 transition">Home</a>
|
| 134 |
+
<a href="#" class="block py-2 text-amber-900 hover:text-rose-400 transition">Shop</a>
|
| 135 |
+
<a href="#" class="block py-2 text-amber-900 hover:text-rose-400 transition">About</a>
|
| 136 |
+
<a href="#" class="block py-2 text-amber-900 hover:text-rose-400 transition">Contact</a>
|
| 137 |
+
</div>
|
| 138 |
+
</header>
|
| 139 |
|
| 140 |
<!-- Hero Section -->
|
| 141 |
+
<section class="hero-section py-20 md:py-32">
|
| 142 |
+
<div class="container mx-auto px-4 text-center">
|
| 143 |
+
<h2 class="text-4xl md:text-6xl font-bold text-amber-900 mb-4">Beautiful Printables for Every Occasion</h2>
|
| 144 |
+
<p class="text-xl md:text-2xl text-amber-800 mb-8">High-quality digital designs to print at home</p>
|
| 145 |
+
<button class="bg-rose-400 hover:bg-rose-500 text-white font-bold py-3 px-8 rounded-full transition transform hover:scale-105">
|
| 146 |
+
Shop Now
|
| 147 |
+
</button>
|
| 148 |
</div>
|
| 149 |
+
</section>
|
| 150 |
+
|
| 151 |
+
<!-- Category Menu -->
|
| 152 |
+
<section class="container mx-auto px-4 py-8">
|
| 153 |
+
<div class="flex overflow-x-auto space-x-8 py-4 hide-scrollbar">
|
| 154 |
+
<button class="category-item active whitespace-nowrap">All Products</button>
|
| 155 |
+
<button class="category-item whitespace-nowrap">Thank You Cards</button>
|
| 156 |
+
<button class="category-item whitespace-nowrap">Invitations</button>
|
| 157 |
+
<button class="category-item whitespace-nowrap">Planners</button>
|
| 158 |
+
<button class="category-item whitespace-nowrap">Wall Art</button>
|
| 159 |
+
<button class="category-item whitespace-nowrap">Wedding</button>
|
| 160 |
+
<button class="category-item whitespace-nowrap">Birthday</button>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 161 |
</div>
|
| 162 |
+
<div class="divider my-4"></div>
|
| 163 |
</section>
|
| 164 |
|
| 165 |
+
<!-- Filters and Sorting -->
|
| 166 |
+
<section class="container mx-auto px-4 py-4">
|
| 167 |
+
<div class="flex justify-between items-center">
|
| 168 |
+
<button id="filter-button" class="flex items-center text-amber-900 hover:text-rose-400 transition">
|
| 169 |
+
<i class="fas fa-filter mr-2"></i> Filter
|
| 170 |
+
</button>
|
| 171 |
+
<div class="relative">
|
| 172 |
+
<select class="appearance-none bg-white border border-amber-200 rounded px-4 py-2 pr-8 text-amber-900 focus:outline-none focus:ring-2 focus:ring-rose-300">
|
| 173 |
+
<option>Sort by: Featured</option>
|
| 174 |
+
<option>Price: Low to High</option>
|
| 175 |
+
<option>Price: High to Low</option>
|
| 176 |
+
<option>Newest</option>
|
| 177 |
+
<option>Most Popular</option>
|
| 178 |
+
</select>
|
| 179 |
+
<div class="pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-amber-700">
|
| 180 |
+
<i class="fas fa-chevron-down"></i>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 181 |
</div>
|
| 182 |
</div>
|
| 183 |
</div>
|
| 184 |
</section>
|
| 185 |
|
| 186 |
+
<!-- Product Grid -->
|
| 187 |
+
<section class="container mx-auto px-4 py-8">
|
| 188 |
+
<div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-8">
|
| 189 |
+
<!-- Product Card 1 -->
|
| 190 |
+
<div class="product-card bg-white rounded-lg overflow-hidden shadow-md">
|
| 191 |
+
<div class="product-image relative h-64 overflow-hidden">
|
| 192 |
+
<img src="https://images.unsplash.com/photo-1530103862676-de8c9debad1d?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80"
|
| 193 |
+
alt="Floral Thank You Card"
|
| 194 |
+
class="w-full h-full object-cover carousel-image">
|
| 195 |
+
<img src="https://images.unsplash.com/photo-1598300042247-d088f8ab3c91?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80"
|
| 196 |
+
alt="Floral Thank You Card - Inside"
|
| 197 |
+
class="w-full h-full object-cover carousel-image fade-out absolute top-0 left-0">
|
|
|
|
|
|
|
| 198 |
</div>
|
| 199 |
+
<div class="p-4">
|
| 200 |
+
<h3 class="text-lg font-semibold text-amber-900 mb-1">Floral Thank You Card</h3>
|
| 201 |
+
<p class="text-rose-500 font-bold">$5.99</p>
|
| 202 |
+
<div class="mt-3 flex justify-between items-center">
|
| 203 |
+
<button class="text-amber-900 hover:text-rose-400 transition">
|
| 204 |
+
<i class="far fa-heart"></i>
|
| 205 |
+
</button>
|
| 206 |
+
<button class="bg-amber-100 hover:bg-amber-200 text-amber-900 px-3 py-1 rounded-full text-sm transition">
|
| 207 |
+
Add to Cart
|
| 208 |
+
</button>
|
| 209 |
+
</div>
|
| 210 |
</div>
|
| 211 |
+
</div>
|
| 212 |
+
|
| 213 |
+
<!-- Product Card 2 -->
|
| 214 |
+
<div class="product-card bg-white rounded-lg overflow-hidden shadow-md">
|
| 215 |
+
<div class="product-image relative h-64 overflow-hidden">
|
| 216 |
+
<img src="https://images.unsplash.com/photo-1527525443983-6e60c75fff29?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1528&q=80"
|
| 217 |
+
alt="Wedding Invitation Suite"
|
| 218 |
+
class="w-full h-full object-cover carousel-image">
|
| 219 |
+
<img src="https://images.unsplash.com/photo-1527525443983-6e60c75fff29?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1528&q=80"
|
| 220 |
+
alt="Wedding Invitation Suite - Details"
|
| 221 |
+
class="w-full h-full object-cover carousel-image fade-out absolute top-0 left-0">
|
| 222 |
</div>
|
| 223 |
+
<div class="p-4">
|
| 224 |
+
<h3 class="text-lg font-semibold text-amber-900 mb-1">Wedding Invitation Suite</h3>
|
| 225 |
+
<p class="text-rose-500 font-bold">$12.99</p>
|
| 226 |
+
<div class="mt-3 flex justify-between items-center">
|
| 227 |
+
<button class="text-amber-900 hover:text-rose-400 transition">
|
| 228 |
+
<i class="far fa-heart"></i>
|
| 229 |
+
</button>
|
| 230 |
+
<button class="bg-amber-100 hover:bg-amber-200 text-amber-900 px-3 py-1 rounded-full text-sm transition">
|
| 231 |
+
Add to Cart
|
| 232 |
+
</button>
|
| 233 |
+
</div>
|
| 234 |
</div>
|
| 235 |
</div>
|
|
|
|
|
|
|
| 236 |
|
| 237 |
+
<!-- Product Card 3 -->
|
| 238 |
+
<div class="product-card bg-white rounded-lg overflow-hidden shadow-md">
|
| 239 |
+
<div class="product-image relative h-64 overflow-hidden">
|
| 240 |
+
<img src="https://images.unsplash.com/photo-1512314889357-e157c22f938d?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1471&q=80"
|
| 241 |
+
alt="Weekly Planner"
|
| 242 |
+
class="w-full h-full object-cover carousel-image">
|
| 243 |
+
<img src="https://images.unsplash.com/photo-1512314889357-e157c22f938d?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1471&q=80"
|
| 244 |
+
alt="Weekly Planner - Inside"
|
| 245 |
+
class="w-full h-full object-cover carousel-image fade-out absolute top-0 left-0">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 246 |
</div>
|
| 247 |
+
<div class="p-4">
|
| 248 |
+
<h3 class="text-lg font-semibold text-amber-900 mb-1">Weekly Planner</h3>
|
| 249 |
+
<p class="text-rose-500 font-bold">$8.99</p>
|
| 250 |
+
<div class="mt-3 flex justify-between items-center">
|
| 251 |
+
<button class="text-amber-900 hover:text-rose-400 transition">
|
| 252 |
+
<i class="far fa-heart"></i>
|
| 253 |
+
</button>
|
| 254 |
+
<button class="bg-amber-100 hover:bg-amber-200 text-amber-900 px-3 py-1 rounded-full text-sm transition">
|
| 255 |
+
Add to Cart
|
| 256 |
+
</button>
|
| 257 |
+
</div>
|
|
|
|
|
|
|
| 258 |
</div>
|
| 259 |
+
</div>
|
| 260 |
+
|
| 261 |
+
<!-- Product Card 4 -->
|
| 262 |
+
<div class="product-card bg-white rounded-lg overflow-hidden shadow-md">
|
| 263 |
+
<div class="product-image relative h-64 overflow-hidden">
|
| 264 |
+
<img src="https://images.unsplash.com/photo-1579547945413-497e1b99dac0?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80"
|
| 265 |
+
alt="Minimalist Wall Art"
|
| 266 |
+
class="w-full h-full object-cover carousel-image">
|
| 267 |
+
<img src="https://images.unsplash.com/photo-1579547945413-497e1b99dac0?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80"
|
| 268 |
+
alt="Minimalist Wall Art - Alternative"
|
| 269 |
+
class="w-full h-full object-cover carousel-image fade-out absolute top-0 left-0">
|
|
|
|
|
|
|
| 270 |
</div>
|
| 271 |
+
<div class="p-4">
|
| 272 |
+
<h3 class="text-lg font-semibold text-amber-900 mb-1">Minimalist Wall Art</h3>
|
| 273 |
+
<p class="text-rose-500 font-bold">$6.99</p>
|
| 274 |
+
<div class="mt-3 flex justify-between items-center">
|
| 275 |
+
<button class="text-amber-900 hover:text-rose-400 transition">
|
| 276 |
+
<i class="far fa-heart"></i>
|
| 277 |
+
</button>
|
| 278 |
+
<button class="bg-amber-100 hover:bg-amber-200 text-amber-900 px-3 py-1 rounded-full text-sm transition">
|
| 279 |
+
Add to Cart
|
| 280 |
+
</button>
|
| 281 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 282 |
</div>
|
| 283 |
</div>
|
| 284 |
</div>
|
| 285 |
</section>
|
| 286 |
|
| 287 |
+
<!-- Filter Sidebar -->
|
| 288 |
+
<div id="filter-sidebar" class="filter-sidebar fixed top-0 right-0 h-full w-64 bg-white shadow-lg z-50 transform translate-x-full transition">
|
| 289 |
+
<div class="p-4 border-b border-amber-200 flex justify-between items-center">
|
| 290 |
+
<h3 class="text-lg font-semibold text-amber-900">Filters</h3>
|
| 291 |
+
<button id="close-filter" class="text-amber-700 hover:text-rose-400">
|
| 292 |
+
<i class="fas fa-times"></i>
|
| 293 |
+
</button>
|
| 294 |
+
</div>
|
| 295 |
+
<div class="p-4">
|
| 296 |
+
<div class="mb-6">
|
| 297 |
+
<h4 class="font-medium text-amber-900 mb-3">Occasion</h4>
|
| 298 |
+
<div class="space-y-2">
|
| 299 |
+
<label class="flex items-center">
|
| 300 |
+
<input type="checkbox" class="form-checkbox text-rose-400">
|
| 301 |
+
<span class="ml-2 text-amber-900">Wedding</span>
|
| 302 |
+
</label>
|
| 303 |
+
<label class="flex items-center">
|
| 304 |
+
<input type="checkbox" class="form-checkbox text-rose-400">
|
| 305 |
+
<span class="ml-2 text-amber-900">Birthday</span>
|
| 306 |
+
</label>
|
| 307 |
+
<label class="flex items-center">
|
| 308 |
+
<input type="checkbox" class="form-checkbox text-rose-400">
|
| 309 |
+
<span class="ml-2 text-amber-900">Baby Shower</span>
|
| 310 |
+
</label>
|
| 311 |
+
<label class="flex items-center">
|
| 312 |
+
<input type="checkbox" class="form-checkbox text-rose-400">
|
| 313 |
+
<span class="ml-2 text-amber-900">Graduation</span>
|
| 314 |
+
</label>
|
| 315 |
</div>
|
| 316 |
+
</div>
|
| 317 |
+
<div class="mb-6">
|
| 318 |
+
<h4 class="font-medium text-amber-900 mb-3">Theme</h4>
|
| 319 |
+
<div class="space-y-2">
|
| 320 |
+
<label class="flex items-center">
|
| 321 |
+
<input type="checkbox" class="form-checkbox text-rose-400">
|
| 322 |
+
<span class="ml-2 text-amber-900">Floral</span>
|
| 323 |
+
</label>
|
| 324 |
+
<label class="flex items-center">
|
| 325 |
+
<input type="checkbox" class="form-checkbox text-rose-400">
|
| 326 |
+
<span class="ml-2 text-amber-900">Minimalist</span>
|
| 327 |
+
</label>
|
| 328 |
+
<label class="flex items-center">
|
| 329 |
+
<input type="checkbox" class="form-checkbox text-rose-400">
|
| 330 |
+
<span class="ml-2 text-amber-900">Vintage</span>
|
| 331 |
+
</label>
|
| 332 |
+
<label class="flex items-center">
|
| 333 |
+
<input type="checkbox" class="form-checkbox text-rose-400">
|
| 334 |
+
<span class="ml-2 text-amber-900">Modern</span>
|
| 335 |
+
</label>
|
| 336 |
</div>
|
| 337 |
</div>
|
| 338 |
+
<div class="mb-6">
|
| 339 |
+
<h4 class="font-medium text-amber-900 mb-3">Price Range</h4>
|
| 340 |
+
<div class="flex items-center justify-between mb-2">
|
| 341 |
+
<span class="text-sm text-amber-700">$0</span>
|
| 342 |
+
<span class="text-sm text-amber-700">$20+</span>
|
| 343 |
+
</div>
|
| 344 |
+
<input type="range" min="0" max="20" value="20" class="w-full h-2 bg-amber-200 rounded-lg appearance-none cursor-pointer">
|
| 345 |
</div>
|
| 346 |
+
<button class="w-full bg-rose-400 hover:bg-rose-500 text-white py-2 rounded-full transition">
|
| 347 |
+
Apply Filters
|
| 348 |
+
</button>
|
| 349 |
</div>
|
| 350 |
+
</div>
|
| 351 |
+
<div id="filter-overlay" class="fixed inset-0 bg-black bg-opacity-50 z-40 hidden"></div>
|
| 352 |
|
| 353 |
+
<!-- Product Detail Modal -->
|
| 354 |
+
<div id="product-modal" class="modal fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
|
| 355 |
+
<div class="bg-white rounded-lg max-w-4xl w-full max-h-screen overflow-y-auto">
|
| 356 |
+
<div class="p-4 flex justify-between items-center border-b border-amber-200">
|
| 357 |
+
<h3 class="text-xl font-semibold text-amber-900">Product Details</h3>
|
| 358 |
+
<button id="close-modal" class="text-amber-700 hover:text-rose-400">
|
| 359 |
+
<i class="fas fa-times"></i>
|
| 360 |
+
</button>
|
| 361 |
</div>
|
| 362 |
+
<div class="p-6 md:flex">
|
| 363 |
+
<div class="md:w-1/2 mb-6 md:mb-0 md:pr-6">
|
| 364 |
+
<div class="mb-4 h-96 bg-amber-50 rounded-lg overflow-hidden flex items-center justify-center">
|
| 365 |
+
<img id="modal-main-image" src="https://images.unsplash.com/photo-1530103862676-de8c9debad1d?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80"
|
| 366 |
+
alt="Product Image"
|
| 367 |
+
class="h-full w-full object-contain">
|
| 368 |
</div>
|
| 369 |
+
<div class="grid grid-cols-4 gap-2">
|
| 370 |
+
<button class="h-16 bg-amber-50 rounded overflow-hidden">
|
| 371 |
+
<img src="https://images.unsplash.com/photo-1530103862676-de8c9debad1d?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80"
|
| 372 |
+
alt="Thumbnail 1"
|
| 373 |
+
class="w-full h-full object-cover">
|
| 374 |
+
</button>
|
| 375 |
+
<button class="h-16 bg-amber-50 rounded overflow-hidden">
|
| 376 |
+
<img src="https://images.unsplash.com/photo-1598300042247-d088f8ab3c91?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80"
|
| 377 |
+
alt="Thumbnail 2"
|
| 378 |
+
class="w-full h-full object-cover">
|
| 379 |
+
</button>
|
| 380 |
+
<button class="h-16 bg-amber-50 rounded overflow-hidden">
|
| 381 |
+
<img src="https://images.unsplash.com/photo-1530103862676-de8c9debad1d?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80"
|
| 382 |
+
alt="Thumbnail 3"
|
| 383 |
+
class="w-full h-full object-cover">
|
| 384 |
+
</button>
|
| 385 |
+
<button class="h-16 bg-amber-50 rounded overflow-hidden">
|
| 386 |
+
<img src="https://images.unsplash.com/photo-1598300042247-d088f8ab3c91?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80"
|
| 387 |
+
alt="Thumbnail 4"
|
| 388 |
+
class="w-full h-full object-cover">
|
| 389 |
+
</button>
|
| 390 |
</div>
|
| 391 |
</div>
|
| 392 |
+
<div class="md:w-1/2">
|
| 393 |
+
<h2 id="modal-product-title" class="text-2xl font-bold text-amber-900 mb-2">Floral Thank You Card</h2>
|
| 394 |
+
<p id="modal-product-price" class="text-rose-500 text-xl font-bold mb-4">$5.99</p>
|
| 395 |
+
|
| 396 |
+
<div class="mb-6">
|
| 397 |
+
<h4 class="font-medium text-amber-900 mb-2">File Formats</h4>
|
| 398 |
+
<div class="flex space-x-2">
|
| 399 |
+
<span class="bg-amber-100 text-amber-900 px-3 py-1 rounded-full text-sm">PDF</span>
|
| 400 |
+
<span class="bg-amber-100 text-amber-900 px-3 py-1 rounded-full text-sm">PNG</span>
|
| 401 |
+
<span class="bg-amber-100 text-amber-900 px-3 py-1 rounded-full text-sm">JPG</span>
|
| 402 |
+
</div>
|
| 403 |
</div>
|
| 404 |
+
|
| 405 |
+
<div class="mb-6">
|
| 406 |
+
<h4 class="font-medium text-amber-900 mb-2">Size Options</h4>
|
| 407 |
+
<div class="flex space-x-2">
|
| 408 |
+
<span class="bg-amber-100 text-amber-900 px-3 py-1 rounded-full text-sm">A4</span>
|
| 409 |
+
<span class="bg-amber-100 text-amber-900 px-3 py-1 rounded-full text-sm">US Letter</span>
|
| 410 |
+
<span class="bg-amber-100 text-amber-900 px-3 py-1 rounded-full text-sm">A5</span>
|
| 411 |
+
</div>
|
|
|
|
| 412 |
</div>
|
| 413 |
+
|
| 414 |
+
<div class="mb-6">
|
| 415 |
+
<h4 class="font-medium text-amber-900 mb-2">Occasion & Theme</h4>
|
| 416 |
+
<div class="flex flex-wrap gap-2">
|
| 417 |
+
<span class="bg-amber-100 text-amber-900 px-3 py-1 rounded-full text-sm">Thank You</span>
|
| 418 |
+
<span class="bg-amber-100 text-amber-900 px-3 py-1 rounded-full text-sm">Floral</span>
|
| 419 |
+
<span class="bg-amber-100 text-amber-900 px-3 py-1 rounded-full text-sm">Elegant</span>
|
| 420 |
+
</div>
|
| 421 |
</div>
|
| 422 |
+
|
| 423 |
+
<div class="mb-6">
|
| 424 |
+
<h4 class="font-medium text-amber-900 mb-2">Description</h4>
|
| 425 |
+
<p class="text-amber-900">
|
| 426 |
+
This beautiful floral thank you card features delicate watercolor flowers and elegant typography.
|
| 427 |
+
Perfect for expressing gratitude after weddings, baby showers, or any special occasion.
|
| 428 |
+
The design comes in multiple sizes and formats for easy printing at home or through a professional printer.
|
| 429 |
+
</p>
|
| 430 |
+
</div>
|
| 431 |
+
|
| 432 |
+
<div class="mb-6">
|
| 433 |
+
<h4 class="font-medium text-amber-900 mb-2">Reviews</h4>
|
| 434 |
+
<div class="flex items-center mb-2">
|
| 435 |
+
<div class="flex text-amber-400">
|
| 436 |
+
<i class="fas fa-star"></i>
|
| 437 |
+
<i class="fas fa-star"></i>
|
| 438 |
+
<i class="fas fa-star"></i>
|
| 439 |
+
<i class="fas fa-star"></i>
|
| 440 |
+
<i class="fas fa-star-half-alt"></i>
|
| 441 |
+
</div>
|
| 442 |
+
<span class="text-amber-900 ml-2">4.5 (24 reviews)</span>
|
| 443 |
+
</div>
|
| 444 |
+
<div class="space-y-3">
|
| 445 |
+
<div>
|
| 446 |
+
<div class="flex justify-between">
|
| 447 |
+
<span class="font-medium text-amber-900">Sarah J.</span>
|
| 448 |
+
<span class="text-sm text-amber-700">2 days ago</span>
|
| 449 |
+
</div>
|
| 450 |
+
<div class="flex text-amber-400 text-sm">
|
| 451 |
+
<i class="fas fa-star"></i>
|
| 452 |
+
<i class="fas fa-star"></i>
|
| 453 |
+
<i class="fas fa-star"></i>
|
| 454 |
+
<i class="fas fa-star"></i>
|
| 455 |
+
<i class="fas fa-star"></i>
|
| 456 |
+
</div>
|
| 457 |
+
<p class="text-amber-900 mt-1">Beautiful design, printed perfectly at home!</p>
|
| 458 |
+
</div>
|
| 459 |
+
<div>
|
| 460 |
+
<div class="flex justify-between">
|
| 461 |
+
<span class="font-medium text-amber-900">Michael T.</span>
|
| 462 |
+
<span class="text-sm text-amber-700">1 week ago</span>
|
| 463 |
+
</div>
|
| 464 |
+
<div class="flex text-amber-400 text-sm">
|
| 465 |
+
<i class="fas fa-star"></i>
|
| 466 |
+
<i class="fas fa-star"></i>
|
| 467 |
+
<i class="fas fa-star"></i>
|
| 468 |
+
<i class="fas fa-star"></i>
|
| 469 |
+
<i class="far fa-star"></i>
|
| 470 |
+
</div>
|
| 471 |
+
<p class="text-amber-900 mt-1">Great quality, would buy again.</p>
|
| 472 |
+
</div>
|
| 473 |
+
</div>
|
| 474 |
+
</div>
|
| 475 |
+
|
| 476 |
+
<div class="flex space-x-4">
|
| 477 |
+
<button class="flex-1 bg-rose-400 hover:bg-rose-500 text-white py-3 rounded-full transition flex items-center justify-center">
|
| 478 |
+
<i class="fas fa-shopping-cart mr-2"></i> Add to Cart
|
| 479 |
+
</button>
|
| 480 |
+
<button class="w-12 h-12 flex items-center justify-center border border-amber-300 text-amber-900 hover:text-rose-400 rounded-full transition">
|
| 481 |
+
<i class="far fa-heart"></i>
|
| 482 |
+
</button>
|
| 483 |
</div>
|
| 484 |
</div>
|
| 485 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 486 |
</div>
|
| 487 |
+
</div>
|
| 488 |
|
| 489 |
<!-- Footer -->
|
| 490 |
+
<footer class="bg-amber-900 text-amber-100 py-12">
|
| 491 |
+
<div class="container mx-auto px-4">
|
| 492 |
+
<div class="grid grid-cols-1 md:grid-cols-4 gap-8">
|
| 493 |
<div>
|
| 494 |
+
<h3 class="text-xl font-bold mb-4">digi<span class="text-rose-300">Cradle</span></h3>
|
| 495 |
+
<p class="mb-4">Beautiful printables for every occasion. High-quality digital designs to print at home.</p>
|
| 496 |
+
<div class="flex space-x-4">
|
| 497 |
+
<a href="#" class="text-amber-100 hover:text-rose-300 transition">
|
| 498 |
+
<i class="fab fa-facebook-f"></i>
|
| 499 |
+
</a>
|
| 500 |
+
<a href="#" class="text-amber-100 hover:text-rose-300 transition">
|
| 501 |
+
<i class="fab fa-instagram"></i>
|
| 502 |
+
</a>
|
| 503 |
+
<a href="#" class="text-amber-100 hover:text-rose-300 transition">
|
| 504 |
+
<i class="fab fa-pinterest-p"></i>
|
| 505 |
+
</a>
|
| 506 |
+
</div>
|
| 507 |
</div>
|
| 508 |
<div>
|
| 509 |
+
<h4 class="font-bold mb-4">Shop</h4>
|
| 510 |
+
<ul class="space-y-2">
|
| 511 |
+
<li><a href="#" class="hover:text-rose-300 transition">Thank You Cards</a></li>
|
| 512 |
+
<li><a href="#" class="hover:text-rose-300 transition">Invitations</a></li>
|
| 513 |
+
<li><a href="#" class="hover:text-rose-300 transition">Planners</a></li>
|
| 514 |
+
<li><a href="#" class="hover:text-rose-300 transition">Wall Art</a></li>
|
| 515 |
</ul>
|
| 516 |
</div>
|
| 517 |
<div>
|
| 518 |
+
<h4 class="font-bold mb-4">Help</h4>
|
| 519 |
+
<ul class="space-y-2">
|
| 520 |
+
<li><a href="#" class="hover:text-rose-300 transition">FAQs</a></li>
|
| 521 |
+
<li><a href="#" class="hover:text-rose-300 transition">Shipping & Returns</a></li>
|
| 522 |
+
<li><a href="#" class="hover:text-rose-300 transition">Terms & Conditions</a></li>
|
| 523 |
+
<li><a href="#" class="hover:text-rose-300 transition">Privacy Policy</a></li>
|
| 524 |
</ul>
|
| 525 |
</div>
|
| 526 |
<div>
|
| 527 |
+
<h4 class="font-bold mb-4">Contact</h4>
|
| 528 |
+
<ul class="space-y-2">
|
| 529 |
+
<li class="flex items-center">
|
| 530 |
+
<i class="fas fa-envelope mr-2"></i> hello@digicradle.com
|
| 531 |
+
</li>
|
| 532 |
+
<li class="flex items-center">
|
| 533 |
+
<i class="fas fa-phone mr-2"></i> (123) 456-7890
|
| 534 |
+
</li>
|
| 535 |
+
<li class="flex items-center">
|
| 536 |
+
<i class="fas fa-map-marker-alt mr-2"></i> 123 Design St, Creative City
|
| 537 |
+
</li>
|
| 538 |
+
</ul>
|
| 539 |
</div>
|
| 540 |
</div>
|
| 541 |
+
<div class="border-t border-amber-800 mt-8 pt-8 text-center">
|
| 542 |
+
<p>© 2023 digiCradle. All rights reserved.</p>
|
| 543 |
</div>
|
| 544 |
</div>
|
| 545 |
</footer>
|
| 546 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 547 |
<script>
|
| 548 |
+
// Mobile Menu Toggle
|
| 549 |
+
const mobileMenuButton = document.getElementById('mobile-menu-button');
|
| 550 |
+
const mobileMenu = document.getElementById('mobile-menu');
|
| 551 |
+
|
| 552 |
+
mobileMenuButton.addEventListener('click', () => {
|
| 553 |
+
mobileMenu.classList.toggle('hidden');
|
| 554 |
});
|
| 555 |
|
| 556 |
+
// Category Switching
|
| 557 |
+
const categoryItems = document.querySelectorAll('.category-item');
|
| 558 |
+
|
| 559 |
+
categoryItems.forEach(item => {
|
| 560 |
+
item.addEventListener('click', () => {
|
| 561 |
+
categoryItems.forEach(i => i.classList.remove('active'));
|
| 562 |
+
item.classList.add('active');
|
| 563 |
+
// Here you would fetch products from Supabase based on the selected category
|
| 564 |
+
console.log(`Category selected: ${item.textContent}`);
|
| 565 |
+
});
|
| 566 |
});
|
| 567 |
|
| 568 |
+
// Filter Sidebar Toggle
|
| 569 |
+
const filterButton = document.getElementById('filter-button');
|
| 570 |
+
const closeFilter = document.getElementById('close-filter');
|
| 571 |
+
const filterSidebar = document.getElementById('filter-sidebar');
|
| 572 |
+
const filterOverlay = document.getElementById('filter-overlay');
|
| 573 |
+
|
| 574 |
+
filterButton.addEventListener('click', () => {
|
| 575 |
+
filterSidebar.classList.remove('translate-x-full');
|
| 576 |
+
filterOverlay.classList.remove('hidden');
|
| 577 |
+
});
|
| 578 |
+
|
| 579 |
+
closeFilter.addEventListener('click', () => {
|
| 580 |
+
filterSidebar.classList.add('translate-x-full');
|
| 581 |
+
filterOverlay.classList.add('hidden');
|
| 582 |
+
});
|
| 583 |
+
|
| 584 |
+
filterOverlay.addEventListener('click', () => {
|
| 585 |
+
filterSidebar.classList.add('translate-x-full');
|
| 586 |
+
filterOverlay.classList.add('hidden');
|
| 587 |
});
|
| 588 |
|
| 589 |
+
// Product Image Carousel
|
| 590 |
+
const productCards = document.querySelectorAll('.product-card');
|
| 591 |
+
|
| 592 |
+
productCards.forEach(card => {
|
| 593 |
+
const images = card.querySelectorAll('.carousel-image');
|
| 594 |
+
if (images.length > 1) {
|
| 595 |
+
let currentIndex = 0;
|
| 596 |
+
|
| 597 |
+
setInterval(() => {
|
| 598 |
+
images[currentIndex].classList.add('fade-out');
|
| 599 |
+
currentIndex = (currentIndex + 1) % images.length;
|
| 600 |
+
images[currentIndex].classList.remove('fade-out');
|
| 601 |
+
}, 5000);
|
| 602 |
}
|
| 603 |
});
|
| 604 |
|
| 605 |
+
// Product Modal
|
| 606 |
+
const productModal = document.getElementById('product-modal');
|
| 607 |
+
const closeModal = document.getElementById('close-modal');
|
| 608 |
+
|
| 609 |
+
// This would be attached to each product card in a real implementation
|
| 610 |
+
productCards.forEach(card => {
|
| 611 |
+
card.addEventListener('click', () => {
|
| 612 |
+
productModal.classList.remove('hidden');
|
| 613 |
+
});
|
| 614 |
+
});
|
| 615 |
+
|
| 616 |
+
closeModal.addEventListener('click', () => {
|
| 617 |
+
productModal.classList.add('hidden');
|
| 618 |
+
});
|
| 619 |
+
|
| 620 |
+
// Cart Count (mock data)
|
| 621 |
+
const cartCount = document.getElementById('cart-count');
|
| 622 |
+
cartCount.textContent = '3';
|
| 623 |
+
cartCount.classList.remove('hidden');
|
| 624 |
+
|
| 625 |
+
// Supabase Integration (placeholder)
|
| 626 |
+
// In a real implementation, you would:
|
| 627 |
+
// 1. Initialize Supabase client
|
| 628 |
+
// const supabaseUrl = 'YOUR_SUPABASE_URL';
|
| 629 |
+
// const supabaseKey = 'YOUR_SUPABASE_KEY';
|
| 630 |
+
// const supabase = supabase.createClient(supabaseUrl, supabaseKey);
|
| 631 |
+
|
| 632 |
+
// 2. Fetch products
|
| 633 |
+
// async function fetchProducts(category) {
|
| 634 |
+
// const { data, error } = await supabase
|
| 635 |
+
// .from('products')
|
| 636 |
+
// .select('*')
|
| 637 |
+
// .eq('category', category);
|
| 638 |
+
|
| 639 |
+
// if (error) console.error('Error fetching products:', error);
|
| 640 |
+
// else return data;
|
| 641 |
+
// }
|
| 642 |
+
|
| 643 |
+
// 3. Handle cart operations
|
| 644 |
+
// async function addToCart(productId) {
|
| 645 |
+
// const { data, error } = await supabase
|
| 646 |
+
// .from('cart')
|
| 647 |
+
// .insert([{ product_id: productId, user_id: currentUserId }]);
|
| 648 |
+
|
| 649 |
+
// if (error) console.error('Error adding to cart:', error);
|
| 650 |
+
// else updateCartCount();
|
| 651 |
+
// }
|
| 652 |
+
|
| 653 |
+
// 4. Update cart count
|
| 654 |
+
// async function updateCartCount() {
|
| 655 |
+
// const { count, error } = await supabase
|
| 656 |
+
// .from('cart')
|
| 657 |
+
// .select('*', { count: 'exact' })
|
| 658 |
+
// .eq('user_id', currentUserId);
|
| 659 |
+
|
| 660 |
+
// if (error) console.error('Error fetching cart count:', error);
|
| 661 |
+
// else {
|
| 662 |
+
// cartCount.textContent = count;
|
| 663 |
+
// cartCount.classList.toggle('hidden', count === 0);
|
| 664 |
+
// }
|
| 665 |
+
// }
|
| 666 |
</script>
|
| 667 |
<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=concensure/a-word-or-two" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 668 |
</html>
|