등록 화면: 목록 화면 다듬기(하단 바 숨김, 발행 버튼 조건부) + 안내 문서

This commit is contained in:
한땀 작업실 committed 2026-11-01 04:23:22 +00:00
1 parent b887c98d5f
commit 5efb86b6b8
2 files changed
+7 -3

No files matched your search

+3
View File
@@ -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/<slug>.html`, 사이트 전체는 `/preview`).
- 흐름: ① 사진 찍기(여러 장, 첫 장이 대표) → ② 내용 작성(사진을 읽어 초안) → ③ 규격·소재·세탁 칩 + 가격 → ④ 확인 후 저장
- 저장하면 완료 화면에 `목록으로 돌아가기` 가 나오고, 목록의 그 작품에 `방금 등록` 배지가 붙는다. `저장만` 으로 저장한 작품은 `미발행` 배지가 붙는다.
- 목록 위 `사이트에 올리기 (미발행 N점)` = 커밋된 상태를 그대로 배포한다. 커밋 안 된 초안이 있으면 먼저 물어본다. 배포 후 배지는 사라진다.
- 저장 = `사진 축소(Pillow) → content/products/<slug>.md → build.py → git commit`(경로만 지정) → `git push`(Gitea). `사이트에 올리기` 를 누르면 `dist/` 를 웹 루트로 복사한다.
- 사진은 `studio/_inbox/` 에 잠시 쌓였다가 발행 시 두 곳으로 나뉜다.
- 사이트용: `assets/img/<slug>/cover.jpg`, `detail-NN.jpg` (저장소에 커밋. 최대 1400px, 품질 82)
+4 -3
View File
@@ -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();
</script>
</body>
</html>