/** * Bidder home — welcome screen, quick nav cards, event status strip. * TODO: fetch active event details from /api/events/active. */ import { Link } from "react-router-dom"; import { useAuthStore, bidderName } from "../../store/auth.js"; // ── Quick-action cards ───────────────────────────────────────────────────────── const QUICK_ACTIONS = [ { to: "/live", label: "Live Auction", sub: "Bid in real time", bg: "bg-brand-700", text: "text-white", sub_text: "text-brand-200", icon: "🎙", }, { to: "/silent", label: "Silent Auction", sub: "Browse & place bids", bg: "bg-gold-500", text: "text-white", sub_text: "text-gold-100", icon: "🏷️", }, { to: "/my-bids", label: "My Bids", sub: "Track your activity", bg: "bg-white", text: "text-brand-800", sub_text: "text-gray-400", icon: "📋", border: true, }, { to: "/checkout", label: "Checkout", sub: "Pay for won items", bg: "bg-white", text: "text-brand-800", sub_text: "text-gray-400", icon: "💳", border: true, }, ] as const; export default function HomePage() { const bidder = useAuthStore((s) => s.bidder); return (
{/* ── Hero strip ── */}

Welcome back

{bidderName(bidder)}

{bidder?.paddleNumber && (
#{bidder.paddleNumber} Your paddle number
)}
{/* ── Cards grid (overlaps hero by 1rem) ── */}
{/* Event status card */}
🌿

Storybook Farm Charity Gala

Auction is live — good luck!

{/* Quick-action grid */}
{QUICK_ACTIONS.map(({ to, label, sub, bg, text, sub_text, icon, border }) => ( {icon}

{label}

{sub}

))}
); }