Redesign My Account page: profile header, stats, progress cards, settings/security menus, danger zone; v2.10.9
Publish Container / build (push) Successful in 16m15s
Publish Container / build (push) Successful in 16m15s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
669cd6555c
commit
899e715067
4 files changed
+966
-617
No files matched your search
+332
@@ -4156,6 +4156,338 @@
|
||||
border-left: 3px solid rgba(111, 207, 151, 0.7);
|
||||
}
|
||||
|
||||
/* ── My Account ── */
|
||||
.account-page {
|
||||
padding: clamp(1.5rem, 5vw, 3rem) 1.25rem 4rem;
|
||||
background:
|
||||
radial-gradient(ellipse at top, rgba(201, 168, 76, 0.1) 0%, transparent 55%),
|
||||
var(--brand-black);
|
||||
}
|
||||
|
||||
.account-shell {
|
||||
max-width: 1040px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.account-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1.25rem;
|
||||
flex-wrap: wrap;
|
||||
padding: 1.5rem;
|
||||
margin-bottom: 1.25rem;
|
||||
border: 1px solid rgba(201, 168, 76, 0.24);
|
||||
border-radius: 18px;
|
||||
background: linear-gradient(180deg, rgba(26, 26, 22, 0.95), rgba(16, 16, 14, 0.95));
|
||||
}
|
||||
|
||||
.account-avatar {
|
||||
width: 84px;
|
||||
height: 84px;
|
||||
border-radius: 50%;
|
||||
object-fit: cover;
|
||||
border: 2px solid rgba(201, 168, 76, 0.5);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.account-avatar--initial {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: rgba(201, 168, 76, 0.14);
|
||||
color: var(--brand-gold);
|
||||
font-family: var(--brand-font-heading);
|
||||
font-size: 2.2rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.account-header-body { flex: 1; min-width: 200px; }
|
||||
|
||||
.account-header h1 {
|
||||
margin: 0.15rem 0 0.25rem;
|
||||
font-family: var(--brand-font-heading);
|
||||
font-size: clamp(1.7rem, 4vw, 2.3rem);
|
||||
color: var(--brand-warm-white);
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.account-header .eyebrow { margin: 0; }
|
||||
|
||||
.account-email {
|
||||
margin: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.6rem;
|
||||
color: var(--brand-muted);
|
||||
font-size: 0.95rem;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.account-header-actions {
|
||||
display: flex;
|
||||
gap: 0.6rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.account-chip {
|
||||
display: inline-block;
|
||||
padding: 0.15rem 0.6rem;
|
||||
border-radius: 999px;
|
||||
border: 1px solid;
|
||||
font-size: 0.72rem;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.04em;
|
||||
}
|
||||
|
||||
.account-chip--ok { color: #6fcf97; border-color: rgba(111, 207, 151, 0.45); background: rgba(111, 207, 151, 0.1); }
|
||||
.account-chip--warn { color: #e0b861; border-color: rgba(224, 184, 97, 0.45); background: rgba(224, 184, 97, 0.1); }
|
||||
|
||||
.account-notice {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.75rem;
|
||||
margin-bottom: 1.25rem;
|
||||
padding: 0.85rem 1.1rem;
|
||||
border: 1px solid rgba(201, 168, 76, 0.3);
|
||||
border-radius: 12px;
|
||||
background: rgba(201, 168, 76, 0.07);
|
||||
color: #c9bb91;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.account-notice strong { color: var(--brand-gold); }
|
||||
|
||||
.account-notice-actions { display: flex; align-items: center; gap: 0.75rem; }
|
||||
.account-notice-msg { font-size: 0.82rem; }
|
||||
|
||||
.account-layout {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
|
||||
gap: 1.25rem;
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.account-main,
|
||||
.account-side {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1.25rem;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.account-stats {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.account-stat {
|
||||
padding: 1rem;
|
||||
border: 1px solid rgba(201, 168, 76, 0.2);
|
||||
border-radius: 14px;
|
||||
background: rgba(17, 17, 15, 0.84);
|
||||
}
|
||||
|
||||
.account-stat strong {
|
||||
display: block;
|
||||
font-family: var(--brand-font-heading);
|
||||
font-size: 1.7rem;
|
||||
line-height: 1.1;
|
||||
color: var(--brand-warm-white);
|
||||
}
|
||||
|
||||
.account-stat .account-stat-date { font-size: 1.05rem; padding-top: 0.45rem; }
|
||||
|
||||
.account-stat span {
|
||||
display: block;
|
||||
margin-top: 0.3rem;
|
||||
font-size: 0.78rem;
|
||||
letter-spacing: 0.06em;
|
||||
text-transform: uppercase;
|
||||
color: var(--brand-muted);
|
||||
}
|
||||
|
||||
.account-card {
|
||||
padding: 1.25rem 1.35rem;
|
||||
border: 1px solid rgba(201, 168, 76, 0.2);
|
||||
border-radius: 16px;
|
||||
background: rgba(17, 17, 15, 0.84);
|
||||
}
|
||||
|
||||
.account-card--danger { border-color: rgba(229, 115, 115, 0.3); }
|
||||
.account-card--danger h2 { color: #e57373; }
|
||||
|
||||
.account-card-head {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
margin-bottom: 0.9rem;
|
||||
}
|
||||
|
||||
.account-card-head h2 {
|
||||
margin: 0;
|
||||
font-family: var(--brand-font-heading);
|
||||
font-size: 1.25rem;
|
||||
color: #e8d9b5;
|
||||
}
|
||||
|
||||
.account-link {
|
||||
background: none;
|
||||
border: none;
|
||||
padding: 0;
|
||||
color: var(--brand-gold);
|
||||
font: inherit;
|
||||
font-size: 0.85rem;
|
||||
text-decoration: underline;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.account-muted {
|
||||
margin: 0 0 0.75rem;
|
||||
color: var(--brand-muted);
|
||||
font-size: 0.92rem;
|
||||
line-height: 1.55;
|
||||
}
|
||||
|
||||
.account-progress + .account-progress { margin-top: 1rem; }
|
||||
|
||||
.account-progress-row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
flex-wrap: wrap;
|
||||
margin-bottom: 0.4rem;
|
||||
font-size: 0.9rem;
|
||||
color: var(--brand-muted);
|
||||
}
|
||||
|
||||
.account-progress-row a {
|
||||
color: var(--brand-warm-white);
|
||||
text-decoration: none;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.account-progress-row a:hover { text-decoration: underline; }
|
||||
|
||||
.account-cert {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.6rem;
|
||||
padding: 0.6rem 0;
|
||||
border-top: 1px solid rgba(201, 168, 76, 0.12);
|
||||
font-size: 0.92rem;
|
||||
}
|
||||
|
||||
.account-cert:first-of-type { border-top: none; }
|
||||
.account-cert small { color: var(--brand-muted); }
|
||||
.account-cert-actions { display: flex; gap: 0.5rem; }
|
||||
.account-cert-actions .btn-secondary { font-size: 0.78rem; padding: 0.3rem 0.8rem; }
|
||||
|
||||
.account-menu {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.account-menu li + li { border-top: 1px solid rgba(201, 168, 76, 0.12); }
|
||||
|
||||
.account-menu button {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
padding: 0.8rem 0.25rem;
|
||||
background: none;
|
||||
border: none;
|
||||
color: inherit;
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
font-family: var(--brand-font-body);
|
||||
}
|
||||
|
||||
.account-menu button:hover strong { color: var(--brand-gold); }
|
||||
.account-menu button:disabled { opacity: 0.6; cursor: default; }
|
||||
|
||||
.account-menu strong {
|
||||
display: block;
|
||||
color: var(--brand-warm-white);
|
||||
font-weight: 600;
|
||||
font-size: 0.98rem;
|
||||
transition: color 0.15s ease;
|
||||
}
|
||||
|
||||
.account-menu small {
|
||||
display: block;
|
||||
margin-top: 0.1rem;
|
||||
color: var(--brand-muted);
|
||||
font-size: 0.82rem;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.account-menu button > span:last-child { color: var(--brand-gold); font-size: 1.2rem; }
|
||||
|
||||
.account-callout {
|
||||
margin: 0.75rem 0 0;
|
||||
padding: 0.7rem 0.9rem;
|
||||
border: 1px solid rgba(201, 168, 76, 0.25);
|
||||
border-radius: 10px;
|
||||
background: rgba(201, 168, 76, 0.07);
|
||||
color: #b9aa86;
|
||||
font-size: 0.85rem;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.account-callout strong { color: var(--brand-gold); }
|
||||
|
||||
.account-callout--danger {
|
||||
border-color: rgba(224, 92, 92, 0.3);
|
||||
background: rgba(224, 92, 92, 0.07);
|
||||
color: #e07a7a;
|
||||
}
|
||||
|
||||
.account-callout--danger strong { color: #e07a7a; }
|
||||
|
||||
.account-session {
|
||||
margin-top: 1rem;
|
||||
padding-top: 1rem;
|
||||
border-top: 1px solid rgba(201, 168, 76, 0.12);
|
||||
}
|
||||
|
||||
.account-session .btn-secondary { width: 100%; justify-content: center; font-size: 0.82rem; }
|
||||
|
||||
.account-danger-step {
|
||||
padding: 0.9rem;
|
||||
border: 1px solid rgba(229, 115, 115, 0.35);
|
||||
border-radius: 10px;
|
||||
background: rgba(43, 17, 17, 0.6);
|
||||
}
|
||||
|
||||
.account-danger-step p { margin: 0 0 0.75rem; color: #e0cfcf; }
|
||||
|
||||
.account-danger-input {
|
||||
width: 100%;
|
||||
margin-bottom: 0.8rem;
|
||||
padding: 0.55rem 0.7rem;
|
||||
border: 1px solid rgba(229, 115, 115, 0.5);
|
||||
border-radius: 8px;
|
||||
background: #140f0f;
|
||||
color: var(--brand-warm-white);
|
||||
}
|
||||
|
||||
.account-danger-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.account-layout { grid-template-columns: 1fr; }
|
||||
.account-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
||||
}
|
||||
|
||||
/* ── Study hub (guest landing) ── */
|
||||
.study-hub-count {
|
||||
margin: 1.25rem 0 0;
|
||||
|
||||
Reference in new issue
Block a user