Tabs mockup 11
A heading over feature tabs beside a stack of payment cards; each tab shows its own arrangement.
Last updated
---
/**
* Tabs mockup 11: A heading over feature tabs beside a stack of payment cards; each tab shows its own arrangement.
*
* @block features
* @order 37
*/
import Section from '@/components/apogee/Section/Section.astro'
import SectionHeader from '@/components/apogee/SectionHeader/SectionHeader.astro'
import Tabs from '@/components/apogee/Tabs/Tabs.astro'
import PaymentCard from '@/components/apogee/PaymentCard/PaymentCard.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 {
eyebrow = 'Features',
heading = 'Cards your whole team can use',
description = 'Powerful, self-serve product and growth analytics to help you convert, engage and retain more users. Trusted by over 4,000 startups.',
items = [
{ title: 'A card for every team', description: 'Issue cards in seconds, each with its own name and budget.' },
{ title: 'Set spending limits', description: 'Cap each card by day, month or merchant, and change it any time.' },
{ title: 'See every payment', description: 'Every charge lands in one feed, matched to its receipt.' },
],
} = Astro.props
---
<Section spacing="large">
<SectionHeader eyebrow={eyebrow ?? undefined} heading={plain(heading)} description={description ?? undefined} class="mb-12 md:mb-16" />
<Tabs variant="feature" orientation="vertical" tabs={items.map((f) => ({ label: f.title, description: f.description }))} label="Features" class="flex-col gap-12 lg:grid lg:grid-cols-2 lg:items-center lg:gap-16">
<div slot="panel-0"><div class="flex items-center justify-center overflow-hidden rounded-3xl bg-neutral-faded p-6 md:p-10 h-80 md:h-120">
<PaymentCard color="primary" class="w-64 -rotate-3 md:w-80" />
</div></div>
<div slot="panel-1"><div class="flex items-center justify-center overflow-hidden rounded-3xl bg-neutral-faded p-6 md:p-10 h-80 md:h-120">
<div class="relative h-full w-full max-w-md">
<div class="absolute start-0 top-1/2 w-60 -translate-y-3/4 -rotate-6 md:w-80"><PaymentCard variant="glass" last4="8080" /></div>
<div class="absolute end-0 top-1/2 w-60 -translate-y-1/4 rotate-6 md:w-80"><PaymentCard color="neutral" last4="1234" /></div>
</div>
</div></div>
<div slot="panel-2"><div class="flex items-center justify-center overflow-hidden rounded-3xl bg-neutral-faded p-6 md:p-10 h-80 md:h-120">
<div class="relative h-full w-full max-w-md">
<div class="absolute inset-x-0 top-[8%] mx-auto w-60 md:w-80"><PaymentCard variant="glass" last4="8080" /></div>
<div class="absolute inset-x-0 top-[22%] mx-auto w-60 md:w-80"><PaymentCard color="neutral" last4="1234" /></div>
<div class="absolute inset-x-0 top-[36%] mx-auto w-60 md:w-80"><PaymentCard variant="glass" last4="5150" /></div>
<div class="absolute inset-x-0 top-[50%] mx-auto w-60 md:w-80"><PaymentCard color="primary" last4="4242" /></div>
</div>
</div></div>
</Tabs>
</Section>
Show codeHide code
---
/**
* Tabs mockup 11: A heading over feature tabs beside a stack of payment cards; each tab shows its own arrangement.
*
* @block features
* @order 37
*/
import Section from '@/components/apogee/Section/Section.astro'
import SectionHeader from '@/components/apogee/SectionHeader/SectionHeader.astro'
import Tabs from '@/components/apogee/Tabs/Tabs.astro'
import PaymentCard from '@/components/apogee/PaymentCard/PaymentCard.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 {
eyebrow = 'Features',
heading = 'Cards your whole team can use',
description = 'Powerful, self-serve product and growth analytics to help you convert, engage and retain more users. Trusted by over 4,000 startups.',
items = [
{ title: 'A card for every team', description: 'Issue cards in seconds, each with its own name and budget.' },
{ title: 'Set spending limits', description: 'Cap each card by day, month or merchant, and change it any time.' },
{ title: 'See every payment', description: 'Every charge lands in one feed, matched to its receipt.' },
],
} = Astro.props
---
<Section spacing="large">
<SectionHeader eyebrow={eyebrow ?? undefined} heading={plain(heading)} description={description ?? undefined} class="mb-12 md:mb-16" />
<Tabs variant="feature" orientation="vertical" tabs={items.map((f) => ({ label: f.title, description: f.description }))} label="Features" class="flex-col gap-12 lg:grid lg:grid-cols-2 lg:items-center lg:gap-16">
<div slot="panel-0"><div class="flex items-center justify-center overflow-hidden rounded-3xl bg-neutral-faded p-6 md:p-10 h-80 md:h-120">
<PaymentCard color="primary" class="w-64 -rotate-3 md:w-80" />
</div></div>
<div slot="panel-1"><div class="flex items-center justify-center overflow-hidden rounded-3xl bg-neutral-faded p-6 md:p-10 h-80 md:h-120">
<div class="relative h-full w-full max-w-md">
<div class="absolute start-0 top-1/2 w-60 -translate-y-3/4 -rotate-6 md:w-80"><PaymentCard variant="glass" last4="8080" /></div>
<div class="absolute end-0 top-1/2 w-60 -translate-y-1/4 rotate-6 md:w-80"><PaymentCard color="neutral" last4="1234" /></div>
</div>
</div></div>
<div slot="panel-2"><div class="flex items-center justify-center overflow-hidden rounded-3xl bg-neutral-faded p-6 md:p-10 h-80 md:h-120">
<div class="relative h-full w-full max-w-md">
<div class="absolute inset-x-0 top-[8%] mx-auto w-60 md:w-80"><PaymentCard variant="glass" last4="8080" /></div>
<div class="absolute inset-x-0 top-[22%] mx-auto w-60 md:w-80"><PaymentCard color="neutral" last4="1234" /></div>
<div class="absolute inset-x-0 top-[36%] mx-auto w-60 md:w-80"><PaymentCard variant="glass" last4="5150" /></div>
<div class="absolute inset-x-0 top-[50%] mx-auto w-60 md:w-80"><PaymentCard color="primary" last4="4242" /></div>
</div>
</div></div>
</Tabs>
</Section>Add
npx @ava-ui/apogee add features/tabs-mockup-11
This copies the block to src/components/apogee/blocks/features/ with everything it uses: PaymentCard, Section, SectionHeader, Tabs. 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. - The feature tabs are a tab list: arrow keys move between them, each tab is named by its title and described by its line, and without JS every panel shows.
- Each payment card is one image, named by its last four digits.
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.