Press mentions
One line over five press names.
Last updated
---
/**
* Press mentions: One line over five press names.
*
* @block social-proof
* @order 6
*/
import Section from '@/components/apogee/Section/Section.astro'
import { plain } from '@/components/apogee/sections/_shared/spine.ts'
import type { SocialProofContent } from '@/components/apogee/sections/_shared/social-proof.ts'
/** @composable */
interface Props extends SocialProofContent {}
const {
heading = "We've been mentioned in the press",
label = 'Press mentions',
logos = ['The Morning Ledger', 'Northline Times', 'Signal Weekly', 'The Field Report', 'Metro Wire'],
} = Astro.props
---
<Section spacing="large">
<div class="flex flex-col gap-8">
{heading && <p class="text-center font-medium text-neutral-faded">{plain(heading)}</p>}
{logos && (
<ul aria-label={label} class="flex flex-col items-center gap-x-8 gap-y-4 md:flex-row md:flex-wrap md:justify-center xl:gap-x-12">
{logos.map((name) => <li class="font-serif text-2xl font-semibold tracking-tight italic md:text-3xl text-neutral">{name}</li>)}
</ul>
)}
</div>
</Section>
Show codeHide code
---
/**
* Press mentions: One line over five press names.
*
* @block social-proof
* @order 6
*/
import Section from '@/components/apogee/Section/Section.astro'
import { plain } from '@/components/apogee/sections/_shared/spine.ts'
import type { SocialProofContent } from '@/components/apogee/sections/_shared/social-proof.ts'
/** @composable */
interface Props extends SocialProofContent {}
const {
heading = "We've been mentioned in the press",
label = 'Press mentions',
logos = ['The Morning Ledger', 'Northline Times', 'Signal Weekly', 'The Field Report', 'Metro Wire'],
} = Astro.props
---
<Section spacing="large">
<div class="flex flex-col gap-8">
{heading && <p class="text-center font-medium text-neutral-faded">{plain(heading)}</p>}
{logos && (
<ul aria-label={label} class="flex flex-col items-center gap-x-8 gap-y-4 md:flex-row md:flex-wrap md:justify-center xl:gap-x-12">
{logos.map((name) => <li class="font-serif text-2xl font-semibold tracking-tight italic md:text-3xl text-neutral">{name}</li>)}
</ul>
)}
</div>
</Section>Add
npx @ava-ui/apogee add social-proof/press-mentions
This copies the block to src/components/apogee/blocks/social-proof/ with everything it uses: Section. Every piece of copy is a prop, with the sample copy as its default. Pass yours, or null to hide a part; see copy is props.