[feat] solution/site: "고택" 템플릿 레이아웃 신설 — stay2 DOM 이식 1차
기존 template-look 시스템(색·서체 토큰)만으로는 stay2 실물과 구조 자체가 달랐다.
reservation/oasi/studio/pastel/editorial 다섯 레이아웃과 같은 자리(Shell·Hero·Rooms·
SectionHead)에 paper 를 여섯 번째로 추가 — layoutOf(templateId) 로 갈아 끼운다.
- layouts/paper/{Shell,Hero,Rooms,SectionHead}.tsx 신설
Shell: 세리프 워드마크+미니플레이어(SongPlayer)+전화, 앵커 탭 헤더, 얇은 텍스트 푸터
Hero: 풀블리드 회전 캐러셀(HeroPension 뼈대) + 왼쪽 정렬 카피, 가격띠 없음
Rooms: 유닛마다 전체폭 판 + 캐러셀(카드 격자 아님)
- lib/layout.ts: LayoutId 에 'paper', stay/restaurant/cafe-paper → paper 매핑
- App.tsx·HeroSection.tsx·UnitsSection.tsx·lib/ui/Section.tsx: 기존 5분기에 paper 추가
★ 실물 대조 결과 아직 stay2 와 다르다(사장님 지적) — 탭 개수(4개 vs 지금 섹션 수만큼),
히어로가 여백 있는 박스가 아니라 풀블리드, 객실 카드가 2열 나란히가 아니라 전체폭
세로 배치, 영문 눈썹 라벨 없음. 다음 커밋에서 이어서 맞춘다.
★ 배포 함정 실측: prerender.ts 의 "성공한 버전은 불변" 규칙 때문에, 같은 site_version 은
렌더러 코드를 바꿔도 재빌드 때 옛 HTML 을 그대로 재사용한다 — 버전 캐시를 지워야
강제로 다시 구워진다(운영 영향은 별도 확인 필요).
This commit is contained in:
1 parent
b7b8cb856c
commit
a74f7918c6
10 files changed
+551
-3
No files matched your search
@@ -20,6 +20,7 @@ import {SectionHead as OasiHead} from '@site/layouts/oasi/SectionHead';
|
||||
import {SectionHead as StudioHead} from '@site/layouts/studio/SectionHead';
|
||||
import {SectionHead as PastelHead} from '@site/layouts/pastel/SectionHead';
|
||||
import {SectionHead as EditorialHead} from '@site/layouts/editorial/SectionHead';
|
||||
import {SectionHead as PaperHead} from '@site/layouts/paper/SectionHead';
|
||||
|
||||
export type SectionTone = 'base' | 'alt' | 'dark';
|
||||
|
||||
@@ -72,7 +73,9 @@ export function Section({
|
||||
? PastelHead
|
||||
: layout === 'editorial'
|
||||
? EditorialHead
|
||||
: DefaultHead;
|
||||
: layout === 'paper'
|
||||
? PaperHead
|
||||
: DefaultHead;
|
||||
|
||||
return (
|
||||
<section
|
||||
|
||||
Reference in new issue
Block a user