Files
s-ink/components/LocaleSwitcher.module.css
GandMao Nakamoto e960c9428c feat: portrait hero, seven languages, email booking, new domain (#3)
Four things the studio asked for:

- Hero is now Sami at the machine rather than a tattoo close-up. Graded gently
  (portrait mode in the media pipeline) so the cold ring light behind him
  survives — crushing it to mono the way the close-ups need threw away the best
  thing in the frame.
- Full i18n: en, de-CH, fr, tr, zh, ja, ko, each prerendered at its own path,
  with a language switcher and Accept-Language negotiation at /. The dictionary
  is a typed contract, so a missing translation fails the build instead of
  rendering blank.
- Email booking. The primary CTA opens a message with subject and a short
  checklist body already written, in the visitor's language.
- Canonical domain is now sinktattoo.com.

Name corrected throughout to Sami Tutar.

Co-authored-by: Mao Nakamoto <georgy.butaev@revamp-it.ch>
2026-08-06 17:09:14 +02:00

68 lines
1.4 KiB
CSS

.wrap {
position: relative;
}
.trigger {
display: inline-flex;
align-items: center;
gap: 0.45rem;
min-height: 44px;
color: var(--color-accent);
text-transform: uppercase;
transition: color var(--dur-fast) var(--ease-out);
}
.trigger:hover {
color: var(--color-text);
}
.caret {
width: 0;
height: 0;
border-inline: 3px solid transparent;
border-top: 4px solid currentColor;
}
.menu {
position: absolute;
top: calc(100% + 0.35rem);
right: 0;
z-index: 10;
min-width: 11rem;
margin: 0;
padding: 0;
list-style: none;
background: var(--color-surface);
border: 1px solid var(--color-border-strong);
box-shadow: 0 18px 40px rgb(0 0 0 / 0.55);
}
.option {
display: flex;
align-items: center;
gap: 0.7rem;
padding: 0.7rem 0.9rem;
min-height: 44px;
color: var(--color-text-muted);
/* The label is written in its own script, so let it use whatever face the
platform has for that language rather than forcing the Latin display font. */
font-family: var(--font-mono);
letter-spacing: 0.06em;
text-transform: none;
transition:
color var(--dur-fast) var(--ease-out),
background var(--dur-fast) var(--ease-out);
}
.option:hover,
.option[data-current='true'] {
color: var(--color-text);
background: color-mix(in srgb, var(--color-accent) 10%, transparent);
}
.code {
min-width: 3.2rem;
color: var(--color-accent);
text-transform: uppercase;
}