등록 화면: 목록 화면 다듬기(하단 바 숨김, 발행 버튼 조건부) + 안내 문서
This commit is contained in:
1 parent
b887c98d5f
commit
5efb86b6b8
2 files changed
+7
-3
No files matched your search
+4
-3
@@ -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>
|
||||
Reference in new issue
Block a user