chore: main 병합 — 이야기 상세 창·카드 정렬·히어로 아이콘

This commit is contained in:
minaChoi committed 2026-10-23 15:41:20 +09:00
commit 2ebd13c100
4 files changed
+39 -15

No files matched your search

+6 -4
View File
@@ -156,6 +156,8 @@ const WEATHER_ICON: Record<Weather, string> = {
sleet: 'snow',
}
// 구름 수: 구름 많음 둘, 흐림·비·눈 셋
// 히어로 오른쪽 위 좋아요·댓글·보내기: 셋 다 같은 32px 칸에 아이콘 가운데, 수는 아이콘 옆
const HERO_ACT = 'relative flex h-8 min-w-8 cursor-pointer items-center justify-center gap-1 text-[13px] font-extrabold'
const CLOUDS = [
{ cls: 'top-9 left-[5%] h-8 w-[84px]', d: '.1s', f: '6s' },
{ cls: 'top-[96px] left-[63%] h-9 w-[96px]', d: '.25s', f: '6.4s' },
@@ -332,7 +334,7 @@ function Hero({ hero, post, today, ranked, all, feedLoad, todayLoad }: HeroProps
{t.mo}월 {t.d}일 {WEEKDAYS[t.wd]}요일
</span>
</span>
<span className="flex items-center gap-3 [&_svg]:size-[22px] [&_svg]:stroke-[2]">
<span className="flex items-center gap-1 [&_svg]:size-[22px] [&_svg]:stroke-[2]">
{post && (
<>
<button
@@ -340,7 +342,7 @@ function Hero({ hero, post, today, ranked, all, feedLoad, todayLoad }: HeroProps
onClick={like.toggle}
aria-pressed={like.liked}
aria-label={like.failed ? '좋아요를 반영하지 못했어요. 다시 눌러 주세요' : '오늘 날씨 좋아요'}
className={cx('relative flex cursor-pointer items-center gap-1 text-[13px] font-extrabold', TAP44, !like.liked && 'opacity-80')}
className={cx(HERO_ACT, TAP44, !like.liked && 'opacity-80')}
>
<HeartIcon className={like.liked ? 'fill-(--heart) stroke-(--heart)' : 'fill-none stroke-current'} />
{like.count > 0 && like.count.toLocaleString()}
@@ -349,14 +351,14 @@ function Hero({ hero, post, today, ranked, all, feedLoad, todayLoad }: HeroProps
type="button"
onClick={() => open({ type: 'comments', postId: post.post_id })}
aria-label="오늘 날씨 댓글"
className={cx('relative flex cursor-pointer items-center gap-1 text-[13px] font-extrabold opacity-80', TAP44)}
className={cx(HERO_ACT, 'opacity-80', TAP44)}
>
<CommentIcon className="fill-none stroke-current [stroke-linejoin:round]" />
{post.comment_count > 0 && post.comment_count.toLocaleString()}
</button>
</>
)}
<button type="button" onClick={share} aria-label="오늘 날씨 보내기" className={cx('relative grid size-7 cursor-pointer place-items-center opacity-80', TAP44)}>
<button type="button" onClick={share} aria-label="오늘 날씨 보내기" className={cx(HERO_ACT, 'opacity-80', TAP44)}>
<SendIcon className="fill-none stroke-current [stroke-linecap:round] [stroke-linejoin:round]" />
</button>
</span>