Files
vitareba/components/sections/Pillars.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

61 lines
838 B
CSS

.section {
background: var(--off);
padding: 4rem 1.5rem;
}
.secSub {
text-align: center;
margin: 1rem auto 0;
}
.grid {
display: grid;
grid-template-columns: 1fr;
gap: 2rem;
margin-top: 3rem;
}
.pillar {
border: 1px solid var(--border);
border-radius: 0.4rem;
padding: 2.5rem 2rem;
position: relative;
transition: border-color 0.3s;
}
.pillar:hover {
border-color: var(--teal);
}
.featured {
border-color: var(--teal);
}
.icon {
font-size: 1.8rem;
margin-bottom: 1rem;
}
.name {
font-family: var(--font-cormorant), serif;
font-size: 1.3rem;
font-weight: 300;
margin-bottom: 0.6rem;
}
.desc {
font-size: 0.8rem;
color: var(--muted);
line-height: 1.8;
}
@media (min-width: 768px) {
.section {
padding: 6rem 3rem;
}
.grid {
grid-template-columns: repeat(3, 1fr);
}
}