One line over a scrolling strip of logos.

Last updated

Open block
Show code
---
/**
 * Full width masked: One line over a scrolling strip of logos.
 *
 * @block social-proof
 * @order 3
 */
import { Atom, Circle, Droplet, Hexagon, Mountain, Sprout, Square, Sun, Waves, Wind } from '@lucide/astro'
import Section from '@/components/apogee/Section/Section.astro'
import Marquee from '@/components/apogee/Marquee/Marquee.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 = 'Trusted by 4,000+ companies',
  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" class="overflow-hidden">
  <div class="flex flex-col gap-8">
    {heading && <p class="text-center font-medium text-neutral-faded">{plain(heading)}</p>}
    {logos && (
      <Marquee label={label}>
        {logos.map((name, i) => { const Mark = logoIcons[i % logoIcons.length]!; return <span class="flex items-center gap-2 text-lg font-semibold md:text-xl text-neutral"><Mark class="size-7 md:size-8" aria-hidden="true" />{name}</span> })}
      </Marquee>
    )}
  </div>
</Section>

Add

npx @ava-ui/apogee add social-proof/full-width-masked

This copies the block to src/components/apogee/blocks/social-proof/ with everything it uses: Marquee, 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.

Accessibility