Integrations icons 03
A centred heading over six integrations with icons and links.
Last updated
---
/**
* Integrations icons 03: A centred heading over six integrations with icons and links.
*
* @block features
* @order 41
*/
import { ArrowRight, Bug, FileText, Folder, HardDrive, LifeBuoy, MessagesSquare } from '@lucide/astro'
import Section from '@/components/apogee/Section/Section.astro'
import SectionHeader from '@/components/apogee/SectionHeader/SectionHeader.astro'
import Heading from '@/components/apogee/Heading/Heading.astro'
import FeaturedIcon from '@/components/apogee/FeaturedIcon/FeaturedIcon.astro'
import Link from '@/components/apogee/Link/Link.astro'
import Badge from '@/components/apogee/Badge/Badge.astro'
import { plain } from '@/components/apogee/sections/_shared/spine.ts'
import type { FeaturesContent } from '@/components/apogee/sections/_shared/features.ts'
const icons = [FileText, MessagesSquare, HardDrive, LifeBuoy, Bug, Folder]
/** @composable */
interface Props extends FeaturesContent {}
const {
eyebrow = 'Integrations',
heading = 'Get more value from your tools',
description = "Connect your tools, connect your teams. With over 100 apps already in our directory, your team's favourite tools are a click away.",
items = [
{ title: 'Docs integration', description: 'Work faster by connecting docs straight to your workspace.', href: '#' },
{ title: 'Chat integration', description: 'Work faster by connecting chat straight to your workspace.', href: '#' },
{ title: 'Drive integration', description: 'Work faster by connecting drive straight to your workspace.', href: '#' },
{ title: 'Help desk integration', description: 'Work faster by connecting help desk straight to your workspace.', href: '#' },
{ title: 'Issues integration', description: 'Work faster by connecting issues straight to your workspace.', href: '#' },
{ title: 'Files integration', description: 'Work faster by connecting files straight to your workspace.', href: '#' },
],
linkLabel = 'View integration',
} = Astro.props
---
<Section spacing="large">
<div class="flex flex-col gap-4 items-center mb-12 md:mb-16">
{eyebrow && <Badge color="primary" variant="faded" rounded>{eyebrow}</Badge>}
<SectionHeader heading={plain(heading)} description={description ?? undefined} align="center" />
</div>
<ul class="grid list-none gap-x-8 gap-y-12 p-0 sm:grid-cols-2 lg:grid-cols-3">
{items.map((f, i) => { const Icon = icons[i % icons.length]!; return (
<li class="flex flex-col items-center gap-4 text-center">
<FeaturedIcon theme="outline" color="neutral" size="xlarge" class=""><Icon /></FeaturedIcon>
<div class="flex flex-col gap-2">
<Heading as="h3" size="h6">{f.title}</Heading>
<p class="text-neutral-faded">{f.description}</p>
</div>
{f.href && <Link href={f.href} color="primary" underline="none" class="inline-flex items-center gap-1.5 font-semibold">{f.linkLabel ?? linkLabel}<span class="sr-only"> about {f.title}</span><ArrowRight class="size-4 rtl:-scale-x-100" aria-hidden="true" /></Link>}
</li>
)})}
</ul>
</Section>
Show codeHide code
---
/**
* Integrations icons 03: A centred heading over six integrations with icons and links.
*
* @block features
* @order 41
*/
import { ArrowRight, Bug, FileText, Folder, HardDrive, LifeBuoy, MessagesSquare } from '@lucide/astro'
import Section from '@/components/apogee/Section/Section.astro'
import SectionHeader from '@/components/apogee/SectionHeader/SectionHeader.astro'
import Heading from '@/components/apogee/Heading/Heading.astro'
import FeaturedIcon from '@/components/apogee/FeaturedIcon/FeaturedIcon.astro'
import Link from '@/components/apogee/Link/Link.astro'
import Badge from '@/components/apogee/Badge/Badge.astro'
import { plain } from '@/components/apogee/sections/_shared/spine.ts'
import type { FeaturesContent } from '@/components/apogee/sections/_shared/features.ts'
const icons = [FileText, MessagesSquare, HardDrive, LifeBuoy, Bug, Folder]
/** @composable */
interface Props extends FeaturesContent {}
const {
eyebrow = 'Integrations',
heading = 'Get more value from your tools',
description = "Connect your tools, connect your teams. With over 100 apps already in our directory, your team's favourite tools are a click away.",
items = [
{ title: 'Docs integration', description: 'Work faster by connecting docs straight to your workspace.', href: '#' },
{ title: 'Chat integration', description: 'Work faster by connecting chat straight to your workspace.', href: '#' },
{ title: 'Drive integration', description: 'Work faster by connecting drive straight to your workspace.', href: '#' },
{ title: 'Help desk integration', description: 'Work faster by connecting help desk straight to your workspace.', href: '#' },
{ title: 'Issues integration', description: 'Work faster by connecting issues straight to your workspace.', href: '#' },
{ title: 'Files integration', description: 'Work faster by connecting files straight to your workspace.', href: '#' },
],
linkLabel = 'View integration',
} = Astro.props
---
<Section spacing="large">
<div class="flex flex-col gap-4 items-center mb-12 md:mb-16">
{eyebrow && <Badge color="primary" variant="faded" rounded>{eyebrow}</Badge>}
<SectionHeader heading={plain(heading)} description={description ?? undefined} align="center" />
</div>
<ul class="grid list-none gap-x-8 gap-y-12 p-0 sm:grid-cols-2 lg:grid-cols-3">
{items.map((f, i) => { const Icon = icons[i % icons.length]!; return (
<li class="flex flex-col items-center gap-4 text-center">
<FeaturedIcon theme="outline" color="neutral" size="xlarge" class=""><Icon /></FeaturedIcon>
<div class="flex flex-col gap-2">
<Heading as="h3" size="h6">{f.title}</Heading>
<p class="text-neutral-faded">{f.description}</p>
</div>
{f.href && <Link href={f.href} color="primary" underline="none" class="inline-flex items-center gap-1.5 font-semibold">{f.linkLabel ?? linkLabel}<span class="sr-only"> about {f.title}</span><ArrowRight class="size-4 rtl:-scale-x-100" aria-hidden="true" /></Link>}
</li>
)})}
</ul>
</Section>Add
npx @ava-ui/apogee add features/integrations-icons-03
This copies the block to src/components/apogee/blocks/features/ with everything it uses: Badge, FeaturedIcon, Heading, Link, 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. - 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.