Skip to content

Commit 6f17240

Browse files
committed
Feat: Link 페이지 기본 ui 구현, 기능 추가해야 함
1 parent 181e610 commit 6f17240

File tree

4 files changed

+91
-0
lines changed

4 files changed

+91
-0
lines changed

pages/link/index.tsx

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
import { SearchInput } from "../../components/Search/SearchInput";
2+
import AddLinkInput from "../../components/Link/AddLinkInput";
3+
import Container from "@/components/Layout/Container";
4+
import FolderTag from "../../components/FolderTag";
5+
import CardsLayout from "@/components/Layout/CardsLayout";
6+
import CardItem from "@/components/CardItem";
7+
import Image from "next/image";
8+
9+
const LinkPage = () => {
10+
return (
11+
<>
12+
<div className="bg-gray100 w-full h-[219px] flex justify-center items-center">
13+
<AddLinkInput folderId={697} />
14+
</div>
15+
<main className="mt-[40px]">
16+
<Container>
17+
<SearchInput />
18+
<div className="flex justify-between mt-[40px]">
19+
<FolderTag list={list} />
20+
<button className="w-[79px] h-[19px] text-purple100">
21+
폴더 추가 +
22+
</button>
23+
</div>
24+
<div className="flex justify-between items-center mt-[24px]">
25+
<h1 className="text-2xl ">유용한 글</h1>
26+
<div className="w-[192px] h-[18px] flex justify-between gap-[12px] text-gray400">
27+
<button className="flex items-center gap-[4px]">
28+
<Image
29+
width={18}
30+
height={18}
31+
src="/icons/share.svg"
32+
alt="share button"
33+
/>
34+
<span>공유</span>
35+
</button>
36+
<button className="flex items-center gap-[4px]">
37+
<Image
38+
width={18}
39+
height={18}
40+
src="/icons/pen.svg"
41+
alt="share button"
42+
/>
43+
<span>수정</span>
44+
</button>
45+
<button className="flex items-center gap-[4px]">
46+
<Image
47+
width={18}
48+
height={18}
49+
src="/icons/delete.svg"
50+
alt="delete button"
51+
/>
52+
<span>삭제</span>
53+
</button>
54+
</div>
55+
</div>
56+
<CardsLayout>
57+
{list.map((link) => (
58+
<CardItem key={link.id} info={link} />
59+
))}
60+
</CardsLayout>
61+
</Container>
62+
</main>
63+
</>
64+
);
65+
};
66+
67+
export default LinkPage;

public/icons/delete.svg

Lines changed: 8 additions & 0 deletions
Loading

public/icons/pen.svg

Lines changed: 5 additions & 0 deletions
Loading

public/icons/share.svg

Lines changed: 11 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)