Files
s-ink/components/StickyBook.module.css
GandMao Nakamoto c9d4fb1043 feat: booking CTAs, payment row, 69 tests, SEO, quality pass (#5)
Conversion:
- Primary BOOK NOW on the first screen and a sticky bar on phones, where the
  Book section is otherwise eight screens of scrolling away.
- Payment listed as cash and Bitcoin.

Quality pass — each a real defect, all invisible to typecheck/lint/build:
- The hero drift-in keyframe still ended at the OLD opacity (0.38). With fill
  `both` the last keyframe wins over the rule above it, so raising the image
  opacity did nothing and read like a CSS ordering bug.
- Lightbox leaked focus: aria-modal does nothing for the Tab key, so a keyboard
  user tabbed out of the viewer into a page they could not see.
- lib/works.ts kept its own copy of the artist and studio name; reads SITE now.
- Dropped an unused design token; documented the one non-token colour.
- Locale negotiation extracted from middleware so it is testable as a pure fn.

Added 69 tests (from zero), sitemap + robots for all seven locales, .nvmrc.
verify now runs tests, so CI and a local run check the same things.

Co-authored-by: Mao Nakamoto <georgy.butaev@revamp-it.ch>
2026-08-06 18:48:04 +02:00

51 lines
1.1 KiB
CSS

/* Phones only. On desktop the nav is always visible and the hero button stays
in reach, so a floating bar would be clutter. */
.bar {
position: fixed;
inset: auto 0 0 0;
z-index: 55;
padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom));
background: linear-gradient(to top, var(--color-bg) 55%, transparent);
transform: translateY(120%);
transition: transform var(--dur-mid) var(--ease-out);
pointer-events: none;
}
.bar[data-shown='true'] {
transform: none;
pointer-events: auto;
}
@media (min-width: 60rem) {
.bar {
display: none;
}
}
@media (prefers-reduced-motion: reduce) {
.bar {
transition: none;
}
}
.button {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
width: 100%;
min-height: 52px;
padding: 0.9rem 1.25rem;
background: var(--color-accent);
color: var(--color-on-accent);
font-weight: 700;
font-size: 1.05rem;
letter-spacing: -0.02em;
text-transform: uppercase;
box-shadow: 0 10px 30px rgb(0 0 0 / 0.5);
}
.arrow {
font-size: 1.25rem;
}