import type { Icon as PhosphorIcon } from "@phosphor-icons/react"; import type { ScreenshotAccordionItem } from "./ScreenshotAccordion"; import type { ReactNode } from "react"; import CtaBanner, { type CtaVariant } from "@/components/ui/CtaShowcase"; export interface ProductFeature { icon: PhosphorIcon; title: string; desc: string; } export type AccordionItem = ScreenshotAccordionItem; export interface ProductPageData { badge: string; headline: string; subtext: string; accordionBadge?: string; accordionHeadline?: string; accordionItems?: AccordionItem[]; featureHeading: string; featureSubtext: string; features: ProductFeature[]; ctaHeadline: string; ctaSubtext: string; /** Which shared CTA showcase variant to render (hex | portrait | kanban). */ ctaVariant?: CtaVariant; /** @deprecated superseded by ctaVariant */ ctaStyle?: "light" | "dark"; ctaSecondaryLabel?: string; ctaSecondaryHref?: string; /** Optional extra sections inserted before/after feature grid */ extraSectionBefore?: ReactNode; extraSectionAfter?: ReactNode; /** Optional: custom visual for solution right side */ solutionVisual?: ReactNode; } // Feature icon inside a honeycomb cell (brand motif) — flat-top hexagon frame // in the same yellow as the icon, with a subtle tint fill. function HexIcon({ icon: Icon }: { icon: PhosphorIcon }) { return ( ); } export default function ProductPageTemplate({ data, slug, }: { data: ProductPageData; slug?: string; }) { const jsonLd = slug ? [ { "@context": "https://schema.org", "@type": "SoftwareApplication", name: `HiveGrid ${data.badge ? "" : ""}${data.headline.split(":")[0]}`.trim(), description: data.subtext || data.featureSubtext, applicationCategory: "BusinessApplication", operatingSystem: "Web, iOS, Android", url: `https://hivegrid.de/produkt/${slug}`, offers: { "@type": "Offer", price: "0", priceCurrency: "EUR", availability: "https://schema.org/InStock", }, provider: { "@type": "Organization", name: "HiveGrid", url: "https://hivegrid.de" }, }, { "@context": "https://schema.org", "@type": "BreadcrumbList", itemListElement: [ { "@type": "ListItem", position: 1, name: "Home", item: "https://hivegrid.de" }, { "@type": "ListItem", position: 2, name: "Lösungen", item: "https://hivegrid.de/#loesungen" }, { "@type": "ListItem", position: 3, name: data.headline.split(":")[0].replace(/^HiveGrid\s*/, "").trim(), item: `https://hivegrid.de/produkt/${slug}` }, ], }, ] : null; return ( <> {jsonLd?.map((schema, i) => (