From 5efb86b6b8ceacf1149d09eff44739cb00c4d61b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=ED=95=9C=EB=95=80=20=EC=9E=91=EC=97=85=EC=8B=A4?= Date: Sun, 1 Nov 2026 04:23:22 +0000 Subject: [PATCH] =?UTF-8?q?=EB=93=B1=EB=A1=9D=20=ED=99=94=EB=A9=B4:=20?= =?UTF-8?q?=EB=AA=A9=EB=A1=9D=20=ED=99=94=EB=A9=B4=20=EB=8B=A4=EB=93=AC?= =?UTF-8?q?=EA=B8=B0(=ED=95=98=EB=8B=A8=20=EB=B0=94=20=EC=88=A8=EA=B9=80,?= =?UTF-8?q?=20=EB=B0=9C=ED=96=89=20=EB=B2=84=ED=8A=BC=20=EC=A1=B0=EA=B1=B4?= =?UTF-8?q?=EB=B6=80)=20+=20=EC=95=88=EB=82=B4=20=EB=AC=B8=EC=84=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 3 +++ studio/m.html | 7 ++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index dd54e0a..2eb6bf5 100644 --- a/README.md +++ b/README.md @@ -80,7 +80,10 @@ bash scripts/studio.sh # http://localhost:8081 - 주소: `https://naslala.taild8883.ts.net/` — 열쇠(토큰) 없다. 테일스케일이 켜진 내 기기에서만 접속된다. (공개 도메인 `teamat-admin.lala.dedyn.io` 는 만들었다가 내렸다. 필요하면 다시 만들 수 있지만 열쇠 없이 공개하면 안 된다.) - 홈 화면에 추가하면 앱처럼 열린다(PWA). 사진·음성 입력은 HTTPS 라서 그대로 동작한다. +- 첫 화면은 **작품 목록**이다(썸네일·부제·가격, 최근 순). 카드를 누르면 방금 만든 페이지가 그대로 열린다(빌드 결과 `dist` 를 서버가 서빙: `/p/.html`, 사이트 전체는 `/preview`). - 흐름: ① 사진 찍기(여러 장, 첫 장이 대표) → ② 내용 작성(사진을 읽어 초안) → ③ 규격·소재·세탁 칩 + 가격 → ④ 확인 후 저장 +- 저장하면 완료 화면에 `목록으로 돌아가기` 가 나오고, 목록의 그 작품에 `방금 등록` 배지가 붙는다. `저장만` 으로 저장한 작품은 `미발행` 배지가 붙는다. +- 목록 위 `사이트에 올리기 (미발행 N점)` = 커밋된 상태를 그대로 배포한다. 커밋 안 된 초안이 있으면 먼저 물어본다. 배포 후 배지는 사라진다. - 저장 = `사진 축소(Pillow) → content/products/.md → build.py → git commit`(경로만 지정) → `git push`(Gitea). `사이트에 올리기` 를 누르면 `dist/` 를 웹 루트로 복사한다. - 사진은 `studio/_inbox/` 에 잠시 쌓였다가 발행 시 두 곳으로 나뉜다. - 사이트용: `assets/img//cover.jpg`, `detail-NN.jpg` (저장소에 커밋. 최대 1400px, 품질 82) diff --git a/studio/m.html b/studio/m.html index c0171b3..afb5f43 100644 --- a/studio/m.html +++ b/studio/m.html @@ -63,7 +63,7 @@ .chip{padding:9px 12px;border:1px solid var(--line);background:var(--white); font-size:13px;cursor:pointer;color:var(--muted)} .chip[aria-pressed=true]{border-color:var(--sage);background:#EEF0E9;color:var(--ink)} - .bar{position:fixed;left:0;right:0;bottom:0;z-index:30;background:rgba(246,242,234,.97); + .bar{display:none;position:fixed;left:0;right:0;bottom:0;z-index:30;background:rgba(246,242,234,.97); border-top:1px solid var(--line);padding:12px 18px calc(12px + var(--safe-b)); display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:center} .bar .hint{font-size:12px;color:var(--muted);line-height:1.4} @@ -235,7 +235,7 @@ async function api(path, body){ /* ---------- 단계 이동 ---------- */ const STEPS = { - home:{el:'#s-home', n:'등록', prev:null, next:null}, + home:{el:'#s-home', n:'', prev:null, next:null}, photos:{el:'#s-photos', n:'1/4 사진', prev:'home', next:'write'}, write:{el:'#s-write', n:'2/4 내용', prev:'photos', next:'specs'}, specs:{el:'#s-specs', n:'3/4 항목', prev:'write', next:'done'}, @@ -291,6 +291,7 @@ async function loadHome(){ const pending = rows.filter(p => p.live === false).length; const button = $('#deploy-all'); button.disabled = pending === 0; + button.style.display = pending ? 'flex' : 'none'; button.textContent = pending ? `사이트에 올리기 (미발행 ${pending}점)` : '사이트 최신 상태'; }catch(e){ $('#home-note').textContent = ''; @@ -500,7 +501,7 @@ $('#deploy-all').onclick = async () => { }; /* ---------- 시작 ---------- */ -loadHome(); loadPresets(); +go('home'); loadPresets();