import { useState } from "react"; import { ShoppingCart, Phone, Send, Star } from "lucide-react"; export default function Website() { const [cart, setCart] = useState([]); const products = [ { id: 1, name: "Liquid Soap", price: 150, image: "https://images.unsplash.com/photo-1584735935682-2f2b69dff9d2?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60", description: "Effective hand and surface cleaning" }, { id: 2, name: "Dettol", price: 200, image: "https://images.unsplash.com/photo-1584735935682-2f2b69dff9d2?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60", description: "Antiseptic disinfectant" }, { id: 3, name: "Cairo", price: 180, image: "https://images.unsplash.com/photo-1584735935682-2f2b69dff9d2?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60", description: "Multi-purpose cleaner" }, { id: 4, name: "Fabric Softener", price: 250, image: "https://images.unsplash.com/photo-1584735935682-2f2b69dff9d2?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60", description: "Soft and fresh laundry" } ]; const addToCart = (product) => { setCart([...cart, product]); }; const getTotalPrice = () => { return cart.reduce((total, item) => total + item.price, 0); }; const handleWhatsAppOrder = () => { const message = `Hello Elijah! I would like to order:\n${cart.map(item => `- ${item.name} (KES ${item.price})`).join('\n')}\nTotal: KES ${getTotalPrice()}`; const encodedMessage = encodeURIComponent(message); window.open(`https://wa.me/+254741212481?text=${encodedMessage}`, '_blank'); }; return (

Quality Cleaning Products

Your trusted source for home cleaning solutions

Our Products

{products.map((product) => (
{product.name}

{product.name}

{product.description}

KES {product.price}
))}
{cart.length > 0 && (

Total: KES {getTotalPrice()}

{cart.length} items in cart

)}

About Cleansy

Founded by Elijah James, a 21-year-old student entrepreneur from Freesing Campus, Cleansy has been providing quality cleaning products for over 1.5 years. Our commitment to quality and customer satisfaction has made us a trusted name in home cleaning solutions.

); }