Login-4
hex-ui/login-4FreeBlock
A login form with a customizable side background and a testimonial panel
Live preview
live · rendered by the registry
Rendered by hex-ui on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://hexui.sh/r/login-4.jsonSource
1import Image from "next/image"2import { LoginForm } from "../../components/login-form"3import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar"45export default function Page() {6 return (7 // Two-column split on lg: form (4 cols) + image panel (6 cols) with a testimonial overlay.8 <div className="grid min-h-svh w-full lg:grid-cols-10">9 <div className="flex col-span-4 items-center justify-center">10 <div className="w-full max-w-xs">11 <LoginForm />12 </div>13 </div>14 <div className="relative hidden overflow-hidden lg:block col-span-6">15 <div className="absolute inset-0">16 <Image17 width={1500}18 height={1600}19 src="/demo/backgrounds/sky.png"20 alt="Background"21 // Darken and desaturate the photo in dark mode so it doesn't compete with the form.22 className="h-full w-full object-cover dark:brightness-[0.3] dark:grayscale"23 />24 {/* Gradient scrim improves text contrast; stronger in dark mode. */}25 <div className="absolute inset-0 bg-gradient-to-t from-black/60 via-black/20 to-transparent dark:from-black/80 dark:via-black/40 dark:to-black/20" />26 </div>27 {/* Testimonial pinned to the bottom of the image, above the scrim (z-10). */}28 <div className="relative z-10 flex h-full flex-col justify-end p-10">29 <div className="space-y-2 text-white">30 <blockquote className="text-2xl font-medium leading-snug">31 “It’s so wonderful to see you all!”32 </blockquote>33 <div className="flex items-center gap-3">34 <Avatar>35 <AvatarImage src="https://github.com/ri0n-dev.png" alt="@ri0n-dev" />36 <AvatarFallback>RI</AvatarFallback>37 </Avatar>38 <div className="flex flex-col">39 <div className="font-semibold">Rion</div>40 <div className="text-sm text-white/80">Founder</div>41 </div>42 </div>43 </div>44 </div>45 </div>46 </div>47 )48}
What it pulls in
npm packages
Other registry items
Files it writes
More from hex-ui
All 34 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Banner-1banner-1 | hex-ui | Blocks | Free | 1 dep · 2 files | |
| Banner-2banner-2 | hex-ui | Blocks | Free | 1 dep · 2 files | |
| Cta-1cta-1 | hex-ui | Blocks | Free | 1 dep · 2 files | |
| Cta-2cta-2 | hex-ui | Blocks | Free | 1 dep · 2 files | |
| Cta-3cta-3 | hex-ui | Blocks | Free | 1 dep · 2 files | |
| Cta-4cta-4 | hex-ui | Blocks | Free | 1 dep · 2 files | |
| Faq-1faq-1 | hex-ui | Blocks | Free | no deps · 3 files | |
| Faq-2faq-2 | hex-ui | Blocks | Free | no deps · 3 files |
