Section simple 01
An icon, heading and intro beside body text.
Last updated
---
/**
* Section simple 01: An icon, heading and intro beside body text.
*
* @block content
* @order 16
*/
import { Zap } from '@lucide/astro'
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 FeaturedIcon from '@/components/apogee/FeaturedIcon/FeaturedIcon.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,
heading = 'Beautiful analytics to grow smarter',
description = 'Powerful, self-serve product and growth analytics to help you convert, engage and retain more users.',
} = Astro.props
---
<Section spacing="large">
<div class="grid gap-12 lg:grid-cols-2 lg:gap-16">
<div class="flex flex-col items-start gap-6">
<FeaturedIcon theme="outline" color="neutral" size="large"><Zap /></FeaturedIcon>
<SectionHeader eyebrow={eyebrow ?? undefined} heading={plain(heading)} description={description ?? undefined} />
</div>
<Prose>
<h3>We share a single source of truth</h3>
<p>Every number on every dashboard comes from the same definitions, written down once and checked on every change.</p>
<p>Teams stop debating whose number is right and start asking what to do about it.</p>
</Prose>
</div>
</Section>
Show codeHide code
---
/**
* Section simple 01: An icon, heading and intro beside body text.
*
* @block content
* @order 16
*/
import { Zap } from '@lucide/astro'
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 FeaturedIcon from '@/components/apogee/FeaturedIcon/FeaturedIcon.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,
heading = 'Beautiful analytics to grow smarter',
description = 'Powerful, self-serve product and growth analytics to help you convert, engage and retain more users.',
} = Astro.props
---
<Section spacing="large">
<div class="grid gap-12 lg:grid-cols-2 lg:gap-16">
<div class="flex flex-col items-start gap-6">
<FeaturedIcon theme="outline" color="neutral" size="large"><Zap /></FeaturedIcon>
<SectionHeader eyebrow={eyebrow ?? undefined} heading={plain(heading)} description={description ?? undefined} />
</div>
<Prose>
<h3>We share a single source of truth</h3>
<p>Every number on every dashboard comes from the same definitions, written down once and checked on every change.</p>
<p>Teams stop debating whose number is right and start asking what to do about it.</p>
</Prose>
</div>
</Section>Add
npx @ava-ui/apogee add content/section-simple-01
This copies the block to src/components/apogee/blocks/content/ with everything it uses: FeaturedIcon, 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
h2by default, so the block slots into a page under itsh1; item titles are one level down.
Related
ProseTypography styling for a block of rich, CMS, or markdown HTML you don't control element by element.
ShareLinksWays to pass a page on; Copy link, the device's share sheet and email.
TableOfContentsThe sections of a long page as in-page links in a named nav; one level of nesting and a current marker.