-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from dnd-side-project/feat/OZ-68
feat : 북마크 페이지
- Loading branch information
Showing
12 changed files
with
97 additions
and
43 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import PhotoList from '../feed/components/PhotoList'; | ||
import EmptyCase from '../feed/components/EmptyCase'; | ||
|
||
export default function BookmarkPage() { | ||
return ( | ||
<> | ||
<EmptyCase | ||
title={'포즈를 보관해 보세요!'} | ||
text={`북마크 버튼으로 포즈를 보관할 수 있어요.\n포즈피드에서 멋진 포즈를 찾아 보관해 보세요.`} | ||
button={'포즈피드 바로가기'} | ||
path={'/feed'} | ||
/> | ||
<PhotoList /> | ||
</> | ||
); | ||
} |
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,28 @@ | ||
import { PrimaryButton } from '@/components/Button'; | ||
import { Spacing } from '@/components/Spacing'; | ||
import Link from 'next/link'; | ||
|
||
interface EmptyCase { | ||
title: string; | ||
text: string; | ||
button: string; | ||
path: string; | ||
} | ||
|
||
export default function EmptyCase(props: EmptyCase) { | ||
const { title, text, button, path } = props; | ||
|
||
return ( | ||
<div className="py-80 text-center"> | ||
<h4 className="text-secondary">{title}</h4> | ||
<Spacing size={8} /> | ||
<p className="text-tertiary">{text}</p> | ||
<Spacing size={32} /> | ||
<div className="flex justify-center"> | ||
<Link href={path}> | ||
<PrimaryButton text={button} type="secondary" /> | ||
</Link> | ||
</div> | ||
</div> | ||
); | ||
} |
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,12 @@ | ||
import { ICON } from '@/constants/icon'; | ||
import Image from 'next/image'; | ||
|
||
export default function Photo() { | ||
return ( | ||
<div className={`relative mb-16 inline-block h-200 w-full rounded-8 bg-sub-white`}> | ||
<div className="absolute bottom-6 right-6 h-36 w-36 rounded-24 bg-white bg-opacity-30 p-6"> | ||
<Image src={ICON.bookmark.empty} width={24} height={24} alt="🔖" /> | ||
</div> | ||
</div> | ||
); | ||
} |
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,17 @@ | ||
import Photo from './Photo'; | ||
|
||
export default function PhotoList() { | ||
return ( | ||
<> | ||
<div className="columns-2 overflow-y-scroll"> | ||
<Photo /> | ||
<Photo /> | ||
<Photo /> | ||
<Photo /> | ||
<Photo /> | ||
<Photo /> | ||
<Photo /> | ||
</div> | ||
</> | ||
); | ||
} |
This file was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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