mobile(supporters): 회복 일정 플래너 반응형 정비 + 사이트 헤더 모바일·태블릿 대응

- 헤더(≤900px): 첫 줄 브랜드·상담 예약, 둘째 줄 메뉴 가로 스크롤. 메뉴 6개가 두 줄로 겹치던 문제를 DOM 변경 없이 CSS만으로 해결(구조 지문 유지)
- 플래너 모바일: 히어로 통계·핵심 날짜 2열, 시술 그리드 2열, 타임라인 날짜 머리 가로 배치, 숙소·예약 카드 1열, 입력 16px(iOS 확대 방지)
- 하단 고정 요약 바: 결과가 있고 결과 섹션이 화면 아래에 있을 때만 표시. 시술명, 입국→출국, 박 수, 일정표 보기 버튼
- 검증: 1280 창 안 390/768px 아이프레임 하네스로 확인 (헤드리스 크롬은 창 최소 폭 때문에 400px 직접 캡처가 부정확)

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
Haewon KamandClaude Fable 5.1 committed 2026-09-10 16:20:39 +09:00
1 parent 27e77add65
commit 378ca7e7cd
4 files changed
+74 -4

No files matched your search

+15
View File
@@ -36,6 +36,7 @@ const nHotels = PL.places.filter((x) => x.category === 'hotel').length;
<section class="section tint"><div class="wrap-wide"><noscript><p class="notice">{lang === 'ko' ? '이 일정표는 브라우저에서 계산합니다. 자바스크립트를 켜 주세요.' : 'This planner runs in your browser. Please enable JavaScript.'}</p></noscript></div></section>
</div>
<div class="toast" id="toast" role="status" aria-live="polite"></div>
<div class="sticky-bar" id="sticky" hidden><div class="s"><b id="sticky-title"></b><small id="sticky-sub"></small></div><button type="button" data-action="go">{t.stickyView}</button></div>
<script>
import P from '../data/procedures.json';
@@ -54,6 +55,7 @@ const nHotels = PL.places.filter((x) => x.category === 'hotel').length;
const pageLang = (root.dataset.lang === 'en' ? 'en' : 'ko') as Lang;
const pageUrl = (l: Lang) => (l === 'en' ? '/en/plan' : '/plan');
const toastEl = document.getElementById('toast')!;
const sticky = document.getElementById('sticky')!;
const reservationUrl: string = (factSheet as any).reservationUrl || (factSheet as any).url || '/visit';
interface State { lang: Lang; nat: string; proc: string; date: string; prefs: string[] }
@@ -244,7 +246,20 @@ const nHotels = PL.places.filter((x) => x.category === 'hotel').length;
}
root.innerHTML = renderInput() + result;
syncHash();
updateSticky();
}
/** 모바일 하단 요약 바: 결과가 있고 결과 섹션이 아직 화면 아래에 있을 때만 보인다. */
function updateSticky() {
const p = currentProc();
if (!lastPlan || !p) { sticky.hidden = true; return; }
const t = T();
const short = (iso: string) => iso.slice(5).replace('-', '.');
(document.getElementById('sticky-title') as HTMLElement).textContent = (p.label as any)[state.lang];
(document.getElementById('sticky-sub') as HTMLElement).textContent = fill(t.stickyStay, { a: short(lastPlan.arriveBy), b: lastPlan.earliestDeparture ? short(lastPlan.earliestDeparture) : t.pending, n: lastPlan.stayNights ?? '?' });
const r = document.getElementById('result');
sticky.hidden = !r || r.getBoundingClientRect().top < window.innerHeight * 0.6;
}
window.addEventListener('scroll', () => { if (lastPlan) updateSticky(); }, { passive: true });
// ---------- 이벤트 ----------
document.addEventListener('click', (e) => {