Large screen mockup 02
A centred heading on a tinted band, over a full-width screenshot that overlaps it.
Last updated
---
/**
* Large screen mockup 02: A centred heading on a tinted band, over a full-width screenshot that overlaps it.
*
* @block features
* @order 26
*/
import Section from '@/components/apogee/Section/Section.astro'
import SectionHeader from '@/components/apogee/SectionHeader/SectionHeader.astro'
import Container from '@/components/apogee/Container/Container.astro'
import DeviceFrame from '@/components/apogee/DeviceFrame/DeviceFrame.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 = 'Dashboards your team will read',
description = 'Powerful, self-serve product and growth analytics to help you convert, engage and retain more users. Trusted by over 4,000 startups.',
media = { src: '/mockups/app-desktop-light.jpg', srcDark: '/mockups/app-desktop-dark.jpg', alt: 'The dashboard overview in a browser' },
} = Astro.props
---
<Section spacing="none" container={false}>
<div class="bg-neutral-faded pt-section-lg pb-24 md:pb-40">
<Container><SectionHeader eyebrow={eyebrow ?? undefined} heading={plain(heading)} description={description ?? undefined} align="center" /></Container>
</div>
<Container class="-mt-16 pb-section-lg md:-mt-28">
{media && <div class="max-h-105 overflow-hidden rounded-xl mask-b-from-70% md:max-h-140">
<DeviceFrame device="browser" src={media.src} srcDark={media.srcDark} alt={media.alt} width={media.width} height={media.height} class="" />
</div>}
</Container>
</Section>
Show codeHide code
---
/**
* Large screen mockup 02: A centred heading on a tinted band, over a full-width screenshot that overlaps it.
*
* @block features
* @order 26
*/
import Section from '@/components/apogee/Section/Section.astro'
import SectionHeader from '@/components/apogee/SectionHeader/SectionHeader.astro'
import Container from '@/components/apogee/Container/Container.astro'
import DeviceFrame from '@/components/apogee/DeviceFrame/DeviceFrame.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 = 'Dashboards your team will read',
description = 'Powerful, self-serve product and growth analytics to help you convert, engage and retain more users. Trusted by over 4,000 startups.',
media = { src: '/mockups/app-desktop-light.jpg', srcDark: '/mockups/app-desktop-dark.jpg', alt: 'The dashboard overview in a browser' },
} = Astro.props
---
<Section spacing="none" container={false}>
<div class="bg-neutral-faded pt-section-lg pb-24 md:pb-40">
<Container><SectionHeader eyebrow={eyebrow ?? undefined} heading={plain(heading)} description={description ?? undefined} align="center" /></Container>
</div>
<Container class="-mt-16 pb-section-lg md:-mt-28">
{media && <div class="max-h-105 overflow-hidden rounded-xl mask-b-from-70% md:max-h-140">
<DeviceFrame device="browser" src={media.src} srcDark={media.srcDark} alt={media.alt} width={media.width} height={media.height} class="" />
</div>}
</Container>
</Section>Add
npx @ava-ui/apogee add features/large-screen-mockup-02
This copies the block to src/components/apogee/blocks/features/ with everything it uses: Container, DeviceFrame, 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.
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.