Card combined
One card holds the logo, the heading and the form.
Last updated
---
/**
* Card combined: One card holds the logo, the heading and the form.
*
* @page sign-up
*/
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 Button from '@/components/apogee/Button/Button.astro'
import Link from '@/components/apogee/Link/Link.astro'
---
<AuthShell layout="card" heading="Start your free trial" description="Sign up in less than 2 minutes.">
<FeaturedIcon slot="brand" theme="solid" color="primary" size="large"><Orbit /></FeaturedIcon>
<form method="post" class="flex flex-col gap-6">
<div class="flex flex-col gap-5">
<Input label="Name" name="name" placeholder="Enter your name" autocomplete="name" required />
<Input label="Email" type="email" name="email" placeholder="Enter your email" autocomplete="email" required />
<Input label="Password" type="password" name="password" placeholder="Create a password" autocomplete="new-password" minlength="8" hint="Must be at least 8 characters." required />
</div>
<div class="flex flex-col gap-4">
<Button type="submit" size="large" fullWidth>Get started</Button>
<Button href="#" variant="outline" color="neutral" size="large" fullWidth>
<KeyRound slot="start" aria-hidden="true" />
Sign up with SSO
</Button>
</div>
</form>
<p slot="footer" class="text-neutral-faded">
Already have an account? <Link href="#" underline="hover" class="font-semibold">Log in</Link>
</p>
</AuthShell>
Show codeHide code
---
/**
* Card combined: One card holds the logo, the heading and the form.
*
* @page sign-up
*/
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 Button from '@/components/apogee/Button/Button.astro'
import Link from '@/components/apogee/Link/Link.astro'
---
<AuthShell layout="card" heading="Start your free trial" description="Sign up in less than 2 minutes.">
<FeaturedIcon slot="brand" theme="solid" color="primary" size="large"><Orbit /></FeaturedIcon>
<form method="post" class="flex flex-col gap-6">
<div class="flex flex-col gap-5">
<Input label="Name" name="name" placeholder="Enter your name" autocomplete="name" required />
<Input label="Email" type="email" name="email" placeholder="Enter your email" autocomplete="email" required />
<Input label="Password" type="password" name="password" placeholder="Create a password" autocomplete="new-password" minlength="8" hint="Must be at least 8 characters." required />
</div>
<div class="flex flex-col gap-4">
<Button type="submit" size="large" fullWidth>Get started</Button>
<Button href="#" variant="outline" color="neutral" size="large" fullWidth>
<KeyRound slot="start" aria-hidden="true" />
Sign up with SSO
</Button>
</div>
</form>
<p slot="footer" class="text-neutral-faded">
Already have an account? <Link href="#" underline="hover" class="font-semibold">Log in</Link>
</p>
</AuthShell>Add
npx @ava-ui/apogee add sign-up/card-combined
This copies the page to src/components/apogee/pages/sign-up/ with everything it uses: AuthShell, Button, FeaturedIcon, Input, Link. Render it from one of your routes, or use Copy code above.
Accessibility
- The page heading is the
h1; the fields carry visible labels andautocompletehints (new-passwordfor new passwords, so password managers offer to generate one). - 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.
InputA labeled text field with hint/error messaging, wired for accessibility — plus a pure-CSS floating label.
ButtonTriggers an action. Renders a <button>, or an <a> when href is set. Hue, fill and height are three separate props.