import Image from "next/image"; import { GlassInfoCard } from "../ui/GlassInfoCard"; type GlassCardItem = { text: string; icon?: string; }; type HeroVisualCollageProps = { centerImage: string; leftImage?: string; rightImage?: string; glassCards: GlassCardItem[]; isPhoneCenter?: boolean; }; export function HeroVisualCollage({ centerImage, leftImage, rightImage, glassCards, isPhoneCenter = true, }: HeroVisualCollageProps) { return (
{/* Decorative backgrounds */} {/* 1. Soft purple circle */}
{/* 2. SVG Dot grid */}
{/* 3. Small x marks */}
{/* LEFT IMAGE PANEL (Hidden or compact on small mobile) */} {leftImage && (
Collage left asset
)} {/* RIGHT IMAGE PANEL */} {rightImage && (
Collage right asset
)} {/* CENTER COMPONENT */}
{isPhoneCenter ? ( /* Phone Frame Container */
Phone Mockup Screen
) : ( /* Central Logo / Visual Panel */
Central logo panel
)}
{/* FLOATING GLASS CARDS (Positioned Absolute, scaled down on mobile) */} {glassCards.length > 0 && (
{/* Card 1: Top Right */} {glassCards[0] && (
)} {/* Card 2: Bottom Left */} {glassCards[1] && (
)} {/* Card 3: Mid Left/Right */} {glassCards[2] && (
)}
)}
); }