mirror of
https://github.com/bitbaum/vitareba.git
synced 2026-12-05 07:28:27 +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>
70 lines
1004 B
CSS
70 lines
1004 B
CSS
.section {
|
|
background: var(--ink);
|
|
padding: 4rem 1.5rem;
|
|
}
|
|
|
|
.eyebrowDim {
|
|
color: rgba(42, 122, 138, 0.7);
|
|
}
|
|
|
|
.grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
gap: 4rem;
|
|
align-items: center;
|
|
}
|
|
|
|
.body {
|
|
font-size: 0.85rem;
|
|
color: rgba(255, 255, 255, 0.4);
|
|
line-height: 1.85;
|
|
margin-top: 1.2rem;
|
|
max-width: 28rem;
|
|
}
|
|
|
|
.dims {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
gap: 1rem;
|
|
margin-top: 2rem;
|
|
}
|
|
|
|
.dim {
|
|
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
border-radius: 0.3rem;
|
|
padding: 1.2rem;
|
|
}
|
|
|
|
.dimIcon {
|
|
font-size: 1.2rem;
|
|
margin-bottom: 0.4rem;
|
|
}
|
|
|
|
.dimName {
|
|
font-size: 0.6rem;
|
|
letter-spacing: 0.2em;
|
|
text-transform: uppercase;
|
|
color: rgba(184, 150, 10, 0.7);
|
|
margin-bottom: 0.4rem;
|
|
}
|
|
|
|
.dimText {
|
|
font-size: 0.78rem;
|
|
color: rgba(255, 255, 255, 0.4);
|
|
line-height: 1.7;
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.section {
|
|
padding: 6rem 3rem;
|
|
}
|
|
|
|
.grid {
|
|
grid-template-columns: 1fr 1fr;
|
|
}
|
|
|
|
.dims {
|
|
grid-template-columns: 1fr 1fr;
|
|
}
|
|
}
|