v4.0.0: 회원·덱 API, 인증 UI, 프로필 및 레이아웃 통일
Express/SQLite API와 Docker 구성을 추가하고 로그인·덱 저장·공개 덱·관리자·프로필 화면을 구현했다. 결과 화면 저장 UX, 헤더 프로필, 애드센스용 app-shell 레이아웃(1280px) 및 문서를 반영했다. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
519
style/admin.css
Normal file
519
style/admin.css
Normal file
@@ -0,0 +1,519 @@
|
||||
/**
|
||||
* 관리자 페이지 (admin.html)
|
||||
*/
|
||||
|
||||
.admin-page {
|
||||
font-family: 'Inter', 'Noto Sans KR', sans-serif;
|
||||
min-height: 100vh;
|
||||
background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
|
||||
color: #0f172a;
|
||||
}
|
||||
|
||||
.admin-nav {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 50;
|
||||
background: rgba(255, 255, 255, 0.7);
|
||||
backdrop-filter: blur(12px);
|
||||
border-bottom: 1px solid #e2e8f0;
|
||||
}
|
||||
|
||||
.admin-nav-inner {
|
||||
max-width: 80rem;
|
||||
margin: 0 auto;
|
||||
padding: 0 1.5rem;
|
||||
height: 4rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.admin-brand {
|
||||
font-size: 1.25rem;
|
||||
font-weight: 800;
|
||||
color: #1e293b;
|
||||
text-decoration: none;
|
||||
letter-spacing: -0.025em;
|
||||
}
|
||||
|
||||
.admin-brand span {
|
||||
color: #2563eb;
|
||||
}
|
||||
|
||||
.admin-main {
|
||||
max-width: 80rem;
|
||||
margin: 0 auto;
|
||||
padding: 3rem 1.5rem 5rem;
|
||||
}
|
||||
|
||||
@media (min-width: 640px) {
|
||||
.admin-main {
|
||||
padding-top: 4rem;
|
||||
}
|
||||
}
|
||||
|
||||
.admin-header {
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.admin-header h1 {
|
||||
font-size: 1.75rem;
|
||||
font-weight: 900;
|
||||
margin: 0 0 0.5rem;
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
|
||||
.admin-header p {
|
||||
margin: 0;
|
||||
font-size: 0.875rem;
|
||||
color: #64748b;
|
||||
}
|
||||
|
||||
.admin-tabs {
|
||||
display: flex;
|
||||
gap: 0.25rem;
|
||||
margin-bottom: 1.75rem;
|
||||
border-bottom: 1px solid #e2e8f0;
|
||||
}
|
||||
|
||||
.admin-tab {
|
||||
padding: 0.75rem 1.125rem;
|
||||
margin-bottom: -1px;
|
||||
border: none;
|
||||
border-bottom: 2px solid transparent;
|
||||
background: none;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 700;
|
||||
color: #94a3b8;
|
||||
cursor: pointer;
|
||||
transition: color 0.2s, border-color 0.2s;
|
||||
}
|
||||
|
||||
.admin-tab:hover {
|
||||
color: #475569;
|
||||
}
|
||||
|
||||
.admin-tab.active {
|
||||
color: #2563eb;
|
||||
border-bottom-color: #2563eb;
|
||||
}
|
||||
|
||||
.admin-toolbar {
|
||||
display: flex;
|
||||
gap: 0.75rem;
|
||||
margin-bottom: 1.25rem;
|
||||
}
|
||||
|
||||
.admin-search {
|
||||
flex: 1;
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 0.75rem;
|
||||
padding: 0.625rem 1rem;
|
||||
font-size: 0.875rem;
|
||||
background: #fff;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.admin-search:focus {
|
||||
border-color: #3b82f6;
|
||||
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
|
||||
}
|
||||
|
||||
.admin-btn {
|
||||
padding: 0.625rem 1rem;
|
||||
border: none;
|
||||
border-radius: 0.75rem;
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.admin-btn-primary {
|
||||
background: #1e293b;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.admin-btn-secondary {
|
||||
background: #f1f5f9;
|
||||
color: #475569;
|
||||
}
|
||||
|
||||
.admin-btn-secondary:hover {
|
||||
background: #e2e8f0;
|
||||
}
|
||||
|
||||
.admin-count {
|
||||
font-size: 0.75rem;
|
||||
color: #94a3b8;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.admin-user-list,
|
||||
.admin-deck-grid {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.admin-deck-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.admin-card {
|
||||
background: #fff;
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 1rem;
|
||||
padding: 1rem 1.125rem;
|
||||
box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
|
||||
}
|
||||
|
||||
.admin-card-row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: flex-start;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.admin-card-title {
|
||||
font-size: 0.9375rem;
|
||||
font-weight: 700;
|
||||
color: #0f172a;
|
||||
margin: 0 0 0.25rem;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.admin-card-meta {
|
||||
font-size: 0.75rem;
|
||||
color: #94a3b8;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.admin-card-badges {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.375rem;
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
.admin-badge {
|
||||
font-size: 0.625rem;
|
||||
font-weight: 700;
|
||||
padding: 0.15rem 0.45rem;
|
||||
border-radius: 0.375rem;
|
||||
}
|
||||
|
||||
.admin-badge-public {
|
||||
color: #059669;
|
||||
background: #ecfdf5;
|
||||
}
|
||||
|
||||
.admin-badge-private {
|
||||
color: #64748b;
|
||||
background: #f1f5f9;
|
||||
}
|
||||
|
||||
.admin-badge-type {
|
||||
color: #2563eb;
|
||||
background: #eff6ff;
|
||||
}
|
||||
|
||||
.admin-card-actions {
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.admin-card-btn {
|
||||
padding: 0.4rem 0.75rem;
|
||||
border: none;
|
||||
border-radius: 0.5rem;
|
||||
font-size: 0.6875rem;
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.admin-card-btn-edit {
|
||||
background: #f1f5f9;
|
||||
color: #475569;
|
||||
}
|
||||
|
||||
.admin-card-btn-edit:hover {
|
||||
background: #e2e8f0;
|
||||
}
|
||||
|
||||
.admin-card-btn-delete {
|
||||
background: #fef2f2;
|
||||
color: #dc2626;
|
||||
}
|
||||
|
||||
.admin-card-btn-delete:hover {
|
||||
background: #fee2e2;
|
||||
}
|
||||
|
||||
.admin-modal {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 100;
|
||||
display: none;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 1rem;
|
||||
background: rgba(15, 23, 42, 0.5);
|
||||
}
|
||||
|
||||
.admin-modal.open {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.hidden {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* 회원 카드 */
|
||||
.admin-user-card {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.admin-user-avatar {
|
||||
width: 3rem;
|
||||
height: 3rem;
|
||||
border-radius: 9999px;
|
||||
object-fit: cover;
|
||||
background: #f1f5f9;
|
||||
border: 2px solid #e2e8f0;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.admin-user-body {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
/* 덱 카드 (썸네일) */
|
||||
.admin-deck-card {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.admin-deck-preview {
|
||||
aspect-ratio: 16 / 9;
|
||||
background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
|
||||
border-bottom: 1px solid #e2e8f0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.admin-deck-preview img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
background: #f8fafc;
|
||||
}
|
||||
|
||||
.admin-deck-preview-placeholder {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 100%;
|
||||
font-size: 0.6875rem;
|
||||
font-weight: 600;
|
||||
color: #94a3b8;
|
||||
}
|
||||
|
||||
.admin-deck-body {
|
||||
padding: 1rem 1.125rem 1.125rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.375rem;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
/* 회원 모달 */
|
||||
.admin-modal-box {
|
||||
width: 100%;
|
||||
max-width: 26rem;
|
||||
background: #fff;
|
||||
border-radius: 1.25rem;
|
||||
padding: 0;
|
||||
box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.admin-modal-header {
|
||||
padding: 1.5rem 1.5rem 1rem;
|
||||
background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
|
||||
border-bottom: 1px solid #e2e8f0;
|
||||
}
|
||||
|
||||
.admin-modal-profile {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.admin-modal-avatar-wrap {
|
||||
position: relative;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.admin-modal-avatar {
|
||||
width: 4.5rem;
|
||||
height: 4.5rem;
|
||||
border-radius: 9999px;
|
||||
object-fit: cover;
|
||||
background: #fff;
|
||||
border: 3px solid #fff;
|
||||
box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
|
||||
}
|
||||
|
||||
.admin-modal-avatar-btn {
|
||||
position: absolute;
|
||||
right: -0.25rem;
|
||||
bottom: -0.25rem;
|
||||
width: 1.75rem;
|
||||
height: 1.75rem;
|
||||
border-radius: 9999px;
|
||||
border: 2px solid #fff;
|
||||
background: #2563eb;
|
||||
color: #fff;
|
||||
font-size: 0.75rem;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.admin-modal-avatar-remove {
|
||||
margin-top: 0.5rem;
|
||||
font-size: 0.6875rem;
|
||||
color: #94a3b8;
|
||||
background: none;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
padding: 0;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.admin-modal-title {
|
||||
margin: 0;
|
||||
font-size: 1.125rem;
|
||||
font-weight: 800;
|
||||
color: #0f172a;
|
||||
}
|
||||
|
||||
.admin-modal-sub {
|
||||
margin: 0.25rem 0 0;
|
||||
font-size: 0.75rem;
|
||||
color: #64748b;
|
||||
}
|
||||
|
||||
.admin-modal-content {
|
||||
padding: 1.25rem 1.5rem 1.5rem;
|
||||
}
|
||||
|
||||
.admin-field-hint {
|
||||
margin: 0.375rem 0 0;
|
||||
font-size: 0.6875rem;
|
||||
color: #94a3b8;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.admin-field-hint.warn {
|
||||
color: #d97706;
|
||||
}
|
||||
|
||||
.admin-input:disabled,
|
||||
.admin-select:disabled {
|
||||
background: #f8fafc;
|
||||
color: #94a3b8;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.admin-modal-divider {
|
||||
height: 1px;
|
||||
background: #e2e8f0;
|
||||
margin: 1rem 0;
|
||||
}
|
||||
|
||||
.admin-modal-actions {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
.admin-modal-actions-row {
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.admin-modal-actions-row .admin-btn {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.admin-btn-outline {
|
||||
background: #fff;
|
||||
color: #475569;
|
||||
border: 1px solid #e2e8f0;
|
||||
}
|
||||
|
||||
.admin-btn-outline:hover {
|
||||
background: #f8fafc;
|
||||
}
|
||||
|
||||
.admin-btn-danger-text {
|
||||
background: none;
|
||||
color: #dc2626;
|
||||
border: none;
|
||||
padding: 0.5rem;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.admin-btn-danger-text:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.admin-field {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.admin-label {
|
||||
display: block;
|
||||
font-size: 0.6875rem;
|
||||
font-weight: 700;
|
||||
color: #94a3b8;
|
||||
text-transform: uppercase;
|
||||
margin-bottom: 0.375rem;
|
||||
}
|
||||
|
||||
.admin-input,
|
||||
.admin-select {
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 0.75rem;
|
||||
padding: 0.625rem 0.75rem;
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
.admin-error {
|
||||
font-size: 0.8125rem;
|
||||
color: #ef4444;
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
.admin-error.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.hidden {
|
||||
display: none !important;
|
||||
}
|
||||
132
style/app-shell.css
Normal file
132
style/app-shell.css
Normal file
@@ -0,0 +1,132 @@
|
||||
/**
|
||||
* 앱 공통 셸 (헤더 1280px / max-w-7xl, 광고 레일)
|
||||
* index.html, cardList.html 과 동일한 콘텐츠 최대 너비 기준
|
||||
*/
|
||||
|
||||
:root {
|
||||
--app-max-width: 80rem; /* 1280px — Tailwind max-w-7xl */
|
||||
--app-gutter: 1.5rem;
|
||||
--app-nav-height: 4rem;
|
||||
--app-ad-rail-width: 18.75rem; /* 300px — 디스플레이 광고 */
|
||||
}
|
||||
|
||||
.app-page {
|
||||
font-family: 'Inter', 'Noto Sans KR', sans-serif;
|
||||
min-height: 100vh;
|
||||
background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
|
||||
color: #0f172a;
|
||||
}
|
||||
|
||||
.app-nav {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 50;
|
||||
background: rgba(255, 255, 255, 0.7);
|
||||
backdrop-filter: blur(12px);
|
||||
border-bottom: 1px solid #e2e8f0;
|
||||
}
|
||||
|
||||
.app-nav-inner {
|
||||
max-width: var(--app-max-width);
|
||||
margin: 0 auto;
|
||||
padding: 0 var(--app-gutter);
|
||||
height: var(--app-nav-height);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.app-brand {
|
||||
font-size: 1.25rem;
|
||||
font-weight: 800;
|
||||
color: #1e293b;
|
||||
text-decoration: none;
|
||||
letter-spacing: -0.025em;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.app-brand span {
|
||||
color: #2563eb;
|
||||
}
|
||||
|
||||
.app-ad-top {
|
||||
max-width: var(--app-max-width);
|
||||
margin: 0 auto;
|
||||
padding: 0.75rem var(--app-gutter) 0;
|
||||
}
|
||||
|
||||
.app-shell {
|
||||
max-width: var(--app-max-width);
|
||||
margin: 0 auto;
|
||||
padding: 2rem var(--app-gutter) 5rem;
|
||||
}
|
||||
|
||||
@media (min-width: 640px) {
|
||||
.app-shell {
|
||||
padding-top: 3rem;
|
||||
}
|
||||
}
|
||||
|
||||
.app-body-layout {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1.5rem;
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
.app-main {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.app-ad-rail {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.app-ad-slot {
|
||||
overflow: hidden;
|
||||
border-radius: 0.75rem;
|
||||
background: #f8fafc;
|
||||
border: 1px dashed #e2e8f0;
|
||||
}
|
||||
|
||||
.app-ad-slot--leaderboard {
|
||||
min-height: 90px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.app-ad-slot--skyscraper {
|
||||
min-height: 600px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.app-ad-slot ins {
|
||||
display: block;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@media (min-width: 1024px) {
|
||||
.app-ad-top {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.app-body-layout {
|
||||
flex-direction: row;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.app-ad-rail {
|
||||
display: block;
|
||||
flex: 0 0 var(--app-ad-rail-width);
|
||||
width: var(--app-ad-rail-width);
|
||||
position: sticky;
|
||||
top: calc(var(--app-nav-height) + 1rem);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 1023px) {
|
||||
.app-ad-rail {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
134
style/auth-header.css
Normal file
134
style/auth-header.css
Normal file
@@ -0,0 +1,134 @@
|
||||
.auth-header-wrap {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.auth-avatar-btn {
|
||||
height: 36px;
|
||||
border-radius: 9999px;
|
||||
border: 2px solid #e2e8f0;
|
||||
background: #f1f5f9;
|
||||
cursor: pointer;
|
||||
overflow: hidden;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 0;
|
||||
padding: 0;
|
||||
transition: border-color 0.2s, box-shadow 0.2s;
|
||||
}
|
||||
|
||||
.auth-avatar-btn.auth-profile-btn--named {
|
||||
padding-right: 12px;
|
||||
gap: 8px;
|
||||
max-width: 180px;
|
||||
}
|
||||
|
||||
.auth-avatar-btn:hover {
|
||||
border-color: #3b82f6;
|
||||
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
|
||||
}
|
||||
|
||||
.auth-avatar-wrap {
|
||||
flex-shrink: 0;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
margin: 2px;
|
||||
border-radius: 9999px;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.auth-avatar-wrap img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.auth-username {
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
color: #334155;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.auth-avatar-btn:not(.auth-profile-btn--named) {
|
||||
width: 36px;
|
||||
}
|
||||
|
||||
.auth-avatar-btn:not(.auth-profile-btn--named) .auth-avatar-wrap {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.auth-dropdown {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: calc(100% + 8px);
|
||||
min-width: 200px;
|
||||
background: white;
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
|
||||
padding: 6px;
|
||||
z-index: 200;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.auth-dropdown.open {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.auth-dropdown-header {
|
||||
padding: 10px 12px;
|
||||
border-bottom: 1px solid #f1f5f9;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.auth-dropdown-name {
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
color: #1e293b;
|
||||
}
|
||||
|
||||
.auth-dropdown-email {
|
||||
font-size: 11px;
|
||||
color: #94a3b8;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
.auth-dropdown-item {
|
||||
display: block;
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
padding: 10px 12px;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: #475569;
|
||||
border-radius: 8px;
|
||||
border: none;
|
||||
background: none;
|
||||
cursor: pointer;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.auth-dropdown-item:hover {
|
||||
background: #f8fafc;
|
||||
color: #2563eb;
|
||||
}
|
||||
|
||||
.auth-dropdown-item.danger:hover {
|
||||
color: #ef4444;
|
||||
background: #fef2f2;
|
||||
}
|
||||
|
||||
.auth-dropdown-divider {
|
||||
height: 1px;
|
||||
background: #f1f5f9;
|
||||
margin: 4px 0;
|
||||
}
|
||||
187
style/auth-pages.css
Normal file
187
style/auth-pages.css
Normal file
@@ -0,0 +1,187 @@
|
||||
/**
|
||||
* 인증·계정 페이지 공통 레이아웃
|
||||
* (Tailwind 빌드에 없는 max-w-* 유틸 대체)
|
||||
*/
|
||||
|
||||
.auth-page {
|
||||
font-family: 'Inter', 'Noto Sans KR', sans-serif;
|
||||
min-height: 100vh;
|
||||
background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
|
||||
color: #0f172a;
|
||||
}
|
||||
|
||||
.auth-nav {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 50;
|
||||
background: rgba(255, 255, 255, 0.7);
|
||||
backdrop-filter: blur(12px);
|
||||
border-bottom: 1px solid #e2e8f0;
|
||||
}
|
||||
|
||||
.auth-nav-inner {
|
||||
max-width: 80rem;
|
||||
margin: 0 auto;
|
||||
padding: 0 1.5rem;
|
||||
height: 4rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.auth-brand {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
text-decoration: none;
|
||||
color: #1e293b;
|
||||
}
|
||||
|
||||
.auth-brand img {
|
||||
width: 2rem;
|
||||
height: 2rem;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.auth-brand-text {
|
||||
font-size: 1.25rem;
|
||||
font-weight: 800;
|
||||
letter-spacing: -0.025em;
|
||||
}
|
||||
|
||||
.auth-brand-text span {
|
||||
color: #2563eb;
|
||||
}
|
||||
|
||||
.auth-main {
|
||||
max-width: 28rem;
|
||||
margin: 0 auto;
|
||||
padding: 3rem 1.5rem 4rem;
|
||||
}
|
||||
|
||||
@media (min-width: 640px) {
|
||||
.auth-main {
|
||||
padding-top: 4rem;
|
||||
padding-bottom: 5rem;
|
||||
}
|
||||
}
|
||||
|
||||
.auth-header {
|
||||
text-align: center;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.auth-header h1 {
|
||||
font-size: 1.75rem;
|
||||
font-weight: 900;
|
||||
color: #0f172a;
|
||||
margin: 0 0 0.5rem;
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
|
||||
.auth-header p {
|
||||
font-size: 0.875rem;
|
||||
color: #64748b;
|
||||
margin: 0;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.auth-card {
|
||||
background: #fff;
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 1rem;
|
||||
padding: 1.75rem;
|
||||
box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
|
||||
}
|
||||
|
||||
.auth-field {
|
||||
margin-bottom: 1.25rem;
|
||||
}
|
||||
|
||||
.auth-field:last-of-type {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.auth-label {
|
||||
display: block;
|
||||
font-size: 0.6875rem;
|
||||
font-weight: 700;
|
||||
color: #94a3b8;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
margin-bottom: 0.375rem;
|
||||
}
|
||||
|
||||
.auth-input {
|
||||
display: block;
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
box-sizing: border-box;
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 0.75rem;
|
||||
padding: 0.75rem 1rem;
|
||||
font-size: 0.875rem;
|
||||
color: #0f172a;
|
||||
background: #fff;
|
||||
outline: none;
|
||||
transition: border-color 0.2s, box-shadow 0.2s;
|
||||
}
|
||||
|
||||
.auth-input:focus {
|
||||
border-color: #3b82f6;
|
||||
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
|
||||
}
|
||||
|
||||
.auth-input::placeholder {
|
||||
color: #cbd5e1;
|
||||
}
|
||||
|
||||
.auth-error {
|
||||
margin-top: 1rem;
|
||||
font-size: 0.8125rem;
|
||||
color: #ef4444;
|
||||
}
|
||||
|
||||
.auth-error.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.auth-submit {
|
||||
display: block;
|
||||
width: 100%;
|
||||
margin-top: 1.5rem;
|
||||
padding: 0.875rem 1rem;
|
||||
border: none;
|
||||
border-radius: 0.75rem;
|
||||
background: #2563eb;
|
||||
color: #fff;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
transition: background 0.2s, transform 0.1s;
|
||||
}
|
||||
|
||||
.auth-submit:hover {
|
||||
background: #1d4ed8;
|
||||
}
|
||||
|
||||
.auth-submit:active {
|
||||
transform: scale(0.98);
|
||||
}
|
||||
|
||||
.auth-footer {
|
||||
margin-top: 1.5rem;
|
||||
text-align: center;
|
||||
font-size: 0.875rem;
|
||||
color: #64748b;
|
||||
}
|
||||
|
||||
.auth-footer a {
|
||||
color: #2563eb;
|
||||
font-weight: 700;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.auth-footer a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
318
style/deck-history.css
Normal file
318
style/deck-history.css
Normal file
@@ -0,0 +1,318 @@
|
||||
/**
|
||||
* 내 덱 관리·공개 덱 페이지 (deckHistory.html, preset.html)
|
||||
*/
|
||||
|
||||
.deck-history-page {
|
||||
/* 배경·폰트는 .app-page */
|
||||
}
|
||||
|
||||
.deck-history-main {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.deck-history-header {
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.deck-history-header h1 {
|
||||
font-size: 1.75rem;
|
||||
font-weight: 900;
|
||||
color: #0f172a;
|
||||
margin: 0 0 0.5rem;
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
|
||||
.deck-history-header p {
|
||||
font-size: 0.875rem;
|
||||
color: #64748b;
|
||||
margin: 0;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.deck-history-toolbar {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.75rem;
|
||||
align-items: center;
|
||||
margin-bottom: 1.5rem;
|
||||
padding: 1rem 1.25rem;
|
||||
background: #fff;
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 1rem;
|
||||
box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
|
||||
}
|
||||
|
||||
.deck-history-toolbar.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.deck-search-input {
|
||||
flex: 1 1 12rem;
|
||||
min-width: 0;
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 0.75rem;
|
||||
padding: 0.625rem 1rem;
|
||||
font-size: 0.875rem;
|
||||
color: #0f172a;
|
||||
background: #f8fafc;
|
||||
outline: none;
|
||||
transition: border-color 0.2s, box-shadow 0.2s;
|
||||
}
|
||||
|
||||
.deck-search-input:focus {
|
||||
border-color: #3b82f6;
|
||||
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.deck-search-input::placeholder {
|
||||
color: #94a3b8;
|
||||
}
|
||||
|
||||
.deck-series-select {
|
||||
flex: 0 1 11rem;
|
||||
min-width: 9rem;
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 0.75rem;
|
||||
padding: 0.625rem 2rem 0.625rem 1rem;
|
||||
font-size: 0.875rem;
|
||||
color: #0f172a;
|
||||
background: #f8fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
|
||||
appearance: none;
|
||||
cursor: pointer;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.deck-series-select:focus {
|
||||
border-color: #3b82f6;
|
||||
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.deck-count-label {
|
||||
flex: 0 0 auto;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
color: #94a3b8;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.deck-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
|
||||
gap: 1.25rem;
|
||||
}
|
||||
|
||||
.deck-grid-empty {
|
||||
grid-column: 1 / -1;
|
||||
text-align: center;
|
||||
padding: 3rem 1rem;
|
||||
font-size: 0.875rem;
|
||||
color: #94a3b8;
|
||||
}
|
||||
|
||||
.deck-card {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background: #fff;
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 1rem;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
|
||||
transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
|
||||
}
|
||||
|
||||
.deck-card:hover {
|
||||
border-color: #cbd5e1;
|
||||
box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.deck-card-preview {
|
||||
position: relative;
|
||||
aspect-ratio: 16 / 9;
|
||||
background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
|
||||
border-bottom: 1px solid #e2e8f0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.deck-card-preview img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
object-position: center;
|
||||
background: #f8fafc;
|
||||
}
|
||||
|
||||
.deck-card-preview-placeholder {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
color: #94a3b8;
|
||||
letter-spacing: 0.05em;
|
||||
text-transform: uppercase;
|
||||
text-align: center;
|
||||
line-height: 1.4;
|
||||
padding: 0.5rem;
|
||||
}
|
||||
|
||||
.deck-card-preview-placeholder span {
|
||||
display: block;
|
||||
margin-top: 0.25rem;
|
||||
font-size: 0.625rem;
|
||||
font-weight: 500;
|
||||
text-transform: none;
|
||||
letter-spacing: 0;
|
||||
color: #cbd5e1;
|
||||
}
|
||||
|
||||
.deck-card-body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex: 1;
|
||||
padding: 1rem 1.125rem 1.125rem;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.deck-card-title {
|
||||
font-size: 0.9375rem;
|
||||
font-weight: 700;
|
||||
color: #0f172a;
|
||||
line-height: 1.4;
|
||||
margin: 0;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.deck-card-meta {
|
||||
font-size: 0.75rem;
|
||||
color: #94a3b8;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.deck-card-series {
|
||||
display: inline-block;
|
||||
font-size: 0.6875rem;
|
||||
font-weight: 700;
|
||||
color: #2563eb;
|
||||
background: #eff6ff;
|
||||
padding: 0.2rem 0.5rem;
|
||||
border-radius: 0.375rem;
|
||||
margin-bottom: 0.125rem;
|
||||
}
|
||||
|
||||
.deck-card-actions {
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
margin-top: auto;
|
||||
padding-top: 0.5rem;
|
||||
}
|
||||
|
||||
.deck-card-btn {
|
||||
flex: 1;
|
||||
padding: 0.5rem 0.375rem;
|
||||
border: none;
|
||||
border-radius: 0.625rem;
|
||||
font-size: 0.6875rem;
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
transition: background 0.2s, transform 0.1s;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.deck-card-btn:active {
|
||||
transform: scale(0.97);
|
||||
}
|
||||
|
||||
.deck-card-btn-load {
|
||||
background: #2563eb;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.deck-card-btn-load:hover {
|
||||
background: #1d4ed8;
|
||||
}
|
||||
|
||||
.deck-card-btn-copy {
|
||||
background: #f1f5f9;
|
||||
color: #475569;
|
||||
}
|
||||
|
||||
.deck-card-btn-copy:hover {
|
||||
background: #e2e8f0;
|
||||
}
|
||||
|
||||
.deck-card-btn-delete {
|
||||
flex: 0 0 auto;
|
||||
padding-left: 0.625rem;
|
||||
padding-right: 0.625rem;
|
||||
background: #fef2f2;
|
||||
color: #dc2626;
|
||||
}
|
||||
|
||||
.deck-card-btn-delete:hover {
|
||||
background: #fee2e2;
|
||||
}
|
||||
|
||||
.deck-card-visibility {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.375rem;
|
||||
margin-bottom: 0.125rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.deck-card-badge-public {
|
||||
font-size: 0.625rem;
|
||||
font-weight: 700;
|
||||
color: #059669;
|
||||
background: #ecfdf5;
|
||||
padding: 0.15rem 0.45rem;
|
||||
border-radius: 0.375rem;
|
||||
}
|
||||
|
||||
.deck-card-badge-private {
|
||||
font-size: 0.625rem;
|
||||
font-weight: 700;
|
||||
color: #64748b;
|
||||
background: #f1f5f9;
|
||||
padding: 0.15rem 0.45rem;
|
||||
border-radius: 0.375rem;
|
||||
}
|
||||
|
||||
.deck-card-btn-toggle {
|
||||
flex: 1;
|
||||
background: #f0fdf4;
|
||||
color: #047857;
|
||||
}
|
||||
|
||||
.deck-card-btn-toggle.is-public {
|
||||
background: #f8fafc;
|
||||
color: #64748b;
|
||||
}
|
||||
|
||||
.deck-card-btn-toggle:hover {
|
||||
background: #dcfce7;
|
||||
}
|
||||
|
||||
.deck-card-btn-toggle.is-public:hover {
|
||||
background: #e2e8f0;
|
||||
}
|
||||
|
||||
.deck-status-message {
|
||||
text-align: center;
|
||||
padding: 3rem 1rem;
|
||||
font-size: 0.875rem;
|
||||
color: #94a3b8;
|
||||
}
|
||||
|
||||
.deck-status-message.error {
|
||||
color: #ef4444;
|
||||
}
|
||||
305
style/profile.css
Normal file
305
style/profile.css
Normal file
@@ -0,0 +1,305 @@
|
||||
/**
|
||||
* 내 프로필 페이지 (profile.html)
|
||||
*/
|
||||
|
||||
.profile-page {
|
||||
/* 배경·폰트는 .app-page */
|
||||
}
|
||||
|
||||
.profile-content {
|
||||
width: 100%;
|
||||
max-width: 42rem;
|
||||
}
|
||||
|
||||
.profile-header {
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.profile-header h1 {
|
||||
margin: 0 0 0.5rem;
|
||||
font-size: 1.75rem;
|
||||
font-weight: 900;
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
|
||||
.profile-header p {
|
||||
margin: 0;
|
||||
font-size: 0.875rem;
|
||||
color: #64748b;
|
||||
}
|
||||
|
||||
.profile-card {
|
||||
background: #fff;
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 1.25rem;
|
||||
box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.profile-hero {
|
||||
padding: 1.75rem 1.5rem 1.25rem;
|
||||
background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
|
||||
border-bottom: 1px solid #e2e8f0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1.25rem;
|
||||
}
|
||||
|
||||
.profile-avatar-wrap {
|
||||
position: relative;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.profile-avatar {
|
||||
width: 5.5rem;
|
||||
height: 5.5rem;
|
||||
border-radius: 9999px;
|
||||
object-fit: cover;
|
||||
background: #fff;
|
||||
border: 3px solid #fff;
|
||||
box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
|
||||
}
|
||||
|
||||
.profile-avatar-btn {
|
||||
position: absolute;
|
||||
right: -0.125rem;
|
||||
bottom: -0.125rem;
|
||||
width: 2rem;
|
||||
height: 2rem;
|
||||
border-radius: 9999px;
|
||||
border: 2px solid #fff;
|
||||
background: #2563eb;
|
||||
color: #fff;
|
||||
font-size: 0.875rem;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.profile-hero-text h2 {
|
||||
margin: 0;
|
||||
font-size: 1.25rem;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.profile-hero-text p {
|
||||
margin: 0.25rem 0 0;
|
||||
font-size: 0.8125rem;
|
||||
color: #64748b;
|
||||
}
|
||||
|
||||
.profile-avatar-remove {
|
||||
margin-top: 0.75rem;
|
||||
font-size: 0.75rem;
|
||||
color: #94a3b8;
|
||||
background: none;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
padding: 0;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.profile-body {
|
||||
padding: 1.5rem;
|
||||
}
|
||||
|
||||
.profile-field {
|
||||
margin-bottom: 1.125rem;
|
||||
}
|
||||
|
||||
.profile-label {
|
||||
display: block;
|
||||
font-size: 0.6875rem;
|
||||
font-weight: 700;
|
||||
color: #94a3b8;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.04em;
|
||||
margin-bottom: 0.375rem;
|
||||
}
|
||||
|
||||
.profile-input {
|
||||
display: block;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 0.75rem;
|
||||
padding: 0.75rem 1rem;
|
||||
font-size: 0.875rem;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.profile-input:focus {
|
||||
border-color: #3b82f6;
|
||||
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
|
||||
}
|
||||
|
||||
.profile-divider {
|
||||
height: 1px;
|
||||
background: #e2e8f0;
|
||||
margin: 1.25rem 0;
|
||||
}
|
||||
|
||||
.profile-btn {
|
||||
display: block;
|
||||
width: 100%;
|
||||
padding: 0.875rem 1rem;
|
||||
border: none;
|
||||
border-radius: 0.75rem;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.profile-btn-primary {
|
||||
background: #2563eb;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.profile-btn-primary:hover {
|
||||
background: #1d4ed8;
|
||||
}
|
||||
|
||||
.profile-btn-primary:disabled {
|
||||
background: #cbd5e1;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.profile-section-title {
|
||||
margin: 0 0 0.375rem;
|
||||
font-size: 0.9375rem;
|
||||
font-weight: 800;
|
||||
color: #0f172a;
|
||||
}
|
||||
|
||||
.profile-section-desc {
|
||||
margin: 0 0 1rem;
|
||||
font-size: 0.8125rem;
|
||||
color: #64748b;
|
||||
}
|
||||
|
||||
.profile-toggle-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
padding: 0.75rem 0;
|
||||
}
|
||||
|
||||
.profile-toggle-row + .profile-toggle-row {
|
||||
border-top: 1px solid #f1f5f9;
|
||||
}
|
||||
|
||||
.profile-toggle-label {
|
||||
font-size: 0.875rem;
|
||||
font-weight: 600;
|
||||
color: #334155;
|
||||
}
|
||||
|
||||
.profile-toggle-hint {
|
||||
font-size: 0.6875rem;
|
||||
color: #94a3b8;
|
||||
margin-top: 0.125rem;
|
||||
}
|
||||
|
||||
.profile-toggle {
|
||||
position: relative;
|
||||
flex-shrink: 0;
|
||||
display: inline-flex;
|
||||
width: 2.75rem;
|
||||
height: 1.5rem;
|
||||
align-items: center;
|
||||
border: none;
|
||||
border-radius: 9999px;
|
||||
background: #e2e8f0;
|
||||
cursor: pointer;
|
||||
transition: background 0.2s;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.profile-toggle.is-on {
|
||||
background: #2563eb;
|
||||
}
|
||||
|
||||
.profile-toggle-circle {
|
||||
display: inline-block;
|
||||
width: 1rem;
|
||||
height: 1rem;
|
||||
border-radius: 9999px;
|
||||
background: #fff;
|
||||
transform: translateX(0.25rem);
|
||||
transition: transform 0.2s;
|
||||
box-shadow: 0 1px 3px rgba(15, 23, 42, 0.15);
|
||||
}
|
||||
|
||||
.profile-toggle-circle.is-on {
|
||||
transform: translateX(1.5rem);
|
||||
}
|
||||
|
||||
.profile-btn-outline {
|
||||
background: #fff;
|
||||
color: #475569;
|
||||
border: 1px solid #e2e8f0;
|
||||
}
|
||||
|
||||
.profile-btn-outline:hover {
|
||||
background: #f8fafc;
|
||||
}
|
||||
|
||||
.profile-error {
|
||||
margin-top: 0.75rem;
|
||||
font-size: 0.8125rem;
|
||||
color: #ef4444;
|
||||
}
|
||||
|
||||
.profile-error.hidden,
|
||||
.profile-success.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.profile-success {
|
||||
margin-top: 0.75rem;
|
||||
font-size: 0.8125rem;
|
||||
color: #059669;
|
||||
}
|
||||
|
||||
.profile-modal {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 100;
|
||||
display: none;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 1rem;
|
||||
background: rgba(15, 23, 42, 0.5);
|
||||
}
|
||||
|
||||
.profile-modal.open {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.profile-modal-box {
|
||||
width: 100%;
|
||||
max-width: 24rem;
|
||||
background: #fff;
|
||||
border-radius: 1rem;
|
||||
padding: 1.5rem;
|
||||
box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
|
||||
}
|
||||
|
||||
.profile-modal-box h3 {
|
||||
margin: 0 0 1rem;
|
||||
font-size: 1.0625rem;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.profile-modal-actions {
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
.profile-modal-actions .profile-btn {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.hidden {
|
||||
display: none !important;
|
||||
}
|
||||
Reference in New Issue
Block a user