Integrations icons 02
A centred heading over sixteen integration icons and a button.
Last updated
---
/**
* Integrations icons 02: A centred heading over sixteen integration icons and a button.
*
* @block features
* @order 40
*/
import { BookOpen, Bug, Calendar, CreditCard, FileText, Folder, GitBranch, HardDrive, LifeBuoy, Mail, MessageCircle, MessagesSquare, PenTool, Ticket, Users, Workflow } from '@lucide/astro'
import Section from '@/components/apogee/Section/Section.astro'
import SectionHeader from '@/components/apogee/SectionHeader/SectionHeader.astro'
import FeaturedIcon from '@/components/apogee/FeaturedIcon/FeaturedIcon.astro'
import Button from '@/components/apogee/Button/Button.astro'
import { plain, type Action } from '@/components/apogee/sections/_shared/spine.ts'
import type { FeaturesContent } from '@/components/apogee/sections/_shared/features.ts'
const tools = [
{ name: 'Docs', icon: FileText },
{ name: 'Chat', icon: MessagesSquare },
{ name: 'Drive', icon: HardDrive },
{ name: 'Help desk', icon: LifeBuoy },
{ name: 'Issues', icon: Bug },
{ name: 'Files', icon: Folder },
{ name: 'Payments', icon: CreditCard },
{ name: 'Automations', icon: Workflow },
{ name: 'Design', icon: PenTool },
{ name: 'Wiki', icon: BookOpen },
{ name: 'Email', icon: Mail },
{ name: 'Tickets', icon: Ticket },
{ name: 'Calendar', icon: Calendar },
{ name: 'Messages', icon: MessageCircle },
{ name: 'Community', icon: Users },
{ name: 'Code', icon: GitBranch },
]
/** @composable */
interface Props extends FeaturesContent {
/** The button under the icons. @category content */
primaryAction?: Action | null
}
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.",
primaryAction = { label: 'All integrations', href: '#' },
} = Astro.props
---
<Section spacing="large">
<SectionHeader eyebrow={eyebrow ?? undefined} heading={plain(heading)} description={description ?? undefined} align="center" class="mb-12 md:mb-16" />
<ul class="mx-auto grid max-w-4xl list-none grid-cols-4 justify-items-center gap-6 p-0 md:gap-8 lg:grid-cols-8">
{tools.map((t) => <li><FeaturedIcon theme="outline" color="neutral" size="xlarge" label={t.name} class=""><t.icon /></FeaturedIcon></li>)}
</ul>
{primaryAction && <div class="mt-12 flex justify-center"><Button href={primaryAction.href}>{primaryAction.label}</Button></div>}
</Section>
Show codeHide code
---
/**
* Integrations icons 02: A centred heading over sixteen integration icons and a button.
*
* @block features
* @order 40
*/
import { BookOpen, Bug, Calendar, CreditCard, FileText, Folder, GitBranch, HardDrive, LifeBuoy, Mail, MessageCircle, MessagesSquare, PenTool, Ticket, Users, Workflow } from '@lucide/astro'
import Section from '@/components/apogee/Section/Section.astro'
import SectionHeader from '@/components/apogee/SectionHeader/SectionHeader.astro'
import FeaturedIcon from '@/components/apogee/FeaturedIcon/FeaturedIcon.astro'
import Button from '@/components/apogee/Button/Button.astro'
import { plain, type Action } from '@/components/apogee/sections/_shared/spine.ts'
import type { FeaturesContent } from '@/components/apogee/sections/_shared/features.ts'
const tools = [
{ name: 'Docs', icon: FileText },
{ name: 'Chat', icon: MessagesSquare },
{ name: 'Drive', icon: HardDrive },
{ name: 'Help desk', icon: LifeBuoy },
{ name: 'Issues', icon: Bug },
{ name: 'Files', icon: Folder },
{ name: 'Payments', icon: CreditCard },
{ name: 'Automations', icon: Workflow },
{ name: 'Design', icon: PenTool },
{ name: 'Wiki', icon: BookOpen },
{ name: 'Email', icon: Mail },
{ name: 'Tickets', icon: Ticket },
{ name: 'Calendar', icon: Calendar },
{ name: 'Messages', icon: MessageCircle },
{ name: 'Community', icon: Users },
{ name: 'Code', icon: GitBranch },
]
/** @composable */
interface Props extends FeaturesContent {
/** The button under the icons. @category content */
primaryAction?: Action | null
}
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.",
primaryAction = { label: 'All integrations', href: '#' },
} = Astro.props
---
<Section spacing="large">
<SectionHeader eyebrow={eyebrow ?? undefined} heading={plain(heading)} description={description ?? undefined} align="center" class="mb-12 md:mb-16" />
<ul class="mx-auto grid max-w-4xl list-none grid-cols-4 justify-items-center gap-6 p-0 md:gap-8 lg:grid-cols-8">
{tools.map((t) => <li><FeaturedIcon theme="outline" color="neutral" size="xlarge" label={t.name} class=""><t.icon /></FeaturedIcon></li>)}
</ul>
{primaryAction && <div class="mt-12 flex justify-center"><Button href={primaryAction.href}>{primaryAction.label}</Button></div>}
</Section>Add
npx @ava-ui/apogee add features/integrations-icons-02
This copies the block to src/components/apogee/blocks/features/ with everything it uses: Button, FeaturedIcon, 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.