-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Feature/#15 :: 마이페이지 퍼블리싱
- Loading branch information
Showing
10 changed files
with
410 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
'use client' | ||
|
||
import { Arrow } from '@/assets' | ||
import { ApplicationBox } from '@/components' | ||
import { applicationData } from '@/constants' | ||
import { useRouter } from 'next/navigation' | ||
|
||
export default function MyApplicationPage() { | ||
const router = useRouter() | ||
|
||
return ( | ||
<main className="min-h-[100dvh] p-[60px_0_120px] flex justify-center"> | ||
<section className="flex flex-col gap-10 px-10 sm:px-6 max-w-[1280px] 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> | ||
<div className="flex flex-col gap-2"> | ||
<h3 className="text-titleLarge">공유한 지원서 자료</h3> | ||
<p className="text-bodySmall text-gray600">8개 내 지원서 자료</p> | ||
</div> | ||
</div> | ||
<article className="grid grid-cols-3 md:grid-cols-2 sm:grid-cols-1 gap-3"> | ||
{applicationData.map((value, index) => ( | ||
<ApplicationBox key={index} {...value} /> | ||
))} | ||
</article> | ||
</section> | ||
</main> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
import { Arrow, Bag, DecorationImg_1, GradientImg, User } from '@/assets' | ||
import { ApplicationBox, Button, TipBox } from '@/components' | ||
import { applicationData, tipData } from '@/constants' | ||
import Image from 'next/image' | ||
import Link from 'next/link' | ||
|
||
export default function ProfilePage() { | ||
return ( | ||
<main className="flex flex-col items-center"> | ||
<div className="flex justify-center h-[180px] w-full relative"> | ||
<Image | ||
src={GradientImg} | ||
alt="Profile Banner" | ||
width={1920} | ||
height={180} | ||
className="w-full h-full object-cover border-b-2 border-gray100" | ||
priority | ||
/> | ||
<Image | ||
src={DecorationImg_1} | ||
alt="User Profile" | ||
width={240} | ||
height={240} | ||
className="size-[120px] absolute -bottom-[60px] rounded-full border border-gray100" | ||
priority | ||
/> | ||
</div> | ||
<section className="flex flex-col items-center gap-10 p-[60px_40px_120px] sm:px-6 max-w-[880px] w-full"> | ||
<div className="flex flex-col items-center gap-1 py-6"> | ||
<p className="text-titleMedium">마이클</p> | ||
<p className="text-bodySmall text-gray600">팔로잉 24 | 팔로워 40</p> | ||
</div> | ||
<div className="flex gap-3"> | ||
<Button kind="gray" 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> | ||
<div className="flex gap-10"> | ||
<div className="flex flex-col items-center gap-2"> | ||
<div className="p-3 rounded-xl border border-blue100 bg-blue50"> | ||
<User size={28} className="text-blue500" /> | ||
</div> | ||
<div className="flex flex-col items-center gap-[2px]"> | ||
<p className="text-bodySmall">기수</p> | ||
<p className="text-labelMedium text-gray600">8기</p> | ||
</div> | ||
</div> | ||
<div className="flex flex-col items-center gap-2"> | ||
<div className="p-3 rounded-xl border border-blue100 bg-blue50"> | ||
<Bag size={28} className="text-blue500" /> | ||
</div> | ||
<div className="flex flex-col items-center gap-[2px]"> | ||
<p className="text-bodySmall">전공</p> | ||
<p className="text-labelMedium text-gray600">Frontend</p> | ||
</div> | ||
</div> | ||
</div> | ||
</article> | ||
<div className="w-full h-[1px] bg-gray200"></div> | ||
<article className="flex flex-col gap-6 w-full"> | ||
<div className="flex items-center justify-between w-full"> | ||
<h5 className="text-titleSmall">공유한 지원서 자료</h5> | ||
<Link | ||
href="/profile/application" | ||
className="flex items-center text-gray600 group" | ||
> | ||
<p className="text-labelLarge">더보기</p> | ||
<Arrow | ||
direction="right" | ||
size={16} | ||
className="group-hover:translate-x-1 transition-transform" | ||
/> | ||
</Link> | ||
</div> | ||
<div className="grid gap-3 grid-cols-2 sm:grid-cols-1"> | ||
{applicationData.map((value, index) => ( | ||
<ApplicationBox key={index} {...value} /> | ||
))} | ||
</div> | ||
</article> | ||
<div className="w-full h-[1px] bg-gray200"></div> | ||
<article className="flex flex-col gap-6 w-full"> | ||
<div className="flex items-center justify-between w-full"> | ||
<h5 className="text-titleSmall">공유한 지원서 팁</h5> | ||
<Link | ||
href="/profile/tip" | ||
className="flex items-center text-gray600 group" | ||
> | ||
<p className="text-labelLarge">더보기</p> | ||
<Arrow | ||
direction="right" | ||
size={16} | ||
className="group-hover:translate-x-1 transition-transform" | ||
/> | ||
</Link> | ||
</div> | ||
<div className="grid gap-3 grid-cols-2 sm:grid-cols-1"> | ||
{tipData.map((value, index) => ( | ||
<TipBox key={index} {...value} /> | ||
))} | ||
</div> | ||
</article> | ||
</section> | ||
</main> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
'use client' | ||
|
||
import { Arrow } from '@/assets' | ||
import { TipBox } from '@/components' | ||
import { tipData } from '@/constants' | ||
import { useRouter } from 'next/navigation' | ||
|
||
export default function MyTipPage() { | ||
const router = useRouter() | ||
|
||
return ( | ||
<main className="min-h-[100dvh] p-[60px_0_120px] flex justify-center"> | ||
<section className="flex flex-col gap-10 px-10 sm:px-6 max-w-[1280px] 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> | ||
<div className="flex flex-col gap-2"> | ||
<h3 className="text-titleLarge">공유한 지원서 팁</h3> | ||
<p className="text-bodySmall text-gray600">8개 내 지원서 팁</p> | ||
</div> | ||
</div> | ||
<article className="grid grid-cols-3 md:grid-cols-2 sm:grid-cols-1 gap-3"> | ||
{tipData.map((value, index) => ( | ||
<TipBox key={index} {...value} /> | ||
))} | ||
</article> | ||
</section> | ||
</main> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.