Spaces:
Running
Running
Download index.html from greatisiw92/ng: direct link, hf CLI and curl.
- Browser
- Download file 39.1 kB
-
https://huggingface.co/spaces/greatisiw92/ng/resolve/main/index.html
- Command line
-
hf download hf://spaces/greatisiw92/ng/index.html
-
curl -L -o index.html https://huggingface.co/spaces/greatisiw92/ng/resolve/main/index.html
39.1 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>MONOCHROME | Minimal Essentials</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <style> | |
| @keyframes fadeIn { | |
| from { opacity: 0; transform: translateY(10px); } | |
| to { opacity: 1; transform: translateY(0); } | |
| } | |
| @keyframes slideIn { | |
| from { transform: translateX(-100%); } | |
| to { transform: translateX(0); } | |
| } | |
| .fade-in { | |
| animation: fadeIn 0.5s ease-out forwards; | |
| } | |
| .delay-1 { animation-delay: 0.1s; } | |
| .delay-2 { animation-delay: 0.2s; } | |
| .delay-3 { animation-delay: 0.3s; } | |
| .delay-4 { animation-delay: 0.4s; } | |
| .delay-5 { animation-delay: 0.5s; } | |
| .slide-in { | |
| animation: slideIn 0.4s ease-out forwards; | |
| } | |
| .product-card:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05); | |
| transition: all 0.3s ease; | |
| } | |
| .hover-scale { | |
| transition: transform 0.3s ease; | |
| } | |
| .hover-scale:hover { | |
| transform: scale(1.05); | |
| } | |
| .cart-item-enter { | |
| opacity: 0; | |
| transform: scale(0.9); | |
| } | |
| .cart-item-enter-active { | |
| opacity: 1; | |
| transform: scale(1); | |
| transition: opacity 300ms, transform 300ms; | |
| } | |
| .cart-item-exit { | |
| opacity: 1; | |
| transform: scale(1); | |
| } | |
| .cart-item-exit-active { | |
| opacity: 0; | |
| transform: scale(0.9); | |
| transition: opacity 300ms, transform 300ms; | |
| } | |
| /* Custom scrollbar */ | |
| ::-webkit-scrollbar { | |
| width: 5px; | |
| } | |
| ::-webkit-scrollbar-track { | |
| background: #f1f1f1; | |
| } | |
| ::-webkit-scrollbar-thumb { | |
| background: #000; | |
| } | |
| .testimonial-card { | |
| transition: all 0.3s ease; | |
| } | |
| .testimonial-card:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); | |
| } | |
| .staggered-list > *:nth-child(2) { animation-delay: 0.1s; } | |
| .staggered-list > *:nth-child(3) { animation-delay: 0.2s; } | |
| .staggered-list > *:nth-child(4) { animation-delay: 0.3s; } | |
| </style> | |
| </head> | |
| <body class="bg-white text-black font-sans antialiased"> | |
| <!-- Cart Sidebar --> | |
| <div id="cart-sidebar" class="fixed inset-y-0 right-0 w-80 bg-white shadow-xl transform translate-x-full transition-transform duration-300 ease-in-out z-50 border-l border-gray-200"> | |
| <div class="p-4 h-full flex flex-col"> | |
| <div class="flex justify-between items-center mb-6"> | |
| <h2 class="text-xl font-bold">Your Cart</h2> | |
| <button onclick="closeCart()" class="hover-scale p-2 -mr-2"> | |
| <i class="fas fa-times"></i> | |
| </button> | |
| </div> | |
| <div id="cart-items" class="flex-1 overflow-y-auto py-2 space-y-4"> | |
| <!-- Cart items will be dynamically inserted here --> | |
| <div class="text-center py-10 text-gray-500"> | |
| <i class="fas fa-shopping-cart fa-2x mb-3"></i> | |
| <p>Your cart is empty</p> | |
| </div> | |
| </div> | |
| <div class="border-t border-gray-200 pt-4"> | |
| <div class="flex justify-between mb-4"> | |
| <span>Subtotal</span> | |
| <span id="cart-subtotal" class="font-medium">$0.00</span> | |
| </div> | |
| <button onclick="checkout()" class="w-full bg-black text-white py-3 hover:bg-gray-900 transition duration-200 tracking-wider"> | |
| CHECKOUT | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Overlay for cart --> | |
| <div id="cart-overlay" class="fixed inset-0 bg-black bg-opacity-50 z-40 opacity-0 pointer-events-none transition-opacity duration-300"></div> | |
| <!-- Header --> | |
| <header class="border-b border-gray-100 py-4 sticky top-0 bg-white z-30"> | |
| <div class="container mx-auto px-6"> | |
| <div class="flex justify-between items-center"> | |
| <div class="slide-in"> | |
| <a href="#" class="text-2xl font-light tracking-wider hover-scale inline-block"> | |
| MONO<span class="font-bold">CHROME</span> | |
| </a> | |
| </div> | |
| <nav class="hidden md:flex space-x-8"> | |
| <a href="#shop" class="text-sm uppercase tracking-wider hover:underline hover:underline-offset-4 fade-in delay-1">Shop</a> | |
| <a href="#collections" class="text-sm uppercase tracking-wider hover:underline hover:underline-offset-4 fade-in delay-2">Collections</a> | |
| <a href="#about" class="text-sm uppercase tracking-wider hover:underline hover:underline-offset-4 fade-in delay-3">About</a> | |
| </nav> | |
| <div class="flex items-center space-x-6"> | |
| <button class="hover-scale"> | |
| <i class="fas fa-search fade-in delay-2"></i> | |
| </button> | |
| <button class="hover-scale relative" onclick="openCart()"> | |
| <i class="fas fa-shopping-bag fade-in delay-3"></i> | |
| <span id="cart-count" class="absolute -top-2 -right-2 bg-black text-white text-xs w-5 h-5 flex items-center justify-center rounded-full hidden">0</span> | |
| </button> | |
| <button class="md:hidden hover-scale" onclick="toggleMobileMenu()"> | |
| <i class="fas fa-bars fade-in delay-3"></i> | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Mobile menu --> | |
| <div id="mobile-menu" class="hidden md:hidden py-4 space-y-3 border-t mt-4 border-gray-100"> | |
| <a href="#shop" class="block text-sm uppercase tracking-wider hover:underline hover:underline-offset-4">Shop</a> | |
| <a href="#collections" class="block text-sm uppercase tracking-wider hover:underline hover:underline-offset-4">Collections</a> | |
| <a href="#about" class="block text-sm uppercase tracking-wider hover:underline hover:underline-offset-4">About</a> | |
| </div> | |
| </div> | |
| </header> | |
| <!-- Hero Section --> | |
| <section class="py-20 md:py-32 border-b border-gray-100"> | |
| <div class="container mx-auto px-6 text-center"> | |
| <p class="uppercase tracking-widest text-sm mb-4 fade-in delay-1">ESSENTIAL MINIMALISM</p> | |
| <h1 class="text-5xl md:text-7xl font-light mb-8 fade-in delay-2 leading-tight">Timeless pieces<br>for modern living</h1> | |
| <a href="#shop" class="inline-block px-0 pb-1 border-b border-black text-sm uppercase tracking-wider fade-in delay-3 hover-scale"> | |
| Discover the collection | |
| </a> | |
| </div> | |
| </section> | |
| <!-- Featured Collections --> | |
| <section id="collections" class="py-16 md:py-24 bg-gray-50"> | |
| <div class="container mx-auto px-6"> | |
| <div class="text-center mb-16"> | |
| <p class="uppercase tracking-widest text-sm mb-4 fade-in delay-1">OUR EDIT</p> | |
| <h2 class="text-3xl font-light mb-6 fade-in delay-2">Curated Collections</h2> | |
| <div class="w-20 h-px bg-black mx-auto fade-in delay-3"></div> | |
| </div> | |
| <div class="grid grid-cols-1 md:grid-cols-3 gap-8 fade-in delay-3"> | |
| <div class="relative group overflow-hidden"> | |
| <img src="https://images.unsplash.com/photo-1489987707025-afc232f7ea0f?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=800&q=80" | |
| alt="Workwear Collection" | |
| class="w-full h-96 object-cover transition duration-700 group-hover:scale-105"> | |
| <div class="absolute inset-0 bg-black bg-opacity-20 flex items-center justify-center flex-col p-8 text-center text-white transition duration-300 group-hover:bg-opacity-30"> | |
| <h3 class="text-2xl font-light mb-4">The Work Edit</h3> | |
| <a href="#" class="text-sm uppercase tracking-wider border-b border-white pb-1 hover:opacity-80">Shop Now</a> | |
| </div> | |
| </div> | |
| <div class="relative group overflow-hidden"> | |
| <img src="https://images.unsplash.com/photo-1529139574466-a303027c1d8b?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=800&q=80" | |
| alt="Casual Collection" | |
| class="w-full h-96 object-cover transition duration-700 group-hover:scale-105"> | |
| <div class="absolute inset-0 bg-black bg-opacity-20 flex items-center justify-center flex-col p-8 text-center text-white transition duration-300 group-hover:bg-opacity-30"> | |
| <h3 class="text-2xl font-light mb-4">Weekend Essentials</h3> | |
| <a href="#" class="text-sm uppercase tracking-wider border-b border-white pb-1 hover:opacity-80">Shop Now</a> | |
| </div> | |
| </div> | |
| <div class="relative group overflow-hidden"> | |
| <img src="https://images.unsplash.com/photo-1551232864-3f0890e580d9?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=800&q=80" | |
| alt="Travel Collection" | |
| class="w-full h-96 object-cover transition duration-700 group-hover:scale-105"> | |
| <div class="absolute inset-0 bg-black bg-opacity-20 flex items-center justify-center flex-col p-8 text-center text-white transition duration-300 group-hover:bg-opacity-30"> | |
| <h3 class="text-2xl font-light mb-4">Travel Capsule</h3> | |
| <a href="#" class="text-sm uppercase tracking-wider border-b border-white pb-1 hover:opacity-80">Shop Now</a> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Products Section --> | |
| <section id="shop" class="py-16 md:py-24"> | |
| <div class="container mx-auto px-6"> | |
| <div class="text-center mb-16"> | |
| <p class="uppercase tracking-widest text-sm mb-4 fade-in delay-1">FEATURED</p> | |
| <h2 class="text-3xl font-light mb-6 fade-in delay-2">The Essentials</h2> | |
| <div class="w-20 h-px bg-black mx-auto fade-in delay-3"></div> | |
| </div> | |
| <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-8 md:gap-12 staggered-list"> | |
| <!-- Product 1 --> | |
| <div class="product-card fade-in" onclick="showProductDetails('Zenith White Shirt', 79.00, 'Essential white shirt with minimalist design. Crafted from premium organic cotton with a tailored fit. Perfect for any occasion.', '1')"> | |
| <div class="relative overflow-hidden pb-[120%] group"> | |
| <img src="https://images.unsplash.com/photo-1598033129183-c4f50c736f10?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=500&q=80" | |
| alt="Minimal White Shirt" | |
| class="absolute h-full w-full object-cover group-hover:scale-105 transition duration-500"> | |
| <div class="absolute inset-0 bg-black bg-opacity-0 group-hover:bg-opacity-5 transition duration-300"></div> | |
| </div> | |
| <div class="mt-6"> | |
| <h3 class="text-lg font-light mb-1">Zenith White Shirt</h3> | |
| <p class="text-gray-600">$79.00</p> | |
| <button class="mt-4 w-full border border-black py-2 text-xs uppercase tracking-wider hover:bg-black hover:text-white transition duration-200" | |
| onclick="event.stopPropagation(); addToCart('Zenith White Shirt', 79.00, '1')"> | |
| Add to Bag | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Product 2 --> | |
| <div class="product-card fade-in" onclick="showProductDetails('Icon Black Trousers', 89.00, 'Signature black trousers with a clean silhouette. Made from durable Japanese fabric with hidden functional pockets.', '2')"> | |
| <div class="relative overflow-hidden pb-[120%] group"> | |
| <img src="https://images.unsplash.com/photo-1595341888016-a392ef81b7de?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=500&q=80" | |
| alt="Black Minimal Trousers" | |
| class="absolute h-full w-full object-cover group-hover:scale-105 transition duration-500"> | |
| <div class="absolute inset-0 bg-black bg-opacity-0 group-hover:bg-opacity-5 transition duration-300"></div> | |
| </div> | |
| <div class="mt-6"> | |
| <h3 class="text-lg font-light mb-1">Icon Black Trousers</h3> | |
| <p class="text-gray-600">$89.00</p> | |
| <button class="mt-4 w-full border border-black py-2 text-xs uppercase tracking-wider hover:bg-black hover:text-white transition duration-200" | |
| onclick="event.stopPropagation(); addToCart('Icon Black Trousers', 89.00, '2')"> | |
| Add to Bag | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Product 3 --> | |
| <div class="product-card fade-in" onclick="showProductDetails('Aspect Linen Blazer', 199.00, 'Breathable linen blazer with minimalist tailoring. Features hidden buttons and internal pocket for minimalist aesthetics.', '3')"> | |
| <div class="relative overflow-hidden pb-[120%] group"> | |
| <img src="https://images.unsplash.com/photo-1591047139829-d91aecb6caea?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=500&q=80" | |
| alt="Linen Blazer" | |
| class="absolute h-full w-full object-cover group-hover:scale-105 transition duration-500"> | |
| <div class="absolute inset-0 bg-black bg-opacity-0 group-hover:bg-opacity-5 transition duration-300"></div> | |
| </div> | |
| <div class="mt-6"> | |
| <h3 class="text-lg font-light mb-1">Aspect Linen Blazer</h3> | |
| <p class="text-gray-600">$199.00</p> | |
| <button class="mt-4 w-full border border-black py-2 text-xs uppercase tracking-wider hover:bg-black hover:text-white transition duration-200" | |
| onclick="event.stopPropagation(); addToCart('Aspect Linen Blazer', 199.00, '3')"> | |
| Add to Bag | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Product 4 --> | |
| <div class="product-card fade-in" onclick="showProductDetails('Uniform White Sneakers', 129.00, 'Clean white sneakers with minimalist design. All-season wear with premium comfort and durability.', '4')"> | |
| <div class="relative overflow-hidden pb-[120%] group"> | |
| <img src="https://images.unsplash.com/photo-1514320291840-2e0a9bf2a9ae?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=500&q=80" | |
| alt="Minimal Sneakers" | |
| class="absolute h-full w-full object-cover group-hover:scale-105 transition duration-500"> | |
| <div class="absolute inset-0 bg-black bg-opacity-0 group-hover:bg-opacity-5 transition duration-300"></div> | |
| </div> | |
| <div class="mt-6"> | |
| <h3 class="text-lg font-light mb-1">Uniform White Sneakers</h3> | |
| <p class="text-gray-600">$129.00</p> | |
| <button class="mt-4 w-full border border-black py-2 text-xs uppercase tracking-wider hover:bg-black hover:text-white transition duration-200" | |
| onclick="event.stopPropagation(); addToCart('Uniform White Sneakers', 129.00, '4')"> | |
| Add to Bag | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="text-center mt-16 fade-in delay-4"> | |
| <a href="#" class="px-6 py-3 border border-black text-sm uppercase tracking-wider hover:bg-black hover:text-white transition duration-200 inline-block"> | |
| View All Products | |
| </a> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- About Section --> | |
| <section id="about" class="py-16 md:py-24 bg-gray-50"> | |
| <div class="container mx-auto px-6"> | |
| <div class="grid grid-cols-1 md:grid-cols-2 gap-16 items-center"> | |
| <div class="space-y-8"> | |
| <p class="uppercase tracking-widest text-sm fade-in delay-1">OUR STORY</p> | |
| <h2 class="text-3xl font-light fade-in delay-2">Thoughtfully Designed</h2> | |
| <p class="text-gray-600 leading-relaxed fade-in delay-3"> | |
| Founded in 2015, MONOCHROME was born from a desire to simplify wardrobes with fewer, better pieces. | |
| We believe in thoughtful design that eliminates excess and focuses on quality materials, timeless | |
| silhouettes, and functional details. | |
| </p> | |
| <p class="text-gray-600 leading-relaxed fade-in delay-4"> | |
| Each piece is designed to be versatile, durable, and seasonless - creating a wardrobe that lasts | |
| beyond trends. We work directly with ethical factories and use sustainable materials wherever possible. | |
| </p> | |
| <a href="#" class="inline-block border-b border-black text-sm uppercase tracking-wider hover-scale fade-in delay-5">Learn More</a> | |
| </div> | |
| <div class="relative fade-in"> | |
| <img src="https://images.unsplash.com/photo-1529333166437-7750a6dd5a70?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=800&q=80" | |
| alt="MONOCHROME About" | |
| class="w-full h-auto"> | |
| <div class="absolute -z-10 bg-gray-200 w-full h-full -bottom-4 -right-4"></div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Testimonials Section --> | |
| <section class="py-16 md:py-24"> | |
| <div class="container mx-auto px-6"> | |
| <div class="text-center mb-16"> | |
| <p class="uppercase tracking-widest text-sm mb-4 fade-in delay-1">WORDS FROM OUR COMMUNITY</p> | |
| <h2 class="text-3xl font-light mb-6 fade-in delay-2">What People Say</h2> | |
| <div class="w-20 h-px bg-black mx-auto fade-in delay-3"></div> | |
| </div> | |
| <div class="grid grid-cols-1 md:grid-cols-3 gap-8"> | |
| <div class="testimonial-card p-8 border border-gray-100 fade-in"> | |
| <div class="flex items-center mb-6"> | |
| <img src="https://randomuser.me/api/portraits/women/65.jpg" alt="Sarah J." class="w-12 h-12 rounded-full object-cover mr-4"> | |
| <div> | |
| <h4 class="font-medium">Sarah J.</h4> | |
| <div class="flex text-yellow-400 text-xs mt-1"> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| </div> | |
| </div> | |
| </div> | |
| <p class="text-gray-600 italic"> | |
| "The Zenith shirt is my absolute favorite. It goes with everything in my wardrobe and has held up beautifully after dozens of washes." | |
| </p> | |
| </div> | |
| <div class="testimonial-card p-8 border border-gray-100 fade-in delay-2"> | |
| <div class="flex items-center mb-6"> | |
| <img src="https://randomuser.me/api/portraits/men/32.jpg" alt="Michael T." class="w-12 h-12 rounded-full object-cover mr-4"> | |
| <div> | |
| <h4 class="font-medium">Michael T.</h4> | |
| <div class="flex text-yellow-400 text-xs mt-1"> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| </div> | |
| </div> | |
| </div> | |
| <p class="text-gray-600 italic"> | |
| "Finally found trousers that don't lose their shape. The fabric is amazing and the minimal design works perfectly for my office and weekends." | |
| </p> | |
| </div> | |
| <div class="testimonial-card p-8 border border-gray-100 fade-in delay-3"> | |
| <div class="flex items-center mb-6"> | |
| <img src="https://randomuser.me/api/portraits/women/44.jpg" alt="Emma L." class="w-12 h-12 rounded-full object-cover mr-4"> | |
| <div> | |
| <h4 class="font-medium">Emma L.</h4> | |
| <div class="flex text-yellow-400 text-xs mt-1"> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| </div> | |
| </div> | |
| </div> | |
| <p class="text-gray-600 italic"> | |
| "I've been building my capsule wardrobe with MONOCHROME pieces over the past year. The quality surpasses anything I've owned before." | |
| </p> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Feature Section --> | |
| <section class="py-16 bg-black text-white"> | |
| <div class="container mx-auto px-6"> | |
| <div class="grid md:grid-cols-3 gap-12 text-center"> | |
| <div class="fade-in"> | |
| <div class="w-12 h-12 bg-white rounded-full flex items-center justify-center mx-auto mb-6"> | |
| <i class="fas fa-truck text-black"></i> | |
| </div> | |
| <h3 class="font-medium mb-2">Free Shipping</h3> | |
| <p class="text-gray-300">On all orders over $100</p> | |
| </div> | |
| <div class="fade-in delay-2"> | |
| <div class="w-12 h-12 bg-white rounded-full flex items-center justify-center mx-auto mb-6"> | |
| <i class="fas fa-undo text-black"></i> | |
| </div> | |
| <h3 class="font-medium mb-2">30-Day Returns</h3> | |
| <p class="text-gray-300">No questions asked</p> | |
| </div> | |
| <div class="fade-in delay-4"> | |
| <div class="w-12 h-12 bg-white rounded-full flex items-center justify-center mx-auto mb-6"> | |
| <i class="fas fa-leaf text-black"></i> | |
| </div> | |
| <h3 class="font-medium mb-2">Sustainable</h3> | |
| <p class="text-gray-300">Ethically made with eco materials</p> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Newsletter --> | |
| <section class="py-16"> | |
| <div class="container mx-auto px-6 max-w-4xl text-center"> | |
| <p class="uppercase tracking-widest text-sm mb-4 fade-in">STAY CONNECTED</p> | |
| <h2 class="text-3xl font-light mb-6 fade-in delay-1">Join Our Community</h2> | |
| <p class="text-gray-600 mb-8 fade-in delay-2">Sign up for updates, promotions, and early access to new collections.</p> | |
| <form class="flex max-w-md mx-auto fade-in delay-3"> | |
| <input type="email" placeholder="Your email address" class="flex-1 border border-r-0 border-gray-300 px-4 py-3 focus:outline-none focus:border-black text-sm"> | |
| <button type="submit" class="bg-black text-white px-6 py-3 text-sm uppercase tracking-wider hover:bg-gray-900 transition duration-200">Subscribe</button> | |
| </form> | |
| </div> | |
| </section> | |
| <!-- Product Modal --> | |
| <div id="product-modal" class="fixed inset-0 bg-black bg-opacity-75 flex items-center justify-center z-50 opacity-0 pointer-events-none transition-opacity duration-300"> | |
| <div class="bg-white w-full max-w-4xl m-4 relative max-h-[90vh] overflow-y-auto"> | |
| <button onclick="closeProductModal()" class="absolute top-4 right-4 p-2 hover-scale"> | |
| <i class="fas fa-times"></i> | |
| </button> | |
| <div class="p-6 md:p-8 grid md:grid-cols-2 gap-8"> | |
| <div class="relative pb-[120%]"> | |
| <img id="modal-product-image" src="" alt="" class="absolute h-full w-full object-cover"> | |
| </div> | |
| <div> | |
| <h2 id="modal-product-name" class="text-2xl font-light mb-2"></h2> | |
| <p id="modal-product-price" class="text-xl mb-6"></p> | |
| <p id="modal-product-desc" class="text-gray-600 mb-8"></p> | |
| <div class="space-y-4"> | |
| <button id="modal-add-to-cart" class="w-full bg-black text-white py-3 text-sm uppercase tracking-wider hover:bg-gray-900 transition duration-200"> | |
| Add to Bag | |
| </button> | |
| <button class="w-full border border-black py-3 text-sm uppercase tracking-wider hover:bg-gray-100 transition duration-200"> | |
| View Full Details | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Footer --> | |
| <footer class="bg-black text-white py-12"> | |
| <div class="container mx-auto px-6"> | |
| <div class="grid md:grid-cols-4 gap-8 mb-12"> | |
| <div> | |
| <h3 class="font-bold text-lg mb-4 tracking-wider">MONO<span class="font-bold">CHROME</span></h3> | |
| <p class="text-gray-400">Essential minimalism for modern living.</p> | |
| </div> | |
| <div> | |
| <h3 class="font-medium text-sm uppercase tracking-wider mb-4">Shop</h3> | |
| <ul class="space-y-2 text-gray-400"> | |
| <li><a href="#" class="hover:text-white">All Products</a></li> | |
| <li><a href="#" class="hover:text-white">New Arrivals</a></li> | |
| <li><a href="#" class="hover:text-white">Best Sellers</a></li> | |
| <li><a href="#" class="hover:text-white">Gift Cards</a></li> | |
| </ul> | |
| </div> | |
| <div> | |
| <h3 class="font-medium text-sm uppercase tracking-wider mb-4">About</h3> | |
| <ul class="space-y-2 text-gray-400"> | |
| <li><a href="#" class="hover:text-white">Our Story</a></li> | |
| <li><a href="#" class="hover:text-white">Sustainability</a></li> | |
| <li><a href="#" class="hover:text-white">Stores</a></li> | |
| <li><a href="#" class="hover:text-white">Careers</a></li> | |
| </ul> | |
| </div> | |
| <div> | |
| <h3 class="font-medium text-sm uppercase tracking-wider mb-4">Help</h3> | |
| <ul class="space-y-2 text-gray-400"> | |
| <li><a href="#" class="hover:text-white">Contact Us</a></li> | |
| <li><a href="#" class="hover:text-white">Shipping & Returns</a></li> | |
| <li><a href="#" class="hover:text-white">Size Guide</a></li> | |
| <li><a href="#" class="hover:text-white">FAQs</a></li> | |
| </ul> | |
| </div> | |
| </div> | |
| <div class="border-t border-gray-800 pt-8"> | |
| <div class="flex flex-col md:flex-row justify-between items-center"> | |
| <p class="text-gray-400 text-sm mb-4 md:mb-0">© 2023 MONOCHROME. All rights reserved.</p> | |
| <div class="flex space-x-6"> | |
| <a href="#" class="text-gray-400 hover:text-white"><i class="fab fa-instagram"></i></a> | |
| <a href="#" class="text-gray-400 hover:text-white"><i class="fab fa-twitter"></i></a> | |
| <a href="#" class="text-gray-400 hover:text-white"><i class="fab fa-pinterest"></i></a> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </footer> | |
| <script> | |
| // Cart functionality | |
| let cart = []; | |
| let currentProduct = null; | |
| // Mobile menu toggle | |
| function toggleMobileMenu() { | |
| const menu = document.getElementById('mobile-menu'); | |
| menu.classList.toggle('hidden'); | |
| } | |
| // Cart functions | |
| function openCart() { | |
| document.getElementById('cart-sidebar').classList.remove('translate-x-full'); | |
| document.getElementById('cart-overlay').classList.remove('opacity-0', 'pointer-events-none'); | |
| document.getElementById('cart-overlay').classList.add('opacity-100', 'pointer-events-auto'); | |
| } | |
| function closeCart() { | |
| document.getElementById('cart-sidebar').classList.add('translate-x-full'); | |
| document.getElementById('cart-overlay').classList.remove('opacity-100', 'pointer-events-auto'); | |
| document.getElementById('cart-overlay').classList.add('opacity-0', 'pointer-events-none'); | |
| } | |
| function updateCartUI() { | |
| const cartItemsContainer = document.getElementById('cart-items'); | |
| const cartCountElement = document.getElementById('cart-count'); | |
| if (cart.length === 0) { | |
| cartItemsContainer.innerHTML = ` | |
| <div class="text-center py-10 text-gray-500"> | |
| <i class="fas fa-shopping-cart fa-2x mb-3"></i> | |
| <p>Your cart is empty</p> | |
| </div> | |
| `; | |
| cartCountElement.classList.add('hidden'); | |
| } else { | |
| let subtotal = 0; | |
| cartItemsContainer.innerHTML = ''; | |
| cart.forEach(item => { | |
| subtotal += item.price * item.quantity; | |
| const cartItem = document.createElement('div'); | |
| cartItem.className = 'flex items-center border-b border-gray-100 pb-4'; | |
| cartItem.innerHTML = ` | |
| <div class="w-16 flex-shrink-0"> | |
| <img src="https://images.unsplash.com/photo-${item.id === '1' ? '1598033129183-c4f50c736f10' : (item.id === '2' ? '1595341888016-a392ef81b7de' : (item.id === '3' ? '1591047139829-d91aecb6caea' : '1514320291840-2e0a9bf2a9ae'))}?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=500&q=80" | |
| alt="${item.name}" | |
| class="w-full h-16 object-cover"> | |
| </div> | |
| <div class="ml-4 flex-1"> | |
| <h3 class="font-medium text-sm">${item.name}</h3> | |
| <p class="text-xs text-gray-600">$${item.price.toFixed(2)}</p> | |
| </div> | |
| <div class="ml-4 flex items-center"> | |
| <button class="px-2" onclick="updateQuantity('${item.id}', -1)">-</button> | |
| <span class="px-2">${item.quantity}</span> | |
| <button class="px-2" onclick="updateQuantity('${item.id}', 1)">+</button> | |
| <button class="ml-4 text-gray-500 hover:text-black" onclick="removeFromCart('${item.id}')"> | |
| <i class="fas fa-times"></i> | |
| </button> | |
| </div> | |
| `; | |
| cartItemsContainer.appendChild(cartItem); | |
| }); | |
| document.getElementById('cart-subtotal').textContent = `$${subtotal.toFixed(2)}`; | |
| cartCountElement.textContent = cart.reduce((total, item) => total + item.quantity, 0); | |
| cartCountElement.classList.remove('hidden'); | |
| } | |
| } | |
| function addToCart(name, price, id) { | |
| const existingItem = cart.find(item => item.id === id); | |
| if (existingItem) { | |
| existingItem.quantity += 1; | |
| } else { | |
| cart.push({ | |
| id, | |
| name, | |
| price, | |
| quantity: 1 | |
| }); | |
| } | |
| updateCartUI(); | |
| // Show a small notification | |
| const notification = document.createElement('div'); | |
| notification.className = 'fixed bottom-4 right-4 bg-black text-white px-4 py-2 rounded shadow-lg transition-opacity duration-300 opacity-0 text-sm'; | |
| notification.textContent = `${name} added to cart`; | |
| document.body.appendChild(notification); | |
| setTimeout(() => { | |
| notification.classList.add('opacity-100'); | |
| setTimeout(() => { | |
| notification.classList.remove('opacity-100'); | |
| setTimeout(() => { | |
| document.body.removeChild(notification); | |
| }, 300); | |
| }, 2000); | |
| }, 10); | |
| } | |
| function removeFromCart(id) { | |
| cart = cart.filter(item => item.id !== id); | |
| updateCartUI(); | |
| } | |
| function updateQuantity(id, change) { | |
| const item = cart.find(item => item.id === id); | |
| if (item) { | |
| item.quantity += change; | |
| if (item.quantity <= 0) { | |
| removeFromCart(id); | |
| } else { | |
| updateCartUI(); | |
| } | |
| } | |
| } | |
| function checkout() { | |
| if (cart.length === 0) return; | |
| alert(`Checkout - Total: $${cart.reduce((total, item) => total + (item.price * item.quantity), 0).toFixed(2)}`); | |
| cart = []; | |
| updateCartUI(); | |
| closeCart(); | |
| } | |
| // Product modal functions | |
| function showProductDetails(name, price, description, id) { | |
| currentProduct = { name, price, description, id }; | |
| document.getElementById('modal-product-name').textContent = name; | |
| document.getElementById('modal-product-price').textContent = `$${price.toFixed(2)}`; | |
| document.getElementById('modal-product-desc').textContent = description; | |
| document.getElementById('modal-product-image').src = `https://images.unsplash.com/photo-${id === '1' ? '1598033129183-c4f50c736f10' : (id === '2' ? '1595341888016-a392ef81b7de' : (id === '3' ? '1591047139829-d91aecb6caea' : '1514320291840-2e0a9bf2a9ae'))}?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=500&q=80`; | |
| document.getElementById('modal-product-image').alt = name; | |
| document.getElementById('modal-add-to-cart').onclick = function(event) { | |
| event.stopPropagation(); | |
| addToCart(name, price, id); | |
| closeProductModal(); | |
| }; | |
| document.getElementById('product-modal').classList.remove('opacity-0', 'pointer-events-none'); | |
| document.getElementById('product-modal').classList.add('opacity-100', 'pointer-events-auto'); | |
| document.body.style.overflow = 'hidden'; | |
| } | |
| function closeProductModal() { | |
| document.getElementById('product-modal').classList.remove('opacity-100', 'pointer-events-auto'); | |
| document.getElementById('product-modal').classList.add('opacity-0', 'pointer-events-none'); | |
| document.body.style.overflow = 'auto'; | |
| } | |
| // Close modal when clicking outside | |
| document.getElementById('product-modal').addEventListener('click', function(event) { | |
| if (event.target === this) { | |
| closeProductModal(); | |
| } | |
| }); | |
| // Close cart when clicking outside | |
| document.getElementById('cart-overlay').addEventListener('click', closeCart); | |
| </script> | |
| <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=greatisiw92/ng" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |