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

138 lines
2.1 KiB
CSS

.section {
background: var(--off);
padding: 4rem 1.5rem;
}
.grid {
display: grid;
grid-template-columns: 1fr;
gap: 1.5rem;
margin-top: 3rem;
}
.prog {
background: var(--white);
border: 1px solid var(--border);
border-radius: 0.4rem;
padding: 2rem;
position: relative;
}
.featured {
border-color: var(--teal);
box-shadow: 0 0 0 1px var(--teal);
}
.badge {
position: absolute;
top: -0.6rem;
left: 1.5rem;
background: var(--teal);
color: var(--white);
font-size: 0.55rem;
letter-spacing: 0.15em;
text-transform: uppercase;
padding: 0.25rem 0.8rem;
border-radius: 1rem;
}
.name {
font-family: var(--font-cormorant), serif;
font-size: 1.2rem;
font-weight: 300;
}
.nameFeatured {
margin-top: 0.5rem;
}
.price {
font-family: var(--font-cormorant), serif;
font-size: 1.8rem;
font-weight: 300;
color: var(--teal);
margin: 0.4rem 0;
}
.note {
font-size: 0.65rem;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--muted);
margin-bottom: 1rem;
}
.desc {
font-size: 0.78rem;
color: var(--muted);
line-height: 1.8;
margin-bottom: 1rem;
}
.item {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.75rem;
color: var(--ink2);
margin-bottom: 0.4rem;
}
.check {
color: var(--teal);
font-size: 0.7rem;
}
.btn {
width: 100%;
padding: 0.7rem;
border-radius: 0.2rem;
font-size: 0.65rem;
letter-spacing: 0.14em;
text-transform: uppercase;
cursor: pointer;
font-family: var(--font-dm-sans), sans-serif;
margin-top: 1.2rem;
transition: all 0.3s;
display: block;
text-align: center;
text-decoration: none;
}
.btnPrimary {
background: var(--teal);
color: var(--white);
border: none;
}
.btnPrimary:hover {
background: var(--teal-dark);
}
.btnOutline {
background: none;
border: 1px solid var(--border);
color: var(--ink2);
}
.btnOutline:hover {
border-color: var(--teal);
color: var(--teal);
}
@media (max-width: 767px) {
.btn {
min-height: 2.75rem;
}
}
@media (min-width: 768px) {
.section {
padding: 6rem 3rem;
}
.grid {
grid-template-columns: repeat(3, 1fr);
}
}