[feat] solution/site,shared: 숙박 템플릿 8종 추가 — 라운드·시네마·빅타이포·부티크·일러스트·코랄·미니멀·솔숲

사장님이 고를 수 있는 숙박 템플릿이 고택 하나뿐이었다. 모두 stay2 콘텐츠(날씨·미니 블로그·
지역 이야기·객실·축제·일정·후기·엽서·노래)를 그대로 싣고 모양만 다르다.

- layouts/<id>/: 템플릿별 Frame·섹션·CSS. 데스크톱은 넓은 배치(1024px 이상), 모바일 우선
- layouts/kit/kit.css: 탭 전환·시트·예약 폼·접기 등 공통 구조
- shared templates.json · builder.ts · catalog.ts: 템플릿·LayoutId 등록
- seo/head.ts: 템플릿별 한글 웹폰트 — 서로 겹치지 않게 배정
- paper Frame·Intro: 같은 탭을 다시 눌러도 맨 위로, 미니 블로그를 글 여러 개로
- docs/TEMPLATES.md · TEMPLATE_DESIGN.md: 목록과 화면 규칙(간격·접기·✓ 표시·글꼴)

eslint·tsc 통과, vitest 123 passed, 템플릿 9개 굽기 성공 · 간격 검사 0건
This commit is contained in:
minaChoi committed 2026-09-30 13:45:10 +09:00
1 parent 7f6f16f307
commit 013cdcfc9f
153 files changed
+15672 -240

No files matched your search

+11 -2
View File
@@ -60,11 +60,20 @@ function usePage(): PageId {
const {hash} = window.location;
if (hash && !hash.startsWith('#/')) return;
setPage(pageOf(hash));
window.scrollTo(0, 0);
window.scrollTo({top: 0, behavior: 'instant'});
};
sync();
window.addEventListener('hashchange', sync);
return () => window.removeEventListener('hashchange', sync);
const again = (event: MouseEvent) => {
const link = event.target instanceof Element ? event.target.closest('a[href^="#/"]') : null;
const href = link?.getAttribute('href');
if (href && pageOf(href) === pageOf(window.location.hash)) window.scrollTo({top: 0, behavior: 'instant'});
};
document.addEventListener('click', again);
return () => {
window.removeEventListener('hashchange', sync);
document.removeEventListener('click', again);
};
}, []);
return page;
}