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>
62 lines
992 B
CSS
62 lines
992 B
CSS
.section {
|
|
background: var(--white);
|
|
padding: 4rem 1.5rem;
|
|
}
|
|
|
|
.grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
gap: 2rem;
|
|
margin-top: 3rem;
|
|
}
|
|
|
|
.card {
|
|
text-align: center;
|
|
padding: 2rem 1.5rem;
|
|
}
|
|
|
|
.avatar {
|
|
width: 80px;
|
|
height: 80px;
|
|
border-radius: 50%;
|
|
background: linear-gradient(135deg, var(--teal), rgba(42, 122, 138, 0.3));
|
|
margin: 0 auto 1.2rem;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-family: var(--font-cormorant), serif;
|
|
font-size: 1.4rem;
|
|
color: var(--white);
|
|
}
|
|
|
|
.name {
|
|
font-family: var(--font-cormorant), serif;
|
|
font-size: 1.1rem;
|
|
font-weight: 300;
|
|
}
|
|
|
|
.role {
|
|
font-size: 0.7rem;
|
|
letter-spacing: 0.12em;
|
|
text-transform: uppercase;
|
|
color: var(--teal);
|
|
margin-top: 0.3rem;
|
|
}
|
|
|
|
.bio {
|
|
font-size: 0.78rem;
|
|
color: var(--muted);
|
|
line-height: 1.7;
|
|
margin-top: 0.7rem;
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.section {
|
|
padding: 6rem 3rem;
|
|
}
|
|
|
|
.grid {
|
|
grid-template-columns: repeat(3, 1fr);
|
|
}
|
|
}
|