@@ -10,80 +10,68 @@ interface LoginProps {
10
10
11
11
const Login : React . FC < LoginProps > = ( { onLoginSuccess } ) => {
12
12
return (
13
- < >
14
- < div className = "md:hidden" >
15
- < img
16
- src = "/examples/authentication-light.png"
17
- width = { 1280 }
18
- height = { 843 }
19
- alt = "Authentication"
20
- className = "block dark:hidden"
21
- />
22
- < img
23
- src = "/examples/authentication-dark.png"
24
- width = { 1280 }
25
- height = { 843 }
26
- alt = "Authentication"
27
- className = "hidden dark:block"
28
- />
29
- </ div >
30
- < div className = "container relative hidden h-screen flex-col items-center justify-center md:grid lg:max-w-none lg:grid-cols-2 lg:px-0" >
31
- < Link
32
- to = "/signup"
33
- className = { cn (
34
- buttonVariants ( { variant : "ghost" } ) ,
35
- "absolute right-4 top-4 md:right-8 md:top-8"
36
- ) }
37
- >
38
- Signup
39
- </ Link >
40
- < div className = "relative hidden h-full flex-col bg-muted p-10 text-white lg:flex" style = { { backgroundImage : "url('https://images.unsplash.com/photo-1590212151175-e58edd96185b?q=80&w=2071&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D')" , backgroundSize : 'cover' } } >
41
- < div className = "relative z-20 flex items-center text-lg font-medium" >
42
- < Link to = "/" className = "text-white" >
43
- < span style = { { fontSize :'4rem' } } > dh</ span >
44
- </ Link >
45
- </ div >
46
- < div className = "relative z-20 mt-auto" >
47
- < blockquote className = "space-y-2" >
48
- < p className = "text-lg" >
49
- Contributing to community feels like we are useful to others.
50
- </ p >
51
- < footer className = "text-sm" > DevHub</ footer >
52
- </ blockquote >
53
- </ div >
13
+ < div className = "container relative h-screen flex flex-col items-center justify-center lg:grid lg:max-w-none lg:grid-cols-2 lg:px-0" >
14
+ < Link
15
+ to = "/signup"
16
+ className = { cn (
17
+ buttonVariants ( { variant : "ghost" } ) ,
18
+ "absolute right-4 top-4 md:right-8 md:top-8"
19
+ ) }
20
+ >
21
+ Signup
22
+ </ Link >
23
+ < div className = "relative hidden lg:flex h-full flex-col bg-muted p-10 text-white"
24
+ style = { {
25
+ backgroundImage : "url('https://images.unsplash.com/photo-1590212151175-e58edd96185b?q=80&w=2071&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D')" ,
26
+ backgroundSize : 'cover'
27
+ } } >
28
+ < div className = "relative z-20 flex items-center text-lg font-medium" >
29
+ < Link to = "/" className = "text-white" >
30
+ < span style = { { fontSize : '4rem' } } > dh</ span >
31
+ </ Link >
32
+ </ div >
33
+ < div className = "relative z-20 mt-auto" >
34
+ < blockquote className = "space-y-2" >
35
+ < p className = "text-lg" >
36
+ Contributing to community feels like we are useful to others.
37
+ </ p >
38
+ < footer className = "text-sm" > DevHub</ footer >
39
+ </ blockquote >
54
40
</ div >
55
- < div className = "lg:p-8" >
56
- < div className = "mx-auto flex w-full flex-col justify-center space-y-6 sm:w-[350px]" >
57
- < div className = "flex flex-col space-y-2 text-center" >
58
- < h1 className = "text-2xl font-semibold tracking-tight" >
59
- Login to DevHub
60
- </ h1 >
61
- < p className = "text-sm text-muted-foreground" >
62
- Enter your details below to Login to your account
63
- </ p >
64
- </ div >
65
- < UserAuthForm onLoginSuccess = { ( username : string ) => onLoginSuccess ( username ) } />
66
- < p className = "px-8 text-center text-sm text-muted-foreground" >
67
- By clicking continue, you agree to our{ " " }
68
- < Link
69
- to = "/terms"
70
- className = "underline underline-offset-4 hover:text-primary"
71
- >
72
- Terms of Service
73
- </ Link > { " " }
74
- and{ " " }
75
- < Link
76
- to = "/privacy"
77
- className = "underline underline-offset-4 hover:text-primary"
78
- >
79
- Privacy Policy
80
- </ Link >
81
- .
41
+ </ div >
42
+
43
+ < div className = "flex items-center justify-center w-full lg:p-8" >
44
+ < div className = "mx-auto flex w-full flex-col justify-center space-y-6 sm:w-[350px]" >
45
+ < div className = "flex flex-col space-y-2 text-center" >
46
+ < h1 className = "text-2xl font-semibold tracking-tight" >
47
+ Login to DevHub
48
+ </ h1 >
49
+ < p className = "text-sm text-muted-foreground" >
50
+ Enter your details below to Login to your account
82
51
</ p >
83
52
</ div >
53
+ < UserAuthForm onLoginSuccess = { ( username : string ) => onLoginSuccess ( username ) } />
54
+ < p className = "px-8 text-center text-sm text-muted-foreground" >
55
+ By clicking continue, you agree to our{ " " }
56
+ < Link
57
+ to = "/terms"
58
+ className = "underline underline-offset-4 hover:text-primary"
59
+ >
60
+ Terms of Service
61
+ </ Link > { " " }
62
+ and{ " " }
63
+ < Link
64
+ to = "/privacy"
65
+ className = "underline underline-offset-4 hover:text-primary"
66
+ >
67
+ Privacy Policy
68
+ </ Link >
69
+ .
70
+ </ p >
84
71
</ div >
85
72
</ div >
86
- </ >
73
+ </ div >
74
+
87
75
) ;
88
76
} ;
89
77
0 commit comments