import {Image} from '@shopify/hydrogen'; import {motion} from 'motion/react'; import {Newsletter} from '~/components/Newsletter'; import type {AbiirAboutImageCms, AbiirAboutPageCms} from '~/lib/about'; import {abiirAboutImageIsRemote, MOCK_ABIIR_ABOUT_CMS} from '~/lib/about'; import {PAGE_TITLE_TYPOGRAPHY_CLASS} from '~/lib/pageTitle'; import type {NewsletterSectionCms} from '~/lib/newsletter'; /** * GROQ: `aboutPage` singleton (`_id == "aboutPage"`). * Use with `context.sanity.loadQuery(ABOUT_PAGE_GROQ)` or `useQuery` from `@sanity/react-loader`. */ export const ABOUT_PAGE_GROQ = `*[_type == "aboutPage" && _id == "aboutPage"][0]{ seo{ title, description }, heroEyebrow, heroHeadlineBefore, heroHeadlineItalic, heroImage{ alt, asset->{ _id, url, metadata{dimensions{width,height}} } }, beginningEyebrow, beginningHeadlineBefore, beginningHeadlineItalic, beginningHeadlineAfter, storyParagraphs, beginningImage{ alt, asset->{ _id, url, metadata{dimensions{width,height}} } }, beginningQuote, beginningQuoteAttribution, philosophyEyebrow, philosophyHeadlineBefore, philosophyHeadlineItalic, philosophyBody, philosophyImage{ alt, asset->{ _id, url, metadata{dimensions{width,height}} } }, valuesTitle, values[]{ title, description }, teamEyebrow, teamTitle, founderImage{ alt, asset->{ _id, url, metadata{dimensions{width,height}} } }, founderRole, founderName, founderBio, founderQuote, quoteIcon{ alt, asset->{ _id, url, metadata{dimensions{width,height}} } } }` as const; export {MOCK_ABIIR_ABOUT_CMS}; export type {AbiirAboutPageCms}; const ACCENT = '#c17d5c'; const CHARCOAL = '#1a1a18'; const MUTED = '#5a5550'; const MUTED_MID = '#7a7068'; const CREAM_TEXT = '#f8f4ef'; function AboutCmsImage({ image, className, sizes, style, }: { image: AbiirAboutImageCms; className?: string; sizes: string; style?: CSSProperties; }) { if (abiirAboutImageIsRemote(image)) { const w = image.width ?? 1600; const h = image.height ?? 1200; return ( {image.alt} src ?? ''} sizes={sizes} style={style} /> ); } return ( {image.alt} ); } export type AboutPageProps = { cms: AbiirAboutPageCms; newsletterCms: NewsletterSectionCms; }; /** * Our Story / About — layout from `React/src/app/pages/About.tsx`; * main titles use `PAGE_TITLE_TYPOGRAPHY_CLASS` (same as homepage `Testimonials` heading). * Pass `cms` from the route loader, or from `useQuery` with `ABOUT_PAGE_GROQ`. */ export function AboutPage({cms, newsletterCms}: AboutPageProps) { /** Hero band height tracks banner aspect ratio (default `about_banner.png` 1710×495). */ const heroW = cms.heroImage.width ?? 1710; const heroH = cms.heroImage.height ?? 495; const heroBandStyle: CSSProperties = { minHeight: `max(22rem, min(90svh, calc(100vw * ${heroH} / ${heroW})))`, maxHeight: '90svh', }; return (
{/* Hero — full-bleed banner + headline */}
{cms.heroEyebrow} {cms.heroHeadlineBefore} {cms.heroHeadlineItalic}
{/* The Beginning — Figma 123:5133 */}

{cms.beginningEyebrow}

{cms.beginningHeadlineBefore} {cms.beginningHeadlineItalic} {cms.beginningHeadlineAfter}

{cms.storyParagraphs.map((p, i) => (

{p}

))}

{cms.beginningQuote}

{cms.beginningQuoteAttribution}

{/* Philosophy — Figma 123:5226 */}
{cms.philosophyEyebrow} {cms.philosophyHeadlineBefore} {cms.philosophyHeadlineItalic}
{cms.philosophyBody}
{/* What We Stand For — Figma 123:5153 */}

{cms.valuesTitle}

{cms.values.map((value, i) => ( {String(i + 1).padStart(2, '0')}

{value.title}

{value.description}

))}
{/* Meet the Team — Figma 123:5185 */}

{cms.teamEyebrow}

{cms.teamTitle}

{cms.founderRole}

{cms.founderName}

{cms.founderBio.map((para, i) => (

{para}

))}

{cms.founderQuote}

); }