|
1 | 1 | 'use client'; |
2 | 2 |
|
3 | | -import { Highlight, Text, VStack } from '@chakra-ui/react'; |
4 | 3 | import Image from 'next/image'; |
5 | 4 | import Link from 'next/link'; |
6 | 5 |
|
7 | | -import Button from '@/ui/common/Button'; |
8 | | -import Logo from '@/ui/common/Logo'; |
| 6 | +import { IconKakao } from '@public/icons'; |
| 7 | +import { KAKAO_LOGIN_URL } from '@/constants/url'; |
9 | 8 |
|
10 | | -const LoginPage = () => { |
11 | | - const kakaoUrl = `${process.env.NEXT_PUBLIC_API_URL}/oauth2/authorize/kakao?redirect_uri=${process.env.NEXT_PUBLIC_CLIENT_REDIRECT_URI}`; |
| 9 | +import Button from '@/v1/base/Button'; |
12 | 10 |
|
| 11 | +const LoginPage = () => { |
13 | 12 | return ( |
14 | | - <VStack |
15 | | - align="center" |
16 | | - justify="center" |
17 | | - pos="relative" |
18 | | - zIndex="1" |
19 | | - bgColor="white.800" |
20 | | - h="100%" |
21 | | - gap="26rem" |
22 | | - > |
23 | | - <VStack w="100%" align="flex-start" spacing="3rem" px="2rem"> |
24 | | - <Logo width={65} /> |
25 | | - <Text fontSize="2xl" fontWeight="normal"> |
26 | | - 책에 대한 모든 이야기 |
| 13 | + <> |
| 14 | + <article className="absolute inset-x-0 top-[15vh] flex w-full flex-col items-center gap-[2.3rem]"> |
| 15 | + <Image |
| 16 | + src="/images/login-landing.jpg" |
| 17 | + alt="로그인랜딩이미지" |
| 18 | + width={300} |
| 19 | + height={270} |
| 20 | + /> |
| 21 | + <p className="text-center !leading-snug font-heading-regular"> |
| 22 | + <span className="font-subheading-regular"> |
| 23 | + 책에 대한 모든 이야기, |
| 24 | + </span> |
27 | 25 | <br /> |
28 | | - <Highlight |
29 | | - query="다독다독" |
30 | | - styles={{ color: 'main', fontWeight: 'bold' }} |
| 26 | + <span className="font-bold text-main-900">다독다독</span>에서 |
| 27 | + 함께해요! |
| 28 | + </p> |
| 29 | + </article> |
| 30 | + |
| 31 | + <section className="absolute inset-x-[2rem] bottom-[2rem] flex flex-col justify-center gap-[1rem]"> |
| 32 | + <Link href={KAKAO_LOGIN_URL}> |
| 33 | + <Button size="full" colorScheme="kakao"> |
| 34 | + <div className="flex w-full items-center justify-center"> |
| 35 | + <IconKakao className="absolute left-[2rem] w-[2.1rem]" /> |
| 36 | + <p>카카오 로그인</p> |
| 37 | + </div> |
| 38 | + </Button> |
| 39 | + </Link> |
| 40 | + <Link href="/" className="flex justify-center"> |
| 41 | + <Button |
| 42 | + size="small" |
| 43 | + colorScheme="grey" |
| 44 | + className="border-none !text-black-700 underline underline-offset-4 font-body2-regular" |
| 45 | + fill={false} |
31 | 46 | > |
32 | | - 다독다독에서 함께 해요 |
33 | | - </Highlight> |
34 | | - </Text> |
35 | | - </VStack> |
36 | | - <Link href={kakaoUrl} style={{ width: '100%' }}> |
37 | | - <Button scheme="kakao" fullWidth> |
38 | | - <Image |
39 | | - src="/icons/kakao-legacy.svg" |
40 | | - alt="카카오 로고" |
41 | | - width={21} |
42 | | - height={19} |
43 | | - priority |
44 | | - /> |
45 | | - 카카오 로그인 |
46 | | - </Button> |
47 | | - </Link> |
48 | | - </VStack> |
| 47 | + 로그인하지 않고 둘러보기 |
| 48 | + </Button> |
| 49 | + </Link> |
| 50 | + </section> |
| 51 | + </> |
49 | 52 | ); |
50 | 53 | }; |
51 | 54 |
|
|
0 commit comments