Redesign: bright modern aesthetic
- New color palette: warm coral/tangerine accent on cream white - Typography: Bricolage Grotesque (display) + DM Sans (body) - Soft shadows, rounded pill buttons, gradient progress bars - Subtle animations: fadeUp cards, scaleIn gate banner - Mobile-friendly: safe-area-inset, backdrop blur nav - All dark-mode hardcoded colors replaced with CSS variables - Login page: gradient background, segmented toggle, logo card - Dashboard: warm gate banners, purple weekly progress - Onboarding: display font headings, improved spacing
This commit is contained in:
parent
d79129efc2
commit
22f5e8fae3
6 changed files with 375 additions and 202 deletions
|
|
@ -1,150 +1,216 @@
|
|||
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800&family=Bricolage+Grotesque:opsz,wght@12..96,700;12..96,800&display=swap');
|
||||
|
||||
:root {
|
||||
--bg: #0f0f1a;
|
||||
--bg-card: #1a1a2e;
|
||||
--bg-card-hover: #222240;
|
||||
--text: #e8e8f0;
|
||||
--text-muted: #8888a0;
|
||||
--accent: #6c63ff;
|
||||
--accent-hover: #7f78ff;
|
||||
--success: #4ade80;
|
||||
--danger: #f87171;
|
||||
--warning: #fbbf24;
|
||||
--border: #2a2a45;
|
||||
--radius: 12px;
|
||||
--radius-sm: 8px;
|
||||
--bg: #faf8f5;
|
||||
--bg-card: #ffffff;
|
||||
--bg-warm: #fff7f0;
|
||||
--bg-cool: #f0f4ff;
|
||||
--bg-mint: #eefbf5;
|
||||
--text: #1a1a2e;
|
||||
--text-secondary: #555570;
|
||||
--text-muted: #8e8ea0;
|
||||
--accent: #ff6b35;
|
||||
--accent-hover: #e85d2c;
|
||||
--accent-light: rgba(255, 107, 53, 0.08);
|
||||
--accent-glow: rgba(255, 107, 53, 0.15);
|
||||
--success: #22c55e;
|
||||
--success-bg: #eefbf3;
|
||||
--danger: #ef4444;
|
||||
--danger-bg: #fef2f2;
|
||||
--warning: #f59e0b;
|
||||
--warning-bg: #fffbeb;
|
||||
--blue: #3b82f6;
|
||||
--blue-bg: #eff6ff;
|
||||
--purple: #8b5cf6;
|
||||
--border: #e8e5e0;
|
||||
--border-light: #f0ede8;
|
||||
--shadow-sm: 0 1px 3px rgba(26, 26, 46, 0.04), 0 1px 2px rgba(26, 26, 46, 0.03);
|
||||
--shadow-md: 0 4px 12px rgba(26, 26, 46, 0.06), 0 2px 4px rgba(26, 26, 46, 0.04);
|
||||
--shadow-lg: 0 12px 32px rgba(26, 26, 46, 0.08), 0 4px 8px rgba(26, 26, 46, 0.04);
|
||||
--shadow-glow: 0 4px 20px rgba(255, 107, 53, 0.2);
|
||||
--radius: 16px;
|
||||
--radius-sm: 10px;
|
||||
--radius-xs: 6px;
|
||||
--radius-full: 100px;
|
||||
--font-display: 'Bricolage Grotesque', serif;
|
||||
--font-body: 'DM Sans', sans-serif;
|
||||
}
|
||||
|
||||
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||||
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||
font-family: var(--font-body);
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
min-height: 100dvh;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
font-optical-sizing: auto;
|
||||
}
|
||||
|
||||
a { color: var(--accent); text-decoration: none; }
|
||||
a { color: var(--accent); text-decoration: none; font-weight: 500; }
|
||||
a:hover { color: var(--accent-hover); }
|
||||
|
||||
/* ===== Buttons ===== */
|
||||
button {
|
||||
font-family: inherit;
|
||||
font-family: var(--font-body);
|
||||
cursor: pointer;
|
||||
border: none;
|
||||
border-radius: var(--radius-sm);
|
||||
padding: 10px 20px;
|
||||
font-size: 0.95rem;
|
||||
border-radius: var(--radius-full);
|
||||
padding: 12px 24px;
|
||||
font-size: 0.9rem;
|
||||
font-weight: 600;
|
||||
transition: all 0.15s;
|
||||
letter-spacing: 0.01em;
|
||||
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background: var(--accent);
|
||||
color: white;
|
||||
box-shadow: var(--shadow-sm), 0 2px 8px rgba(255, 107, 53, 0.25);
|
||||
}
|
||||
.btn-primary:hover { background: var(--accent-hover); }
|
||||
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
|
||||
.btn-primary:hover {
|
||||
background: var(--accent-hover);
|
||||
box-shadow: var(--shadow-md), 0 4px 16px rgba(255, 107, 53, 0.3);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
.btn-primary:active { transform: translateY(0); }
|
||||
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
|
||||
|
||||
.btn-success {
|
||||
background: var(--success);
|
||||
color: #111;
|
||||
color: white;
|
||||
box-shadow: 0 2px 8px rgba(34, 197, 94, 0.25);
|
||||
}
|
||||
.btn-success:hover { box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3); transform: translateY(-1px); }
|
||||
|
||||
.btn-outline {
|
||||
background: transparent;
|
||||
border: 1px solid var(--border);
|
||||
background: var(--bg-card);
|
||||
border: 1.5px solid var(--border);
|
||||
color: var(--text);
|
||||
}
|
||||
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
|
||||
.btn-outline:hover {
|
||||
border-color: var(--accent);
|
||||
color: var(--accent);
|
||||
background: var(--accent-light);
|
||||
}
|
||||
|
||||
.btn-danger {
|
||||
background: var(--danger);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.btn-sm { padding: 6px 14px; font-size: 0.85rem; }
|
||||
.btn-ghost {
|
||||
background: transparent;
|
||||
color: var(--text-secondary);
|
||||
padding: 8px 16px;
|
||||
}
|
||||
.btn-ghost:hover { color: var(--accent); background: var(--accent-light); }
|
||||
|
||||
.btn-sm { padding: 8px 16px; font-size: 0.82rem; }
|
||||
.btn-full { width: 100%; }
|
||||
|
||||
/* ===== Inputs ===== */
|
||||
input, select, textarea {
|
||||
font-family: inherit;
|
||||
background: var(--bg);
|
||||
font-family: var(--font-body);
|
||||
background: var(--bg-card);
|
||||
color: var(--text);
|
||||
border: 1px solid var(--border);
|
||||
border: 1.5px solid var(--border);
|
||||
border-radius: var(--radius-sm);
|
||||
padding: 10px 14px;
|
||||
font-size: 0.95rem;
|
||||
padding: 12px 16px;
|
||||
font-size: 0.9rem;
|
||||
width: 100%;
|
||||
outline: none;
|
||||
transition: border-color 0.15s;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
input:focus, select:focus, textarea:focus {
|
||||
border-color: var(--accent);
|
||||
box-shadow: 0 0 0 3px var(--accent-glow);
|
||||
}
|
||||
input::placeholder, textarea::placeholder { color: var(--text-muted); }
|
||||
select { cursor: pointer; }
|
||||
|
||||
/* ===== Cards ===== */
|
||||
.card {
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border: 1px solid var(--border-light);
|
||||
border-radius: var(--radius);
|
||||
padding: 20px;
|
||||
margin-bottom: 16px;
|
||||
box-shadow: var(--shadow-sm);
|
||||
transition: box-shadow 0.2s;
|
||||
}
|
||||
.card:hover { box-shadow: var(--shadow-md); }
|
||||
|
||||
/* ===== Page Layout ===== */
|
||||
.page {
|
||||
max-width: 480px;
|
||||
margin: 0 auto;
|
||||
padding: 16px;
|
||||
padding: 20px 16px;
|
||||
padding-bottom: 100px;
|
||||
}
|
||||
|
||||
.page-title {
|
||||
font-size: 1.4rem;
|
||||
font-weight: 700;
|
||||
font-family: var(--font-display);
|
||||
font-size: 1.6rem;
|
||||
font-weight: 800;
|
||||
letter-spacing: -0.02em;
|
||||
margin-bottom: 20px;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
/* ===== Progress Bars ===== */
|
||||
.progress-bar {
|
||||
width: 100%;
|
||||
height: 10px;
|
||||
background: var(--border);
|
||||
border-radius: 5px;
|
||||
background: var(--border-light);
|
||||
border-radius: var(--radius-full);
|
||||
overflow: hidden;
|
||||
}
|
||||
.progress-bar-fill {
|
||||
height: 100%;
|
||||
border-radius: 5px;
|
||||
transition: width 0.4s ease;
|
||||
border-radius: var(--radius-full);
|
||||
transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
|
||||
/* ===== Status colors ===== */
|
||||
.status-earned { color: var(--success); }
|
||||
.status-locked { color: var(--danger); }
|
||||
|
||||
/* ===== Checklist ===== */
|
||||
.checklist-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 10px 0;
|
||||
border-bottom: 1px solid var(--border);
|
||||
font-size: 0.95rem;
|
||||
gap: 12px;
|
||||
padding: 12px 0;
|
||||
border-bottom: 1px solid var(--border-light);
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
.checklist-item:last-child { border-bottom: none; }
|
||||
.checklist-check { font-size: 1.2rem; min-width: 28px; }
|
||||
.checklist-points {
|
||||
margin-left: auto;
|
||||
color: var(--text-muted);
|
||||
font-size: 0.85rem;
|
||||
font-size: 0.8rem;
|
||||
font-weight: 600;
|
||||
background: var(--bg);
|
||||
padding: 3px 10px;
|
||||
border-radius: var(--radius-full);
|
||||
}
|
||||
|
||||
/* ===== Bottom Navigation ===== */
|
||||
.nav-bar {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
background: var(--bg-card);
|
||||
border-top: 1px solid var(--border);
|
||||
border-top: 1px solid var(--border-light);
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
padding: 8px 0;
|
||||
padding: 6px 0 env(safe-area-inset-bottom, 8px);
|
||||
z-index: 100;
|
||||
box-shadow: 0 -4px 20px rgba(26, 26, 46, 0.06);
|
||||
backdrop-filter: blur(10px);
|
||||
}
|
||||
.nav-item {
|
||||
display: flex;
|
||||
|
|
@ -152,145 +218,249 @@ input:focus, select:focus, textarea:focus {
|
|||
align-items: center;
|
||||
gap: 2px;
|
||||
color: var(--text-muted);
|
||||
font-size: 0.7rem;
|
||||
padding: 4px 12px;
|
||||
font-size: 0.65rem;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.02em;
|
||||
padding: 6px 12px;
|
||||
text-decoration: none;
|
||||
transition: color 0.15s;
|
||||
transition: all 0.2s;
|
||||
border-radius: var(--radius-sm);
|
||||
}
|
||||
.nav-item.active, .nav-item:hover { color: var(--accent); }
|
||||
.nav-icon { font-size: 1.3rem; }
|
||||
.nav-item.active {
|
||||
color: var(--accent);
|
||||
}
|
||||
.nav-item.active .nav-icon {
|
||||
background: var(--accent-light);
|
||||
border-radius: var(--radius-full);
|
||||
padding: 2px 12px;
|
||||
}
|
||||
.nav-item:hover { color: var(--accent); }
|
||||
.nav-icon { font-size: 1.25rem; transition: all 0.2s; }
|
||||
|
||||
.form-group { margin-bottom: 16px; }
|
||||
/* ===== Forms ===== */
|
||||
.form-group { margin-bottom: 18px; }
|
||||
.form-label {
|
||||
display: block;
|
||||
font-size: 0.85rem;
|
||||
color: var(--text-muted);
|
||||
font-size: 0.8rem;
|
||||
font-weight: 600;
|
||||
color: var(--text-secondary);
|
||||
margin-bottom: 6px;
|
||||
letter-spacing: 0.02em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
/* ===== Option Grid (Onboarding) ===== */
|
||||
.option-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 10px;
|
||||
gap: 12px;
|
||||
}
|
||||
.option-btn {
|
||||
background: var(--bg);
|
||||
background: var(--bg-card);
|
||||
border: 2px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
padding: 16px 12px;
|
||||
padding: 18px 14px;
|
||||
text-align: center;
|
||||
color: var(--text);
|
||||
font-size: 0.9rem;
|
||||
font-size: 0.88rem;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
transition: all 0.15s;
|
||||
transition: all 0.2s;
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
.option-btn:hover {
|
||||
border-color: var(--accent);
|
||||
box-shadow: var(--shadow-md);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
.option-btn:hover { border-color: var(--accent); }
|
||||
.option-btn.selected {
|
||||
border-color: var(--accent);
|
||||
background: rgba(108, 99, 255, 0.1);
|
||||
background: var(--accent-light);
|
||||
box-shadow: 0 0 0 3px var(--accent-glow);
|
||||
}
|
||||
|
||||
/* ===== Chips ===== */
|
||||
.chip-grid {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
}
|
||||
.chip {
|
||||
background: var(--bg);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 20px;
|
||||
padding: 8px 16px;
|
||||
background: var(--bg-card);
|
||||
border: 1.5px solid var(--border);
|
||||
border-radius: var(--radius-full);
|
||||
padding: 8px 18px;
|
||||
font-size: 0.85rem;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
transition: all 0.15s;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
.chip:hover { border-color: var(--accent); }
|
||||
.chip.selected {
|
||||
border-color: var(--accent);
|
||||
background: rgba(108, 99, 255, 0.15);
|
||||
color: var(--accent);
|
||||
background: var(--accent);
|
||||
color: white;
|
||||
}
|
||||
|
||||
/* ===== Reward Cards ===== */
|
||||
.reward-card {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 14px 0;
|
||||
border-bottom: 1px solid var(--border);
|
||||
border-bottom: 1px solid var(--border-light);
|
||||
}
|
||||
.reward-card:last-child { border-bottom: none; }
|
||||
|
||||
/* ===== Likert Scale ===== */
|
||||
.likert-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
margin: 8px 0 20px;
|
||||
gap: 10px;
|
||||
margin: 10px 0 20px;
|
||||
justify-content: center;
|
||||
}
|
||||
.likert-btn {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
border-radius: 50%;
|
||||
background: var(--bg);
|
||||
background: var(--bg-card);
|
||||
border: 2px solid var(--border);
|
||||
color: var(--text);
|
||||
font-weight: 600;
|
||||
font-weight: 700;
|
||||
font-size: 0.9rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
.likert-btn:hover { border-color: var(--accent); transform: scale(1.08); }
|
||||
.likert-btn.selected {
|
||||
border-color: var(--accent);
|
||||
background: var(--accent);
|
||||
color: white;
|
||||
box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
|
||||
transform: scale(1.08);
|
||||
}
|
||||
.likert-labels {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
font-size: 0.75rem;
|
||||
font-size: 0.72rem;
|
||||
color: var(--text-muted);
|
||||
font-weight: 500;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.04em;
|
||||
}
|
||||
|
||||
/* ===== Gate Banner ===== */
|
||||
.gate-banner {
|
||||
text-align: center;
|
||||
padding: 20px;
|
||||
padding: 24px 20px;
|
||||
border-radius: var(--radius);
|
||||
margin-bottom: 16px;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
.gate-banner::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0; left: 0; right: 0; bottom: 0;
|
||||
opacity: 0.4;
|
||||
z-index: 0;
|
||||
}
|
||||
.gate-banner > * { position: relative; z-index: 1; }
|
||||
|
||||
.gate-earned {
|
||||
background: rgba(74, 222, 128, 0.1);
|
||||
border: 1px solid rgba(74, 222, 128, 0.3);
|
||||
background: linear-gradient(135deg, #eefbf3 0%, #d1fae5 100%);
|
||||
border: 1.5px solid rgba(34, 197, 94, 0.25);
|
||||
}
|
||||
.gate-locked {
|
||||
background: rgba(248, 113, 113, 0.1);
|
||||
border: 1px solid rgba(248, 113, 113, 0.3);
|
||||
background: linear-gradient(135deg, #fff7f0 0%, #fef2f2 100%);
|
||||
border: 1.5px solid rgba(239, 68, 68, 0.2);
|
||||
}
|
||||
.gate-pts {
|
||||
font-size: 2rem;
|
||||
font-family: var(--font-display);
|
||||
font-size: 2.2rem;
|
||||
font-weight: 800;
|
||||
margin: 4px 0;
|
||||
letter-spacing: -0.03em;
|
||||
margin: 6px 0;
|
||||
}
|
||||
|
||||
/* ===== Meal sections ===== */
|
||||
.meal-section { margin-bottom: 20px; }
|
||||
.meal-title {
|
||||
font-size: 0.85rem;
|
||||
font-weight: 600;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.06em;
|
||||
color: var(--text-muted);
|
||||
margin-bottom: 8px;
|
||||
padding-bottom: 6px;
|
||||
border-bottom: 2px solid var(--border-light);
|
||||
}
|
||||
|
||||
/* ===== States ===== */
|
||||
.loading {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
padding: 40px;
|
||||
align-items: center;
|
||||
padding: 60px;
|
||||
color: var(--text-muted);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.error-msg {
|
||||
background: rgba(248, 113, 113, 0.1);
|
||||
border: 1px solid rgba(248, 113, 113, 0.3);
|
||||
padding: 12px;
|
||||
background: var(--danger-bg);
|
||||
border: 1px solid rgba(239, 68, 68, 0.2);
|
||||
padding: 14px 16px;
|
||||
border-radius: var(--radius-sm);
|
||||
color: var(--danger);
|
||||
font-weight: 500;
|
||||
font-size: 0.9rem;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
/* ===== Animations ===== */
|
||||
@keyframes fadeUp {
|
||||
from { opacity: 0; transform: translateY(12px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
@keyframes scaleIn {
|
||||
from { opacity: 0; transform: scale(0.95); }
|
||||
to { opacity: 1; transform: scale(1); }
|
||||
}
|
||||
@keyframes shimmer {
|
||||
0% { background-position: -200% 0; }
|
||||
100% { background-position: 200% 0; }
|
||||
}
|
||||
|
||||
.card {
|
||||
animation: fadeUp 0.3s ease-out both;
|
||||
}
|
||||
.card:nth-child(2) { animation-delay: 0.05s; }
|
||||
.card:nth-child(3) { animation-delay: 0.1s; }
|
||||
.card:nth-child(4) { animation-delay: 0.15s; }
|
||||
|
||||
.gate-banner {
|
||||
animation: scaleIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) both;
|
||||
}
|
||||
|
||||
/* Smooth page transitions */
|
||||
.page {
|
||||
animation: fadeUp 0.25s ease-out;
|
||||
}
|
||||
|
||||
/* ===== Scrollbar ===== */
|
||||
::-webkit-scrollbar { width: 4px; }
|
||||
::-webkit-scrollbar-track { background: transparent; }
|
||||
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
|
||||
|
||||
/* ===== Mobile adjustments ===== */
|
||||
@media (max-width: 380px) {
|
||||
.page { padding: 12px 12px 100px; }
|
||||
.gate-pts { font-size: 1.8rem; }
|
||||
.option-grid { gap: 8px; }
|
||||
.option-btn { padding: 14px 10px; font-size: 0.82rem; }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue