feat: 내 각 아이콘·상세, 이야기 내 글·무한 스크롤, 공유 이미지 얇은 띠, 행사 주소 수집

- 내 각: 아이콘 고르기(my_gak.icon), 카드는 아이콘·점수·아쉬운 조건만, 눌러서 상세(시간대·조건별 점수), 공유는 공통 공유 창
- 이야기: 오늘 쓴 내 글 묶음, '내 글' 칩·탭, 무한 스크롤, 사진 카메라 버튼, 지우기 확인, ⋯ 메뉴 하트 옆, 글 시간 서버 계산(1일 전)
- 공유 이미지: 1:1·4:5 는 아래 얇은 띠 한 줄로 카드를 크게
- 행사: 수집 때 주소 저장(event.address), 행사 포스트에 장소·주소·기간
- 히어로 말풍선 '오늘 낮은 / 내일 낮은', 내일을 볼 때 배경도 따라감, 달 보름 순간이 낮이면 뜨는 시각으로
- 단풍 지도 피드 맨 위, 행사·계절 띠 포스트 틀 되돌림, 쇼츠 홈 버튼 가림·닫기 버튼, 하단 여백, 회색 글자 대비
- 토스 앱에선 쇼츠 플레이어를 하나만 띄움
This commit is contained in:
minaChoi committed 2026-10-27 18:55:42 +09:00
1 parent 3a249c509d
commit ffe6153148
35 files changed
+566 -185

No files matched your search

+29
View File
@@ -185,3 +185,32 @@ export function FoliageMapShare({ title, peak, ranked, ref }: { title: string; p
</Offscreen>
)
}
/** 내 각 공유: 아이콘·이름·점수, 조건마다 막대와 실제 값. 로고·지역·날짜는 공유 틀이 그린다 */
export function MyGakShareCard({ name, icon, score, slot, rows, ref }: { name: string; icon: string; score?: number | null; slot?: string; rows: { axis: string; label: string; value: number; note: string }[]; ref: Ref<HTMLDivElement> }) {
return (
<Offscreen>
<div ref={ref} className="b-band-1 flex aspect-[4/5] flex-col bg-white px-5 pt-5 pb-4 text-[#28304a]">
<p className="m-0 text-[13px] font-extrabold opacity-75">내 각{slot ? ` · ${slot} 기준` : ''}</p>
<div className="mt-2 flex items-center gap-3">
<Ic name={icon} className="w-[64px] shrink-0" />
<b className="min-w-0 flex-1 font-jua text-[28px] leading-tight font-normal">{name}</b>
<em className="font-bagel text-[52px] leading-none text-[#ff7a45] not-italic">{score ?? '–'}</em>
</div>
<ul className="m-0 mt-4 grid list-none gap-2.5 p-0">
{rows.map((r) => (
<li key={r.axis} className="rounded-[18px] bg-white px-3 py-2.5 shadow-[inset_0_-4px_0_#d9e5f4]">
<span className="flex items-center gap-2 text-[14px] font-extrabold">
{r.label}
<i className="block h-[8px] flex-1 overflow-hidden rounded-full bg-[#e3eaf4]">
<s className="block h-full bg-[linear-gradient(90deg,#ffc86e,#ff7a45)]" style={{ width: `${r.value}%` }} />
</i>
</span>
<small className="mt-0.5 block text-[12.5px] font-semibold text-[#5a6380]">{r.note}</small>
</li>
))}
</ul>
</div>
</Offscreen>
)
}