mirror of
https://github.com/bitbaum/vitareba.git
synced 2026-12-04 03:57:18 +01:00
Batch 1 — Bug fixes:
- Assessment conditionally mounted (eliminates stale state on reopen)
- Next button uses `disabled` attribute instead of removing onClick
Batch 2 — Accessibility:
- role="dialog", aria-modal, aria-labelledby on overlay
- aria-label="Close assessment" on close button
- aria-live/aria-atomic on progress region
- aria-label + aria-pressed on answer buttons
- Arrow key + Enter keyboard navigation for answers
- :focus-visible on all interactive elements (teal outline)
- :disabled style on back button
- .ovDims grid: repeat(3,1fr) → repeat(auto-fit, minmax(80px,1fr))
Batch 3 — SEO:
- OG + Twitter Card metadata in layout.tsx
- JSON-LD MedicalBusiness schema (uses lib/config/company.ts SSOT)
- canonical URL, robots meta
- app/sitemap.ts (Next.js route)
- public/robots.txt
Batch 4 — Code quality:
- Removed unused deps: clsx, lucide-react, tailwind-merge
- All inline style={{}} props moved to CSS modules or global utilities
- semantic h1 (Hero title) + h2 (all section titles) replacing divs
- type="button" on all non-submit buttons
- Footer mobile responsive CSS
Batch 5 — Design tokens:
- --white and --footer-bg tokens added to globals.css
- All #fff → var(--white) in CSS module files
- .sec-title-light, .eyebrow-gold, .section-header, .sec-title-center,
.sec-sub-mt utility classes added to globals.css
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
63 lines
840 B
CSS
63 lines
840 B
CSS
.section {
|
|
background: var(--white);
|
|
padding: 4rem 1.5rem;
|
|
}
|
|
|
|
.grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
gap: 2rem;
|
|
align-items: start;
|
|
}
|
|
|
|
.sticky {
|
|
position: static;
|
|
}
|
|
|
|
.items {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2.5rem;
|
|
}
|
|
|
|
.item {
|
|
border-left: 1px solid var(--border);
|
|
padding-left: 1.8rem;
|
|
}
|
|
|
|
.itemN {
|
|
font-size: 0.6rem;
|
|
letter-spacing: 0.2em;
|
|
color: var(--teal);
|
|
margin-bottom: 0.4rem;
|
|
}
|
|
|
|
.itemTitle {
|
|
font-family: var(--font-cormorant), serif;
|
|
font-size: 1.2rem;
|
|
font-weight: 300;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.itemBody {
|
|
font-size: 0.8rem;
|
|
color: var(--muted);
|
|
line-height: 1.85;
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.section {
|
|
padding: 6rem 3rem;
|
|
}
|
|
|
|
.grid {
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 4rem;
|
|
}
|
|
|
|
.sticky {
|
|
position: sticky;
|
|
top: 8rem;
|
|
}
|
|
}
|