[fix] solution: 엽서 자리·판 색·푸터 표기, 재발행이 노래를 다시 만들지 않게
대표 지적 여섯을 한 번에 고친다. - **재발행이 Suno 를 다시 부르던 것**(`song_service.ensure_song`). `build_service` 가 `publish=True` 마다 이 함수를 불렀는데 가드가 없었다 — 내용이 하나도 안 바뀐 재발행에도 Gemini 가사 1회 + Suno 작곡 1회가 그대로 나갔고, 다섯 번 누르면 유료 호출 다섯 번에 `place_songs` 행 다섯 개다. 화면은 최신 READY 한 곡만 쓰므로 나머지는 돈만 쓴다. → READY 곡이 있으면 건너뛴다. 일부러 다시 만드는 길은 SONG 잡(`force=True`)으로 남긴다 - **엽서 쓰기 자리**를 계절별 축제 바로 앞으로(시연본과 같게). 목록 맨 뒤라 FAQ 보다도 아래였다. 축제가 없는 사이트는 종전대로 맨 뒤 - **엽서가 모바일에서 화면을 밀어내던 것** — 그리드 칸의 기본 `min-width:auto` 가 사진 레일의 최소 너비(실측 390px 화면에서 2,056px)를 그대로 받아 칸이 밖으로 나갔다. `min-w-0` 과 캔버스 비율 고정(`aspect-square h-auto`). 실측 넘침 0px · 캔버스 358×358 - **가요 다방 판이 한 색이던 것** — 폴백 팔레트를 시연본(`/s/stay`)이 쓰는 23색 그대로 옮겼다(대표: "그냥 정해놔 · /s/stay 보고 맞춰라"). 목록을 새로 짜면 시연본과 갈린다 - **푸터에 만든 곳 표기** — `AI O2O의 Web4Ai로 만든 사이트입니다.`(o2osolution.ai 링크). 발행본(`SiteFooter`)과 시연본(`patch_stay.py`) 둘 다 - **에디터 캔버스의 푸터·모바일 탭바 제거** — 발행본이 iframe 안에서 둘 다 이미 그린다 (`SiteFooter` · `MobileTabBar`). 바깥에 한 벌 더 그려 두 번 서 있었다 - **시연본 자동재생 끔**(`inject.js`, 대표: "클릭하고 나서 되니까 사람들이 에러로 보잖아"). 세 번째 뒤집기고 이번 이유는 다르다 — 정책을 못 이겨서가 아니라 정책에 걸린 모습이 고장으로 읽혀서다. 함수는 남기고 호출만 뺐다. 제품 렌더러엔 원래 없다 검증: tsc·eslint 통과(site·frontend), site 79 passed. 실제로 구워서 확인 — 섹션 순서 `…오시는 길 → 엽서쓰기 → 계절별 축제 → …`, 푸터에 o2osolution.ai 링크, 모바일 가로 넘침 0. 킹서버 실측: 재발행 안 한 사이트(joyyy·bbbb)도 중계로 공유 버튼이 뜬다. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
f0c4d5f413
commit
9773bc0496
10 files changed
+123
-65
No files matched your search
@@ -141,51 +141,12 @@ export function CanvasView() {
|
||||
}}
|
||||
/>
|
||||
|
||||
<footer
|
||||
className="border-t border-black/10 p-6 text-center text-xs"
|
||||
style={{backgroundColor: template.colors.bg, color: template.colors.secondary}}
|
||||
>
|
||||
<div className="mx-auto max-w-4xl space-y-2">
|
||||
<p className="font-bold" style={{color: template.colors.text}}>
|
||||
{storeName}
|
||||
</p>
|
||||
<p className="text-[11px]">
|
||||
{infoFields.find((f) => f.id === 'address')?.value || location}
|
||||
</p>
|
||||
<p className="pt-2 text-[10px] opacity-60">
|
||||
© {new Date().getFullYear()} {storeName}. Powered by Web4Ai.
|
||||
</p>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
{viewport === 'mobile' && (
|
||||
<nav
|
||||
aria-label="모바일 하단 내비게이션 미리보기"
|
||||
className="sticky inset-x-0 bottom-0 z-30 flex items-center justify-around border-t border-black/10 bg-white/95 px-2 py-1.5 backdrop-blur-md"
|
||||
>
|
||||
{MOBILE_TABS.map(({key, label, anchor, icon: Icon}) => (
|
||||
<button
|
||||
key={key}
|
||||
type="button"
|
||||
onClick={() => scrollToSection(anchor, key)}
|
||||
className={cn(
|
||||
'flex cursor-pointer flex-col items-center justify-center rounded-lg px-2 py-1 transition-all',
|
||||
activeMobileTab === key ? 'font-bold text-zinc-950' : 'text-zinc-500',
|
||||
)}
|
||||
>
|
||||
<Icon className="size-4" />
|
||||
<span className="mt-0.5 text-[10px]">{label}</span>
|
||||
</button>
|
||||
))}
|
||||
<span
|
||||
className="flex items-center gap-1 rounded-lg px-3 py-1.5 text-[11px] font-bold text-white"
|
||||
style={{backgroundColor: template.colors.primary}}
|
||||
>
|
||||
<Calendar className="size-3.5" />
|
||||
<span>예약하기</span>
|
||||
</span>
|
||||
</nav>
|
||||
)}
|
||||
{/* ★ 푸터도 모바일 하단 탭바도 여기서 그리지 않는다
|
||||
(2026-09-15 대표: "에디터에서 이 부분 필요없음 / 이 부분 자체가 필요없음")
|
||||
발행본이 iframe 안에서 **둘 다 이미 그린다** — 푸터는 `site/sections/SiteFooter.tsx`,
|
||||
탭바는 `site/sections/MobileTabBar.tsx`(App 과 레이아웃 Shell 다섯이 모두 세운다).
|
||||
바깥에 한 벌 더 그리면 상호·주소·저작권·탭이 두 번 서고, 두 벌의 값이 어긋날 수도
|
||||
있다 — 이 캔버스가 "발행되는 그 화면"이어야 한다는 원칙(SitePreview 주석)에 어긋난다. */}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user