Integrations icons 01
A heading and two buttons beside a grid of eight integration icons.
Last updated
---
/**
* Integrations icons 01: A heading and two buttons beside a grid of eight integration icons.
*
* @block features
* @order 39
*/
import { BookOpen, Bug, Calendar, CirclePlay, 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 Badge from '@/components/apogee/Badge/Badge.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 solid button. @category content */
primaryAction?: Action | null
/** The outline button. @category content */
secondaryAction?: 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: '#' },
secondaryAction = { label: 'Demo', href: '#' },
} = Astro.props
---
<Section spacing="large">
<div class="grid items-center gap-12 lg:grid-cols-2 lg:gap-16">
<div class="flex flex-col items-start gap-8">
<div class="flex flex-col gap-4 items-start ">
{eyebrow && <Badge color="primary" variant="faded" rounded>{eyebrow}</Badge>}
<SectionHeader heading={plain(heading)} description={description ?? undefined} />
</div>
{(primaryAction || secondaryAction) && (
<div class="flex flex-col gap-3 sm:flex-row">
{secondaryAction && <Button href={secondaryAction.href} variant="outline" color="neutral"><CirclePlay slot="start" aria-hidden="true" />{secondaryAction.label}</Button>}
{primaryAction && <Button href={primaryAction.href}>{primaryAction.label}</Button>}
</div>
)}
</div>
<ul class="grid list-none grid-cols-4 justify-items-center gap-4 p-0 md:gap-8">
{tools.slice(0, 8).map((t) => <li><FeaturedIcon theme="outline" color="neutral" size="xlarge" label={t.name} class=""><t.icon /></FeaturedIcon></li>)}
</ul>
</div>
</Section>
Show codeHide code
---
/**
* Integrations icons 01: A heading and two buttons beside a grid of eight integration icons.
*
* @block features
* @order 39
*/
import { BookOpen, Bug, Calendar, CirclePlay, 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 Badge from '@/components/apogee/Badge/Badge.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 solid button. @category content */
primaryAction?: Action | null
/** The outline button. @category content */
secondaryAction?: 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: '#' },
secondaryAction = { label: 'Demo', href: '#' },
} = Astro.props
---
<Section spacing="large">
<div class="grid items-center gap-12 lg:grid-cols-2 lg:gap-16">
<div class="flex flex-col items-start gap-8">
<div class="flex flex-col gap-4 items-start ">
{eyebrow && <Badge color="primary" variant="faded" rounded>{eyebrow}</Badge>}
<SectionHeader heading={plain(heading)} description={description ?? undefined} />
</div>
{(primaryAction || secondaryAction) && (
<div class="flex flex-col gap-3 sm:flex-row">
{secondaryAction && <Button href={secondaryAction.href} variant="outline" color="neutral"><CirclePlay slot="start" aria-hidden="true" />{secondaryAction.label}</Button>}
{primaryAction && <Button href={primaryAction.href}>{primaryAction.label}</Button>}
</div>
)}
</div>
<ul class="grid list-none grid-cols-4 justify-items-center gap-4 p-0 md:gap-8">
{tools.slice(0, 8).map((t) => <li><FeaturedIcon theme="outline" color="neutral" size="xlarge" label={t.name} class=""><t.icon /></FeaturedIcon></li>)}
</ul>
</div>
</Section>Add
npx @ava-ui/apogee add features/integrations-icons-01
This copies the block to src/components/apogee/blocks/features/ with everything it uses: Badge, 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.