디자인 핸드오프(design_handoff_console_redesign)를 실제 앱에 반영.
CSS 드롭인 교체 + 최소 마크업 추가, HTMX 훅·id·data 속성은 모두 보존.
- app.css: 재디자인 토큰/컴포넌트로 교체(요약카드 호버 리프트, 표
제브라, 중앙 경고형 배포 모달, secondary/ghost/danger 버튼 체계,
진행률·상태칩·스켈레톤 등).
- base.html: 브랜드 로고 큐브(.brand-mark) 추가 + 데모 배너.
- repo_list: 요약 카드 .card-top/.card-ico + 검색 돋보기 아이콘.
- table_wrap: 회전형 정렬 인디케이터, 동기화 버튼 아이콘.
- progress: .sync-head/.sync-pct/.is-active/.indeterminate 구조.
- deploy_modal: 중앙 경고형 + 현재→대상 프리뷰 카드 + 타입-투-컨펌
체크/X 시각 상태.
- deploy_success: 그려지는 체크 원 배너.
- version_list: 표 → .version-item 카드 리스트.
Pico v2 호환(미리보기는 pico-shim 기준이라 안 드러났던 것):
- Pico 의 `:is(...).secondary`(0,2,0)·hover(0,4,0) 특정성을 이기도록
오버라이드를 :is() 형태로 상향 → 동기화 버튼 흰배경+파란글씨 유지,
hover 시 어두워지던 문제 해결.
- `input[type=search]` 의 Pico 기본 돋보기 배경 제거(아이콘 중복).
- `td` 배경을 투명 처리해 tr 제브라/hover 가 보이도록(Pico 의
`td{background:var(--pico-background-color)}` 가 덮던 문제), 줄무늬
색을 --bg-alt 로 또렷하게.
- .row-action 을 40px 고정 → 버튼↔진행률↔배지 교체 시 높이 흔들림·
위아래 테두리 잘림 해소.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
68 lines
2.7 KiB
HTML
68 lines
2.7 KiB
HTML
<!doctype html>
|
|
<html lang="ko">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<!-- 테마 초기화: 스타일 적용 전에 data-theme 설정해 FOUC 방지
|
|
(저장된 선택 → 없으면 OS 선호) -->
|
|
<script>
|
|
(function () {
|
|
try {
|
|
var t = localStorage.getItem("theme");
|
|
if (t !== "dark" && t !== "light") {
|
|
t = matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
}
|
|
document.documentElement.setAttribute("data-theme", t);
|
|
} catch (e) {}
|
|
})();
|
|
</script>
|
|
<title>{% block title %}Pulp 패치 관리 콘솔{% endblock %}</title>
|
|
<link rel="icon" href="/static/favicon.svg" type="image/svg+xml">
|
|
<!-- 정적 자산은 폐쇄망 대비 local 동봉 (CDN 의존 금지, 스펙 §9) -->
|
|
<link rel="stylesheet" href="/static/pico.min.css">
|
|
<link rel="stylesheet" href="/static/app.css">
|
|
<script src="/static/htmx.min.js" defer></script>
|
|
</head>
|
|
<body>
|
|
{% if demo_mode %}
|
|
<div class="demo-banner" role="alert">
|
|
<span class="demo-dot"></span>
|
|
<span>데모 모드 — 화면의 저장소·버전·배포는 모두 <strong>가짜 데이터</strong>입니다.
|
|
실제 Pulp 에 연결되어 있지 않습니다.</span>
|
|
</div>
|
|
{% endif %}
|
|
<nav class="app-nav">
|
|
<div class="container">
|
|
<p class="brand"><span class="brand-mark">P</span>Pulp <span class="accent">패치 관리 콘솔</span></p>
|
|
<button class="theme-toggle" type="button" onclick="toggleTheme()"
|
|
aria-label="라이트/다크 전환" title="라이트/다크 전환">
|
|
<svg class="icon moon" viewBox="0 0 24 24" width="18" height="18" fill="none"
|
|
stroke="currentColor" stroke-width="1.8" stroke-linecap="round"
|
|
stroke-linejoin="round" aria-hidden="true">
|
|
<path d="M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8z"/>
|
|
</svg>
|
|
<svg class="icon sun" viewBox="0 0 24 24" width="18" height="18" fill="none"
|
|
stroke="currentColor" stroke-width="1.8" stroke-linecap="round"
|
|
stroke-linejoin="round" aria-hidden="true">
|
|
<circle cx="12" cy="12" r="4"/>
|
|
<path d="M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4"/>
|
|
</svg>
|
|
</button>
|
|
</div>
|
|
</nav>
|
|
<main class="container">
|
|
{% block content %}{% endblock %}
|
|
</main>
|
|
<script>
|
|
function toggleTheme() {
|
|
var next =
|
|
document.documentElement.getAttribute("data-theme") === "dark"
|
|
? "light"
|
|
: "dark";
|
|
document.documentElement.setAttribute("data-theme", next);
|
|
try { localStorage.setItem("theme", next); } catch (e) {}
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|