[chore] site/mockup: 번들 갱신·문서 정리 · 2안(사진) 빌더 스크립트 추가

- vendor/ 옛 해시 번들을 retired/ 로 옮기고 새 해시로 교체
- build_photo6.py 신설 — /s/stay6 "2안(사진)" 판, 슬러그별로 다시 구울 수 있다
  (python3 build_photo6.py <slug>)
- build_pension.py·build_reading.py·build_stay6.py·patch_stay.py 정리
- AUTOPLAY.md·README.md·audit-all.mjs 갱신
This commit is contained in:
minaChoi committed 2026-09-23 13:18:51 +09:00
1 parent a74f7918c6
commit 5e2def200b
68 files changed
+12247 -79

No files matched your search

+15 -5
View File
@@ -453,9 +453,9 @@ for _section in payload["theme"]["sections"]:
# **있는데 꺼진** 상태라 `hasSection()` 이 참이고, 그 분기는 "사장님이 끈 것" 으로 존중한다.
# ★ 지어낸 값이 없다. 요금·인원·취소 규정은 payload 의 확인된 fact 뿐이고
# (`derive.ts stayBookingView`), 근거가 하나도 없으면 섹션째 안 그린다.
for _section in payload["theme"]["sections"]:
if _section["id"] == "booking":
_section["enabled"] = True
# for _section in payload["theme"]["sections"]:
# if _section["id"] == "booking":
# _section["enabled"] = True
# ── 네이버 플레이스 → 네이버 예약 ────────────────────────────────────────────
for _link in payload["links"]:
@@ -466,6 +466,12 @@ for _link in payload["links"]:
# ── index.html 조립 ──────────────────────────────────────────────────────────
html = (SP / "orig" / "index.html").read_text(encoding="utf-8")
_FADED = {"50": "85", "55": "85", "60": "85", "65": "90", "70": "90", "75": "90",
"80": "95", "85": "95"}
html = re.sub(r"(?<![-\w])opacity-(\d+)(?![-\w])",
lambda m: "opacity-" + _FADED.get(m.group(1), m.group(1)), html)
html = html.replace("text-current/55", "text-current/90").replace("text-current/80", "text-current/90")
# :root 의 --tpl-* 색상은 payload 의 window.__SITE_PAYLOAD__ 와 별도로 굳어 있던 값이다
# (원본 프리렌더 시점 그대로) — theme.colors 를 바꿔도 이 블록은 그대로라 배경색 변경이
# 절반만 반영됐다(소개 섹션은 --tpl-surface, 이용안내는 --tpl-surface-alt 를 쓴다).
@@ -477,7 +483,11 @@ _colors = payload["theme"]["colors"]
_tpl_vars = {
"--tpl-primary": _colors["primary"], "--tpl-secondary": _colors["secondary"],
"--tpl-bg": _colors["bg"], "--tpl-card": _colors["card"], "--tpl-text": _colors["text"],
"--tpl-accent": _colors["accent"], "--tpl-surface": _colors["surface"],
"--tpl-accent": _colors["accent"],
# ★ 원본 payload(stay-payload.json)에는 surface 키가 **없다** — 프리렌더가 :root 에 박아
# 둔 고정값이 유일한 출처다(실측 #e5dcc6). 대괄호로 읽으면 KeyError 로 굽기가 통째로
# 멈춘다(2026-09-18 실측: 이 줄에서 죽어 /s/stay 를 다시 구울 수 없었다).
"--tpl-surface": _colors.get("surface", "#e5dcc6"),
"--tpl-surface-alt": _colors["card"],
}
for _name, _value in _tpl_vars.items():
@@ -509,7 +519,7 @@ assert OLD_UPDATED_AT not in html and OLD_UPDATED_AT[:10] not in html, "옛 날
# ★ 화면이 실제로 따라오는 것은 `vendor/` 번들을 다시 복사한 다음이다(아래 ★ 갱신 절차) —
# 지금 넣는 것은 크롤러와 첫 화면이 보는 값이고, 날짜를 payload 밖에서도 고치는 것과
# 같은 이유다.
MADE_BY = ('<p class="pt-3 text-[length:var(--fs-xs)] opacity-55">'
MADE_BY = ('<p class="pt-3 text-[length:var(--fs-xs)] opacity-85">'
'<a href="https://www.o2osolution.ai/" target="_blank" rel="noopener noreferrer" '
'class="underline-offset-2 hover:underline">AI O2O</a>'
'의 Web4Ai로 만든 사이트입니다.</p>')