import { Button } from "./ui/button"; import { Calendar, Briefcase, Sparkles } from "lucide-react"; import { motion } from "framer-motion"; import { useNavigate } from "react-router-dom"; // Firework component const Firework = ({ delay = 0, top, left, colors }: { delay?: number; top: string; left: string; colors: string[] }) => { return ( {/* Firework burst rays */} {Array.from({ length: 24 }).map((_, i) => { const angle = (i * 360) / 24; const colorIndex = i % colors.length; return ( ); })} {/* Center burst */} ); }; // Sparkle Star component const SparkleStar = ({ delay = 0, top, left, size = 16 }: { delay?: number; top: string; left: string; size?: number }) => { return ( ); }; // Marigold Flower component const MarigoldFlower = ({ size = "md", delay = 0 }: { size?: "sm" | "md" | "lg"; delay?: number }) => { const sizes = { sm: 16, md: 20, lg: 24, }; const flowerSize = sizes[size]; return ( {/* Flower petals */} {/* Outer petals */} {Array.from({ length: 16 }).map((_, i) => { const angle = (i * 360) / 16; return ( ); })} {/* Inner petals */} {Array.from({ length: 12 }).map((_, i) => { const angle = (i * 360) / 12; return ( ); })} {/* Center */} {/* Gradient definitions */} {/* Glow effect */}
); }; // Flower Garland (Toran) component const FlowerGarland = ({ left, flowerCount = 8, delay = 0 }: { left: string; flowerCount?: number; delay?: number }) => { return ( {/* String/thread */}
{/* Flowers on string */}
{Array.from({ length: flowerCount }).map((_, i) => ( ))}
); }; // Decorative Hanging Lantern component const DecorativeLantern = () => { return ( {/* Hanging String */} {/* Top Cap - Cyan/Blue */} {/* Top decoration line - Purple accent */} {/* Main Lantern Body - Golden Orange with curves */} {/* Inner decorative pattern - curved diamond */} {/* Vertical center line */} {/* Highlight shine */} {/* Bottom Cap - Cyan/Blue */} {/* Hanging Tassels - Cyan strands */} {Array.from({ length: 7 }).map((_, i) => { const x = 45 + i * 5; return ( ); })} {/* Gradient Definitions */} {/* Glow effect */}
); }; export function DiwaliHeroSection() { const navigate = useNavigate(); return (
{/* Dark Background with subtle glow */}
{/* Decorative Hanging Lantern - Center Top */} {/* Marigold Flower Garlands (Torans) - Minimal placement */} {/* Animated Fireworks */} {/* Floating Sparkles */} {[...Array(25)].map((_, i) => ( ))} {/* Small floating particles */} {[...Array(40)].map((_, i) => ( ))} {/* Main Content */}
{/* Top Badge */} 🪔 WDI Wishes you 🪔 {/* Main Heading */} Happy Diwali {/* Subtitle */} Wishing you a Diwali filled with{" "} light,{" "} success, and{" "} lightning-fast launches. {/* CTA Buttons */} {/* Bottom decorative text */} May this festival bring prosperity to your business 🌟
{/* Bottom scroll indicator */}
); }