Files
vitareba/components/sections/Cta.module.css
T
g-butandClaude Sonnet 4.6 da5b239a9e fix(assessment): state reset bug, a11y, keyboard nav + seo + code quality
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>
2026-04-13 15:04:40 +02:00

94 lines
1.6 KiB
CSS

.section {
background: var(--ink);
padding: 5rem 3rem;
text-align: center;
}
.eyebrow {
font-size: 0.6rem;
letter-spacing: 0.3em;
text-transform: uppercase;
color: rgba(42, 122, 138, 0.7);
margin-bottom: 0.8rem;
}
.title {
font-family: var(--font-cormorant), serif;
font-size: 2.4rem;
font-weight: 300;
color: var(--white);
line-height: 1.2;
}
.title em {
font-style: italic;
color: var(--teal);
}
.sub {
font-size: 0.85rem;
color: rgba(255, 255, 255, 0.35);
max-width: 34rem;
margin: 1.2rem auto 2rem;
line-height: 1.8;
}
.btns {
display: flex;
gap: 0.8rem;
justify-content: center;
flex-wrap: wrap;
}
.btnPrimary {
background: var(--teal);
color: var(--white);
border: none;
padding: 0.8rem 2rem;
font-size: 0.68rem;
letter-spacing: 0.14em;
text-transform: uppercase;
cursor: pointer;
font-family: var(--font-dm-sans), sans-serif;
border-radius: 0.25rem;
transition: background 0.3s;
}
.btnPrimary:hover {
background: var(--teal-dark);
}
.btnOutline {
border: 1px solid rgba(42, 122, 138, 0.3);
color: var(--teal);
background: none;
padding: 0.8rem 2rem;
font-size: 0.68rem;
letter-spacing: 0.14em;
text-transform: uppercase;
cursor: pointer;
font-family: var(--font-dm-sans), sans-serif;
border-radius: 0.25rem;
text-decoration: none;
display: inline-block;
transition: all 0.3s;
}
.btnOutline:hover {
border-color: var(--teal);
background: rgba(42, 122, 138, 0.1);
}
.note {
font-size: 0.65rem;
color: rgba(255, 255, 255, 0.15);
margin-top: 2rem;
}
@media (max-width: 767px) {
.btnPrimary,
.btnOutline {
min-height: 2.75rem;
}
}