업데이트 알림(joke-app과 같게): 웹 빌드 id를 index.html meta(mq-build)에 넣고 서버가 /api/version·welcome으로 알려 줌, 다르면 위쪽에 '업데이트 내용이 있습니다 · 지금 새로고침하기 · ✕' 카드(소켓 다시 연결될 때·5분마다·탭으로 돌아올 때 확인)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -170,6 +170,18 @@ textarea.input { padding: 10px 14px; min-height: 90px; resize: vertical; }
|
||||
.avatar img { width: 100%; height: 100%; object-fit: cover; }
|
||||
.announcement { background: var(--primary-soft); padding: 8px 16px; text-align: center; font-weight: 700; border-bottom: 1.5px solid var(--line); }
|
||||
.announcement.maintenance { background: var(--warning-soft); }
|
||||
/* 업데이트 알림 (same as joke-app): a card at the top, never reloads by itself */
|
||||
.update-banner {
|
||||
position: fixed; top: calc(8px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 70;
|
||||
width: min(94vw, 480px); display: flex; align-items: center; gap: 10px;
|
||||
background: var(--surface); color: var(--text); border: 2px solid var(--primary); border-radius: var(--radius);
|
||||
box-shadow: 4px 4px 0 var(--ink); padding: 10px 8px 10px 16px; animation: update-in 0.2s ease;
|
||||
}
|
||||
@keyframes update-in { from { opacity: 0; transform: translate(-50%, -8px); } }
|
||||
.update-banner .update-text { flex: 1; min-width: 0; font-weight: 700; }
|
||||
.update-banner .btn { white-space: nowrap; }
|
||||
.update-close { flex: none; width: 40px; height: 40px; border: 0; background: transparent; color: var(--text-sub); font-size: 1.2rem; cursor: pointer; border-radius: var(--radius-sm); }
|
||||
.update-close:hover { background: var(--surface-2); }
|
||||
|
||||
/* ---------------------------------------------------------------- pages */
|
||||
.page { max-width: 1440px; margin: 0 auto; padding: 28px 40px; }
|
||||
|
||||
Reference in New Issue
Block a user