회원 메뉴와 관리자 진입을 상단에 표시한다
곡 보관함과 로그인·회원가입과 관리자 버튼을 항상 보이도록 분리했다. 관리자 버튼은 권한에 따라 로그인 화면 또는 회원 관리 화면으로 이동한다. PWA 시작 문서와 서비스 워커의 캐시 정책을 보완해 배포 뒤 예전 화면이 오래 남지 않게 했다. 검사: pnpm 9 lint-staged와 프런트엔드 프로덕션 빌드 통과.
This commit is contained in:
+293
-61
@@ -58,6 +58,15 @@
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.library-account-button {
|
||||
background: var(--color-surface-2);
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
.library-admin-button {
|
||||
background: #334155;
|
||||
}
|
||||
|
||||
.library-overlay {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
@@ -92,9 +101,18 @@
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
}
|
||||
|
||||
.library-header > div { display: flex; flex-direction: column; gap: 4px; }
|
||||
.library-header strong { font-size: 20px; }
|
||||
.library-header span { color: var(--color-text-muted); font-size: 12px; }
|
||||
.library-header > div {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
}
|
||||
.library-header strong {
|
||||
font-size: 20px;
|
||||
}
|
||||
.library-header span {
|
||||
color: var(--color-text-muted);
|
||||
font-size: 12px;
|
||||
}
|
||||
.library-header button,
|
||||
.library-tabs button,
|
||||
.library-tag-filter button,
|
||||
@@ -107,13 +125,40 @@
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.library-header button { padding: 8px 14px; }
|
||||
.library-tabs { display: flex; gap: 6px; padding: 10px 18px; overflow-x: auto; border-bottom: 1px solid var(--color-border); }
|
||||
.library-tabs button { padding: 8px 14px; white-space: nowrap; }
|
||||
.library-header button {
|
||||
padding: 8px 14px;
|
||||
}
|
||||
.library-tabs {
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
padding: 10px 18px;
|
||||
overflow-x: auto;
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
}
|
||||
.library-tabs button {
|
||||
padding: 8px 14px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.library-tabs button.active,
|
||||
.account-mode button.active { background: var(--color-accent); color: #fff; border-color: transparent; }
|
||||
.library-message { margin: 10px 18px 0; padding: 10px 12px; border-radius: 8px; background: rgba(147, 51, 234, 0.12); color: var(--color-text); font-size: 13px; }
|
||||
.library-body { flex: 1; min-height: 0; overflow: auto; padding: 18px; }
|
||||
.account-mode button.active {
|
||||
background: var(--color-accent);
|
||||
color: #fff;
|
||||
border-color: transparent;
|
||||
}
|
||||
.library-message {
|
||||
margin: 10px 18px 0;
|
||||
padding: 10px 12px;
|
||||
border-radius: 8px;
|
||||
background: rgba(147, 51, 234, 0.12);
|
||||
color: var(--color-text);
|
||||
font-size: 13px;
|
||||
}
|
||||
.library-body {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
overflow: auto;
|
||||
padding: 18px;
|
||||
}
|
||||
|
||||
.library-filters {
|
||||
display: grid;
|
||||
@@ -135,30 +180,106 @@
|
||||
}
|
||||
|
||||
.library-tag-filter,
|
||||
.library-tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
|
||||
.library-tag-filter { padding: 12px 0; }
|
||||
.library-tag-row {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
}
|
||||
.library-tag-filter {
|
||||
padding: 12px 0;
|
||||
}
|
||||
.library-tag-filter button,
|
||||
.library-tag-row button { padding: 5px 8px; font-size: 11px; }
|
||||
.library-tag-filter button.active { background: var(--color-accent); color: #fff; }
|
||||
.library-groups { display: grid; gap: 14px; }
|
||||
.library-group { border: 1px solid var(--color-border); border-radius: 14px; overflow: hidden; background: var(--color-surface-2); }
|
||||
.library-group-title { display: flex; justify-content: space-between; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--color-border); }
|
||||
.library-group-title > div { display: flex; flex-direction: column; gap: 3px; }
|
||||
.library-tag-row button {
|
||||
padding: 5px 8px;
|
||||
font-size: 11px;
|
||||
}
|
||||
.library-tag-filter button.active {
|
||||
background: var(--color-accent);
|
||||
color: #fff;
|
||||
}
|
||||
.library-groups {
|
||||
display: grid;
|
||||
gap: 14px;
|
||||
}
|
||||
.library-group {
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: 14px;
|
||||
overflow: hidden;
|
||||
background: var(--color-surface-2);
|
||||
}
|
||||
.library-group-title {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 14px;
|
||||
padding: 14px 16px;
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
}
|
||||
.library-group-title > div {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 3px;
|
||||
}
|
||||
.library-group-title span,
|
||||
.library-group-title small { color: var(--color-text-muted); font-size: 12px; }
|
||||
.library-variants { display: grid; }
|
||||
.library-variant { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 16px; }
|
||||
.library-variant + .library-variant { border-top: 1px solid var(--color-border); }
|
||||
.library-variant-main { min-width: 0; }
|
||||
.library-variant-main > strong { display: block; font-size: 14px; }
|
||||
.library-group-title small {
|
||||
color: var(--color-text-muted);
|
||||
font-size: 12px;
|
||||
}
|
||||
.library-variants {
|
||||
display: grid;
|
||||
}
|
||||
.library-variant {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 18px;
|
||||
padding: 14px 16px;
|
||||
}
|
||||
.library-variant + .library-variant {
|
||||
border-top: 1px solid var(--color-border);
|
||||
}
|
||||
.library-variant-main {
|
||||
min-width: 0;
|
||||
}
|
||||
.library-variant-main > strong {
|
||||
display: block;
|
||||
font-size: 14px;
|
||||
}
|
||||
.library-variant-main > span,
|
||||
.library-variant-main > small { display: block; margin-top: 3px; color: var(--color-text-muted); font-size: 11px; }
|
||||
.library-variant-main p { margin: 7px 0; font-size: 12px; line-height: 1.5; }
|
||||
.library-variant-actions { width: 150px; display: flex; flex-direction: column; gap: 7px; flex: 0 0 auto; }
|
||||
.library-variant-main > small {
|
||||
display: block;
|
||||
margin-top: 3px;
|
||||
color: var(--color-text-muted);
|
||||
font-size: 11px;
|
||||
}
|
||||
.library-variant-main p {
|
||||
margin: 7px 0;
|
||||
font-size: 12px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
.library-variant-actions {
|
||||
width: 150px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 7px;
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
.library-variant-actions button,
|
||||
.upload-form button { min-height: 38px; border: 0; border-radius: 8px; cursor: pointer; }
|
||||
.library-panel .primary { background: var(--color-accent); color: #fff; font-weight: 700; }
|
||||
.library-empty { padding: 48px; text-align: center; color: var(--color-text-muted); }
|
||||
.upload-form button {
|
||||
min-height: 38px;
|
||||
border: 0;
|
||||
border-radius: 8px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.library-panel .primary {
|
||||
background: var(--color-accent);
|
||||
color: #fff;
|
||||
font-weight: 700;
|
||||
}
|
||||
.library-empty {
|
||||
padding: 48px;
|
||||
text-align: center;
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
.upload-form {
|
||||
display: grid;
|
||||
@@ -169,45 +290,156 @@
|
||||
}
|
||||
.upload-form h3,
|
||||
.upload-form p,
|
||||
.upload-form .wide { grid-column: 1 / -1; }
|
||||
.upload-form p { margin: -4px 0 4px; color: var(--color-text-muted); font-size: 12px; }
|
||||
.upload-form .wide {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
.upload-form p {
|
||||
margin: -4px 0 4px;
|
||||
color: var(--color-text-muted);
|
||||
font-size: 12px;
|
||||
}
|
||||
.upload-form label,
|
||||
.account-card label { display: flex; flex-direction: column; gap: 6px; color: var(--color-text-muted); font-size: 12px; }
|
||||
.account-card label {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
color: var(--color-text-muted);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.account-sections { max-width: 720px; margin: 0 auto; display: grid; gap: 14px; }
|
||||
.account-card { max-width: 520px; margin: 0 auto; padding: 20px; border: 1px solid var(--color-border); border-radius: 14px; background: var(--color-surface-2); }
|
||||
.account-card h3 { margin: 0 0 8px; }
|
||||
.account-card p { color: var(--color-text-muted); font-size: 12px; line-height: 1.5; }
|
||||
.account-card form { display: grid; gap: 12px; }
|
||||
.account-card button { min-height: 38px; padding: 0 14px; }
|
||||
.account-mode { display: flex; gap: 6px; margin-bottom: 16px; }
|
||||
.account-mode button { flex: 1; }
|
||||
.danger-zone { border-color: rgba(220, 38, 38, 0.45); }
|
||||
.library-panel .danger { background: #b91c1c; color: #fff; border: 0; }
|
||||
.account-sections {
|
||||
max-width: 720px;
|
||||
margin: 0 auto;
|
||||
display: grid;
|
||||
gap: 14px;
|
||||
}
|
||||
.account-card {
|
||||
max-width: 520px;
|
||||
margin: 0 auto;
|
||||
padding: 20px;
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: 14px;
|
||||
background: var(--color-surface-2);
|
||||
}
|
||||
.account-card h3 {
|
||||
margin: 0 0 8px;
|
||||
}
|
||||
.account-card p {
|
||||
color: var(--color-text-muted);
|
||||
font-size: 12px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
.account-card form {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
}
|
||||
.account-card button {
|
||||
min-height: 38px;
|
||||
padding: 0 14px;
|
||||
}
|
||||
.account-mode {
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
.account-mode button {
|
||||
flex: 1;
|
||||
}
|
||||
.danger-zone {
|
||||
border-color: rgba(220, 38, 38, 0.45);
|
||||
}
|
||||
.library-panel .danger {
|
||||
background: #b91c1c;
|
||||
color: #fff;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.admin-users { display: grid; gap: 10px; }
|
||||
.admin-users > p { margin: 0 0 8px; color: var(--color-text-muted); font-size: 12px; }
|
||||
.admin-user-row { display: grid; grid-template-columns: minmax(180px, 2fr) repeat(3, minmax(110px, 1fr)); gap: 8px; align-items: center; padding: 12px; border: 1px solid var(--color-border); border-radius: 10px; }
|
||||
.admin-user-row > div { display: flex; flex-direction: column; gap: 3px; }
|
||||
.admin-user-row span { color: var(--color-text-muted); font-size: 11px; }
|
||||
.admin-users {
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
}
|
||||
.admin-users > p {
|
||||
margin: 0 0 8px;
|
||||
color: var(--color-text-muted);
|
||||
font-size: 12px;
|
||||
}
|
||||
.admin-user-row {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(180px, 2fr) repeat(3, minmax(110px, 1fr));
|
||||
gap: 8px;
|
||||
align-items: center;
|
||||
padding: 12px;
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: 10px;
|
||||
}
|
||||
.admin-user-row > div {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 3px;
|
||||
}
|
||||
.admin-user-row span {
|
||||
color: var(--color-text-muted);
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
@media (max-width: 760px) {
|
||||
.library-open-button { padding: 0 8px; font-size: 11px; }
|
||||
.library-overlay { padding: 0; }
|
||||
.library-panel { width: 100%; height: 100dvh; border: 0; border-radius: 0; }
|
||||
.library-header { padding: 13px 14px; }
|
||||
.library-header strong { font-size: 17px; }
|
||||
.library-body { padding: 12px; }
|
||||
.library-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
||||
.library-filters input { grid-column: 1 / -1; }
|
||||
.library-variant { align-items: stretch; flex-direction: column; gap: 12px; }
|
||||
.library-variant-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
|
||||
.upload-form { grid-template-columns: 1fr; }
|
||||
.library-open-button {
|
||||
padding: 0 8px;
|
||||
font-size: 11px;
|
||||
}
|
||||
.library-account-button {
|
||||
max-width: 82px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.library-overlay {
|
||||
padding: 0;
|
||||
}
|
||||
.library-panel {
|
||||
width: 100%;
|
||||
height: 100dvh;
|
||||
border: 0;
|
||||
border-radius: 0;
|
||||
}
|
||||
.library-header {
|
||||
padding: 13px 14px;
|
||||
}
|
||||
.library-header strong {
|
||||
font-size: 17px;
|
||||
}
|
||||
.library-body {
|
||||
padding: 12px;
|
||||
}
|
||||
.library-filters {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
.library-filters input {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
.library-variant {
|
||||
align-items: stretch;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
}
|
||||
.library-variant-actions {
|
||||
width: 100%;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
}
|
||||
.upload-form {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
.upload-form h3,
|
||||
.upload-form p,
|
||||
.upload-form .wide { grid-column: auto; }
|
||||
.admin-user-row { grid-template-columns: 1fr 1fr; }
|
||||
.admin-user-row > div { grid-column: 1 / -1; }
|
||||
.upload-form .wide {
|
||||
grid-column: auto;
|
||||
}
|
||||
.admin-user-row {
|
||||
grid-template-columns: 1fr 1fr;
|
||||
}
|
||||
.admin-user-row > div {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
}
|
||||
|
||||
[data-theme="light"] {
|
||||
|
||||
Reference in New Issue
Block a user