@@ -2,7 +2,7 @@ import Link from 'next/link';
22import { notFound } from 'next/navigation' ;
33import { getSeriesSummaries } from '@/features/blog/model/series-group' ;
44import { getSortedFeedData } from '@/features/blog/services/post-repository' ;
5- import { Header , Container } from '@/shared/layout' ;
5+ import { Container } from '@/shared/layout' ;
66
77interface EngineeringSeriesPageProps {
88 seriesId : string ;
@@ -31,63 +31,59 @@ export default function EngineeringSeriesPage({
3131 }
3232
3333 return (
34- < >
35- < Header />
34+ < main className = "py-10" >
35+ < Container size = "md" >
36+ < Link
37+ href = "/engineering"
38+ className = "inline-flex items-center gap-1 text-sm font-medium text-[var(--color-toss-blue)] hover:underline"
39+ >
40+ < span aria-hidden = "true" > ←</ span >
41+ Engineering으로 돌아가기
42+ </ Link >
3643
37- < main className = "py-16" >
38- < Container size = "md" >
39- < Link
40- href = "/engineering"
41- className = "inline-flex items-center gap-1 text-sm font-medium text-[var(--color-toss-blue)] hover:underline"
42- >
43- < span aria-hidden = "true" > ←</ span >
44- Engineering으로 돌아가기
45- </ Link >
44+ < header className = "mb-8 mt-5" >
45+ < span className = "inline-flex rounded-full border border-[var(--color-category-series-border)] bg-[var(--color-category-series-bg)] px-2 py-1 text-xs font-medium text-[var(--color-category-series-text)]" >
46+ Series
47+ </ span >
48+ < h1 className = "mt-3 text-3xl font-bold text-[var(--color-grey-900)] md:text-4xl" >
49+ { seriesSummary . title }
50+ </ h1 >
51+ < p className = "mt-3 text-sm text-[var(--color-grey-600)]" >
52+ { seriesSummary . postCount } 개 글을 순서대로 확인할 수 있어요.
53+ </ p >
54+ </ header >
4655
47- < header className = "mb-8 mt-5" >
48- < span className = "inline-flex rounded-full border border-[var(--color-category-series-border)] bg-[var(--color-category-series-bg)] px-2 py-1 text-xs font-medium text-[var(--color-category-series-text)]" >
49- Series
50- </ span >
51- < h1 className = "mt-3 text-3xl font-bold text-[var(--color-grey-900)] md:text-4xl" >
52- { seriesSummary . title }
53- </ h1 >
54- < p className = "mt-3 text-sm text-[var(--color-grey-600)]" >
55- { seriesSummary . postCount } 개 글을 순서대로 확인할 수 있어요.
56- </ p >
57- </ header >
56+ < ol className = "space-y-3" >
57+ { seriesSummary . posts . map ( ( post ) => {
58+ const order = post . series ?. order ?? 0 ;
5859
59- < ol className = "space-y-3" >
60- { seriesSummary . posts . map ( ( post ) => {
61- const order = post . series ?. order ?? 0 ;
62-
63- return (
64- < li key = { post . slug } >
65- < Link
66- href = { `/blog/${ post . slug } ` }
67- className = "group flex min-h-20 items-center justify-between gap-4 rounded-xl border border-[var(--color-grey-100)] bg-[var(--color-bg-primary)] px-4 py-3 transition-colors hover:border-[var(--color-grey-200)] hover:bg-[var(--color-grey-50)]"
68- >
69- < div className = "min-w-0 flex-1" >
70- < p className = "text-xs font-medium text-[var(--color-grey-500)]" >
71- { order } 편 · { formatPostDate ( post . date ) }
72- </ p >
73- < p className = "mt-1 line-clamp-1 text-base font-semibold text-[var(--color-grey-900)] group-hover:text-[var(--color-toss-blue)]" >
74- { post . title }
75- </ p >
76- < p className = "mt-1 line-clamp-2 text-sm text-[var(--color-grey-600)]" >
77- { post . description }
78- </ p >
79- </ div >
80- < span className = "shrink-0 text-sm font-semibold text-[var(--color-toss-blue)]" >
81- 글 보기
82- </ span >
83- </ Link >
84- </ li >
85- ) ;
86- } ) }
87- </ ol >
88- </ Container >
89- </ main >
90- </ >
60+ return (
61+ < li key = { post . slug } >
62+ < Link
63+ href = { `/blog/${ post . slug } ` }
64+ className = "group flex min-h-20 items-center justify-between gap-4 rounded-xl border border-[var(--color-grey-100)] bg-[var(--color-bg-primary)] px-4 py-3 transition-colors hover:border-[var(--color-grey-200)] hover:bg-[var(--color-grey-50)]"
65+ >
66+ < div className = "min-w-0 flex-1" >
67+ < p className = "text-xs font-medium text-[var(--color-grey-500)]" >
68+ { order } 편 · { formatPostDate ( post . date ) }
69+ </ p >
70+ < p className = "mt-1 line-clamp-1 text-base font-semibold text-[var(--color-grey-900)] group-hover:text-[var(--color-toss-blue)]" >
71+ { post . title }
72+ </ p >
73+ < p className = "mt-1 line-clamp-2 text-sm text-[var(--color-grey-600)]" >
74+ { post . description }
75+ </ p >
76+ </ div >
77+ < span className = "shrink-0 text-sm font-semibold text-[var(--color-toss-blue)]" >
78+ 글 보기
79+ </ span >
80+ </ Link >
81+ </ li >
82+ ) ;
83+ } ) }
84+ </ ol >
85+ </ Container >
86+ </ main >
9187 ) ;
9288}
9389
0 commit comments