Full width dual brand
One line over two rows of logos on the brand colour.
Last updated
---
/**
* Full width dual brand: One line over two rows of logos on the brand colour.
*
* @block social-proof
* @order 8
*/
import { Atom, Circle, Droplet, Hexagon, Mountain, Sprout, Square, Sun, Waves, Wind } from '@lucide/astro'
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 = 'Join 4,000+ companies already growing',
label = 'Customers',
logos = ['Lumen', 'Quanta', 'Fieldwork', 'Northpeak', 'Arcwave', 'Kitestring', 'Ovalis', 'Brightline', 'Corner', 'Tidewater'],
} = Astro.props
const logoIcons = [Hexagon, Atom, Sprout, Mountain, Waves, Wind, Circle, Sun, Square, Droplet]
---
<Section spacing="large" background="primary">
<div class="flex flex-col gap-8">
{heading && <p class="text-center font-medium opacity-85">{plain(heading)}</p>}
{logos && (
<ul aria-label={label} class="flex flex-wrap items-center justify-center gap-x-8 gap-y-4 md:gap-y-6 xl:gap-x-12 mx-auto max-w-4xl">
{logos.map((name, i) => { const Mark = logoIcons[i % logoIcons.length]!; return <li class:list={["flex items-center gap-2 text-lg font-semibold md:text-xl opacity-85", i >= 8 && "max-md:hidden"]}><Mark class="size-7 md:size-8" aria-hidden="true" />{name}</li> })}
</ul>
)}
</div>
</Section>
Show codeHide code
---
/**
* Full width dual brand: One line over two rows of logos on the brand colour.
*
* @block social-proof
* @order 8
*/
import { Atom, Circle, Droplet, Hexagon, Mountain, Sprout, Square, Sun, Waves, Wind } from '@lucide/astro'
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 = 'Join 4,000+ companies already growing',
label = 'Customers',
logos = ['Lumen', 'Quanta', 'Fieldwork', 'Northpeak', 'Arcwave', 'Kitestring', 'Ovalis', 'Brightline', 'Corner', 'Tidewater'],
} = Astro.props
const logoIcons = [Hexagon, Atom, Sprout, Mountain, Waves, Wind, Circle, Sun, Square, Droplet]
---
<Section spacing="large" background="primary">
<div class="flex flex-col gap-8">
{heading && <p class="text-center font-medium opacity-85">{plain(heading)}</p>}
{logos && (
<ul aria-label={label} class="flex flex-wrap items-center justify-center gap-x-8 gap-y-4 md:gap-y-6 xl:gap-x-12 mx-auto max-w-4xl">
{logos.map((name, i) => { const Mark = logoIcons[i % logoIcons.length]!; return <li class:list={["flex items-center gap-2 text-lg font-semibold md:text-xl opacity-85", i >= 8 && "max-md:hidden"]}><Mark class="size-7 md:size-8" aria-hidden="true" />{name}</li> })}
</ul>
)}
</div>
</Section>Add
npx @ava-ui/apogee add social-proof/full-width-dual-brand
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.