Console SSO Login
blockauthSplit-screen developer console authentication suite featuring brand telemetry showcases, OAuth providers, passkey biometric sign-in, and automatic enterprise SAML SSO domain detection.
Installation
$pnpm dlx shadcn-svelte@latest add https://uipkge.dev/r/svelte/login-01.json$npx shadcn-svelte@latest add https://uipkge.dev/r/svelte/login-01.json$yarn dlx shadcn-svelte@latest add https://uipkge.dev/r/svelte/login-01.json$bunx shadcn-svelte@latest add https://uipkge.dev/r/svelte/login-01.jsonManifest:
https://uipkge.dev/r/svelte/login-01.jsonInstalls to:src/lib/components/blocks/login-01/Variants
Loading interactive previews…
Loading interactive previews…
Files installed (1)
src/lib/components/blocks/login-01/Login01.svelte15.2 kB
<script lang="ts"> import { ArrowRight, CircleCheckBig, Fingerprint, KeyRound, Lock, Mail, ShieldCheck, Terminal, Zap, } from '@lucide/svelte' import { Badge } from '$lib/components/ui/badge' import { Button } from '$lib/components/ui/button' import { Input } from '$lib/components/ui/input' import { Label } from '$lib/components/ui/label' import { Separator } from '$lib/components/ui/separator' import { Tabs, TabsContent, TabsList, TabsTrigger } from '$lib/components/ui/tabs' import { cn } from '$lib/utils' export interface LoginSubmitPayload { method: string email: string password?: string domain?: string } interface Login01Props { class?: string onsubmit?: (payload: LoginSubmitPayload) => void onForgotPassword?: () => void onSignUp?: () => void onOauth?: (provider: 'github' | 'google') => void } let { class: className, onsubmit, onForgotPassword, onSignUp, onOauth }: Login01Props = $props() let authMethod = $state('password') let email = $state('') let password = $state('') let ssoDomain = $state('') let isLoading = $state(false) let isSubmitted = $state(false) const isEnterpriseEmail = $derived.by(() => { const parts = email.split('@') if (parts.length < 2) return false const domain = parts[1].toLowerCase() return ( !!domain && !['gmail.com', 'yahoo.com', 'hotmail.com', 'outlook.com', 'icloud.com'].includes(domain) && domain.includes('.') ) }) function handleSubmit() { if (isLoading) return isLoading = true setTimeout(() => { isLoading = false isSubmitted = true onsubmit?.({ method: authMethod, email, password, domain: ssoDomain }) }, 800) } </script> <div data-slot="login-01" class={cn('bg-background grid min-h-screen w-full grid-cols-1 lg:grid-cols-12', className)}> <!-- Left Hero Brand & Proof Pane (Desktop) --> <div class="border-border bg-muted/30 relative hidden flex-col justify-between overflow-hidden border-r p-12 lg:col-span-6 lg:flex xl:col-span-7" > <!-- Background Ambient Glow --> <div class="relative z-10 flex items-center gap-2.5"> <div class="bg-primary text-primary-foreground flex size-9 items-center justify-center rounded-lg font-bold shadow-xs" > <Zap class="size-5 fill-current" /> </div> <span class="text-foreground text-lg font-bold tracking-tight">UIPKGE Studio</span> </div> <!-- Live Code/Terminal Showcase Widget --> <div class="relative z-10 my-auto max-w-xl space-y-6"> <div class="space-y-3"> <div class="border-primary/20 bg-primary/10 text-primary inline-flex items-center gap-2 rounded-full border px-3 py-1 font-mono text-xs font-semibold" > <Terminal class="size-3.5" /> <span>Developer Cloud Console v4.8</span> </div> <h1 class="text-foreground text-3xl leading-tight font-bold tracking-tight xl:text-4xl"> The dual-framework UI registry for mission-critical software. </h1> <p class="text-muted-foreground text-sm leading-relaxed"> Own your source code without runtime dependency lock-in. Built with Tailwind CSS v4, OKLCH color spaces, and headless accessibility primitives. </p> </div> <!-- Terminal Widget --> <div class="border-border bg-card overflow-hidden rounded-xl border shadow-lg"> <div class="border-border bg-muted/40 flex items-center justify-between border-b px-4 py-2.5"> <div class="flex items-center gap-2"> <span class="bg-destructive/60 size-2.5 rounded-full"></span> <span class="bg-warning/60 size-2.5 rounded-full"></span> <span class="bg-success/60 size-2.5 rounded-full"></span> <span class="text-muted-foreground ml-2 font-mono text-xs">auth-session-init.ts</span> </div> <Badge variant="outline" class="font-mono text-xs">mTLS Encrypted</Badge> </div> <div class="bg-card/90 space-y-1 p-4 font-mono text-xs leading-relaxed"> <p class="text-muted-foreground">// Validating SAML 2.0 / WebAuthn identity assertion</p> <p class="text-foreground"> <span class="text-primary font-bold">const</span> session = <span class="text-primary font-bold">await</span> auth.<span class="text-foreground font-semibold" >verifyCredentials</span >({'{'} </p> <p class="text-foreground pl-4">tenant: <span class="text-success">'cyberdyne-systems.internal'</span>,</p> <p class="text-foreground pl-4"> protocols: [<span class="text-success">'webauthn-fido2'</span>, <span class="text-success">'saml2-okta'</span>] </p> <p class="text-foreground">{'}'});</p> <p class="text-success flex items-center gap-1.5 pt-1 font-medium"> <CircleCheckBig class="size-3.5" /> <span>✓ Cryptographic identity handshaking verified (0.8ms)</span> </p> </div> </div> <!-- Metric Badges --> <div class="border-border grid grid-cols-3 gap-4 border-t pt-4 text-xs"> <div> <p class="text-foreground font-mono text-lg font-bold">99.95%</p> <p class="text-muted-foreground">Auth Uptime SLA</p> </div> <div> <p class="text-foreground font-mono text-lg font-bold">FIDO2</p> <p class="text-muted-foreground">Passkey Standard</p> </div> <div> <p class="text-foreground font-mono text-lg font-bold">SOC 2 Type II</p> <p class="text-muted-foreground">Certified Cloud</p> </div> </div> </div> <div class="text-muted-foreground relative z-10 flex items-center justify-between text-xs"> <span>© 2026 UIPKGE Inc.</span> <div class="flex gap-4"> <!-- svelte-ignore a11y_invalid_attribute: placeholder hrefs — point these at your real routes after install --> <a href="#" class="hover:text-foreground transition-colors">Privacy Policy</a> <!-- svelte-ignore a11y_invalid_attribute: placeholder hrefs — point these at your real routes after install --> <a href="#" class="hover:text-foreground transition-colors">Terms of Service</a> <!-- svelte-ignore a11y_invalid_attribute: placeholder hrefs — point these at your real routes after install --> <a href="#" class="hover:text-foreground transition-colors">Trust Center</a> </div> </div> </div> <!-- Right Login Workbench Pane --> <div class="flex flex-col items-center justify-center p-6 sm:p-12 lg:col-span-6 xl:col-span-5"> <div class="w-full max-w-md space-y-6"> <!-- Brand on mobile --> <div class="mb-4 flex items-center gap-2 lg:hidden"> <div class="bg-primary text-primary-foreground flex size-8 items-center justify-center rounded-lg font-bold shadow-xs" > <Zap class="size-4 fill-current" /> </div> <span class="text-foreground font-bold tracking-tight">UIPKGE Studio</span> </div> <div class="space-y-2"> <h2 class="text-foreground text-2xl font-bold tracking-tight">Sign in to console</h2> <p class="text-muted-foreground text-xs">Enter your credentials, passkey or company Single Sign-On.</p> </div> <!-- Social / Fast Auth Buttons --> <div class="grid grid-cols-2 gap-3"> <Button variant="outline" type="button" class="border-border hover:bg-muted h-10 gap-2 text-xs font-semibold" onclick={() => onOauth?.('github')} > <!-- @lucide/svelte no longer ships brand icons — inline the GitHub mark. --> <svg viewBox="0 0 24 24" class="size-4" fill="currentColor" aria-hidden="true"> <path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" /> </svg> <span>GitHub</span> </Button> <Button variant="outline" type="button" class="border-border hover:bg-muted h-10 gap-2 text-xs font-semibold" onclick={() => onOauth?.('google')} > <svg viewBox="0 0 24 24" class="size-4" aria-hidden="true"> <path fill="#4285F4" d="M22.5 12.27c0-.79-.07-1.54-.2-2.27H12v4.51h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.32z" /> <path fill="#34A853" d="M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.99.66-2.25 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z" /> <path fill="#FBBC05" d="M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.06H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.94l2.85-2.22.81-.63z" /> <path fill="#EA4335" d="M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.06l3.66 2.84c.87-2.6 3.3-4.52 6.16-4.52z" /> </svg> <span>Google</span> </Button> </div> <div class="relative"> <Separator /> <span class="bg-background text-muted-foreground absolute -top-2.5 left-1/2 -translate-x-1/2 px-3 font-mono text-xs tracking-wider uppercase" > Or continue with </span> </div> <!-- Auth Method Tabs --> <Tabs bind:value={authMethod} class="w-full"> <TabsList class="grid h-9 w-full grid-cols-3"> <TabsTrigger value="password" class="text-xs font-medium">Password</TabsTrigger> <TabsTrigger value="passkey" class="text-xs font-medium">Passkey</TabsTrigger> <TabsTrigger value="sso" class="text-xs font-medium">SAML SSO</TabsTrigger> </TabsList> <!-- Password Tab --> <TabsContent value="password" class="mt-4 space-y-4"> <form class="space-y-4" onsubmit={(e) => { e.preventDefault() handleSubmit() }} > <div class="space-y-1.5"> <Label for="email-input" class="text-xs font-medium">Work Email</Label> <Input id="email-input" bind:value={email} type="email" placeholder="[email protected]" autocomplete="email" required prefixIcon={Mail} class="h-9 text-xs" /> <!-- Enterprise domain detected badge --> {#if isEnterpriseEmail} <div class="text-primary mt-1 flex items-center gap-1.5 text-xs font-medium"> <ShieldCheck class="size-3.5" /> <span>Enterprise domain detected. Single Sign-On available.</span> </div> {/if} </div> <div class="space-y-1.5"> <div class="flex items-center justify-between"> <Label for="pass-input" class="text-xs font-medium">Password</Label> <button type="button" class="text-muted-foreground hover:text-foreground text-xs transition-colors" onclick={() => onForgotPassword?.()} > Forgot password? </button> </div> <Input id="pass-input" bind:value={password} type="password" placeholder="••••••••••••" autocomplete="current-password" required prefixIcon={Lock} class="h-9 text-xs" /> </div> <Button type="submit" class="h-10 w-full gap-2 text-xs font-semibold shadow-xs" disabled={isLoading}> {#if isLoading} <span class="border-primary-foreground size-3.5 animate-spin rounded-full border-2 border-t-transparent" ></span> {:else} <span>Continue with Password</span> {/if} <ArrowRight class="size-3.5" /> </Button> </form> </TabsContent> <!-- Passkey Tab --> <TabsContent value="passkey" class="mt-4 space-y-4"> <div class="border-border bg-card space-y-4 rounded-xl border p-6 text-center"> <div class="bg-primary/10 text-primary mx-auto flex size-12 items-center justify-center rounded-full"> <Fingerprint class="size-6" /> </div> <div class="space-y-1"> <p class="text-foreground text-sm font-semibold">Passwordless Biometric Login</p> <p class="text-muted-foreground text-xs"> Use Touch ID, Face ID, or a FIDO2 hardware security key for zero-friction sign in. </p> </div> <Button type="button" class="h-10 w-full gap-2 text-xs font-semibold shadow-xs" disabled={isLoading} onclick={handleSubmit} > <Fingerprint class="size-4" /> <span>{isLoading ? 'Authenticating...' : 'Sign in with Passkey'}</span> </Button> </div> </TabsContent> <!-- SSO Tab --> <TabsContent value="sso" class="mt-4 space-y-4"> <form class="space-y-4" onsubmit={(e) => { e.preventDefault() handleSubmit() }} > <div class="space-y-1.5"> <Label for="sso-domain" class="text-xs font-medium">Enterprise Domain</Label> <Input id="sso-domain" bind:value={ssoDomain} type="text" placeholder="company.okta.com or domain.com" required class="h-9 font-mono text-xs" /> <p class="text-muted-foreground text-xs"> Redirects to your corporate Identity Provider (Okta, Azure AD, Ping Identity). </p> </div> <Button type="submit" class="h-10 w-full gap-2 text-xs font-semibold shadow-xs" disabled={isLoading}> <KeyRound class="size-3.5" /> <span>Continue with SAML SSO</span> <ArrowRight class="size-3.5" /> </Button> </form> </TabsContent> </Tabs> <div class="text-muted-foreground text-center text-xs"> Don't have a workspace account? <button type="button" class="text-primary ml-1 font-semibold hover:underline" onclick={() => onSignUp?.()}> Create free trial </button> </div> </div> </div> </div>
Raw manifest:https://uipkge.dev/r/svelte/login-01.json