import Image from "next/image"; import Link from "next/link"; import { content, pages, type SeoPage } from "@/lib/content"; import PageJsonLd from "@/components/PageJsonLd"; import TrackedHubSpotForm from "@/components/TrackedHubSpotForm"; import Breadcrumbs from "@/components/Breadcrumbs"; import Reveal from "@/components/Reveal"; export default function MarketingPage({ page }: { page: SeoPage }) { const related = page.relatedPaths.filter((item) => item !== page.path).map((item) => pages.find((candidate) => candidate.path === item)).filter(Boolean) as SeoPage[]; const articles = page.isBlogHub ? pages.filter((item) => item.category === "blog") : []; const serviceChildren = page.path === "/services" ? pages.filter((item) => item.category === "service") : []; const media = (content as { videos?: { caseStudiesHeading?: string; testimonialsHeading?: string; caseStudies?: { vimeoId: string; title: string; stat: string }[]; testimonials?: { name: string; vimeoId: string }[] } }).videos; const gallery = (content as { creatorGallery?: { heading?: string; items?: { src: string; alt: string }[] } }).creatorGallery; const heroHome = (content as { heroHome?: { ctaPrimary?: { label: string; href: string }; ctaSecondary?: { label: string; href: string }; badges?: string[]; statChip?: { value: string; label: string } } }).heroHome; const stats = (content as { stats?: { ariaLabel?: string; items?: { value: string; label: string }[] } }).stats; const asideFacts = (content as { asideFacts?: string[] }).asideFacts; const isHome = page.path === "/"; return <>

{page.keyword}

{page.h1}

{content.labels.directAnswer}

{page.summary}

{isHome && heroHome ? <>
{heroHome.ctaPrimary ? {heroHome.ctaPrimary.label} : null} {heroHome.ctaSecondary ? {heroHome.ctaSecondary.label} : null}
{heroHome.badges?.length ?
    {heroHome.badges.map((badge) =>
  • {badge}
  • )}
: null} : null}
{page.alt}
{isHome && stats?.items?.length ?
{stats.items.map((stat) =>
{stat.value}{stat.label}
)}
: null}
{page.sections.map((section) =>

{section.heading}

{section.body}

{section.steps?.length ?
    {section.steps.map((item) =>
  1. {item}
  2. )}
: null}{section.items?.length ?
    {section.items.map((item) =>
  • {item}
  • )}
: null}{section.table?.headers.length ?
{section.table.headers.map((header) => )}{section.table.rows.map((row, rowIndex) => {row.map((cell, cellIndex) => )})}
{header}
{cell}
: null}
)} {serviceChildren.length > 0 &&

{content.labels.services}

{serviceChildren.map((service) => {service.keyword}

{service.h1}

{service.summary}

{content.labels.read} →)}
} {articles.length > 0 &&

{content.labels.browse}

{articles.map((article) => {article.keyword}

{article.h1}

{article.summary}

{content.labels.read} →)}
} {page.faq.length > 0 &&

{content.labels.questions}

{page.faq.map((item) =>
{item.question}

{item.answer}

)}
} {page.citations.length > 0 &&

{content.labels.sources}

}

{content.labels.authoredBy}: {page.author ?? content.site.legalEntity.managingDirector}, {content.site.name} · {content.labels.updated}:

{content.labels.ymyl}

{content.labels.reviewsLabel}: {content.site.reviews.map((href, i) => {i > 0 ? " · " : ""}{new URL(href).hostname.replace(/^www\./, "")})}

{isHome && media?.caseStudies?.length ?

{media.caseStudiesHeading}

{media.caseStudies.map((item) => item.title).join(". ")}.

{media.caseStudies.map((cs) =>
{cs.stat}{cs.title}
)}
: null} {isHome && gallery?.items?.length ?

{gallery.heading}

{gallery.items.map((g) =>
{g.alt}
)}
: null} {media?.testimonials?.length ?

{media.testimonialsHeading}

{media.testimonials.map((t) =>
{t.name}
)}
: null} {related.length > 0 &&

{content.labels.related}

{related.map((item) => {item.keyword}{item.h1})}
}
; }