Files
vitareba/components/sections/Hero.module.css
T
g-butandClaude Sonnet 4.6 785b923e25 feat(ui): portal nav overhaul, clinical goals UI, check-in, accessibility + readability fixes
Navigation & layout:
- PortalNav: icon sidebar with 4 groups, active state with teal left border
- BottomNav: fixed mobile bottom tab bar (5 items, safe-area-inset-bottom)
- NavBreadcrumb: route-aware header breadcrumb
- UserDropdown: escape key close, aria-expanded ring, quick check-in link

Portal features:
- Check-in page: 1-10 scale for mood/energy/sleep/stress
- PatientGoalsCard: admin goal CRUD with progress bars
- Dashboard: active clinical goals section
- ProfileCompletenessBar uses profileCompletenessColor()
- Admin patient detail decomposed into card components

Accessibility & readability:
- html font-size 112% - raises all rem values ~12% site-wide
- --muted darkened to #71727c (WCAG AA 4.5:1 on white)
- Hero eyebrow 0.6rem to 0.72rem, pill 0.58 to 0.68rem, sub contrast fixed
- Nav links 0.68 to 0.75rem
- LanguageSwitcher: pill container, mobile visible (was hidden), 0.62 to 0.72rem
- scaleBtn min-height 2.75rem (44px touch target)

Hero fix: .heroR justify-content flex-end (was center) aligns both columns

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-15 11:00:05 +02:00

204 lines
3.3 KiB
CSS

.hero {
display: grid;
grid-template-columns: 1fr;
min-height: 100vh;
}
.heroL {
background: var(--ink);
display: flex;
flex-direction: column;
justify-content: flex-end;
padding: 6rem 2rem 3rem;
position: relative;
overflow: hidden;
}
.heroL::before {
content: "";
position: absolute;
inset: 0;
background: radial-gradient(
ellipse at 30% 60%,
rgba(42, 122, 138, 0.2),
transparent 60%
);
}
.heroR {
background: var(--off);
display: flex;
flex-direction: column;
justify-content: flex-end;
padding: 3rem 2rem;
}
.eyebrow {
font-size: 0.72rem;
letter-spacing: 0.3em;
text-transform: uppercase;
color: rgba(255, 255, 255, 0.55);
margin-bottom: 1.8rem;
position: relative;
z-index: 1;
}
.title {
font-family: var(--font-cormorant), serif;
font-size: 2.4rem;
font-weight: 300;
line-height: 1.15;
color: var(--white);
position: relative;
z-index: 1;
}
.title em {
font-style: italic;
color: var(--teal);
}
.sub {
font-size: 0.88rem;
color: rgba(255, 255, 255, 0.62);
line-height: 1.9;
margin-top: 1.8rem;
max-width: 32rem;
position: relative;
z-index: 1;
}
.pills {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
margin-top: 1.5rem;
position: relative;
z-index: 1;
}
.pill {
font-size: 0.68rem;
letter-spacing: 0.15em;
text-transform: uppercase;
padding: 0.4rem 0.9rem;
border: 1px solid rgba(255, 255, 255, 0.18);
color: rgba(255, 255, 255, 0.5);
border-radius: 1rem;
}
.rightEyebrow {
font-size: 0.72rem;
letter-spacing: 0.3em;
text-transform: uppercase;
color: var(--muted);
margin-bottom: 1.2rem;
}
.rightTitle {
font-family: var(--font-cormorant), serif;
font-size: 1.8rem;
font-weight: 300;
line-height: 1.2;
color: var(--ink);
}
.rightTitle em {
font-style: italic;
color: var(--teal);
}
.rightSub {
font-size: 0.85rem;
color: var(--muted);
line-height: 1.85;
margin-top: 1.2rem;
max-width: 28rem;
}
.quoteBar {
font-family: var(--font-cormorant), serif;
font-style: italic;
font-size: 1.05rem;
color: var(--ink2);
border-left: 2px solid var(--teal);
padding-left: 1.2rem;
margin: 2rem 0;
line-height: 1.6;
}
.btns {
display: flex;
gap: 0.8rem;
margin-top: 1.5rem;
flex-wrap: wrap;
}
.btnDark {
background: var(--ink);
color: var(--white);
border: none;
padding: 0.75rem 1.8rem;
font-size: 0.68rem;
letter-spacing: 0.14em;
text-transform: uppercase;
cursor: pointer;
font-family: var(--font-dm-sans), sans-serif;
border-radius: 0.2rem;
transition: background 0.3s;
}
.btnDark:hover {
background: var(--teal);
}
.btnOutline {
background: none;
border: 1px solid var(--border);
color: var(--ink2);
padding: 0.75rem 1.8rem;
font-size: 0.68rem;
letter-spacing: 0.14em;
text-transform: uppercase;
cursor: pointer;
font-family: var(--font-dm-sans), sans-serif;
border-radius: 0.2rem;
transition: all 0.3s;
text-decoration: none;
display: inline-block;
}
.btnOutline:hover {
border-color: var(--teal);
color: var(--teal);
}
@media (max-width: 767px) {
.btnDark,
.btnOutline {
min-height: 2.75rem;
}
}
@media (min-width: 768px) {
.hero {
grid-template-columns: 1fr 1fr;
}
.heroL {
padding: 8rem 4rem 5rem;
}
.heroR {
padding: 8rem 4rem 5rem;
}
.title {
font-size: 3.6rem;
}
.rightTitle {
font-size: 2.6rem;
}
}