feat(login): enhance login page UI with logo and separator
refactor: restyle login page according to figma
This commit is contained in:
parent
f3b5f5c87c
commit
b5d1086131
1 changed files with 14 additions and 4 deletions
|
@ -4,6 +4,8 @@ import LoginForm from '@/components/user/login-form';
|
||||||
import { redirect } from 'next/navigation';
|
import { redirect } from 'next/navigation';
|
||||||
import { Button } from '@/components/ui/button';
|
import { Button } from '@/components/ui/button';
|
||||||
import Image from 'next/image';
|
import Image from 'next/image';
|
||||||
|
import { Separator } from '@/components/custom-ui/separator';
|
||||||
|
import Logo from '@/components/logo';
|
||||||
|
|
||||||
import '@/app/globals.css';
|
import '@/app/globals.css';
|
||||||
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card';
|
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card';
|
||||||
|
@ -30,12 +32,20 @@ export default async function LoginPage() {
|
||||||
<div>
|
<div>
|
||||||
<Card className='w-[350px] max-w-screen'>
|
<Card className='w-[350px] max-w-screen'>
|
||||||
<CardHeader>
|
<CardHeader>
|
||||||
<CardTitle className='text-lg text-center'>Login</CardTitle>
|
<Logo
|
||||||
|
colorType='colored'
|
||||||
|
logoType='secondary'
|
||||||
|
theme='light'
|
||||||
|
width={200}
|
||||||
|
height={200}
|
||||||
|
></Logo>
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
<CardContent className='gap-6 flex flex-col'>
|
<CardContent className='gap-6 flex flex-col items-center'>
|
||||||
<LoginForm />
|
<LoginForm />
|
||||||
|
|
||||||
{providerMap.length > 0 && <hr />}
|
<Separator className='h-[1px] rounded-sm w-[60%] bg-neutral-000' />
|
||||||
|
|
||||||
|
{providerMap.length > 0}
|
||||||
|
|
||||||
{providerMap.map((provider) => (
|
{providerMap.map((provider) => (
|
||||||
<SSOLogin
|
<SSOLogin
|
||||||
|
@ -49,7 +59,7 @@ export default async function LoginPage() {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<HoverCard>
|
<HoverCard>
|
||||||
<HoverCardTrigger className='text-sm text-muted-foreground hover:underline'>
|
<HoverCardTrigger className='text-sm text-neutral-000 hover:underline'>
|
||||||
<Button variant='link'>made with love</Button>
|
<Button variant='link'>made with love</Button>
|
||||||
</HoverCardTrigger>
|
</HoverCardTrigger>
|
||||||
<HoverCardContent className='flex items-center justify-center'>
|
<HoverCardContent className='flex items-center justify-center'>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue