Split with mockup and quote
A rated customer quote above the product screen.
Last updated
---
/**
* Split with mockup and quote: A rated customer quote above the product screen.
*
* @page log-in
*/
import { Orbit, KeyRound } from '@lucide/astro'
import AuthShell from '@/components/apogee/sections/AuthShell/AuthShell.astro'
import FeaturedIcon from '@/components/apogee/FeaturedIcon/FeaturedIcon.astro'
import Input from '@/components/apogee/Input/Input.astro'
import Checkbox from '@/components/apogee/Checkbox/Checkbox.astro'
import Button from '@/components/apogee/Button/Button.astro'
import Link from '@/components/apogee/Link/Link.astro'
import Card from '@/components/apogee/Card/Card.astro'
import Stat from '@/components/apogee/Stat/Stat.astro'
import Table from '@/components/apogee/Table/Table.astro'
import Badge from '@/components/apogee/Badge/Badge.astro'
import Rating from '@/components/apogee/Rating/Rating.astro'
const stats = [
{ label: 'Active users', value: '4,862', change: '+12%', trend: 'up' as const },
{ label: 'Sessions', value: '18,204', change: '+8%', trend: 'up' as const },
{ label: 'Churn', value: '1.9%', change: '-0.4%', trend: 'down' as const },
]
const rows = [
['Oakmere', 'Team', 24, 'Active'],
['Fernhill', 'Business', 120, 'Active'],
['Brightwell', 'Team', 8, 'Trial'],
['Halcyon', 'Enterprise', 410, 'Active'],
]
---
<AuthShell layout="split" panelBackground="primary-faded" heading="Log in" description="Welcome back! Please enter your details.">
<a slot="brand" href="#" class="flex items-center gap-2 font-semibold">
<FeaturedIcon theme="solid" color="primary" size="small"><Orbit /></FeaturedIcon>
Example
</a>
<form method="post" class="flex flex-col gap-6">
<div class="flex flex-col gap-5">
<Input label="Email" type="email" name="email" placeholder="Enter your email" autocomplete="email" required />
<Input label="Password" type="password" name="password" placeholder="••••••••" autocomplete="current-password" required />
</div>
<div class="flex flex-wrap items-center justify-between gap-x-4 gap-y-2">
<Checkbox label="Remember for 30 days" name="remember" />
<Link href="#" underline="hover" class="text-sm font-semibold">Forgot password</Link>
</div>
<div class="flex flex-col gap-4">
<Button type="submit" size="large" fullWidth>Sign in</Button>
<Button href="#" variant="outline" color="neutral" size="large" fullWidth>
<KeyRound slot="start" aria-hidden="true" />
Sign in with SSO
</Button>
</div>
</form>
<p slot="footer" class="text-neutral-faded">
Don't have an account? <Link href="#" underline="hover" class="font-semibold">Sign up</Link>
</p>
<p slot="legal">© Example 2026</p>
<div slot="panel" class="relative flex w-full flex-col">
<figure class="relative z-10 flex max-w-xl flex-col gap-6 px-20 pt-24">
<Rating readonly value={5} aria-label="Rated 5 out of 5" />
<blockquote class="text-2xl font-medium text-balance">
We moved our whole team over in an afternoon. Nobody has asked how to log in since.
</blockquote>
<figcaption>
<p class="font-semibold">Mara Okafor</p>
<p class="text-sm text-neutral-faded">Head of Operations, Oakmere</p>
</figcaption>
</figure>
<!-- A product screenshot built from the components; decorative, so hidden from assistive tech. -->
<div class="absolute top-[26rem] start-20 w-[60rem] overflow-hidden rounded-xl border-[6px] border-neutral bg-page text-neutral shadow-raised" aria-hidden="true" inert>
<div class="flex items-center justify-between border-b border-neutral px-6 py-4">
<p class="font-semibold">Dashboard</p>
<Badge color="positive" variant="faded">Live</Badge>
</div>
<div class="flex flex-col gap-6 p-6">
<div class="grid grid-cols-3 gap-4">
{stats.map((s) => <Card padding="medium"><Stat {...s} comparison="vs last month" /></Card>)}
</div>
<Table size="small" border>
<thead><tr><th>Customer</th><th>Plan</th><th>Seats</th><th>Status</th></tr></thead>
<tbody>
{rows.map((r) => <tr><td>{r[0]}</td><td>{r[1]}</td><td class="tabular-nums">{r[2]}</td><td><Badge size="small" variant="faded" color={r[3] === 'Active' ? 'positive' : 'neutral'}>{r[3]}</Badge></td></tr>)}
</tbody>
</Table>
</div>
</div>
</div>
</AuthShell>
Show codeHide code
---
/**
* Split with mockup and quote: A rated customer quote above the product screen.
*
* @page log-in
*/
import { Orbit, KeyRound } from '@lucide/astro'
import AuthShell from '@/components/apogee/sections/AuthShell/AuthShell.astro'
import FeaturedIcon from '@/components/apogee/FeaturedIcon/FeaturedIcon.astro'
import Input from '@/components/apogee/Input/Input.astro'
import Checkbox from '@/components/apogee/Checkbox/Checkbox.astro'
import Button from '@/components/apogee/Button/Button.astro'
import Link from '@/components/apogee/Link/Link.astro'
import Card from '@/components/apogee/Card/Card.astro'
import Stat from '@/components/apogee/Stat/Stat.astro'
import Table from '@/components/apogee/Table/Table.astro'
import Badge from '@/components/apogee/Badge/Badge.astro'
import Rating from '@/components/apogee/Rating/Rating.astro'
const stats = [
{ label: 'Active users', value: '4,862', change: '+12%', trend: 'up' as const },
{ label: 'Sessions', value: '18,204', change: '+8%', trend: 'up' as const },
{ label: 'Churn', value: '1.9%', change: '-0.4%', trend: 'down' as const },
]
const rows = [
['Oakmere', 'Team', 24, 'Active'],
['Fernhill', 'Business', 120, 'Active'],
['Brightwell', 'Team', 8, 'Trial'],
['Halcyon', 'Enterprise', 410, 'Active'],
]
---
<AuthShell layout="split" panelBackground="primary-faded" heading="Log in" description="Welcome back! Please enter your details.">
<a slot="brand" href="#" class="flex items-center gap-2 font-semibold">
<FeaturedIcon theme="solid" color="primary" size="small"><Orbit /></FeaturedIcon>
Example
</a>
<form method="post" class="flex flex-col gap-6">
<div class="flex flex-col gap-5">
<Input label="Email" type="email" name="email" placeholder="Enter your email" autocomplete="email" required />
<Input label="Password" type="password" name="password" placeholder="••••••••" autocomplete="current-password" required />
</div>
<div class="flex flex-wrap items-center justify-between gap-x-4 gap-y-2">
<Checkbox label="Remember for 30 days" name="remember" />
<Link href="#" underline="hover" class="text-sm font-semibold">Forgot password</Link>
</div>
<div class="flex flex-col gap-4">
<Button type="submit" size="large" fullWidth>Sign in</Button>
<Button href="#" variant="outline" color="neutral" size="large" fullWidth>
<KeyRound slot="start" aria-hidden="true" />
Sign in with SSO
</Button>
</div>
</form>
<p slot="footer" class="text-neutral-faded">
Don't have an account? <Link href="#" underline="hover" class="font-semibold">Sign up</Link>
</p>
<p slot="legal">© Example 2026</p>
<div slot="panel" class="relative flex w-full flex-col">
<figure class="relative z-10 flex max-w-xl flex-col gap-6 px-20 pt-24">
<Rating readonly value={5} aria-label="Rated 5 out of 5" />
<blockquote class="text-2xl font-medium text-balance">
We moved our whole team over in an afternoon. Nobody has asked how to log in since.
</blockquote>
<figcaption>
<p class="font-semibold">Mara Okafor</p>
<p class="text-sm text-neutral-faded">Head of Operations, Oakmere</p>
</figcaption>
</figure>
<!-- A product screenshot built from the components; decorative, so hidden from assistive tech. -->
<div class="absolute top-[26rem] start-20 w-[60rem] overflow-hidden rounded-xl border-[6px] border-neutral bg-page text-neutral shadow-raised" aria-hidden="true" inert>
<div class="flex items-center justify-between border-b border-neutral px-6 py-4">
<p class="font-semibold">Dashboard</p>
<Badge color="positive" variant="faded">Live</Badge>
</div>
<div class="flex flex-col gap-6 p-6">
<div class="grid grid-cols-3 gap-4">
{stats.map((s) => <Card padding="medium"><Stat {...s} comparison="vs last month" /></Card>)}
</div>
<Table size="small" border>
<thead><tr><th>Customer</th><th>Plan</th><th>Seats</th><th>Status</th></tr></thead>
<tbody>
{rows.map((r) => <tr><td>{r[0]}</td><td>{r[1]}</td><td class="tabular-nums">{r[2]}</td><td><Badge size="small" variant="faded" color={r[3] === 'Active' ? 'positive' : 'neutral'}>{r[3]}</Badge></td></tr>)}
</tbody>
</Table>
</div>
</div>
</div>
</AuthShell>Add
npx @ava-ui/apogee add log-in/split-mockup-quote
This copies the page to src/components/apogee/pages/log-in/ with everything it uses: AuthShell (layout split), Rating, Card, Stat, Table, Badge. Render it from one of your routes, or use Copy code above.
Accessibility
- The page heading is the
h1; the form fields carry visible labels andautocompletehints, so password managers fill them. - The product screen is
aria-hiddenandinert; the quote stays readable. - The SSO button is a link to your identity provider; swap its
hreffor your own.
Related
Auth shellThe frame of a log in, sign up or recovery page; brand mark, heading and your form, centred, in a card, beside a panel, or beside a step sidebar.
RatingA star rating on native radios — pick a value on a scale, or display one read-only.
StatDisplays a labelled metric with an optional trend indicator. For dashboards and summary rows.
TableA styled, horizontally-scrollable table. Write plain thead/tbody markup — Table only styles it.