import React, { useState } from 'react'; import {… · The Chat Archive
Explore gemini-3.5-flash · Google Arena WebDev Preferences (2026)import React, { useState } from 'react'; import { ShoppingBag, Search, Upload, Sparkles,… Save Share Download ▾ Reportimport React, { useState } from 'react';
import {
ShoppingBag,
Search,
Upload,
Sparkles,
Plus,
Minus,
X,
Phone,
Gift,
Clock,
Award,
Truck,
Menu
} from 'lucide-react';
const Instagram = ({ className }: { className?: string }) => (
);
const Facebook = ({ className }: { className?: string }) => (
);
// Default images using the user's provided assets where possible
const DEFAULT_IMAGES = {
heroBg: "https://images.pexels.com/photos/965989/pexels-photo-965989.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2 ",
aboutImg: "https://images.pexels.com/photos/1961795/pexels-photo-1961795.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2 ",
logo: "https://i.ibb.co/3mN9K9M/amira-logo.png ", // This is a placeholder, in reality I'd use the uploaded image
prod1: "https://images.pexels.com/photos/2582446/pexels-photo-2582446.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2 ",
prod2: "https://images.pexels.com/photos/1556704/pexels-photo-1556704.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2 ",
prod3: "https://images.pexels.com/photos/1190829/pexels-photo-1190829.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2 "
};
const INITIAL_TEXTS = {
logoName: "AMIRA SECRET",
logoSub: "PARFUM",
navHome: "Accueil",
navAbout: "À Propos",
navPerfumes: "Parfums",
navCollections: "Collections",
navContact: "Contact",
heroBrand: "AMIRA SECRET",
heroTitle: "Votre Secret,",
heroSubtitle: "Votre Signature",
heroDesc: "Découvrez notre collection de parfums luxueux conçus pour laisser une empreinte inoubliable. L'élégance à chaque vaporisation.",
heroBtn: "Acheter Maintenant",
feature1Title: "Cadeau Parfait",
feature1Desc: "Pour vos moments spéciaux",
feature2Title: "Longue Tenue",
feature2Desc: "Une fragrance qui dure toute la journée",
feature3Title: "Flacons Luxueux",
feature3Desc: "Un design qui reflète votre goût",
feature4Title: "Ingrédients Nobles",
feature4Desc: "Qualité supérieure importée",
aboutTag: "NOTRE HISTOIRE",
aboutTitle: "L'Art de la Parfumerie",
aboutDesc: "Chez AMIRA SECRET, nous pensons que le parfum est bien plus qu'une simple odeur. C'est une extension de votre personnalité. Nous créons des fragrances d'exception mêlant tradition et modernité pour vous offrir une expérience olfactive unique.",
aboutBtn: "En savoir plus",
bestSellersTitle: "Nos Meilleures Ventes",
bestSellersViewAll: "Tout voir",
stat1Value: "+5000",
stat1Label: "Clients Heureux",
stat2Value: "+20",
stat2Label: "Fragrances Uniques",
stat3Value: "100%",
stat3Label: "Qualité Garantie",
stat4Value: "Livraison Rapide",
stat4Label: "Dans tout le pays",
contactTitle: "Une Question ?",
contactSubtitle: "Notre équipe est à votre disposition pour vous aider à choisir votre parfum idéal.",
contactFormName: "Nom complet",
contactFormPhone: "Téléphone",
contactFormMessage: "Votre message",
contactFormSubmit: "Envoyer le message",
};
AssistantCopy response Copy first prompt
Details Model gemini-3.5-flashProvider Google
Model provenance As recorded by source dataset
Turns 1 (2 messages)
Language en
Conversation date Jul 17, 2026
Added to archive Nov 19, 2026
ID 01m7tp5yc4b79n9dqvdtqpyjxjSource & license Imported from Arena WebDev Preferences (2026) (source ). Imported records earn no Research Points.
Upstream record: 019f71c9-acbe-75e5-a415-092f697dc51c:a
Chi et al., Interaction-as-a-Judge (2026). arXiv:2610.17895.
License: Prompts CC-BY-4.0; outputs governed by provider terms
Dataset releases Not yet included in a published release.
interface Product {
id: number;
name: string;
price: number;
originalPrice: number;
image: string;
rating: number;
desc: string;
size: string;
concentration: string;
}
export default function App() {
const [texts, setTexts] = useState(INITIAL_TEXTS);
const [images, setImages] = useState(DEFAULT_IMAGES);
const [currency] = useState("DH");
const [whatsappNumber] = useState("[PHONE_NUMBER_1]");
const [products, setProducts] = useState<Product[]>([
{
id: 1,
name: "AMIRA SECRET - ROSE",
price: 249,
originalPrice: 320,
image: DEFAULT_IMAGES.prod1,
rating: 4.9,
desc: "Un bouquet floral délicat mêlant rose de Grasse et jasmin pour une féminité rayonnante.",
size: "50ml",
concentration: "Eau de Parfum"
},
{
id: 2,
name: "AMIRA SECRET - NOIR",
price: 259,
originalPrice: 350,
image: DEFAULT_IMAGES.prod2,
rating: 5.0,
desc: "Un parfum mystérieux et audacieux aux notes d'épices orientales et de bois précieux.",
size: "50ml",
concentration: "Eau de Parfum"
},
{
id: 3,
name: "AMIRA SECRET - OUD",
price: 289,
originalPrice: 390,
image: DEFAULT_IMAGES.prod3,
rating: 4.8,
desc: "Le luxe de l'oud authentique marié à la chaleur de l'ambre et du musc blanc.",
size: "50ml",
concentration: "Eau de Parfum"
}
]);
const [cart, setCart] = useState<{ product: Product; quantity: number }[]>([]);
const [isCartOpen, setIsCartOpen] = useState(false);
const [searchQuery, setSearchQuery] = useState("");
const [editMode, setEditMode] = useState(false);
const [toast, setToast] = useState<{ message: string; type: 'success' | 'info' } | null>(null);
const [isMenuOpen, setIsMenuOpen] = useState(false);
const triggerToast = (message: string, type: 'success' | 'info' = 'success') => {
setToast({ message, type });
setTimeout(() => setToast(null), 3000);
};
const handleImageUpload = (e: React.ChangeEvent, targetKey: string | number) => {
const file = e.target.files?.[0];
if (file) {
const reader = new FileReader();
reader.onloadend = () => {
const base64String = reader.result as string;
if (typeof targetKey === 'string') {
setImages(prev => ({ ...prev, [targetKey]: base64String }));
triggerToast("Image mise à jour ! ✨");
} else {
setProducts(prev => prev.map(p => p.id === targetKey ? { ...p, image: base64String } : p));
triggerToast("Image du produit mise à jour ! 🛍️");
}
};
reader.readAsDataURL(file);
}
};
const updateTextValue = (key: keyof typeof INITIAL_TEXTS, value: string) => {
setTexts(prev => ({ ...prev, [key]: value }));
};
const updateProductValue = (productId: number, field: keyof Product, value: any) => {
setProducts(prev => prev.map(p => p.id === productId ? { ...p, [field]: value } : p));
};
const addToCart = (product: Product) => {
setCart(prev => {
const existing = prev.find(item => item.product.id === product.id);
if (existing) {
return prev.map(item => item.product.id === product.id ? { ...item, quantity: item.quantity + 1 } : item);
}
return [...prev, { product, quantity: 1 }];
});
triggerToast(${product.name} ajouté au panier ! 🛍️);
};
const updateCartQuantity = (productId: number, amount: number) => {
setCart(prev => prev.map(item => {
if (item.product.id === productId) {
const newQty = Math.max(0, item.quantity + amount);
return newQty === 0 ? null : { ...item, quantity: newQty };
}
return item;
}).filter((item): item is { product: Product; quantity: number } => item !== null));
};
const cartSubtotal = cart.reduce((total, item) => total + (item.product.price * item.quantity), 0);
const handleWhatsAppCheckout = () => {
if (cart.length === 0) return;
let msg = Bonjour AMIRA SECRET, je souhaite commander :\n\n;
cart.forEach(item => {
msg += • ${item.product.name} x${item.quantity} (${item.product.price * item.quantity} ${currency})\n;
});
msg += \nTotal: ${cartSubtotal} ${currency}\nMerci de me recontacter pour la livraison.;
window.open(https://wa.me/${whatsappNumber.replace(/\D/g, '')}?text=${encodeURIComponent(msg)}, '_blank');
};
const filteredProducts = products.filter(p =>
p.name.toLowerCase().includes(searchQuery.toLowerCase())
);
{/* Toast */}
{toast && (
<div className="fixed top-24 right-6 z-50 animate-fade-in bg-white border-l-4 border-pink-500 shadow-xl p-4 rounded-lg flex items-center gap-3">
<Sparkles className="text-pink-500 w-5 h-5" />
<p className="text-sm font-medium">{toast.message}</p>
</div>
)}
{/* Admin Bar */}
<div className="bg-stone-900 text-white py-2 px-4 flex justify-between items-center text-[10px] md:text-xs sticky top-0 z-50">
<div className="flex items-center gap-2">
<span className="bg-pink-600 px-2 py-0.5 rounded font-bold">MODE ÉDITION</span>
<p className="hidden md:block">Cliquez sur les textes pour les modifier</p>
</div>
<button
onClick={() => setEditMode(!editMode)}
className={`px-4 py-1 rounded transition ${editMode ? 'bg-green-600' : 'bg-stone-700'}`}
>
{editMode ? 'Activé (Cliquez pour éditer)' : 'Désactivé'}
</button>
</div>
{/* Header */}
<header className="bg-white/80 backdrop-blur-md sticky top-[32px] z-40 border-b border-stone-100">
<div className="max-w-7xl mx-auto px-6 h-20 flex items-center justify-between">
<button className="lg:hidden" onClick={() => setIsMenuOpen(!isMenuOpen)}>
<Menu className="w-6 h-6" />
</button>
<div className="flex flex-col items-center">
<h1 className="font-serif font-black text-xl md:text-2xl tracking-[0.2em] text-stone-900 leading-none">
{editMode ? (
<input value={texts.logoName} onChange={(e) => updateTextValue('logoName', e.target.value)} className="bg-transparent border-b border-pink-400 w-40 text-center" />
) : texts.logoName}
</h1>
<span className="text-[8px] tracking-[0.4em] font-bold text-pink-500 mt-1 uppercase">
{editMode ? (
<input value={texts.logoSub} onChange={(e) => updateTextValue('logoSub', e.target.value)} className="bg-transparent border-b border-pink-400 w-20 text-center" />
) : texts.logoSub}
</span>
</div>
<nav className="hidden lg:flex items-center gap-8 text-xs font-bold uppercase tracking-widest text-stone-600">
{['navHome', 'navPerfumes', 'navAbout', 'navContact'].map(key => (
<a key={key} href={`#${key}`} className="hover:text-pink-600 transition">
{editMode ? (
<input value={texts[key as keyof typeof INITIAL_TEXTS]} onChange={(e) => updateTextValue(key as keyof typeof INITIAL_TEXTS, e.target.value)} className="bg-transparent border-b border-pink-400 w-20" />
) : texts[key as keyof typeof INITIAL_TEXTS]}
</a>
))}
</nav>
<div className="flex items-center gap-4">
<button onClick={() => setIsCartOpen(true)} className="relative p-2">
<ShoppingBag className="w-6 h-6" />
{cart.length > 0 && (
<span className="absolute -top-1 -right-1 bg-pink-600 text-white text-[10px] w-5 h-5 rounded-full flex items-center justify-center font-bold">
{cart.reduce((s, i) => s + i.quantity, 0)}
</span>
)}
</button>
</div>
</div>
</header>
{/* Hero */}
<section className="relative min-h-[85vh] flex items-center justify-center overflow-hidden py-20 px-6">
<div className="absolute inset-0 z-0">
<img src={images.heroBg} className="w-full h-full object-cover opacity-20" alt="Background" />
<div className="absolute inset-0 bg-gradient-to-b from-[#FFF9FB]/0 via-[#FFF9FB]/50 to-[#FFF9FB]"></div>
</div>
<div className="max-w-4xl w-full text-center relative z-10 space-y-8">
<div className="space-y-4">
<p className="text-pink-500 font-bold tracking-[0.3em] text-xs uppercase">
{editMode ? (
<input value={texts.heroBrand} onChange={(e) => updateTextValue('heroBrand', e.target.value)} className="bg-transparent border-b border-pink-400 text-center" />
) : texts.heroBrand}
</p>
<h2 className="text-5xl md:text-8xl font-serif font-black text-stone-900 leading-tight">
{editMode ? (
<>
<input value={texts.heroTitle} onChange={(e) => updateTextValue('heroTitle', e.target.value)} className="bg-transparent border-b border-pink-400 w-full text-center" />
<input value={texts.heroSubtitle} onChange={(e) => updateTextValue('heroSubtitle', e.target.value)} className="bg-transparent border-b border-pink-400 w-full text-center" />
</>
) : (
<>
<span className="block">{texts.heroTitle}</span>
<span className="block text-pink-600">{texts.heroSubtitle}</span>
</>
)}
</h2>
<p className="text-stone-600 max-w-lg mx-auto text-sm md:text-base leading-relaxed">
{editMode ? (
<textarea value={texts.heroDesc} onChange={(e) => updateTextValue('heroDesc', e.target.value)} className="bg-transparent border-b border-pink-400 w-full text-center" rows={2} />
) : texts.heroDesc}
</p>
</div>
<div className="flex flex-col sm:flex-row gap-4 justify-center items-center">
<a href="#perfumes" className="bg-stone-900 text-white px-10 py-4 rounded-full font-bold text-sm hover:bg-pink-600 transition shadow-xl">
{texts.heroBtn}
</a>
<div className="relative group">
<button className="flex items-center gap-2 text-stone-600 font-bold text-sm px-6 py-4">
<Upload className="w-4 h-4" /> Changer l'image
</button>
<input type="file" onChange={(e) => handleImageUpload(e, 'heroBg')} className="absolute inset-0 opacity-0 cursor-pointer" />
</div>
</div>
</div>
</section>
{/* Features */}
<section className="bg-white py-12 border-y border-stone-100">
<div className="max-w-7xl mx-auto px-6 grid grid-cols-2 lg:grid-cols-4 gap-8">
{[
{ icon: Gift, title: 'feature1Title', desc: 'feature1Desc' },
{ icon: Clock, title: 'feature2Title', desc: 'feature2Desc' },
{ icon: Award, title: 'feature3Title', desc: 'feature3Desc' },
{ icon: Truck, title: 'feature4Title', desc: 'feature4Desc' },
].map((f, i) => (
<div key={i} className="flex items-center gap-4">
<div className="bg-pink-50 p-3 rounded-full text-pink-600">
<f.icon className="w-5 h-5" />
</div>
<div className="text-left">
<h4 className="font-bold text-xs text-stone-900">
{editMode ? (
<input value={texts[f.title as keyof typeof INITIAL_TEXTS]} onChange={(e) => updateTextValue(f.title as keyof typeof INITIAL_TEXTS, e.target.value)} className="bg-transparent border-b border-pink-200" />
) : texts[f.title as keyof typeof INITIAL_TEXTS]}
</h4>
<p className="text-[10px] text-stone-400">
{editMode ? (
<input value={texts[f.desc as keyof typeof INITIAL_TEXTS]} onChange={(e) => updateTextValue(f.desc as keyof typeof INITIAL_TEXTS, e.target.value)} className="bg-transparent border-b border-pink-200" />
) : texts[f.desc as keyof typeof INITIAL_TEXTS]}
</p>
</div>
</div>
))}
</div>
</section>
{/* Products */}
<section id="navPerfumes" className="py-24 px-6 bg-[#FFF9FB]">
<div className="max-w-7xl mx-auto">
<div className="flex flex-col md:flex-row md:items-end justify-between mb-16 gap-6">
<div className="space-y-4">
<span className="text-pink-600 font-bold tracking-widest text-xs uppercase">Collection Exclusive</span>
<h2 className="text-4xl md:text-5xl font-serif font-black text-stone-900">
{editMode ? (
<input value={texts.bestSellersTitle} onChange={(e) => updateTextValue('bestSellersTitle', e.target.value)} className="bg-transparent border-b border-pink-400" />
) : texts.bestSellersTitle}
</h2>
</div>
<div className="relative">
<Search className="absolute left-4 top-1/2 -translate-y-1/2 w-4 h-4 text-stone-400" />
<input
type="text"
placeholder="Rechercher un parfum..."
className="bg-white border border-stone-100 rounded-full py-3 pl-10 pr-6 text-sm w-full md:w-64 focus:ring-2 focus:ring-pink-500 outline-none"
value={searchQuery}
onChange={(e) => setSearchQuery(e.target.value)}
/>
</div>
</div>
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-10">
{filteredProducts.map(product => (
<div key={product.id} className="group bg-white rounded-2xl overflow-hidden shadow-sm hover:shadow-2xl transition-all duration-500 border border-stone-100">
<div className="relative aspect-[4/5] overflow-hidden">
<img src={product.image} className="w-full h-full object-cover transition duration-700 group-hover:scale-110" alt={product.name} />
<div className="absolute inset-0 bg-stone-900/40 opacity-0 group-hover:opacity-100 transition duration-300 flex flex-col items-center justify-center gap-4">
<div className="relative">
<button className="bg-white text-stone-900 px-6 py-2 rounded-full font-bold text-xs shadow-xl">Changer l'image</button>
<input type="file" className="absolute inset-0 opacity-0 cursor-pointer" onChange={(e) => handleImageUpload(e, product.id)} />
</div>
</div>
<button onClick={() => addToCart(product)} className="absolute bottom-6 right-6 bg-pink-600 text-white p-4 rounded-full shadow-xl translate-y-20 group-hover:translate-y-0 transition duration-500">
<Plus className="w-6 h-6" />
</button>
</div>
<div className="p-8 space-y-4">
<div className="flex justify-between items-start">
<div className="space-y-1">
<h3 className="font-serif font-bold text-xl text-stone-900">
{editMode ? (
<input value={product.name} onChange={(e) => updateProductValue(product.id, 'name', e.target.value)} className="bg-transparent border-b border-pink-200" />
) : product.name}
</h3>
<p className="text-[10px] text-pink-600 font-bold uppercase tracking-widest">{product.concentration} • {product.size}</p>
</div>
<div className="text-right">
<p className="text-2xl font-black text-stone-900">{product.price} <span className="text-sm font-bold text-pink-600">{currency}</span></p>
{product.originalPrice > product.price && (
<p className="text-sm text-stone-400 line-through">{product.originalPrice} {currency}</p>
)}
</div>
</div>
<p className="text-sm text-stone-500 leading-relaxed">
{editMode ? (
<textarea value={product.desc} onChange={(e) => updateProductValue(product.id, 'desc', e.target.value)} className="bg-transparent border-b border-pink-200 w-full" rows={2} />
) : product.desc}
</p>
</div>
</div>
))}
</div>
</div>
</section>
{/* About */}
<section id="navAbout" className="py-24 px-6 bg-white overflow-hidden">
<div className="max-w-7xl mx-auto grid grid-cols-1 lg:grid-cols-2 gap-20 items-center">
<div className="relative group">
<div className="absolute -inset-4 bg-pink-100 rounded-3xl -rotate-2 z-0"></div>
<img src={images.aboutImg} className="relative z-10 w-full aspect-square object-cover rounded-2xl shadow-2xl" alt="About" />
<div className="absolute inset-0 z-20 flex items-center justify-center opacity-0 group-hover:opacity-100 transition">
<div className="relative">
<button className="bg-white px-8 py-3 rounded-full font-bold shadow-xl">Changer l'image</button>
<input type="file" onChange={(e) => handleImageUpload(e, 'aboutImg')} className="absolute inset-0 opacity-0 cursor-pointer" />
</div>
</div>
</div>
<div className="space-y-8">
<div className="space-y-4">
<span className="text-pink-600 font-bold tracking-[0.2em] text-xs uppercase">{texts.aboutTag}</span>
<h2 className="text-4xl md:text-5xl font-serif font-black text-stone-900 leading-tight">
{editMode ? (
<input value={texts.aboutTitle} onChange={(e) => updateTextValue('aboutTitle', e.target.value)} className="bg-transparent border-b border-pink-400 w-full" />
) : texts.aboutTitle}
</h2>
<p className="text-stone-600 leading-relaxed text-lg">
{editMode ? (
<textarea value={texts.aboutDesc} onChange={(e) => updateTextValue('aboutDesc', e.target.value)} className="bg-transparent border-b border-pink-400 w-full" rows={4} />
) : texts.aboutDesc}
</p>
</div>
<div className="grid grid-cols-2 gap-6 pt-6">
{[
{ label: 'stat1Label', val: 'stat1Value' },
{ label: 'stat2Label', val: 'stat2Value' },
].map(stat => (
<div key={stat.val} className="space-y-1">
<p className="text-4xl font-black text-pink-600 font-serif">{texts[stat.val as keyof typeof INITIAL_TEXTS]}</p>
<p className="text-xs font-bold text-stone-400 uppercase tracking-widest">{texts[stat.label as keyof typeof INITIAL_TEXTS]}</p>
</div>
))}
</div>
</div>
</div>
</section>
{/* Contact */}
<section id="navContact" className="py-24 px-6 bg-[#1A1A1A] text-white">
<div className="max-w-4xl mx-auto text-center space-y-12">
<div className="space-y-4">
<h2 className="text-4xl md:text-5xl font-serif font-black">{texts.contactTitle}</h2>
<p className="text-stone-400">{texts.contactSubtitle}</p>
</div>
<div className="grid grid-cols-1 md:grid-cols-2 gap-8 text-left">
<div className="space-y-6">
<div className="flex items-center gap-4">
<div className="bg-pink-600 p-4 rounded-full"><Phone className="w-6 h-6" /></div>
<div>
<p className="text-xs font-bold text-stone-500 uppercase">Téléphone / WhatsApp</p>
<p className="text-xl font-bold">{whatsappNumber}</p>
</div>
</div>
<div className="flex items-center gap-4">
<div className="bg-stone-800 p-4 rounded-full"><Instagram className="w-6 h-6" /></div>
<div>
<p className="text-xs font-bold text-stone-500 uppercase">Instagram</p>
<p className="text-xl font-bold">@amirasecret08</p>
</div>
</div>
</div>
<form className="space-y-4">
<input type="text" placeholder={texts.contactFormName} className="w-full bg-stone-800 border-none rounded-lg p-4 focus:ring-2 focus:ring-pink-600 outline-none" />
<input type="text" placeholder={texts.contactFormPhone} className="w-full bg-stone-800 border-none rounded-lg p-4 focus:ring-2 focus:ring-pink-600 outline-none" />
<textarea placeholder={texts.contactFormMessage} rows={4} className="w-full bg-stone-800 border-none rounded-lg p-4 focus:ring-2 focus:ring-pink-600 outline-none"></textarea>
<button className="w-full bg-pink-600 hover:bg-pink-700 py-4 rounded-lg font-bold transition">
{texts.contactFormSubmit}
</button>
</form>
</div>
</div>
</section>
{/* Footer */}
<footer className="bg-stone-900 text-white py-12 px-6 border-t border-stone-800">
<div className="max-w-7xl mx-auto flex flex-col md:flex-row justify-between items-center gap-8">
<div className="flex flex-col items-center md:items-start">
<h3 className="font-serif font-black text-2xl tracking-[0.2em]">{texts.logoName}</h3>
<p className="text-[8px] tracking-[0.4em] font-bold text-pink-500 mt-1 uppercase">Votre Signature</p>
</div>
<p className="text-stone-500 text-xs">© 2024 AMIRA SECRET. Tous droits réservés.</p>
<div className="flex gap-6">
<Instagram className="w-5 h-5 text-stone-400 hover:text-pink-500 transition cursor-pointer" />
<Facebook className="w-5 h-5 text-stone-400 hover:text-pink-500 transition cursor-pointer" />
</div>
</div>
</footer>
{/* Cart Modal */}
{isCartOpen && (
<div className="fixed inset-0 z-[100] bg-stone-900/60 backdrop-blur-sm flex justify-end">
<div className="w-full max-w-md bg-white h-full shadow-2xl flex flex-col animate-slide-in">
<div className="p-6 border-b border-stone-100 flex justify-between items-center">
<h3 className="text-xl font-serif font-black">Votre Panier</h3>
<button onClick={() => setIsCartOpen(false)}><X className="w-6 h-6" /></button>
</div>
<div className="flex-grow overflow-y-auto p-6 space-y-6">
{cart.length === 0 ? (
<div className="h-full flex flex-col items-center justify-center text-stone-400 space-y-4">
<ShoppingBag className="w-16 h-16 opacity-20" />
<p className="font-bold">Votre panier est vide</p>
</div>
) : (
cart.map(item => (
<div key={item.product.id} className="flex gap-4">
<img src={item.product.image} className="w-20 h-24 object-cover rounded-lg" alt={item.product.name} />
<div className="flex-grow space-y-1">
<h4 className="font-bold text-stone-900">{item.product.name}</h4>
<p className="text-xs text-pink-600 font-bold">{item.product.price} {currency}</p>
<div className="flex items-center gap-3 pt-2">
<button onClick={() => updateCartQuantity(item.product.id, -1)} className="p-1 border rounded-md hover:bg-stone-50"><Minus className="w-3 h-3" /></button>
<span className="text-sm font-bold">{item.quantity}</span>
<button onClick={() => updateCartQuantity(item.product.id, 1)} className="p-1 border rounded-md hover:bg-stone-50"><Plus className="w-3 h-3" /></button>
</div>
</div>
</div>
))
)}
</div>
{cart.length > 0 && (
<div className="p-6 border-t border-stone-100 bg-stone-50 space-y-4">
<div className="flex justify-between items-center">
<span className="font-bold text-stone-500 uppercase text-xs tracking-widest">Sous-total</span>
<span className="text-2xl font-black text-stone-900">{cartSubtotal} {currency}</span>
</div>
<button
onClick={handleWhatsAppCheckout}
className="w-full bg-stone-900 hover:bg-pink-600 text-white py-4 rounded-xl font-bold transition shadow-xl flex items-center justify-center gap-3"
>
<Phone className="w-5 h-5" />
Commander via WhatsApp
</button>
</div>
)}
</div>
</div>
)}
</div>
);
}
zid lia code html akhor fih page dyal les avis des clients marocains 3la l brand AMIRA SECRET O YKOUN HADSHI CHIC O MINIMALIST
I will check the existing files in the project to understand the structure and dependencies.
I will check package.json to inspect installed packages like Lucide icons or Tailwind dependencies.
I will install lucide-react to ensure all icons imported and needed (Star, Heart, ShieldCheck, MapPin, MessageSquare, CheckCircle2, ThumbsUp, Filter, Search, Sparkles, etc.) work smoothly.
I will read index.html to check the title and meta settings.
I will check src/index.css.
I will edit index.html to import elegant luxury fonts (Cormorant Garamond & Plus Jakarta Sans) and set the title to AMIRA SECRET PARFUM.
I will edit src/index.css to configure font families and custom utility classes.
I will create src/data/reviewsData.ts containing authentic Moroccan client reviews, images, ratings, and city lists for AMIRA SECRET.
I will create src/components/ReviewsSection.tsx containing the minimalist Moroccan reviews UI, search and filtering by city and perfume, user rating statistics, interactive review creation form with photo upload, confetti reaction, and full edit mode support.
I will edit src/components/ReviewsSection.tsx to fix all TypeScript warnings and connect all prop values.
I will read src/App.tsx to plan the integration.
I will write src/App.tsx uniting the main e-commerce storefront with the chic minimalist Moroccan customer reviews page section.
I will build the project to confirm there are no TypeScript or build errors.
I have created and integrated the Moroccan customer reviews section ("Page / Section Avis Clients Marocains") for AMIRA SECRET , designed with a chic & minimalist luxury perfume aesthetic .
Key Additions & Features:
Chic & Minimalist Design :
Typography & Colors : Fine luxury serif headers (Cormorant Garamond ), soft rose/blush nude backgrounds (#FFF9FB), subtle gold stars, glassmorphic card effects, and clean borders.
Moroccan Trust Highlights : Overall 4.9/5 ⭐ score banner, satisfaction percentage bars, and a Moroccan delivery guarantee card (Casablanca 24h, 48h across Morocco, cash on delivery).
Authentic Moroccan Reviews & Dialect Insights :
Reviews pre-populated with realistic client experiences across Moroccan cities (Casablanca, Rabat, Marrakech, Tanger, Fès, Agadir , etc.).
Dual feedback layout with both refined French descriptions and authentic Moroccan quotes in Darija (e.g. "Parfum wa3er bzzaf, riha kattedoum l'nhar kamel!" ).
Verified purchase tags (Achat Vérifié 🇲🇦 ) and customer photos of the perfume bottles.
Interactive Search & Filtering :
Filter reviews by Moroccan City (Casablanca, Marrakech, Rabat, Tanger, etc.).
Filter by Perfume model (AMIRA SECRET - ROSE , NOIR , OUD , Coffret Trio ).
Filter by 5-Star ratings or Reviews with photos .
Live keyword search across comments, customer names, and city tags.
Interactive "Déposer un Avis" Form & Lightbox :
Interactive star rating selector with hover effects.
City dropdown selector covering all major Moroccan regions.
Image upload functionality with instant preview.
Confetti animation celebration upon posting new feedback.
Photo zoom lightbox overlay for inspecting client images.
Direct Order & WhatsApp Integration :
"Commander ce parfum sur WhatsApp" button on every review card to order the exact perfume recommended by the customer.
Seamless cart drawer with total calculation in DH and 1-click WhatsApp order checkout.
Full Live Edit Mode :
Preserved admin mode enabling live editing of review texts, customer names, city tags, perfume names, or deleting review cards in real-time.
Files built: index.html, src/index.css, src/data/reviewsData.ts, src/components/ReviewsSection.tsx, src/App.tsx
Copy first response