Files
vitareba/components/sections/Programs.module.css
T
GandClaude Fable 5 45966a8e86 Design-token discipline with CI teeth + clinic-timezone dates + skeleton loading (#19)
* fix(ui): mobile patient table fits a 390px card

Walkthrough at 390px showed the triage table still ~50px wider than its
card: desktop cell padding, and the email ellipsis targeting a <p> that
is actually a <div> — plus max-width on the td, which auto table layout
ignores; the cap now sits on the inner divs.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* feat(design): token discipline with CI teeth, clinic-timezone dates, skeleton loading

Design discipline (SSOT enforced, not aspirational):
- Normalize every raw border-radius, transition duration, rgba() and hex
  in *.module.css to the globals.css token scale (26 files); add
  --radius-2xs (2px bars) and --radius-pill (2rem pills)
- lib/design-discipline.test.ts: 8 CI rules — no raw colors in css modules,
  radius/transition must use tokens, every var() must resolve in
  globals.css, no hex in TSX, style={{}} only in a data-driven allowlist
  (with staleness check)

UX intuition:
- formatDateISO now uses Europe/Zurich (CLINIC_TIMEZONE SSOT in
  lib/config/company.ts) instead of UTC: a 00:30 check-in no longer lands
  on yesterday's date, overwriting it and killing the streak; client and
  server now agree on 'today' even when the patient travels
- Shared <LoadingState/> shimmer skeleton (reduced-motion aware) replaces
  nine bare 'Loading…' strings across portal and admin

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-08-11 16:51:53 +00: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: var(--radius-md);
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: var(--radius-2xl);
}
.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: var(--radius-xs);
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 var(--transition-normal);
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);
}
}