Download index.html from bd3a/test777: direct link, hf CLI and curl.
- Browser
- Download file 69.4 kB
-
https://huggingface.co/spaces/bd3a/test777/resolve/main/index.html
- Command line
-
hf download hf://spaces/bd3a/test777/index.html
-
curl -L -o index.html https://huggingface.co/spaces/bd3a/test777/resolve/main/index.html
69.4 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>VOGUE | Trendy Fashion</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/react@18/umd/react.development.js"></script>
<script src="https://unpkg.com/react-dom@18/umd/react-dom.development.js"></script>
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700&display=swap');
:root {
--primary: #111827;
--secondary: #f43f5e;
--accent: #e5e7eb;
}
body {
font-family: 'Montserrat', sans-serif;
background-color: #f9fafb;
}
.title-font {
font-family: 'Playfair Display', serif;
}
.hero-gradient {
background: linear-gradient(135deg, rgba(17,24,39,0.9) 0%, rgba(244,63,94,0.7) 100%);
}
.product-card:hover .product-actions {
opacity: 1;
transform: translateY(0);
}
.product-actions {
transition: all 0.3s ease;
opacity: 0;
transform: translateY(10px);
}
.nav-link::after {
content: '';
display: block;
width: 0;
height: 2px;
background: var(--secondary);
transition: width 0.3s;
}
.nav-link:hover::after {
width: 100%;
}
.dropdown:hover .dropdown-menu {
display: block;
}
.cart-item-enter {
opacity: 0;
transform: translateX(-100px);
}
.cart-item-enter-active {
opacity: 1;
transform: translateX(0);
transition: all 300ms ease-in;
}
.cart-item-exit {
opacity: 1;
transform: translateX(0);
}
.cart-item-exit-active {
opacity: 0;
transform: translateX(100px);
transition: all 300ms ease-in;
}
</style>
</head>
<body>
<div id="root"></div>
<script type="text/babel">
const { useState, useEffect } = React;
// App Component
function App() {
const [currentPage, setCurrentPage] = useState('home');
const [cartItems, setCartItems] = useState([]);
const [isCartOpen, setIsCartOpen] = useState(false);
const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false);
const [searchQuery, setSearchQuery] = useState('');
// Sample products data
const products = [
{ id: 1, name: 'Elegant Evening Dress', price: 129.99, category: 'dresses', image: 'https://images.unsplash.com/photo-1539109136881-3be0616acf4b?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=687&q=80', featured: true },
{ id: 2, name: 'Classic Denim Jacket', price: 89.99, category: 'jackets', image: 'https://images.unsplash.com/photo-1591047139829-d91aecb6caea?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=736&q=80', featured: true },
{ id: 3, name: 'Casual Summer T-Shirt', price: 29.99, category: 'tops', image: 'https://images.unsplash.com/photo-1527719327859-c6ce80353573?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=684&q=80' },
{ id: 4, name: 'Slim Fit Jeans', price: 59.99, category: 'pants', image: 'https://images.unsplash.com/photo-1473966968600-fa801b869a1a?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=687&q=80' },
{ id: 5, name: 'Leather Crossbody Bag', price: 79.99, category: 'accessories', image: 'https://images.unsplash.com/photo-1590874103328-eac38a683ce7?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=738&q=80', featured: true },
{ id: 6, name: 'Comfy Sneakers', price: 99.99, category: 'shoes', image: 'https://images.unsplash.com/photo-1600269452121-1f5d1415f5b1?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=715&q=80' },
{ id: 7, name: 'Silk Blouse', price: 49.99, category: 'tops', image: 'https://images.unsplash.com/photo-1581044777550-4cfa60707c03?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=686&q=80' },
{ id: 8, name: 'Wool Winter Coat', price: 199.99, category: 'jackets', image: 'https://images.unsplash.com/photo-1551232864-3f0890e580d9?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=687&q=80' },
];
const featuredProducts = products.filter(product => product.featured);
// Add to cart function
const addToCart = (product) => {
setCartItems(prevItems => {
const existingItem = prevItems.find(item => item.id === product.id);
if (existingItem) {
return prevItems.map(item =>
item.id === product.id ? { ...item, quantity: item.quantity + 1 } : item
);
}
return [...prevItems, { ...product, quantity: 1 }];
});
};
// Remove from cart function
const removeFromCart = (productId) => {
setCartItems(prevItems => prevItems.filter(item => item.id !== productId));
};
// Update quantity function
const updateQuantity = (productId, newQuantity) => {
if (newQuantity < 1) return;
setCartItems(prevItems =>
prevItems.map(item =>
item.id === productId ? { ...item, quantity: newQuantity } : item
)
);
};
// Calculate total
const cartTotal = cartItems.reduce(
(total, item) => total + item.price * item.quantity,
0
);
// Filter products based on search query
const filteredProducts = products.filter(product =>
product.name.toLowerCase().includes(searchQuery.toLowerCase())
);
// Render page based on currentPage state
const renderPage = () => {
switch (currentPage) {
case 'home':
return <HomePage products={featuredProducts} addToCart={addToCart} />;
case 'shop':
return <ShopPage products={filteredProducts} addToCart={addToCart} searchQuery={searchQuery} setSearchQuery={setSearchQuery} />;
case 'about':
return <AboutPage />;
case 'contact':
return <ContactPage />;
case 'cart':
return <CartPage cartItems={cartItems} removeFromCart={removeFromCart} updateQuantity={updateQuantity} cartTotal={cartTotal} />;
default:
return <HomePage products={featuredProducts} addToCart={addToCart} />;
}
};
return (
<div className="min-h-screen flex flex-col">
{/* Navigation */}
<Navigation
currentPage={currentPage}
setCurrentPage={setCurrentPage}
cartItems={cartItems}
setIsCartOpen={setIsCartOpen}
isMobileMenuOpen={isMobileMenuOpen}
setIsMobileMenuOpen={setIsMobileMenuOpen}
/>
{/* Main Content */}
<main className="flex-grow">
{renderPage()}
</main>
{/* Footer */}
<Footer setCurrentPage={setCurrentPage} />
{/* Shopping Cart Sidebar */}
{isCartOpen && (
<CartSidebar
cartItems={cartItems}
removeFromCart={removeFromCart}
updateQuantity={updateQuantity}
cartTotal={cartTotal}
setIsCartOpen={setIsCartOpen}
setCurrentPage={setCurrentPage}
/>
)}
</div>
);
}
// Navigation Component
function Navigation({ currentPage, setCurrentPage, cartItems, setIsCartOpen, isMobileMenuOpen, setIsMobileMenuOpen }) {
const cartItemCount = cartItems.reduce((total, item) => total + item.quantity, 0);
return (
<header className="bg-white shadow-sm sticky top-0 z-50">
<div className="container mx-auto px-4 py-4">
<div className="flex justify-between items-center">
{/* Logo */}
<div className="flex items-center">
<button
onClick={() => setCurrentPage('home')}
className="text-2xl font-bold title-font text-gray-900 hover:text-rose-500 transition-colors"
>
VOGUE
</button>
</div>
{/* Desktop Navigation */}
<nav className="hidden md:flex space-x-8">
<button
onClick={() => setCurrentPage('home')}
className={`nav-link py-2 px-1 font-medium ${currentPage === 'home' ? 'text-rose-500' : 'text-gray-700 hover:text-gray-900'}`}
>
Home
</button>
<div className="dropdown relative">
<button
className={`nav-link py-2 px-1 font-medium ${currentPage === 'shop' ? 'text-rose-500' : 'text-gray-700 hover:text-gray-900'}`}
>
Shop
</button>
<div className="dropdown-menu absolute hidden mt-2 w-48 bg-white rounded-md shadow-lg py-1 z-50">
<button
onClick={() => setCurrentPage('shop')}
className="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 w-full text-left"
>
All Products
</button>
<button className="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 w-full text-left">
New Arrivals
</button>
<button className="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 w-full text-left">
Best Sellers
</button>
</div>
</div>
<button
onClick={() => setCurrentPage('about')}
className={`nav-link py-2 px-1 font-medium ${currentPage === 'about' ? 'text-rose-500' : 'text-gray-700 hover:text-gray-900'}`}
>
About
</button>
<button
onClick={() => setCurrentPage('contact')}
className={`nav-link py-2 px-1 font-medium ${currentPage === 'contact' ? 'text-rose-500' : 'text-gray-700 hover:text-gray-900'}`}
>
Contact
</button>
</nav>
{/* Mobile Menu Button */}
<div className="md:hidden flex items-center">
<button
onClick={() => setIsCartOpen(true)}
className="p-2 text-gray-700 hover:text-rose-500 relative"
>
<i className="fas fa-shopping-bag text-xl"></i>
{cartItemCount > 0 && (
<span className="absolute -top-1 -right-1 bg-rose-500 text-white text-xs font-bold rounded-full h-5 w-5 flex items-center justify-center">
{cartItemCount}
</span>
)}
</button>
<button
onClick={() => setIsMobileMenuOpen(!isMobileMenuOpen)}
className="p-2 text-gray-700 hover:text-rose-500 ml-2"
>
<i className={`fas ${isMobileMenuOpen ? 'fa-times' : 'fa-bars'} text-xl`}></i>
</button>
</div>
{/* Desktop Icons */}
<div className="hidden md:flex items-center space-x-4">
<button className="p-2 text-gray-700 hover:text-rose-500">
<i className="fas fa-search text-xl"></i>
</button>
<button className="p-2 text-gray-700 hover:text-rose-500">
<i className="fas fa-user text-xl"></i>
</button>
<button
onClick={() => setIsCartOpen(true)}
className="p-2 text-gray-700 hover:text-rose-500 relative"
>
<i className="fas fa-shopping-bag text-xl"></i>
{cartItemCount > 0 && (
<span className="absolute -top-1 -right-1 bg-rose-500 text-white text-xs font-bold rounded-full h-5 w-5 flex items-center justify-center">
{cartItemCount}
</span>
)}
</button>
</div>
</div>
{/* Mobile Menu */}
{isMobileMenuOpen && (
<div className="md:hidden mt-4 pb-4">
<div className="flex flex-col space-y-2">
<button
onClick={() => {
setCurrentPage('home');
setIsMobileMenuOpen(false);
}}
className={`py-2 px-4 font-medium ${currentPage === 'home' ? 'text-rose-500' : 'text-gray-700'}`}
>
Home
</button>
<button
onClick={() => {
setCurrentPage('shop');
setIsMobileMenuOpen(false);
}}
className={`py-2 px-4 font-medium ${currentPage === 'shop' ? 'text-rose-500' : 'text-gray-700'}`}
>
Shop
</button>
<button
onClick={() => {
setCurrentPage('about');
setIsMobileMenuOpen(false);
}}
className={`py-2 px-4 font-medium ${currentPage === 'about' ? 'text-rose-500' : 'text-gray-700'}`}
>
About
</button>
<button
onClick={() => {
setCurrentPage('contact');
setIsMobileMenuOpen(false);
}}
className={`py-2 px-4 font-medium ${currentPage === 'contact' ? 'text-rose-500' : 'text-gray-700'}`}
>
Contact
</button>
</div>
</div>
)}
</div>
</header>
);
}
// Home Page Component
function HomePage({ products, addToCart }) {
return (
<div>
{/* Hero Section */}
<section className="relative h-screen flex items-center justify-center bg-gray-900 overflow-hidden">
<div className="absolute inset-0 hero-gradient"></div>
<div className="absolute inset-0 bg-[url('https://images.unsplash.com/photo-1483985988355-763728e1935b?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80')] bg-cover bg-center opacity-30"></div>
<div className="container mx-auto px-4 relative z-10 text-center">
<h1 className="text-4xl md:text-6xl lg:text-7xl font-bold text-white title-font mb-6">
Discover Your Style
</h1>
<p className="text-xl md:text-2xl text-gray-200 mb-8 max-w-3xl mx-auto">
Elevate your wardrobe with our latest collection of trendy and timeless fashion pieces.
</p>
<button
onClick={() => {}}
className="bg-rose-500 hover:bg-rose-600 text-white font-bold py-3 px-8 rounded-full text-lg transition-colors shadow-lg"
>
Shop Now
</button>
</div>
<div className="absolute bottom-10 left-0 right-0 flex justify-center">
<a href="#featured" className="text-white animate-bounce">
<i className="fas fa-chevron-down text-2xl"></i>
</a>
</div>
</section>
{/* Featured Products */}
<section id="featured" className="py-16 bg-white">
<div className="container mx-auto px-4">
<div className="text-center mb-12">
<h2 className="text-3xl md:text-4xl font-bold text-gray-900 title-font mb-4">
Featured Collection
</h2>
<p className="text-gray-600 max-w-2xl mx-auto">
Our carefully curated selection of this season's must-have pieces
</p>
</div>
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
{products.map(product => (
<ProductCard
key={product.id}
product={product}
addToCart={addToCart}
/>
))}
</div>
<div className="text-center mt-12">
<button
onClick={() => {}}
className="border-2 border-gray-900 hover:bg-gray-900 hover:text-white text-gray-900 font-bold py-3 px-8 rounded-full text-lg transition-colors"
>
View All Products
</button>
</div>
</div>
</section>
{/* Banner Section */}
<section className="py-16 bg-gray-100">
<div className="container mx-auto px-4">
<div className="bg-white rounded-xl shadow-lg overflow-hidden">
<div className="md:flex">
<div className="md:w-1/2 p-12 flex flex-col justify-center">
<h2 className="text-3xl font-bold text-gray-900 title-font mb-4">
Summer Sale
</h2>
<p className="text-gray-600 mb-6">
Up to 50% off on selected items. Limited time offer. Don't miss out!
</p>
<button
onClick={() => {}}
className="bg-gray-900 hover:bg-rose-500 text-white font-bold py-3 px-8 rounded-full text-lg transition-colors self-start"
>
Shop Sale
</button>
</div>
<div className="md:w-1/2">
<img
src="https://images.unsplash.com/photo-1551232864-3f0890e580d9?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=687&q=80"
alt="Summer Sale"
className="w-full h-full object-cover"
/>
</div>
</div>
</div>
</div>
</section>
{/* Categories Section */}
<section className="py-16 bg-white">
<div className="container mx-auto px-4">
<div className="text-center mb-12">
<h2 className="text-3xl md:text-4xl font-bold text-gray-900 title-font mb-4">
Shop by Category
</h2>
<p className="text-gray-600 max-w-2xl mx-auto">
Find your perfect style in our diverse range of categories
</p>
</div>
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6">
<CategoryCard
title="Dresses"
image="https://images.unsplash.com/photo-1539109136881-3be0616acf4b?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=687&q=80"
/>
<CategoryCard
title="Tops"
image="https://images.unsplash.com/photo-1527719327859-c6ce80353573?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=684&q=80"
/>
<CategoryCard
title="Jackets"
image="https://images.unsplash.com/photo-1591047139829-d91aecb6caea?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=736&q=80"
/>
<CategoryCard
title="Accessories"
image="https://images.unsplash.com/photo-1590874103328-eac38a683ce7?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=738&q=80"
/>
</div>
</div>
</section>
{/* Testimonials */}
<section className="py-16 bg-gray-100">
<div className="container mx-auto px-4">
<div className="text-center mb-12">
<h2 className="text-3xl md:text-4xl font-bold text-gray-900 title-font mb-4">
What Our Customers Say
</h2>
<p className="text-gray-600 max-w-2xl mx-auto">
Don't just take our word for it - hear from our satisfied customers
</p>
</div>
<div className="grid grid-cols-1 md:grid-cols-3 gap-8">
<TestimonialCard
quote="The quality of the dress I purchased exceeded my expectations. It's now my favorite piece in my wardrobe!"
author="Sarah Johnson"
role="Fashion Blogger"
/>
<TestimonialCard
quote="Fast shipping and excellent customer service. I'll definitely be shopping here again."
author="Michael Chen"
role="Stylist"
/>
<TestimonialCard
quote="I love the unique designs and attention to detail. These pieces always get me compliments!"
author="Emma Rodriguez"
role="Influencer"
/>
</div>
</div>
</section>
{/* Newsletter */}
<section className="py-16 bg-gray-900 text-white">
<div className="container mx-auto px-4">
<div className="max-w-4xl mx-auto text-center">
<h2 className="text-3xl md:text-4xl font-bold title-font mb-4">
Join Our Newsletter
</h2>
<p className="text-gray-300 mb-8 max-w-2xl mx-auto">
Subscribe to get exclusive offers, styling tips, and early access to new collections
</p>
<div className="flex flex-col sm:flex-row gap-4 max-w-md mx-auto">
<input
type="email"
placeholder="Your email address"
className="flex-grow px-4 py-3 rounded-full text-gray-900 focus:outline-none focus:ring-2 focus:ring-rose-500"
/>
<button className="bg-rose-500 hover:bg-rose-600 font-bold py-3 px-6 rounded-full transition-colors">
Subscribe
</button>
</div>
</div>
</div>
</section>
</div>
);
}
// Shop Page Component
function ShopPage({ products, addToCart, searchQuery, setSearchQuery }) {
const [selectedCategory, setSelectedCategory] = useState('all');
const categories = [
{ id: 'all', name: 'All Products' },
{ id: 'dresses', name: 'Dresses' },
{ id: 'tops', name: 'Tops' },
{ id: 'jackets', name: 'Jackets' },
{ id: 'pants', name: 'Pants' },
{ id: 'shoes', name: 'Shoes' },
{ id: 'accessories', name: 'Accessories' },
];
const filteredProducts = selectedCategory === 'all'
? products
: products.filter(product => product.category === selectedCategory);
return (
<div className="py-12 bg-white">
<div className="container mx-auto px-4">
<div className="flex flex-col md:flex-row justify-between items-start md:items-center mb-8">
<h1 className="text-3xl md:text-4xl font-bold text-gray-900 title-font mb-4 md:mb-0">
Our Collection
</h1>
<div className="w-full md:w-auto">
<div className="relative">
<input
type="text"
placeholder="Search products..."
value={searchQuery}
onChange={(e) => setSearchQuery(e.target.value)}
className="w-full md:w-64 px-4 py-2 border border-gray-300 rounded-full focus:outline-none focus:ring-2 focus:ring-rose-500 focus:border-transparent"
/>
<i className="fas fa-search absolute right-3 top-3 text-gray-400"></i>
</div>
</div>
</div>
<div className="flex flex-col md:flex-row gap-8">
{/* Filters */}
<div className="md:w-1/4">
<div className="bg-gray-50 p-6 rounded-lg shadow-sm">
<h3 className="font-bold text-lg text-gray-900 mb-4">Categories</h3>
<ul className="space-y-2">
{categories.map(category => (
<li key={category.id}>
<button
onClick={() => setSelectedCategory(category.id)}
className={`w-full text-left px-3 py-2 rounded-md ${selectedCategory === category.id ? 'bg-rose-100 text-rose-600' : 'text-gray-700 hover:bg-gray-100'}`}
>
{category.name}
</button>
</li>
))}
</ul>
<h3 className="font-bold text-lg text-gray-900 mt-6 mb-4">Price</h3>
<div className="space-y-4">
<div className="flex items-center">
<input type="checkbox" id="price1" className="h-4 w-4 text-rose-500 focus:ring-rose-500 border-gray-300 rounded" />
<label htmlFor="price1" className="ml-2 text-gray-700">$0 - $50</label>
</div>
<div className="flex items-center">
<input type="checkbox" id="price2" className="h-4 w-4 text-rose-500 focus:ring-rose-500 border-gray-300 rounded" />
<label htmlFor="price2" className="ml-2 text-gray-700">$50 - $100</label>
</div>
<div className="flex items-center">
<input type="checkbox" id="price3" className="h-4 w-4 text-rose-500 focus:ring-rose-500 border-gray-300 rounded" />
<label htmlFor="price3" className="ml-2 text-gray-700">$100+</label>
</div>
</div>
<h3 className="font-bold text-lg text-gray-900 mt-6 mb-4">Size</h3>
<div className="grid grid-cols-3 gap-2">
{['XS', 'S', 'M', 'L', 'XL', 'XXL'].map(size => (
<button
key={size}
className="border border-gray-300 hover:border-rose-500 hover:text-rose-500 text-gray-700 py-1 px-3 rounded-md text-center"
>
{size}
</button>
))}
</div>
<button className="mt-6 w-full bg-rose-500 hover:bg-rose-600 text-white font-bold py-2 px-4 rounded-md transition-colors">
Apply Filters
</button>
</div>
</div>
{/* Products */}
<div className="md:w-3/4">
<div className="flex justify-between items-center mb-6">
<p className="text-gray-600">
Showing {filteredProducts.length} products
</p>
<div className="flex items-center">
<span className="text-gray-600 mr-2">Sort by:</span>
<select className="border border-gray-300 rounded-md px-3 py-1 focus:outline-none focus:ring-2 focus:ring-rose-500 focus:border-transparent">
<option>Featured</option>
<option>Price: Low to High</option>
<option>Price: High to Low</option>
<option>Newest</option>
<option>Best Selling</option>
</select>
</div>
</div>
{filteredProducts.length > 0 ? (
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6">
{filteredProducts.map(product => (
<ProductCard
key={product.id}
product={product}
addToCart={addToCart}
/>
))}
</div>
) : (
<div className="text-center py-12">
<i className="fas fa-search text-5xl text-gray-300 mb-4"></i>
<h3 className="text-xl font-bold text-gray-700 mb-2">No products found</h3>
<p className="text-gray-500">Try adjusting your search or filter criteria</p>
</div>
)}
{/* Pagination */}
{filteredProducts.length > 0 && (
<div className="mt-12 flex justify-center">
<nav className="flex items-center space-x-2">
<button className="px-3 py-1 rounded-md border border-gray-300 text-gray-500 hover:bg-gray-100">
<i className="fas fa-chevron-left"></i>
</button>
<button className="px-3 py-1 rounded-md bg-rose-500 text-white">1</button>
<button className="px-3 py-1 rounded-md border border-gray-300 text-gray-700 hover:bg-gray-100">2</button>
<button className="px-3 py-1 rounded-md border border-gray-300 text-gray-700 hover:bg-gray-100">3</button>
<span className="px-2 text-gray-500">...</span>
<button className="px-3 py-1 rounded-md border border-gray-300 text-gray-700 hover:bg-gray-100">8</button>
<button className="px-3 py-1 rounded-md border border-gray-300 text-gray-500 hover:bg-gray-100">
<i className="fas fa-chevron-right"></i>
</button>
</nav>
</div>
)}
</div>
</div>
</div>
</div>
);
}
// About Page Component
function AboutPage() {
return (
<div className="py-16 bg-white">
<div className="container mx-auto px-4">
<div className="text-center mb-12">
<h1 className="text-3xl md:text-4xl font-bold text-gray-900 title-font mb-4">
Our Story
</h1>
<p className="text-gray-600 max-w-3xl mx-auto">
Discover the passion and dedication behind our brand
</p>
</div>
<div className="flex flex-col lg:flex-row gap-12 items-center mb-16">
<div className="lg:w-1/2">
<img
src="https://images.unsplash.com/photo-1607082348824-0a96f2a4b9da?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80"
alt="Our Team"
className="w-full h-auto rounded-lg shadow-lg"
/>
</div>
<div className="lg:w-1/2">
<h2 className="text-2xl font-bold text-gray-900 mb-6">Who We Are</h2>
<p className="text-gray-600 mb-4">
Founded in 2015, VOGUE began as a small boutique with a big vision: to bring high-quality,
fashion-forward clothing to everyone. Our founder, Alexandra Bennett, started with just
a handful of designs and a passion for sustainable fashion.
</p>
<p className="text-gray-600 mb-4">
Today, we've grown into a global brand with a commitment to ethical production,
timeless designs, and exceptional customer service. Each piece in our collection
is carefully crafted with attention to detail and a focus on sustainability.
</p>
<p className="text-gray-600">
We believe fashion should be both beautiful and responsible, which is why we work
with certified factories and use eco-friendly materials whenever possible.
</p>
</div>
</div>
<div className="flex flex-col lg:flex-row-reverse gap-12 items-center mb-16">
<div className="lg:w-1/2">
<img
src="https://images.unsplash.com/photo-1521747116042-5a810fda9664?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80"
alt="Our Process"
className="w-full h-auto rounded-lg shadow-lg"
/>
</div>
<div className="lg:w-1/2">
<h2 className="text-2xl font-bold text-gray-900 mb-6">Our Process</h2>
<p className="text-gray-600 mb-4">
Every VOGUE piece begins with inspiration from global trends, art, and architecture.
Our design team sketches hundreds of concepts before selecting the best to develop
into prototypes.
</p>
<p className="text-gray-600 mb-4">
We work with skilled artisans who bring decades of experience to ensure each garment
meets our high standards. From fabric selection to final stitching, every step is
meticulously overseen by our quality control team.
</p>
<p className="text-gray-600">
Our commitment to slow fashion means we produce in small batches to minimize waste
and ensure each piece receives the attention it deserves.
</p>
</div>
</div>
<div className="bg-gray-100 rounded-xl p-8 md:p-12 mb-16">
<h2 className="text-2xl font-bold text-gray-900 mb-6 text-center">Our Values</h2>
<div className="grid grid-cols-1 md:grid-cols-3 gap-8">
<ValueCard
icon="fas fa-leaf"
title="Sustainability"
description="We prioritize eco-friendly materials and ethical production methods to minimize our environmental impact."
/>
<ValueCard
icon="fas fa-star"
title="Quality"
description="Every piece is crafted with premium materials and exceptional attention to detail for lasting wear."
/>
<ValueCard
icon="fas fa-heart"
title="Community"
description="We support local artisans and give back to organizations that empower women in the fashion industry."
/>
</div>
</div>
<div className="text-center">
<h2 className="text-2xl font-bold text-gray-900 mb-6">Meet The Team</h2>
<p className="text-gray-600 max-w-3xl mx-auto mb-8">
Our talented team of designers, stylists, and customer service professionals are
dedicated to bringing you the best fashion experience.
</p>
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-8">
<TeamMember
name="Alexandra Bennett"
role="Founder & CEO"
image="https://images.unsplash.com/photo-1573496359142-b8d87734a5cd?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=688&q=80"
/>
<TeamMember
name="Marcus Chen"
role="Creative Director"
image="https://images.unsplash.com/photo-1560250097-0b93528c311a?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=687&q=80"
/>
<TeamMember
name="Sophia Rodriguez"
role="Head Designer"
image="https://images.unsplash.com/photo-1580489944761-15a19d654956?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=761&q=80"
/>
<TeamMember
name="James Wilson"
role="Customer Experience"
image="https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=687&q=80"
/>
</div>
</div>
</div>
</div>
);
}
// Contact Page Component
function ContactPage() {
const [formData, setFormData] = useState({
name: '',
email: '',
subject: '',
message: ''
});
const handleChange = (e) => {
const { name, value } = e.target;
setFormData(prev => ({
...prev,
[name]: value
}));
};
const handleSubmit = (e) => {
e.preventDefault();
alert('Thank you for your message! We will get back to you soon.');
setFormData({
name: '',
email: '',
subject: '',
message: ''
});
};
return (
<div className="py-16 bg-white">
<div className="container mx-auto px-4">
<div className="text-center mb-12">
<h1 className="text-3xl md:text-4xl font-bold text-gray-900 title-font mb-4">
Get In Touch
</h1>
<p className="text-gray-600 max-w-3xl mx-auto">
Have questions or feedback? We'd love to hear from you!
</p>
</div>
<div className="flex flex-col lg:flex-row gap-12">
<div className="lg:w-1/2">
<div className="bg-gray-50 p-8 rounded-lg shadow-sm">
<h2 className="text-2xl font-bold text-gray-900 mb-6">Send Us a Message</h2>
<form onSubmit={handleSubmit}>
<div className="mb-4">
<label htmlFor="name" className="block text-gray-700 font-medium mb-2">Name</label>
<input
type="text"
id="name"
name="name"
value={formData.name}
onChange={handleChange}
className="w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-rose-500 focus:border-transparent"
required
/>
</div>
<div className="mb-4">
<label htmlFor="email" className="block text-gray-700 font-medium mb-2">Email</label>
<input
type="email"
id="email"
name="email"
value={formData.email}
onChange={handleChange}
className="w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-rose-500 focus:border-transparent"
required
/>
</div>
<div className="mb-4">
<label htmlFor="subject" className="block text-gray-700 font-medium mb-2">Subject</label>
<input
type="text"
id="subject"
name="subject"
value={formData.subject}
onChange={handleChange}
className="w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-rose-500 focus:border-transparent"
required
/>
</div>
<div className="mb-6">
<label htmlFor="message" className="block text-gray-700 font-medium mb-2">Message</label>
<textarea
id="message"
name="message"
rows="5"
value={formData.message}
onChange={handleChange}
className="w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-rose-500 focus:border-transparent"
required
></textarea>
</div>
<button
type="submit"
className="w-full bg-rose-500 hover:bg-rose-600 text-white font-bold py-3 px-4 rounded-md transition-colors"
>
Send Message
</button>
</form>
</div>
</div>
<div className="lg:w-1/2">
<div className="bg-gray-50 p-8 rounded-lg shadow-sm h-full">
<h2 className="text-2xl font-bold text-gray-900 mb-6">Contact Information</h2>
<div className="space-y-6">
<div className="flex items-start">
<div className="bg-rose-100 p-3 rounded-full mr-4">
<i className="fas fa-map-marker-alt text-rose-500"></i>
</div>
<div>
<h3 className="font-bold text-gray-900 mb-1">Our Location</h3>
<p className="text-gray-600">123 Fashion Avenue, Suite 456<br />New York, NY 10001</p>
</div>
</div>
<div className="flex items-start">
<div className="bg-rose-100 p-3 rounded-full mr-4">
<i className="fas fa-phone-alt text-rose-500"></i>
</div>
<div>
<h3 className="font-bold text-gray-900 mb-1">Phone</h3>
<p className="text-gray-600">+1 (555) 123-4567<br />Mon-Fri, 9am-6pm EST</p>
</div>
</div>
<div className="flex items-start">
<div className="bg-rose-100 p-3 rounded-full mr-4">
<i className="fas fa-envelope text-rose-500"></i>
</div>
<div>
<h3 className="font-bold text-gray-900 mb-1">Email</h3>
<p className="text-gray-600">hello@voguefashion.com<br />support@voguefashion.com</p>
</div>
</div>
</div>
<div className="mt-8">
<h3 className="font-bold text-gray-900 mb-4">Follow Us</h3>
<div className="flex space-x-4">
<a href="#" className="bg-gray-200 hover:bg-rose-500 hover:text-white text-gray-700 p-3 rounded-full transition-colors">
<i className="fab fa-facebook-f"></i>
</a>
<a href="#" className="bg-gray-200 hover:bg-rose-500 hover:text-white text-gray-700 p-3 rounded-full transition-colors">
<i className="fab fa-twitter"></i>
</a>
<a href="#" className="bg-gray-200 hover:bg-rose-500 hover:text-white text-gray-700 p-3 rounded-full transition-colors">
<i className="fab fa-instagram"></i>
</a>
<a href="#" className="bg-gray-200 hover:bg-rose-500 hover:text-white text-gray-700 p-3 rounded-full transition-colors">
<i className="fab fa-pinterest-p"></i>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
);
}
// Cart Page Component
function CartPage({ cartItems, removeFromCart, updateQuantity, cartTotal }) {
return (
<div className="py-16 bg-white">
<div className="container mx-auto px-4">
<h1 className="text-3xl md:text-4xl font-bold text-gray-900 title-font mb-8">
Your Shopping Cart
</h1>
{cartItems.length > 0 ? (
<div className="flex flex-col lg:flex-row gap-8">
<div className="lg:w-2/3">
<div className="bg-gray-50 rounded-lg shadow-sm overflow-hidden">
<div className="hidden md:grid grid-cols-12 bg-gray-100 p-4 font-bold text-gray-700">
<div className="col-span-5">Product</div>
<div className="col-span-2 text-center">Price</div>
<div className="col-span-3 text-center">Quantity</div>
<div className="col-span-2 text-right">Total</div>
</div>
<div className="divide-y divide-gray-200">
{cartItems.map(item => (
<div key={item.id} className="grid grid-cols-1 md:grid-cols-12 p-4 items-center">
<div className="col-span-5 flex items-center mb-4 md:mb-0">
<img
src={item.image}
alt={item.name}
className="w-20 h-20 object-cover rounded-md mr-4"
/>
<div>
<h3 className="font-medium text-gray-900">{item.name}</h3>
<button
onClick={() => removeFromCart(item.id)}
className="text-rose-500 hover:text-rose-700 text-sm mt-1"
>
Remove
</button>
</div>
</div>
<div className="col-span-2 text-center text-gray-700 mb-4 md:mb-0">
${item.price.toFixed(2)}
</div>
<div className="col-span-3 flex justify-center mb-4 md:mb-0">
<div className="flex items-center border border-gray-300 rounded-md">
<button
onClick={() => updateQuantity(item.id, item.quantity - 1)}
className="px-3 py-1 text-gray-600 hover:bg-gray-100"
>
-
</button>
<input
type="number"
value={item.quantity}
onChange={(e) => updateQuantity(item.id, parseInt(e.target.value))}
className="w-12 text-center border-0 focus:ring-0"
min="1"
/>
<button
onClick={() => updateQuantity(item.id, item.quantity + 1)}
className="px-3 py-1 text-gray-600 hover:bg-gray-100"
>
+
</button>
</div>
</div>
<div className="col-span-2 text-right font-medium text-gray-900">
${(item.price * item.quantity).toFixed(2)}
</div>
</div>
))}
</div>
</div>
<div className="mt-6 flex justify-between items-center">
<button className="text-gray-600 hover:text-rose-500 font-medium">
<i className="fas fa-arrow-left mr-2"></i> Continue Shopping
</button>
<button className="text-gray-600 hover:text-rose-500 font-medium">
Update Cart
</button>
</div>
</div>
<div className="lg:w-1/3">
<div className="bg-gray-50 p-6 rounded-lg shadow-sm">
<h2 className="text-xl font-bold text-gray-900 mb-6">Order Summary</h2>
<div className="space-y-4 mb-6">
<div className="flex justify-between">
<span className="text-gray-600">Subtotal</span>
<span className="text-gray-900 font-medium">${cartTotal.toFixed(2)}</span>
</div>
<div className="flex justify-between">
<span className="text-gray-600">Shipping</span>
<span className="text-gray-900 font-medium">$5.99</span>
</div>
<div className="flex justify-between">
<span className="text-gray-600">Tax</span>
<span className="text-gray-900 font-medium">${(cartTotal * 0.08).toFixed(2)}</span>
</div>
<div className="border-t border-gray-200 pt-4 flex justify-between">
<span className="text-lg font-bold text-gray-900">Total</span>
<span className="text-lg font-bold text-gray-900">
${(cartTotal + 5.99 + (cartTotal * 0.08)).toFixed(2)}
</span>
</div>
</div>
<button className="w-full bg-rose-500 hover:bg-rose-600 text-white font-bold py-3 px-4 rounded-md transition-colors mb-4">
Proceed to Checkout
</button>
<div className="text-center text-sm text-gray-500">
<p>or</p>
<button className="mt-2 text-rose-500 hover:text-rose-700 font-medium">
Check out with PayPal
</button>
</div>
<div className="mt-6">
<h3 className="font-bold text-gray-900 mb-2">Promo Code</h3>
<div className="flex">
<input
type="text"
placeholder="Enter promo code"
className="flex-grow px-4 py-2 border border-gray-300 rounded-l-md focus:outline-none focus:ring-2 focus:ring-rose-500 focus:border-transparent"
/>
<button className="bg-gray-900 hover:bg-rose-500 text-white px-4 py-2 rounded-r-md transition-colors">
Apply
</button>
</div>
</div>
</div>
</div>
</div>
) : (
<div className="text-center py-12">
<i className="fas fa-shopping-bag text-5xl text-gray-300 mb-4"></i>
<h3 className="text-xl font-bold text-gray-700 mb-2">Your cart is empty</h3>
<p className="text-gray-500 mb-6">Looks like you haven't added anything to your cart yet</p>
<button className="bg-rose-500 hover:bg-rose-600 text-white font-bold py-3 px-8 rounded-full text-lg transition-colors">
Continue Shopping
</button>
</div>
)}
</div>
</div>
);
}
// Cart Sidebar Component
function CartSidebar({ cartItems, removeFromCart, updateQuantity, cartTotal, setIsCartOpen, setCurrentPage }) {
const cartItemCount = cartItems.reduce((total, item) => total + item.quantity, 0);
return (
<div className="fixed inset-0 z-50 overflow-hidden">
<div className="absolute inset-0 bg-gray-500 bg-opacity-75 transition-opacity" onClick={() => setIsCartOpen(false)}></div>
<div className="fixed inset-y-0 right-0 max-w-full flex">
<div className="w-screen max-w-md">
<div className="h-full flex flex-col bg-white shadow-xl">
<div className="flex-1 py-6 overflow-y-auto px-4 sm:px-6">
<div className="flex items-start justify-between">
<h2 className="text-lg font-medium text-gray-900">Shopping cart</h2>
<button
onClick={() => setIsCartOpen(false)}
className="p-2 text-gray-400 hover:text-gray-500"
>
<i className="fas fa-times text-xl"></i>
</button>
</div>
<div className="mt-8">
<div className="flow-root">
{cartItemCount > 0 ? (
<ul className="-my-6 divide-y divide-gray-200">
{cartItems.map(item => (
<li key={item.id} className="py-6 flex">
<div className="flex-shrink-0 w-24 h-24 border border-gray-200 rounded-md overflow-hidden">
<img
src={item.image}
alt={item.name}
className="w-full h-full object-cover object-center"
/>
</div>
<div className="ml-4 flex-1 flex flex-col">
<div>
<div className="flex justify-between text-base font-medium text-gray-900">
<h3>{item.name}</h3>
<p className="ml-4">${(item.price * item.quantity).toFixed(2)}</p>
</div>
</div>
<div className="flex-1 flex items-end justify-between text-sm">
<div className="flex items-center border border-gray-300 rounded-md">
<button
onClick={() => updateQuantity(item.id, item.quantity - 1)}
className="px-2 py-1 text-gray-600 hover:bg-gray-100"
>
-
</button>
<span className="px-2">{item.quantity}</span>
<button
onClick={() => updateQuantity(item.id, item.quantity + 1)}
className="px-2 py-1 text-gray-600 hover:bg-gray-100"
>
+
</button>
</div>
<button
onClick={() => removeFromCart(item.id)}
className="font-medium text-rose-500 hover:text-rose-700"
>
Remove
</button>
</div>
</div>
</li>
))}
</ul>
) : (
<div className="text-center py-12">
<i className="fas fa-shopping-bag text-4xl text-gray-300 mb-4"></i>
<h3 className="text-lg font-medium text-gray-700 mb-2">Your cart is empty</h3>
<p className="text-gray-500">Start adding some items to your cart</p>
</div>
)}
</div>
</div>
</div>
{cartItemCount > 0 && (
<div className="border-t border-gray-200 py-6 px-4 sm:px-6">
<div className="flex justify-between text-base font-medium text-gray-900 mb-4">
<p>Subtotal</p>
<p>${cartTotal.toFixed(2)}</p>
</div>
<p className="mt-0.5 text-sm text-gray-500 mb-6">
Shipping and taxes calculated at checkout.
</p>
<button
onClick={() => {
setIsCartOpen(false);
setCurrentPage('cart');
}}
className="w-full bg-rose-500 hover:bg-rose-600 text-white font-bold py-3 px-4 rounded-md transition-colors mb-4"
>
Checkout
</button>
<div className="flex justify-center text-sm text-gray-500">
<p>
or{' '}
<button
onClick={() => setIsCartOpen(false)}
className="text-rose-500 hover:text-rose-700 font-medium"
>
Continue Shopping
</button>
</p>
</div>
</div>
)}
</div>
</div>
</div>
</div>
);
}
// Footer Component
function Footer({ setCurrentPage }) {
return (
<footer className="bg-gray-900 text-white pt-16 pb-8">
<div className="container mx-auto px-4">
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8 mb-12">
<div>
<h3 className="text-xl font-bold title-font mb-4">VOGUE</h3>
<p className="text-gray-400 mb-4">
Elevating your style with timeless fashion pieces since 2015.
</p>
<div className="flex space-x-4">
<a href="#" className="text-gray-400 hover:text-white transition-colors">
<i className="fab fa-facebook-f"></i>
</a>
<a href="#" className="text-gray-400 hover:text-white transition-colors">
<i className="fab fa-twitter"></i>
</a>
<a href="#" className="text-gray-400 hover:text-white transition-colors">
<i className="fab fa-instagram"></i>
</a>
<a href="#" className="text-gray-400 hover:text-white transition-colors">
<i className="fab fa-pinterest-p"></i>
</a>
</div>
</div>
<div>
<h4 className="text-lg font-bold mb-4">Shop</h4>
<ul className="space-y-2">
<li>
<button
onClick={() => setCurrentPage('shop')}
className="text-gray-400 hover:text-white transition-colors"
>
All Products
</button>
</li>
<li>
<a href="#" className="text-gray-400 hover:text-white transition-colors">New Arrivals</a>
</li>
<li>
<a href="#" className="text-gray-400 hover:text-white transition-colors">Best Sellers</a>
</li>
<li>
<a href="#" className="text-gray-400 hover:text-white transition-colors">Sale</a>
</li>
</ul>
</div>
<div>
<h4 className="text-lg font-bold mb-4">About</h4>
<ul className="space-y-2">
<li>
<button
onClick={() => setCurrentPage('about')}
className="text-gray-400 hover:text-white transition-colors"
>
Our Story
</button>
</li>
<li>
<a href="#" className="text-gray-400 hover:text-white transition-colors">Sustainability</a>
</li>
<li>
<a href="#" className="text-gray-400 hover:text-white transition-colors">Careers</a>
</li>
<li>
<a href="#" className="text-gray-400 hover:text-white transition-colors">Press</a>
</li>
</ul>
</div>
<div>
<h4 className="text-lg font-bold mb-4">Customer Service</h4>
<ul className="space-y-2">
<li>
<button
onClick={() => setCurrentPage('contact')}
className="text-gray-400 hover:text-white transition-colors"
>
Contact Us
</button>
</li>
<li>
<a href="#" className="text-gray-400 hover:text-white transition-colors">FAQs</a>
</li>
<li>
<a href="#" className="text-gray-400 hover:text-white transition-colors">Shipping & Returns</a>
</li>
<li>
<a href="#" className="text-gray-400 hover:text-white transition-colors">Size Guide</a>
</li>
</ul>
</div>
</div>
<div className="border-t border-gray-800 pt-8">
<div className="flex flex-col md:flex-row justify-between items-center">
<p className="text-gray-400 mb-4 md:mb-0">
© 2023 VOGUE. All rights reserved.
</p>
<div className="flex space-x-6">
<a href="#" className="text-gray-400 hover:text-white transition-colors">Privacy Policy</a>
<a href="#" className="text-gray-400 hover:text-white transition-colors">Terms of Service</a>
<a href="#" className="text-gray-400 hover:text-white transition-colors">Accessibility</a>
</div>
</div>
</div>
</div>
</footer>
);
}
// Product Card Component
function ProductCard({ product, addToCart }) {
return (
<div className="product-card group relative bg-white rounded-lg shadow-sm overflow-hidden transition-all hover:shadow-lg">
<div className="aspect-w-3 aspect-h-4 bg-gray-200 overflow-hidden">
<img
src={product.image}
alt={product.name}
className="w-full h-full object-cover transition-transform duration-500 group-hover:scale-105"
/>
</div>
<div className="p-4">
<h3 className="text-lg font-medium text-gray-900 mb-1">{product.name}</h3>
<p className="text-gray-900 font-bold">${product.price.toFixed(2)}</p>
</div>
<div className="product-actions absolute inset-x-0 bottom-0 p-4">
<button
onClick={() => addToCart(product)}
className="w-full bg-gray-900 hover:bg-rose-500 text-white font-medium py-2 px-4 rounded-md transition-colors"
>
Add to Cart
</button>
</div>
</div>
);
}
// Category Card Component
function CategoryCard({ title, image }) {
return (
<div className="relative group overflow-hidden rounded-lg shadow-sm h-64">
<img
src={image}
alt={title}
className="w-full h-full object-cover transition-transform duration-500 group-hover:scale-110"
/>
<div className="absolute inset-0 bg-black bg-opacity-30 group-hover:bg-opacity-40 transition-all"></div>
<div className="absolute inset-0 flex items-center justify-center">
<h3 className="text-2xl font-bold text-white title-font">{title}</h3>
</div>
</div>
);
}
// Testimonial Card Component
function TestimonialCard({ quote, author, role }) {
return (
<div className="bg-white p-6 rounded-lg shadow-sm">
<div className="mb-4">
<i className="fas fa-quote-left text-rose-500 text-2xl"></i>
</div>
<p className="text-gray-700 mb-6">{quote}</p>
<div className="flex items-center">
<div className="bg-gray-200 w-10 h-10 rounded-full flex items-center justify-center mr-4">
<i className="fas fa-user text-gray-500"></i>
</div>
<div>
<p className="font-medium text-gray-900">{author}</p>
<p className="text-gray-500 text-sm">{role}</p>
</div>
</div>
</div>
);
}
// Value Card Component
function ValueCard({ icon, title, description }) {
return (
<div className="text-center">
<div className="bg-rose-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4">
<i className={`${icon} text-rose-500 text-2xl`}></i>
</div>
<h3 className="text-lg font-bold text-gray-900 mb-2">{title}</h3>
<p className="text-gray-600">{description}</p>
</div>
);
}
// Team Member Card Component
function TeamMember({ name, role, image }) {
return (
<div className="text-center">
<div className="w-32 h-32 mx-auto mb-4 rounded-full overflow-hidden border-4 border-white shadow-lg">
<img
src={image}
alt={name}
className="w-full h-full object-cover"
/>
</div>
<h3 className="text-lg font-bold text-gray-900">{name}</h3>
<p className="text-gray-600">{role}</p>
</div>
);
}
// Render the app
ReactDOM.render(<App />, document.getElementById('root'));
</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=bd3a/test777" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>VOGUE | Trendy Fashion</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/react@18/umd/react.development.js"></script>
<script src="https://unpkg.com/react-dom@18/umd/react-dom.development.js"></script>
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700&display=swap');
:root {
--primary: #111827;
--secondary: #f43f5e;
--accent: #e5e7eb;
}
body {
font-family: 'Montserrat', sans-serif;
background-color: #f9fafb;
}
.title-font {
font-family: 'Playfair Display', serif;
}
.hero-gradient {
background: linear-gradient(135deg, rgba(17,24,39,0.9) 0%, rgba(244,63,94,0.7) 100%);
}
.product-card:hover .product-actions {
opacity: 1;
transform: translateY(0);
}
.product-actions {
transition: all 0.3s ease;
opacity: 0;
transform: translateY(10px);
}
.nav-link::after {
content: '';
display: block;
width: 0;
height: 2px;
background: var(--secondary);
transition: width 0.3s;
}
.nav-link:hover::after {
width: 100%;
}
.dropdown:hover .dropdown-menu {
display: block;
}
.cart-item-enter {
opacity: 0;
transform: translateX(-100px);
}
.cart-item-enter-active {
opacity: 1;
transform: translateX(0);
transition: all 300ms ease-in;
}
.cart-item-exit {
opacity: 1;
transform: translateX(0);
}
.cart-item-exit-active {
opacity: 0;
transform: translateX(100px);
transition: all 300ms ease-in;
}
</style>
</head>
<body>
<div id="root"></div>
<script type="text/babel">
const { useState, useEffect } = React;
// App Component
function App() {
const [currentPage, setCurrentPage] = useState('home');
const [cartItems, setCartItems] = useState([]);
const [isCartOpen, setIsCartOpen] = useState(false);
const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false);
const [searchQuery, setSearchQuery] = useState('');
// Sample products data
const products = [