# IPhone mockup 02

> A heading and email signup beside a phone in a grey panel, with notifications over it.

URL: https://apogee.avaui.dev/docs/newsletter-sections/iphone-mockup-02
Last updated: 2026-10-20

A heading and email signup beside a phone in a grey panel, with notifications over it.

Last updated October 20, 2026

Live example: https://apogee.avaui.dev/examples/newsletter/iphone-mockup-02

```astro
---
/**
 * IPhone mockup 02: A heading and email signup beside a phone in a grey panel, with notifications over it.
 *
 * @block newsletter
 * @order 10
 */
import Section from '@/components/apogee/Section/Section.astro'
import SectionHeader from '@/components/apogee/SectionHeader/SectionHeader.astro'
import Button from '@/components/apogee/Button/Button.astro'
import Input from '@/components/apogee/Input/Input.astro'
import Link from '@/components/apogee/Link/Link.astro'
import DeviceFrame from '@/components/apogee/DeviceFrame/DeviceFrame.astro'
import Avatar from '@/components/apogee/Avatar/Avatar.astro'
import { plain } from '@/components/apogee/sections/_shared/spine.ts'
import type { NewsletterContent } from '@/components/apogee/sections/_shared/newsletter.ts'

/** @composable */
interface Props extends NewsletterContent {}

const {
  eyebrow,
  heading = 'Be the first to know when we launch',
  description = 'We\'re still building. Subscribe for updates and 20% off when we launch. No spam, we promise!',
  submitLabel = 'Subscribe',
  media = { src: '/mockups/app-phone-light.jpg', srcDark: '/mockups/app-phone-dark.jpg', alt: 'The dashboard overview on a phone' },
} = 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 md:gap-12">
      <SectionHeader eyebrow={eyebrow ?? undefined} heading={plain(heading)} description={description ?? undefined} size="large" />
      <form method="post" class="flex w-full max-w-md flex-col gap-2">
      <div class="flex flex-col gap-3 md:flex-row">
        <Input type="email" name="email" placeholder="Enter your email" aria-label="Email" autocomplete="email" required size="large" class="flex-1 text-start" />
        <Button type="submit" size="large">{submitLabel}</Button>
      </div>
      <p class="text-sm text-neutral-faded">We care about your data in our <Link href="#" color="neutral">privacy policy</Link>.</p>
    </form>
    </div>
    {media && (
    <div class="relative flex min-h-90 items-start justify-center overflow-hidden rounded-2xl bg-neutral-faded pt-8 md:min-h-140 md:pt-16 lg:justify-end lg:pe-12">
      <DeviceFrame device="phone" src={media.src} srcDark={media.srcDark} alt={media.alt} width={media.width} height={media.height} class="w-60 md:w-64" />
      <ul class="flex list-none flex-col gap-3 p-0 max-lg:hidden absolute bottom-8 start-8" aria-hidden="true">
          {[['Ada Lovelace', 'followed you'], ['Alan Turing', 'gave your post kudos'], ['Grace Hopper', 'joined your team']].map(([n, t]) => (
            <li class="flex w-64 items-center gap-3 rounded-xl bg-elevation-raised/90 p-3 shadow-raised ring-1 ring-neutral backdrop-blur-lg">
              <Avatar name={n} size="small" />
              <span class="text-sm"><span class="font-semibold">{n}</span> {t}</span>
            </li>
          ))}
        </ul>
    </div>
    )}
  </div>
</Section>
```

## Add

```sh
npx @ava-ui/apogee add newsletter/iphone-mockup-02
```

This copies the block to `src/components/apogee/blocks/newsletter/` with everything it uses: Avatar, Button, DeviceFrame, Input, 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](https://apogee.avaui.dev/docs/newsletter-sections#copy-is-props).

## Accessibility

-   The heading is an `h2` by default, so the block slots into a page under its `h1`; item titles are one level down.
-   The email field is named “Email” (the placeholder is not a label); the form submits without JS.

## Related

[

InputA labeled text field with hint/error messaging, wired for accessibility — plus a pure-CSS floating label.

](https://apogee.avaui.dev/docs/input)[

ButtonTriggers an action. Renders a <button>, or an <a> when href is set. Hue, fill and height are three separate props.

](https://apogee.avaui.dev/docs/button)[

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.

](https://apogee.avaui.dev/docs/device-frame)
