Skip to content

Commit 746e768

Browse files
authored
feat: update 2-column sign in page (#213)
1 parent e7093bc commit 746e768

4 files changed

Lines changed: 44 additions & 55 deletions

File tree

src/assets/vite.svg

Lines changed: 0 additions & 15 deletions
This file was deleted.
451 KB
Loading
440 KB
Loading
Lines changed: 44 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,32 @@
1-
import ViteLogo from '@/assets/vite.svg'
1+
import { cn } from '@/lib/utils'
2+
import dashboardDark from './assets/dashboard-dark.png'
3+
import dashboardLight from './assets/dashboard-light.png'
24
import { UserAuthForm } from './components/user-auth-form'
35

46
export function SignIn2() {
57
return (
68
<div className='relative container grid h-svh flex-col items-center justify-center lg:max-w-none lg:grid-cols-2 lg:px-0'>
7-
<div className='bg-muted relative hidden h-full flex-col p-10 text-white lg:flex dark:border-e'>
8-
<div className='absolute inset-0 bg-zinc-900' />
9-
<div className='relative z-20 flex items-center text-lg font-medium'>
10-
<svg
11-
xmlns='http://www.w3.org/2000/svg'
12-
viewBox='0 0 24 24'
13-
fill='none'
14-
stroke='currentColor'
15-
strokeWidth='2'
16-
strokeLinecap='round'
17-
strokeLinejoin='round'
18-
className='me-2 h-6 w-6'
19-
>
20-
<path d='M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3' />
21-
</svg>
22-
Shadcn Admin
23-
</div>
24-
25-
<img
26-
src={ViteLogo}
27-
className='relative m-auto'
28-
width={301}
29-
height={60}
30-
alt='Vite'
31-
/>
32-
33-
<div className='relative z-20 mt-auto'>
34-
<blockquote className='space-y-2'>
35-
<p className='text-lg'>
36-
&ldquo;This template has saved me countless hours of work and
37-
helped me deliver stunning designs to my clients faster than ever
38-
before.&rdquo;
39-
</p>
40-
<footer className='text-sm'>John Doe</footer>
41-
</blockquote>
42-
</div>
43-
</div>
449
<div className='lg:p-8'>
45-
<div className='mx-auto flex w-full flex-col justify-center space-y-2 sm:w-[350px]'>
10+
<div className='mx-auto flex w-full flex-col justify-center space-y-2 py-8 sm:w-[480px] sm:p-8'>
11+
<div className='mb-4 flex items-center justify-center'>
12+
<svg
13+
xmlns='http://www.w3.org/2000/svg'
14+
viewBox='0 0 24 24'
15+
fill='none'
16+
stroke='currentColor'
17+
strokeWidth='2'
18+
strokeLinecap='round'
19+
strokeLinejoin='round'
20+
className='me-2 h-6 w-6'
21+
>
22+
<path d='M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3' />
23+
</svg>
24+
<h1 className='text-xl font-medium'>Shadcn Admin</h1>
25+
</div>
26+
</div>
27+
<div className='mx-auto flex w-full max-w-sm flex-col justify-center space-y-2'>
4628
<div className='flex flex-col space-y-2 text-start'>
47-
<h1 className='text-2xl font-semibold tracking-tight'>Sign in</h1>
29+
<h2 className='text-lg font-semibold tracking-tight'>Sign in</h2>
4830
<p className='text-muted-foreground text-sm'>
4931
Enter your email and password below <br />
5032
to log into your account
@@ -70,6 +52,28 @@ export function SignIn2() {
7052
</p>
7153
</div>
7254
</div>
55+
56+
<div
57+
className={cn(
58+
'bg-muted relative h-full overflow-hidden max-lg:hidden',
59+
'[&>img]:absolute [&>img]:top-[15%] [&>img]:left-20 [&>img]:h-full [&>img]:w-full [&>img]:object-cover [&>img]:object-top-left [&>img]:select-none'
60+
)}
61+
>
62+
<img
63+
src={dashboardLight}
64+
className='dark:hidden'
65+
width={1024}
66+
height={1151}
67+
alt='Shadcn-Admin'
68+
/>
69+
<img
70+
src={dashboardDark}
71+
className='hidden dark:block'
72+
width={1024}
73+
height={1138}
74+
alt='Shadcn-Admin'
75+
/>
76+
</div>
7377
</div>
7478
)
7579
}

0 commit comments

Comments
 (0)