import { Hero } from "@/components/hero"; import { Container } from "@/components/container"; import { Heading } from "@/components/heading"; import { products, categories } from "@/lib/data"; import { ProductCard } from "@/components/product-card"; import { Footer } from "@/components/footer"; import { Button } from "@/components/ui/button"; import Link from "next/link"; import { ArrowRight } from "lucide-react"; export default function Home() { const featuredProducts = products.slice(0, 4); const offerProducts = products.filter(p => p.isOffer).slice(0, 4); return (
{/* Categories Section */}
Shop by Category
{categories.map((cat) => ( {cat.icon} {cat.name} ))}
{/* Featured Products */}
Featured Products

Handpicked for you

{featuredProducts.map((product) => ( ))}
{/* Offers Section */}
Limited Time Offer

Up to 50% Off on Electronics & Gadgets

Offer
{/* Best Deals */}
Best Deals

Unbeatable prices on top brands

{offerProducts.map((product) => ( ))}
); }