File tree Expand file tree Collapse file tree 4 files changed +220
-204
lines changed Expand file tree Collapse file tree 4 files changed +220
-204
lines changed Original file line number Diff line number Diff line change @@ -545,7 +545,14 @@ series: 나의 맞춤 블로그 만들기
545
545
546
546
- [ ] contents layer 로 대체
547
547
- [ ] 소개 패이지
548
- - [ ] 포트폴리오 페이지
548
+ - [x ] 포트폴리오 페이지
549
549
- [ ] 댓글 기능
550
550
- [ ] 옵시디언 스타일의 콜아웃 적용
551
551
- [ ] 비디오 임베드
552
+ - [ ] D3.js를 홀용한 그래프 뷰
553
+ - [ ] 연결된 관련 노트 리스트 추가
554
+
555
+ # # 고칠것
556
+
557
+ - 사이드바 스크롤
558
+ 카테고리의 길이가 너무 늘어나면 전체 페이지 하단에 도달할때까지 스크롤이 안됨 카테고리의 최대 높이를 정하고 스크롤로 표현해야함
Original file line number Diff line number Diff line change @@ -2,17 +2,18 @@ import LeftSidebar from "@/components/left-sidebar";
2
2
import RightSidebar from "@/components/right-sidebar" ;
3
3
4
4
export default function BlogLayout ( {
5
- children,
5
+ children,
6
6
} : {
7
- children : React . ReactNode ;
7
+ children : React . ReactNode ;
8
8
} ) {
9
- return (
10
- < >
11
- < LeftSidebar className = "w-60 xl:w-64 2xl:w-72 lg:shrink-0 lg:sticky h-full lg:top-16 mb-4 lg:mb-0 mt-52" />
12
- < div className = "xl:max-w-5xl mx-auto rounded-lg w-full overflow-x-hidden py-6 p-3 2xl:px-6 h-full overflow-y-hidden" >
13
- { children }
14
- </ div >
15
- < RightSidebar className = "w-60 xl:w-64 2xl:w-72 shrink-0 hidden xl:block sticky top-16 h-full mt-52" />
16
- </ >
17
- ) ;
9
+ return (
10
+ < >
11
+ < LeftSidebar className = "w-60 xl:w-64 2xl:w-72 lg:shrink-0" />
12
+ { /* 높이 관련 클래스 제거 */ }
13
+ < div className = "xl:max-w-5xl mx-auto rounded-lg w-full overflow-x-hidden py-6 p-3 2xl:px-6" >
14
+ { children }
15
+ </ div >
16
+ < RightSidebar className = "w-60 xl:w-64 2xl:w-72 lg:shrink-0" />
17
+ </ >
18
+ ) ;
18
19
}
Original file line number Diff line number Diff line change @@ -28,7 +28,10 @@ export default function LeftSidebar({ className }: LeftSidebarProps) {
28
28
{ /* 데스크톱 버전 */ }
29
29
< motion . aside
30
30
key = { sidebarKey }
31
- className = { cn ( "hidden xl:block" , className ) }
31
+ className = { cn (
32
+ "hidden xl:block h-[calc(100vh-4rem)] sticky top-16 mt-52" , // 높이와 sticky 설정 수정
33
+ className ,
34
+ ) }
32
35
initial = { { opacity : 0 , x : - 20 } }
33
36
animate = { { opacity : 1 , x : 0 } }
34
37
transition = { {
@@ -37,7 +40,10 @@ export default function LeftSidebar({ className }: LeftSidebarProps) {
37
40
delay : 0.05 ,
38
41
} }
39
42
>
40
- < ScrollArea className = "h-full" >
43
+ { /* ScrollArea에 명확한 높이 지정 */ }
44
+ < ScrollArea className = "h-full pb-8" >
45
+ { " " }
46
+ { /* 하단에 약간의 패딩 추가 */ }
41
47
{ /* 네비게이션 메뉴 (데스크톱) */ }
42
48
< SidebarSection title = "메뉴" >
43
49
< motion . div
@@ -99,7 +105,6 @@ export default function LeftSidebar({ className }: LeftSidebarProps) {
99
105
</ div >
100
106
</ motion . div >
101
107
</ SidebarSection >
102
-
103
108
< SidebarSection title = "카테고리" >
104
109
< motion . div
105
110
initial = { { opacity : 0 } }
You can’t perform that action at this time.
0 commit comments