회원과 곡 보관함 기능을 추가한다
회원 가입과 로그인 및 등급별 접근과 공개 범위를 구현했다.`nMIDI 업로드와 검색 및 같은 곡의 버전 묶음을 추가했다.`n비밀번호 변경과 회원 탈퇴 및 관리자 회원 관리를 포함했다.`n직접 만든 공개 샘플 MIDI 네 곡과 운영 문서를 추가했다.
This commit is contained in:
@@ -44,6 +44,172 @@
|
||||
--color-right-hand-text: #22d3ee;
|
||||
}
|
||||
|
||||
/* ── ITOSM 곡 보관함과 회원 관리 ───────────────────────────────────────── */
|
||||
.library-open-button {
|
||||
min-height: 30px;
|
||||
padding: 0 12px;
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: 8px;
|
||||
background: var(--color-accent);
|
||||
color: #fff;
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.library-overlay {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 1000;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 18px;
|
||||
background: rgba(10, 8, 20, 0.72);
|
||||
backdrop-filter: blur(8px);
|
||||
}
|
||||
|
||||
.library-panel {
|
||||
width: min(1120px, 100%);
|
||||
height: min(820px, calc(100vh - 36px));
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: 18px;
|
||||
background: var(--color-surface);
|
||||
color: var(--color-text);
|
||||
box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
|
||||
}
|
||||
|
||||
.library-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
padding: 18px 22px;
|
||||
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 button,
|
||||
.library-tabs button,
|
||||
.library-tag-filter button,
|
||||
.library-tag-row button,
|
||||
.account-card button {
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: 8px;
|
||||
background: var(--color-surface-2);
|
||||
color: var(--color-text);
|
||||
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-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; }
|
||||
|
||||
.library-filters {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(120px, 1fr));
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.library-panel input,
|
||||
.library-panel select,
|
||||
.library-panel textarea {
|
||||
width: 100%;
|
||||
min-height: 38px;
|
||||
padding: 8px 10px;
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: 8px;
|
||||
background: var(--color-surface-2);
|
||||
color: var(--color-text);
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
.library-tag-filter,
|
||||
.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-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-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-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 {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 13px;
|
||||
max-width: 820px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.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 label,
|
||||
.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; }
|
||||
|
||||
.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; }
|
||||
.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; }
|
||||
}
|
||||
|
||||
[data-theme="light"] {
|
||||
/* Surfaces */
|
||||
--color-bg: #ffffff;
|
||||
|
||||
Reference in New Issue
Block a user