import { Link } from "react-router-dom"; import { useCatalog } from "../hooks/useCatalog"; import { ProductCard } from "../ui/ProductCard"; import { StatusView } from "../ui/StatusView"; import { useCart } from "../state/CartContext"; export function HomePage() { const { products, categories, loading, error } = useCatalog(); const { addItem } = useCart(); if (loading) { return ; } if (error) { return ; } const featuredProducts = products.filter((product) => product.featured).slice(0, 4); const bestSellers = products.filter((product) => product.bestSeller).slice(0, 4); const newArrivals = products.filter((product) => product.newArrival).slice(0, 4); return (
Next-Gen Everyday Tech

Smart products built for modern daily life.

Discover a curated storefront across Audio, Smart Devices, Accessories, Home Tech, and Personal Care with a presentation-ready shopping flow.

Shop Now Explore Categories
{products.length} Store-ready products
{categories.length} Core categories
Deep Navy + Orange Clean tech-commerce direction
Categories

Shop the five storefront pillars of Fluxon

{categories.map((category) => (

{category.name}

{category.description}

Explore
))}
Featured

Featured picks for the homepage hero flow

View All
{featuredProducts.map((product) => ( ))}
Promo

Up to 30% off selected Audio and Accessories

Use this section for discounts, launches, or your strongest weekly campaign.

See Offers
New Drop

Fresh Smart Devices and Personal Care arrivals

Keep the homepage feeling alive with fast-moving campaign blocks like this one.

Browse New Arrivals
Best Sellers

Products that add social proof to your storefront

{bestSellers.map((product) => ( ))}
New Arrivals

Fresh additions to keep the shop feeling current

{newArrivals.map((product) => ( ))}

Secure Checkout

Use this block to reassure users that payments and account actions are protected.

Fast Delivery

Highlight delivery expectations and shipping confidence early in the homepage flow.

Curated Products

Show that Fluxon is not random inventory, but a selected modern tech catalog.

Helpful Support

Good support messaging makes a student project feel more like a real commerce brand.

); }