Simple icons 04
An icon and heading beside six features in two columns.
Last updated
---
/**
* Simple icons 04: An icon and heading beside six features in two columns.
*
* @block features
* @order 8
*/
import { Zap } from '@lucide/astro'
import Section from '@/components/apogee/Section/Section.astro'
import Heading from '@/components/apogee/Heading/Heading.astro'
import FeaturedIcon from '@/components/apogee/FeaturedIcon/FeaturedIcon.astro'
import { plain } from '@/components/apogee/sections/_shared/spine.ts'
import type { FeaturesContent } from '@/components/apogee/sections/_shared/features.ts'
/** @composable */
interface Props extends FeaturesContent {}
const {
heading = "Everything you need, nothing you don't",
description = 'Powerful, self-serve product and growth analytics to help you convert, engage and retain more users.',
items = [
{ title: 'Share team inboxes', description: 'Whether your team is 2 people or 200, shared inboxes keep everyone on the same page and in the loop.' },
{ title: 'Deliver instant answers', description: 'One place for support, so customers get what they need without waiting on a reply.' },
{ title: 'Manage your team with reports', description: 'Measure what matters. Filter, export and drill down on the data in a couple of clicks.' },
{ title: 'Connect with customers', description: 'Solve a problem or close a sale in real time with chat, and fall back to email when no one is free.' },
{ title: 'Connect the tools you already use', description: 'Over 100 integrations make your day-to-day work faster and familiar, plus a full set of developer tools.' },
{ title: 'Our people make the difference', description: "We're an extension of your support team, and our help is free. Chat to us any time, day or night." },
],
} = Astro.props
---
<Section spacing="large">
<div class="grid gap-12 lg:grid-cols-3 lg:gap-16">
<div class="flex flex-col items-start gap-5">
<FeaturedIcon theme="outline" color="neutral" size="xlarge"><Zap /></FeaturedIcon>
<Heading as="h2" size="h2">{plain(heading)}</Heading>
{description && <p class="text-lg text-neutral-faded">{description}</p>}
</div>
<ul class="grid list-none p-0 gap-x-8 gap-y-10 md:gap-y-16 sm:grid-cols-2 sm:grid-flow-col sm:grid-rows-3 lg:col-span-2">
{items.map((f) => (
<li class="flex flex-col gap-2">
<div class="flex flex-col gap-2">
<Heading as="h3" size="h6">{f.title}</Heading>
<p class="text-neutral-faded">{f.description}</p>
</div>
</li>
))}
</ul>
</div>
</Section>
Show codeHide code
---
/**
* Simple icons 04: An icon and heading beside six features in two columns.
*
* @block features
* @order 8
*/
import { Zap } from '@lucide/astro'
import Section from '@/components/apogee/Section/Section.astro'
import Heading from '@/components/apogee/Heading/Heading.astro'
import FeaturedIcon from '@/components/apogee/FeaturedIcon/FeaturedIcon.astro'
import { plain } from '@/components/apogee/sections/_shared/spine.ts'
import type { FeaturesContent } from '@/components/apogee/sections/_shared/features.ts'
/** @composable */
interface Props extends FeaturesContent {}
const {
heading = "Everything you need, nothing you don't",
description = 'Powerful, self-serve product and growth analytics to help you convert, engage and retain more users.',
items = [
{ title: 'Share team inboxes', description: 'Whether your team is 2 people or 200, shared inboxes keep everyone on the same page and in the loop.' },
{ title: 'Deliver instant answers', description: 'One place for support, so customers get what they need without waiting on a reply.' },
{ title: 'Manage your team with reports', description: 'Measure what matters. Filter, export and drill down on the data in a couple of clicks.' },
{ title: 'Connect with customers', description: 'Solve a problem or close a sale in real time with chat, and fall back to email when no one is free.' },
{ title: 'Connect the tools you already use', description: 'Over 100 integrations make your day-to-day work faster and familiar, plus a full set of developer tools.' },
{ title: 'Our people make the difference', description: "We're an extension of your support team, and our help is free. Chat to us any time, day or night." },
],
} = Astro.props
---
<Section spacing="large">
<div class="grid gap-12 lg:grid-cols-3 lg:gap-16">
<div class="flex flex-col items-start gap-5">
<FeaturedIcon theme="outline" color="neutral" size="xlarge"><Zap /></FeaturedIcon>
<Heading as="h2" size="h2">{plain(heading)}</Heading>
{description && <p class="text-lg text-neutral-faded">{description}</p>}
</div>
<ul class="grid list-none p-0 gap-x-8 gap-y-10 md:gap-y-16 sm:grid-cols-2 sm:grid-flow-col sm:grid-rows-3 lg:col-span-2">
{items.map((f) => (
<li class="flex flex-col gap-2">
<div class="flex flex-col gap-2">
<Heading as="h3" size="h6">{f.title}</Heading>
<p class="text-neutral-faded">{f.description}</p>
</div>
</li>
))}
</ul>
</div>
</Section>Add
npx @ava-ui/apogee add features/simple-icons-04
This copies the block to src/components/apogee/blocks/features/ with everything it uses: FeaturedIcon, Heading, 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
- The heading is an
h2by default, so the block slots into a page under itsh1; item titles are one level down. - Each integration icon is an image named after the tool.
Related
Featured iconAn icon in a tinted tile, the glyph that leads an empty state, an alert, a stat or a feature card.
TabsSwitch between panels of related content in the same space.
DeviceFrameA screenshot in a phone, a landscape tablet or a browser window, drawn in CSS with the theme's colours; it scales as a whole and a dark screenshot swaps in with the theme.