import React from "react"; import { twMerge } from "tailwind-merge"; import H1 from "@/src/components/lib/layout/H1"; import Section from "@/src/components/lib/layout/Section"; import Span from "@/src/components/lib/layout/Span"; import Stack from "@/src/components/lib/layout/Stack"; import SceneCanvas, { SceneName } from "@/src/components/lib/three/SceneCanvas"; type Props = { title: React.ReactNode; subtitle?: React.ReactNode; scene: SceneName; /** Small label above the title. */ eyebrow?: React.ReactNode; /** Extra content under the subtitle (CTAs, contact details...). */ children?: React.ReactNode; className?: string; }; /** * Inner-page hero: animated title block on the left, the page's 3D graphic * on the right (behind the text, dimmed, on smaller screens). */ export default function PageHero({ title, subtitle, scene, eyebrow, children, className, }: Props) { return (
{eyebrow && ( {eyebrow} )}

{title}

{subtitle && ( {subtitle} )} {children && (
{children}
)}
); }