Skip to content

Commit

Permalink
ADD :: Profile Edit Page
Browse files Browse the repository at this point in the history
  • Loading branch information
wjknnn committed May 27, 2024
1 parent 9b49995 commit a102774
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 3 deletions.
52 changes: 52 additions & 0 deletions src/app/profile/edit/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
'use client'

import { Add, Arrow, DecorationImg_1 } from '@/assets'
import { Button, Input, Select } from '@/components'
import Image from 'next/image'
import { useRouter } from 'next/navigation'

export default function ProfileEditPage() {
const router = useRouter()

return (
<main className="min-h-[100dvh] flex justify-center">
<section className="flex flex-col gap-16 p-[60px_40px_120px] sm:px-6 max-w-[600px] w-full">
<div className="flex flex-col gap-8">
<button
onClick={() => router.back()}
className="p-2 rounded-lg border border-gray200 group hover:bg-gray50 transition-colors w-fit"
>
<Arrow className="group-hover:-translate-x-1 transition-transform" />
</button>
<h3 className="text-titleLarge">프로필 수정</h3>
</div>
<article className="flex gap-10 items-center">
<Image
src={DecorationImg_1}
alt="Profile Image"
width={240}
height={240}
priority
className="size-[120px] rounded-full border border-gray100"
/>
<button className="p-12 rounded-full border border-gray200 bg-gray100">
<Add />
</button>
</article>
<article className="flex flex-col gap-10">
<Input label="기수" placeholder="기수를 입력해 주세요." value="8" />
<Select
label="전공"
placeholder="전공 선택"
value="Frontend"
options={[{ value: 'Frontend', name: 'Frontend' }]}
change={() => {}}
/>
</article>
<Button size="large" className="w-full">
프로필 수정하기
</Button>
</section>
</main>
)
}
8 changes: 5 additions & 3 deletions src/app/profile/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,11 @@ export default function ProfilePage() {
<Button kind="gray" size="small">
로그아웃
</Button>
<Button kind="blue" size="small">
정보 수정하기
</Button>
<Link href="/profile/edit">
<Button kind="blue" size="small">
정보 수정하기
</Button>
</Link>
</div>
<article className="flex flex-col gap-6 w-full">
<h5 className="text-titleSmall">기본 정보</h5>
Expand Down

0 comments on commit a102774

Please sign in to comment.