Commit 63375d1
authored
feat: 게시글 기본 레이아웃 (#8)
* feat: PostHeader 컴포넌트 구현
- 포스트 제목, 날짜, 태그를 표시하는 PostHeader 컴포넌트 작성
- formatDate 유틸리티 함수 구현 (ISO 날짜를 한국어 형식으로 변환)
- 반응형 레이아웃 적용 (모바일/데스크톱)
- 다크 모드 지원 및 stone 색상 팔레트 사용
- 태그에 # 접두사 추가 및 Badge 컴포넌트 스타일링
- formatDate 유틸리티 함수 단위 테스트 작성
- PostHeader 사용 예시 파일 추가
* fix: formatDate에서 Number.isNaN 사용하도록 수정
- Biome 린트 경고 해결: isNaN 대신 Number.isNaN 사용
* feat: Post 타입 정의 확장
- PostFrontMatter에 description, author, readingTime, featured 필드 추가
- PostWithNavigation 타입 추가 (이전/다음 포스트, 관련 포스트)
- Heading 타입 추가 (목차 생성용)
- PostMetadata 타입 추가 (SEO 메타데이터용)
* feat: shadcn/ui 컴포넌트 추가
- Badge 컴포넌트 추가 (태그 표시용)
- Card 컴포넌트 추가 (콘텐츠 카드용)
- class-variance-authority 기반 variant 시스템 적용
* refactor: 블로그 라우트 구조 변경
- /blog/[slug] → /posts/[slug]로 라우트 경로 변경
- 더 명확한 URL 구조로 개선
* feat: PostContent, PostFooter 컴포넌트 추가
- PostContent: MDX 콘텐츠 렌더링 컴포넌트
- PostFooter: 포스트 하단 정보 표시 컴포넌트
- 포스트 페이지 레이아웃 구성 요소 완성
* feat: Kiro 프로젝트 설정 및 스펙 문서 추가
- .kiro/steering/: 개발 표준, 프로젝트 구조, UI 디자인 시스템 가이드라인
- .kiro/specs/post-page-layout/: 포스트 페이지 레이아웃 스펙 문서
- requirements.md: 요구사항 정의
- design.md: 설계 문서
- tasks.md: 구현 작업 목록
* feat: enhance MDX content styling with improved prose and code blocks
- Add comprehensive prose styling customization for better readability
- Implement enhanced code block styling with mobile scroll support
- Add responsive image handling with proper shadows and alignment
- Improve mobile experience with touch-friendly scrollbars
- Add full dark mode support for all content elements
- Update PostContent component with detailed typography classes
- Add custom CSS for code blocks, tables, blockquotes, and images
- Integrate PostContent component in post page layout
Requirements: 2.1, 2.2, 2.3, 5.3, 5.4
* kiro: spec, steering 업데이트
* feat: 포스트 페이지 UI
* chore: biome 영향범위 수정
* ci: 테스트 명령어 수정1 parent df190eb commit 63375d1
File tree
18 files changed
+1034
-12
lines changed- .github/workflows
- .kiro/steering
- src
- app
- _components/ui
- _lib
- posts
- [slug]
- _components
- contents
- entities/posts
18 files changed
+1034
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
0 commit comments