A mission heading and intro beside body text with a list.

Last updated

Open block
Show code
---
/**
 * Section simple 02: A mission heading and intro beside body text with a list.
 *
 * @block content
 * @order 17
 */
import Section from '@/components/apogee/Section/Section.astro'
import SectionHeader from '@/components/apogee/SectionHeader/SectionHeader.astro'
import Prose from '@/components/apogee/Prose/Prose.astro'
import { plain } from '@/components/apogee/sections/_shared/spine.ts'
import type { ContentContent } from '@/components/apogee/sections/_shared/content.ts'

/** @composable */
interface Props extends ContentContent {}

const {
  eyebrow = 'Our mission',
  heading = 'Transforming marketplaces',
  description = 'We build the tools small sellers need to compete with the biggest.',
} = Astro.props
---

<Section spacing="large">
  <div class="grid gap-12 lg:grid-cols-2 lg:gap-16">
    <div class="flex flex-col gap-6">
      <SectionHeader eyebrow={eyebrow ?? undefined} heading={plain(heading)} description={description ?? undefined} />
      <Prose class="max-md:hidden">
        <p>Every feature starts with a seller who could not do something they needed to. We build it, they try it, we fix it.</p>
      </Prose>
    </div>
    <Prose>
      <p>We work in short cycles with the people who will use the result:</p>
      <ul>
        <li>Talk to sellers every week, not every quarter.</li>
        <li>Ship the smallest thing that answers their question.</li>
        <li>Measure what changed for them, not for us.</li>
      </ul>
    </Prose>
  </div>
</Section>

Add

npx @ava-ui/apogee add content/section-simple-02

This copies the block to src/components/apogee/blocks/content/ with everything it uses: Prose, Section, SectionHeader. 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

  • The heading is an h2 by default, so the block slots into a page under its h1; item titles are one level down.