About
A sign-up and log-in panel in one component: a frosted glass card over a painted dusk landscape where an old beige monitor sits in the grass and talks back. Switching modes is staged, outgoing fields leave, the block eases to its new height and new fields arrive while the monitor flickers to a new message. Labelled inputs, show and hide password, inline validation, a loading state and onSubmit and onSocial callbacks. Pointer parallax, honours reduced motion.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Dusk CRT Auth to your project and fits it to your theme.
Code
How Dusk CRT Auth is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import DuskCrtAuth from "@/components/ui/dusk-crt-auth"
// 21st's preview frame is about 674 × 420 and scrolls anything taller, so wide frames
// get at most 440 px. Phones (under ~600 px wide) get the full screen height.
export default function DuskCrtAuthDemo() {
return (
<DuskCrtAuth
height="min(100svh, max(440px, (720px - 100vw) * 8))"
brand="Vesper"
onSubmit={(v) => new Promise((resolve) => setTimeout(() => resolve(v), 1400))}
onSocial={(provider) => console.log("continue with", provider)}
/>
)
}
















