diff --git a/solution/site/src/sections/BlogSection.tsx b/solution/site/src/sections/BlogSection.tsx index 0aa52ad..de0a294 100644 --- a/solution/site/src/sections/BlogSection.tsx +++ b/solution/site/src/sections/BlogSection.tsx @@ -5,21 +5,7 @@ import {isoDate} from '@site/lib/format'; import {Carousel, CarouselSlide, Modal, Section} from '@site/lib/ui'; /** 미니 블로그 — 사장님이 승인한 짧은 글. */ -type Season = 'spr' | 'sum' | 'aut' | 'win'; - -const SEASON_COLOR: Record = { - spr: '#4f7942', - sum: '#c9820a', - aut: '#bf2f1b', - win: '#3b6ea5', -}; - -function seasonOf(month: number): Season { - if (month >= 3 && month <= 5) return 'spr'; - if (month >= 6 && month <= 8) return 'sum'; - if (month >= 9 && month <= 11) return 'aut'; - return 'win'; -} +const AUTOPLAY_MS = 7000; /** ISO → 한국 시간 기준 월·일·요일. */ function kstDateParts(iso: string) { @@ -46,9 +32,9 @@ export function BlogSection() { title="미니 블로그" lead="사장님이 남기는 숙소 이야기입니다." > - + {posts.map((post) => ( - + setOpenId(post.postId)} /> ))} @@ -65,21 +51,29 @@ export function BlogSection() { function PostCard({post, onOpen}: {post: PostEntry; onOpen: () => void}) { const {month, day, weekday} = kstDateParts(post.publishedAt); - const season = seasonOf(month); - const color = SEASON_COLOR[season]; - const dateLabel = `${month}월 ${day}일 · ${weekday}`; return (