|
1 | | -import Image from 'next/image' |
2 | | -import NextLink from 'next/link' |
3 | | - |
4 | | -import { Link } from '@/components/common/button' |
5 | | -import { Box } from '@/components/common/containers' |
6 | | -import { Text } from '@/components/common/text' |
7 | | - |
8 | | -import useModalStore from '@/stores/useModalStore' |
9 | | - |
| 1 | +import { ModalContent } from '../shared/modalContents/ModalContent' |
10 | 2 | import celebrateImage from '/public/assets/images/img-celebration.png' |
11 | 3 |
|
12 | | -export const SignUpSuccessModalContent = (): JSX.Element => { |
13 | | - const { closeModal } = useModalStore() |
| 4 | +export const SignUpSuccessModalContent2 = (): JSX.Element => { |
14 | 5 | return ( |
15 | | - <div className={'flex flex-col items-center gap-20 text-center'}> |
16 | | - <div className={'h-100 w-100'}> |
17 | | - <Image src={celebrateImage} alt={'축하 이미지'} /> |
18 | | - </div> |
19 | | - <div className={'flex flex-col gap-8'}> |
20 | | - <Text.Heading as={'h2'} variant={'heading4'} color={'gray800'}> |
21 | | - 회원가입 완료! |
22 | | - </Text.Heading> |
23 | | - <Text.Body variant={'body1'} color={'gray600'}> |
24 | | - 홍길동님의 회원가입이 |
25 | | - <br /> |
26 | | - 성공적으로 완료되었습니다. |
27 | | - </Text.Body> |
28 | | - </div> |
29 | | - <Box variant={'contained'} color={'secondary'} className='px-12 py-8'> |
30 | | - <Text.Body variant={'body3'} color={'gray600'}> |
31 | | - *나의 정보 확인 및 수정은{' '} |
32 | | - <NextLink |
33 | | - href={'/'} |
34 | | - className={'text-primary-normal'} |
35 | | - onClick={closeModal} |
36 | | - > |
37 | | - {'마이페이지 > 프로필'} |
38 | | - </NextLink> |
39 | | - 에서 가능합니다. |
40 | | - </Text.Body> |
41 | | - </Box> |
42 | | - <Link |
43 | | - href={'/team'} |
44 | | - label={'로그인 바로가기'} |
45 | | - // onClick={closeModal} |
46 | | - size={'lg'} |
47 | | - fullWidth |
48 | | - className={'text-title2'} |
49 | | - ></Link> |
50 | | - </div> |
| 6 | + <ModalContent> |
| 7 | + <ModalContent.Image src={celebrateImage} alt={'축하 이미지'} /> |
| 8 | + <ModalContent.Header |
| 9 | + title={'회원가입 완료!'} |
| 10 | + subTitle={ |
| 11 | + <> |
| 12 | + 홍길동님의 회원가입이 |
| 13 | + <br /> |
| 14 | + 성공적으로 완료되었습니다. |
| 15 | + </> |
| 16 | + } |
| 17 | + /> |
| 18 | + <ModalContent.InfoBox |
| 19 | + firstLabel={'나의 정보 확인 및 수정은 '} |
| 20 | + linkLabel={'마이페이지 > 프로필'} |
| 21 | + lastLabel={'에서 가능합니다.'} |
| 22 | + to={'/'} |
| 23 | + /> |
| 24 | + <ModalContent.Link href={'/'} label={'로그인 바로가기'} /> |
| 25 | + </ModalContent> |
51 | 26 | ) |
52 | 27 | } |
0 commit comments