Skip to content

Commit

Permalink
Merge pull request #85 from DDD-Community/style/84
Browse files Browse the repository at this point in the history
[STYLE/84] 회원가입 완료 UI
  • Loading branch information
hwanheejung authored Aug 14, 2024
2 parents 8c0b38c + 9588640 commit 9015870
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 6 deletions.
3 changes: 3 additions & 0 deletions public/icons/sketch_check.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 8 additions & 4 deletions src/app/(onboarding)/signup/complete/components/Buttons.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
'use client'

import Button from '@/components/Button'
import Link from 'next/link'
import { useRouter } from 'next/navigation'

export const GoToCreateBoard = () => {
const router = useRouter()
return (
<Button size="lg" onClick={() => router.push('/board/create')}>
<Button
size="lg"
onClick={() => router.push('/board/create')}
className="mb-10"
>
보드 만들러 가기
</Button>
)
}

export const GoToMain = () => {
const router = useRouter()
return (
<Button size="md" onClick={() => router.push('/')}>
<Link href="/" className="mb-5 text-sm leading-4 text-gray-400 underline">
메인으로 가기
</Button>
</Link>
)
}
21 changes: 19 additions & 2 deletions src/app/(onboarding)/signup/complete/page.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,28 @@
import Image from 'next/image'
import ThreePolaroids from 'public/icons/threePolaroids.png'
import CheckIcon from 'public/icons/sketch_check.svg'
import { GoToCreateBoard, GoToMain } from './components/Buttons'

const SignUpCompletePage = () => {
return (
<div className="mx-5 flex h-dvh flex-col items-center">
<h1>회원가입이 완료되었습니다!</h1>
<GoToCreateBoard />
<CheckIcon className="mt-8" />
<h1 className="mb-4 mt-[5px] whitespace-pre-line text-center text-2xl font-thin leading-10">
{'회원가입이\n 완료되었습니다!'}
</h1>
<p className="mb-[25px] text-sm">
보드를 만들어 친구들에게 공유해보세요!
</p>
<div className="flex flex-1 items-center">
<Image
src={ThreePolaroids}
priority
alt="polaroids icon"
className="px-14"
/>
</div>
<GoToMain />
<GoToCreateBoard />
</div>
)
}
Expand Down

0 comments on commit 9015870

Please sign in to comment.