1+ import { LoginForm } from '@/app/components/login-form' ;
12import { OtpSignIn } from '@/app/components/otp' ;
3+ import { env } from '@/env.mjs' ;
24import { Button } from '@comp/ui/button' ;
5+ import { Card , CardContent , CardDescription , CardFooter , CardHeader , CardTitle } from '@comp/ui/card' ;
6+ import { Icons } from '@comp/ui/icons' ;
37import { ArrowRight } from 'lucide-react' ;
48import type { Metadata } from 'next' ;
59import Link from 'next/link' ;
@@ -15,51 +19,50 @@ export default async function Page() {
1519 </ div >
1620 ) ;
1721
22+ const showGoogle = ! ! ( env . AUTH_GOOGLE_ID && env . AUTH_GOOGLE_SECRET ) ;
23+
1824 return (
19- < >
20- < div className = "flex min-h-[calc(100vh-15rem)] items-center justify-center overflow-hidden p-6 md:p-0" >
21- < div className = "relative z-20 m-auto flex w-full max-w-[380px] flex-col py-8" >
22- < div className = "relative flex w-full flex-col" >
23- < div className = "from-primary inline-block bg-clip-text pb-4" >
24- < div className = "flex flex-row items-center gap-2" >
25- < Link href = "/" className = "flex flex-row items-center gap-2" >
26- < h1 className = "font-mono text-xl font-semibold" > Comp AI</ h1 >
25+ < div className = "flex min-h-dvh flex-col text-foreground" >
26+ < main className = "flex flex-1 items-center justify-center p-6" >
27+ < Card className = "w-full max-w-lg" >
28+ < CardHeader className = "text-center space-y-3 pt-10" >
29+ < Icons . Logo className = "h-10 w-10 mx-auto" />
30+ < CardTitle className = "text-2xl tracking-tight text-card-foreground" >
31+ Employee Portal
32+ </ CardTitle >
33+ < CardDescription className = "text-base text-muted-foreground px-4" >
34+ Enter your email address to receive a one time password.
35+ </ CardDescription >
36+ </ CardHeader >
37+ < CardContent className = "space-y-6 pb-6" >
38+ { defaultSignInOptions }
39+ < LoginForm showGoogle = { showGoogle } />
40+ </ CardContent >
41+ < CardFooter className = "pb-10" >
42+ < div className = "from-primary/10 via-primary/5 to-primary/5 rounded-sm bg-gradient-to-r p-4" >
43+ < h3 className = "text-sm font-medium" >
44+ Comp AI - AI that handles compliance for you in hours.
45+ </ h3 >
46+ < p className = "text-muted-foreground mt-1 text-xs" >
47+ Comp AI makes SOC 2, ISO 27001, HIPAA and GDPR effortless. Eliminate compliance
48+ busywork, win more deals and accelerate growth.
49+ </ p >
50+ < Button variant = "link" className = "mt-2 p-0" asChild >
51+ < Link
52+ href = "https://trycomp.ai"
53+ target = "_blank"
54+ className = "hover:underline hover:underline-offset-2"
55+ >
56+ < span className = "text-primary mt-2 inline-flex items-center gap-2 text-xs font-medium" >
57+ Learn More
58+ < ArrowRight className = "h-3 w-3" />
59+ </ span >
2760 </ Link >
28- </ div >
29- < h2 className = "mt-4 text-lg font-medium" > Employee Portal</ h2 >
30- < div className = "mt-2" >
31- < span className = "text-muted-foreground text-xs" >
32- Enter your email address to receive a one time password.
33- </ span >
34- </ div >
61+ </ Button >
3562 </ div >
36-
37- < div className = "pointer-events-auto flex flex-col" > { defaultSignInOptions } </ div >
38- </ div >
39-
40- < div className = "from-primary/10 via-primary/5 to-primary/5 mt-8 rounded-sm bg-gradient-to-r p-4" >
41- < h3 className = "text-sm font-medium" >
42- Comp AI - AI that handles compliance for you in hours.
43- </ h3 >
44- < p className = "text-muted-foreground mt-1 text-xs" >
45- Comp AI makes SOC 2, ISO 27001, HIPAA and GDPR effortless. Eliminate compliance
46- busywork, win more deals and accelerate growth.
47- </ p >
48- < Button variant = "link" className = "mt-2 p-0" asChild >
49- < Link
50- href = "https://trycomp.ai"
51- target = "_blank"
52- className = "hover:underline hover:underline-offset-2"
53- >
54- < span className = "text-primary mt-2 inline-flex items-center gap-2 text-xs font-medium" >
55- Learn More
56- < ArrowRight className = "h-3 w-3" />
57- </ span >
58- </ Link >
59- </ Button >
60- </ div >
61- </ div >
62- </ div >
63- </ >
63+ </ CardFooter >
64+ </ Card >
65+ </ main >
66+ </ div >
6467 ) ;
6568}
0 commit comments