Skip to content

Commit 1bb4c0d

Browse files
committed
chore: refactor folder structure
1 parent a2ddf3f commit 1bb4c0d

File tree

20 files changed

+636
-30
lines changed

20 files changed

+636
-30
lines changed

@types/config.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
declare interface BlogConfiguration {}
File renamed without changes.

content/posts/test.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ category: React
66
pinned: true
77
---
88

9+
여기에서 우리는
10+
11+
![테스트 이미지](./c.JPG)
12+
13+
인라인 이미지를 추가할 수 있습니다.
14+
915
> 이 포스트는 모던 자바스크립트 Deep Dive 를 공부하면서 정리한 글입니다
1016
1117
## 📖 변수와 상수

src/components/displays/PostCard/PostCard.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,8 @@ export const PostCard = ({ slug, title, category, content, date }: PostCardProps
3131
<CardFooter className="mb-[6px] flex px-0 py-2 text-[#9198a1]">
3232
<div
3333
className={`mr-1 aspect-square h-[12px] w-[12px] rounded-full`}
34-
style={{
35-
backgroundColor: categoryColor[category],
36-
}}
37-
></div>
34+
style={{ backgroundColor: categoryColor[category] }}
35+
/>
3836
<p className="text-sm">{category}</p>
3937
</CardFooter>
4038
</Card>

src/components/displays/PostList/PostListItem.tsx

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,16 @@ export const PostListItem = ({ slug, title, category, content, date }: PostCardP
1818
<div className="border-b-[1px] border-[#3d444d] py-4">
1919
<h1 className="pb-2 text-xl font-bold text-white hover:underline">{title}</h1>
2020
<p className="line-clamp-2 text-sm text-[#9198a1]">{toPlainText(content)}</p>
21-
<div className="flex items-center py-2">
22-
<div
23-
className={`mr-1 aspect-square h-[12px] w-[12px] rounded-full`}
24-
style={{
25-
backgroundColor: categoryColor[category],
26-
}}
27-
></div>
28-
<p className="text-sm text-[#9198a1]">{category}</p>
21+
<div className="flex items-center justify-between">
22+
<div className="flex items-center py-2">
23+
<div
24+
className={`mr-1 aspect-square h-[12px] w-[12px] rounded-full`}
25+
style={{ backgroundColor: categoryColor[category] }}
26+
/>
27+
<p className="text-sm text-[#9198a1]">{category}</p>
28+
</div>
29+
30+
<p className="flex text-sm text-[#9198a1]">{date}</p>
2931
</div>
3032
</div>
3133
</Link>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select";
2+
import React from "react";
3+
4+
export const Filter = () => {
5+
return (
6+
<Select>
7+
<SelectTrigger className="w-[120px] rounded-[6px]">
8+
<SelectValue placeholder="Sort By" className="rounded-[6px]" />
9+
</SelectTrigger>
10+
<SelectContent className="hover:bg- rounded-[6px] bg-[#0f1117]">
11+
<SelectItem value="date">Date</SelectItem>
12+
</SelectContent>
13+
</Select>
14+
);
15+
};

src/components/forms/Filter/index.tsx

Whitespace-only changes.

src/components/navigations/CategoryMenu/CategoryMenu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export const CategoryMenu = () => {
5555

5656
return (
5757
<aside className="w-[30%] p-2 text-white">
58-
<h2 className="font-bold">Categories</h2>
58+
<h2 className="flex h-[36px] items-center font-bold">Categories</h2>
5959
<nav className="py-2">
6060
{categories.map((category) => {
6161
return <CategoryMenuItem category={category.category} contents={category.content} />;
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import {
2+
Pagination,
3+
PaginationContent,
4+
PaginationEllipsis,
5+
PaginationItem,
6+
PaginationLink,
7+
PaginationNext,
8+
PaginationPrevious,
9+
} from "@/components/ui/pagination";
10+
import React from "react";
11+
12+
export const PageNavigation = () => {
13+
return (
14+
<Pagination className="my-8 rounded-[6px]">
15+
<PaginationContent>
16+
<PaginationItem>
17+
<PaginationPrevious className="rounded-[10px]" href="#" />
18+
</PaginationItem>
19+
<PaginationItem>
20+
<PaginationLink className="rounded-[10px]" href="#">
21+
1
22+
</PaginationLink>
23+
</PaginationItem>
24+
<PaginationItem>
25+
<PaginationEllipsis />
26+
</PaginationItem>
27+
<PaginationItem>
28+
<PaginationNext className="rounded-[10px]" href="#" />
29+
</PaginationItem>
30+
</PaginationContent>
31+
</Pagination>
32+
);
33+
};
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { PageNavigation } from "./PageNavigation";

0 commit comments

Comments
 (0)