feat(notices): the release notes present 5.0.0

The update dialog now shows the 5.0.0 headliners, Tours, TREK Studio, the assistant and help on every screen in 27 languages, each with a drawing of its own, translated into every language TREK ships. The 4.3.3 cards and their drawings are gone.
This commit is contained in:
Maurice
2026-10-25 10:41:16 +01:00
parent daaa6c425d
commit 9fc98b5d49
35 changed files with 1144 additions and 712 deletions
@@ -24,9 +24,9 @@ function releaseNotice(overrides: Partial<SystemNoticeDTO> = {}): SystemNoticeDT
introKey: 'rel.intro',
featuresLabelKey: 'rel.features.label',
features: [
{ iconName: 'Database', visual: 'places-api', titleKey: 'rel.f1.title', bodyKey: 'rel.f1.body' },
{ iconName: 'Route', visual: 'roadtrip', titleKey: 'rel.f2.title', bodyKey: 'rel.f2.body' },
{ iconName: 'MapPin', visual: 'dawarich', titleKey: 'rel.f3.title', bodyKey: 'rel.f3.body' },
{ iconName: 'Mountain', visual: 'tours', titleKey: 'rel.f1.title', bodyKey: 'rel.f1.body' },
{ iconName: 'BookOpen', visual: 'studio', titleKey: 'rel.f2.title', bodyKey: 'rel.f2.body' },
{ iconName: 'Sparkles', visual: 'assistant', titleKey: 'rel.f3.title', bodyKey: 'rel.f3.body' },
],
note: {
eyebrowKey: 'rel.note.eyebrow',
@@ -78,9 +78,9 @@ describe('ReleaseNoticeModal', () => {
renderModal()
expect(screen.getByText('rel.f1.title')).toBeInTheDocument()
expect(document.querySelectorAll('.rn-feature')).toHaveLength(3)
expect(document.querySelector('.rn-vis-places')).not.toBeNull()
expect(document.querySelector('.rn-vis-road')).not.toBeNull()
expect(document.querySelector('.rn-vis-trail')).not.toBeNull()
expect(document.querySelector('.rn-vis-tours')).not.toBeNull()
expect(document.querySelector('.rn-vis-studio')).not.toBeNull()
expect(document.querySelector('.rn-vis-assist')).not.toBeNull()
})
it('FE-RN-004: splits the note body on the blank line into separate paragraphs', () => {
@@ -194,20 +194,20 @@ describe('ReleaseNoticeModal', () => {
const n = releaseNotice()
n.release!.features = [
...n.release!.features,
{ iconName: 'FolderSync', visual: 'docsync', layout: 'wide', titleKey: 'rel.f4.title', bodyKey: 'rel.f4.body' },
{ iconName: 'LifeBuoy', visual: 'help', layout: 'wide', titleKey: 'rel.f4.title', bodyKey: 'rel.f4.body' },
]
renderModal(n)
const cards = document.querySelectorAll('.rn-feature')
expect(cards).toHaveLength(4)
expect(cards[3].classList.contains('rn-feature-wide')).toBe(true)
expect([...cards].slice(0, 3).some(c => c.classList.contains('rn-feature-wide'))).toBe(false)
// The document sync drawing: the wordmark without its API pill, and the five stores.
// The help drawing: the help button and two rows of greetings, each written twice to loop.
const wide = cards[3]
expect(wide.querySelector('.rn-vis-docs')).not.toBeNull()
expect(wide.querySelectorAll('.rn-vis-docs-store')).toHaveLength(5)
expect(wide.querySelector('.trek-mark .pill-bg')).toBeNull()
// The places card keeps the pill: that one is about the index.
expect(cards[0].querySelector('.trek-mark .pill-bg')).not.toBeNull()
expect(wide.querySelector('.rn-vis-help-q')).not.toBeNull()
expect(wide.querySelectorAll('.rn-vis-hello-row')).toHaveLength(2)
expect(wide.querySelectorAll('.rn-vis-hello').length % 2).toBe(0)
// The tours card lists the kinds of tour along its foot.
expect(cards[0].querySelectorAll('.rn-vis-tours-kind')).toHaveLength(5)
})
it('FE-RN-016: the close button belongs to the panel, not the note', () => {
@@ -1,94 +1,166 @@
import React from 'react';
import * as LucideIcons from 'lucide-react';
import { ArrowLeftRight, Car, Landmark, Search, Sparkles } from 'lucide-react';
import DawarichIcon from '../shared/DawarichIcon';
import { NextcloudIcon, OpenCloudIcon, PaperlessIcon, PapraIcon, SynologyDriveIcon } from '../shared/DocumentProviderIcons';
import TrekMark from '../shared/TrekMark';
import { Bike, Check, Footprints, Landmark, Plane, Sailboat, Snowflake, Sparkles, Star, TrendingUp } from 'lucide-react';
import './releaseNoticeVisuals.css';
/*
* The small pictures on the release cards: pieces of TREK itself, drawn at card
* size rather than screenshotted, because a screenshot this small is a blur. They
* carry no words, only place names and figures that read the same in every
* language, so nothing here needs translating.
* carry no words, only place names, greetings and figures that read the same in
* every language, so nothing here needs translating. Every colour lives in
* releaseNoticeVisuals.css, and every motion stops under reduced motion.
*/
function PlacesApiVisual() {
return (
<div className="rn-vis rn-vis-places">
<span className="rn-vis-trekbadge"><TrekMark className="rn-vis-trekmark" /></span>
<div className="rn-vis-search">
<Search size={11} strokeWidth={2.4} />
<span className="rn-vis-typed">Fushimi Inari</span>
<span className="rn-vis-caret" />
</div>
<div className="rn-vis-result">
<span className="rn-vis-cat" style={{ background: '#ef4444' }}><Landmark size={10} strokeWidth={2.2} /></span>
<span className="rn-vis-place">
<span>Fushimi Inari Taisha</span>
<small>Kyoto</small>
</span>
</div>
</div>
);
}
// ── Tours: a trail climbing to the summit at dusk, and the kinds of tour under it ──
// The route and its stops, in the planner's own route blue and marker style.
const ROUTE = 'M26 84 C 58 82, 60 44, 96 46 S 136 74, 160 52 S 176 30, 182 28';
const FAR_RIDGE = 'M0 66 L20 50 L38 60 L60 38 L84 56 L104 44 L128 58 L152 40 L176 54 L200 46 V112 H0 Z';
const MOUNTAIN = 'M0 112 V86 L44 62 L84 28 L98 38 L112 32 L152 68 L200 80 V112 Z';
const SNOW = 'M84 28 L73 38 L79 37 L84 42 L89 37.5 L95 37 Z';
const MEADOW = 'M0 112 V96 C 30 88, 60 90, 92 94 S 160 82, 200 90 V112 Z';
// From the valley up the mountain's flank to the summit, in switchbacks.
const TRAIL = 'M24 100 C 40 96, 50 90, 54 84 S 66 78, 70 72 S 64 62, 72 56 S 82 48, 78 42 S 82 34, 84 29';
const KINDS = [Footprints, Bike, Sailboat, Snowflake, Landmark];
function RoadtripVisual() {
function ToursVisual() {
return (
<div className="rn-vis rn-vis-road">
<svg viewBox="0 0 200 112" preserveAspectRatio="xMidYMid slice" aria-hidden="true">
<path className="rn-vis-road-casing" d={ROUTE} />
<path className="rn-vis-road-line" d={ROUTE} />
<div className="rn-vis rn-vis-tours">
<svg className="rn-vis-tours-scene" viewBox="0 0 200 112" preserveAspectRatio="xMidYMid slice" aria-hidden="true">
<circle className="rn-vis-tours-sun" cx="160" cy="24" r="9" />
<path className="rn-vis-tours-far" d={FAR_RIDGE} />
<path className="rn-vis-tours-mountain" d={MOUNTAIN} />
<path className="rn-vis-tours-snow" d={SNOW} />
<path className="rn-vis-tours-meadow" d={MEADOW} />
<path className="rn-vis-tours-trail" d={TRAIL} pathLength={1} />
<circle className="rn-vis-tours-walker" r="2.6">
<animateMotion dur="5s" begin="1.6s" repeatCount="indefinite" path={TRAIL} />
</circle>
<g className="rn-vis-tours-flag">
<line x1="84" y1="29" x2="84" y2="17" />
<path d="M84 17 L93 20 L84 23 Z" />
</g>
</svg>
<span className="rn-vis-marker" style={{ left: '13%', top: '75%', background: '#6366f1' }}>1</span>
<span className="rn-vis-marker" style={{ left: '48%', top: '41%', background: '#f59e0b' }}>2</span>
<span className="rn-vis-marker" style={{ left: '91%', top: '25%', background: '#ec4899' }}>3</span>
<span className="rn-vis-distance"><Car size={10} strokeWidth={2.2} />386 km</span>
</div>
);
}
// A recorded day, with the two places the traveller stayed.
const TRAIL = '84,94 96,88 106,80 118,76 130,74 142,66 152,58 162,62 172,66 180,56 186,46';
const STAYS: Array<[number, number]> = [[130, 74], [186, 46]];
function DawarichVisual() {
return (
<div className="rn-vis rn-vis-trail">
<svg viewBox="0 0 200 112" preserveAspectRatio="xMidYMid slice" aria-hidden="true">
<polyline className="rn-vis-trail-line" points={TRAIL} />
{STAYS.map(([x, y]) => <circle key={x} className="rn-vis-trail-stay" cx={x} cy={y} r="3.4" />)}
</svg>
<span className="rn-vis-brand"><DawarichIcon size={58} /></span>
</div>
);
}
// A trip's documents travelling both ways between TREK and the five stores. The
// wordmark without the API pill: this is TREK itself, not its index.
const STORES = [PaperlessIcon, PapraIcon, NextcloudIcon, OpenCloudIcon, SynologyDriveIcon];
function DocSyncVisual() {
return (
<div className="rn-vis rn-vis-docs">
<span className="rn-vis-trekbadge"><TrekMark pill={false} className="rn-vis-trekmark" /></span>
<span className="rn-vis-docs-flow"><ArrowLeftRight size={14} strokeWidth={2.4} /></span>
<div className="rn-vis-docs-stores">
{STORES.map((Store, i) => (
<span key={i} className="rn-vis-docs-store"><Store size={22} /></span>
<span className="rn-vis-tours-climb">
<TrendingUp size={9} strokeWidth={2.6} />
860 m
</span>
<div className="rn-vis-tours-kinds">
{KINDS.map((Kind, i) => (
<span key={i} className="rn-vis-tours-kind" style={{ animationDelay: `${1.2 + i * 0.08}s` }}>
<Kind size={10} strokeWidth={2.2} />
</span>
))}
</div>
</div>
);
}
// ── TREK Studio: an open photo book with a polaroid, a stamp and a sticker ──
function StudioVisual() {
return (
<div className="rn-vis rn-vis-studio">
<div className="rn-vis-book">
<div className="rn-vis-page rn-vis-page-start">
<div className="rn-vis-polaroid">
<svg viewBox="0 0 60 44" aria-hidden="true">
<rect className="rn-vis-sky" width="60" height="44" />
<circle className="rn-vis-sun" cx="42" cy="15" r="6" />
<path className="rn-vis-peak-far" d="M0 32 L12 20 L20 26 L32 12 L44 24 L52 18 L60 26 V44 H0 Z" />
<path className="rn-vis-peak-near" d="M0 38 L14 28 L26 34 L38 26 L60 36 V44 H0 Z" />
</svg>
</div>
<span className="rn-vis-tape" />
</div>
<div className="rn-vis-page rn-vis-page-end">
<span className="rn-vis-book-title">Dolomiti</span>
<span className="rn-vis-book-line" />
<span className="rn-vis-book-line rn-vis-book-line-short" />
<span className="rn-vis-stamp">
<Plane size={10} strokeWidth={2.2} />
</span>
</div>
<span className="rn-vis-gutter" />
</div>
<span className="rn-vis-sticker">
<Star size={15} strokeWidth={1.8} />
</span>
</div>
);
}
// ── The assistant: a day in Porto proposed stop by stop, ready to apply ──
const PORTO: Array<{ time: string; name: string; tone: string }> = [
{ time: '09:30', name: 'Ribeira', tone: 'sight' },
{ time: '12:30', name: 'Livraria Lello', tone: 'culture' },
{ time: '16:00', name: 'Torre dos Clérigos', tone: 'view' },
];
function AssistantVisual() {
return (
<div className="rn-vis rn-vis-assist">
<div className="rn-vis-assist-head">
<span className="rn-vis-assist-avatar">
<Sparkles size={10} strokeWidth={2.4} />
</span>
<span className="rn-vis-assist-typing">
<i />
<i />
<i />
</span>
</div>
<div className="rn-vis-assist-card">
{PORTO.map((stop, i) => (
<div key={stop.name} className="rn-vis-assist-row" style={{ animationDelay: `${0.5 + i * 0.35}s` }}>
<span className="rn-vis-assist-time">{stop.time}</span>
<span className={`rn-vis-assist-dot rn-vis-assist-dot-${stop.tone}`} />
<span className="rn-vis-assist-name">{stop.name}</span>
</div>
))}
</div>
<span className="rn-vis-assist-apply">
<Check size={11} strokeWidth={3} />
</span>
</div>
);
}
// ── Help on every screen, in 27 languages: hello in each of them, drifting by ──
const HELLO_A = ['Hallo', 'Bonjour', 'Hola', 'Ciao', 'Olá', 'Hej', 'Ahoj', 'Cześć', 'Szia', 'Tere', 'Salam', 'Bon dia', 'Halo'];
const HELLO_B = ['Привіт', 'Привет', 'Γεια σου', 'مرحبا', 'こんにちは', '안녕하세요', '你好', '哈囉', 'สวัสดี', 'Xin chào', 'Merhaba', 'Dobrý deň'];
function HelloRow({ words, reverse }: { words: string[]; reverse?: boolean }) {
// Written twice, so the row can slide by half its width and start over without a seam.
return (
<div className={reverse ? 'rn-vis-hello-row rn-vis-hello-row-reverse' : 'rn-vis-hello-row'}>
{[...words, ...words].map((word, i) => (
<span key={i} className="rn-vis-hello" lang="und">
{word}
</span>
))}
</div>
);
}
function HelpVisual() {
return (
<div className="rn-vis rn-vis-help">
<span className="rn-vis-help-q">?</span>
<div className="rn-vis-help-langs">
<HelloRow words={HELLO_A} />
<HelloRow words={HELLO_B} reverse />
</div>
<span className="rn-vis-help-count">27</span>
</div>
);
}
const VISUALS: Record<string, () => React.ReactElement> = {
'places-api': PlacesApiVisual,
roadtrip: RoadtripVisual,
dawarich: DawarichVisual,
docsync: DocSyncVisual,
tours: ToursVisual,
studio: StudioVisual,
assistant: AssistantVisual,
help: HelpVisual,
};
/** The card's picture, or its icon when the release names no drawing this client knows. */
@@ -380,223 +380,6 @@
flex: none;
}
/* ── The card pictures ─────────────────────────────────────────────────── */
.rn-vis {
position: absolute;
inset: 0;
color: #f5f5f7;
font-family: var(--font-system);
}
.rn-vis-road > svg,
.rn-vis-trail > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.rn-vis-icon {
display: flex;
align-items: center;
justify-content: center;
color: oklch(1 0 0 / 0.55);
}
/* Places API: the index answering a search while it is typed. */
.rn-vis-places {
padding: 9px 12px;
display: flex;
flex-direction: column;
gap: 6px;
}
/* The same wordmark the API keys card leads with, centred; its pill text inverts against the tile. */
.rn-vis-trekbadge { align-self: center; display: flex; align-items: center; height: 24px; }
.rn-vis-trekmark { display: block; height: 20px; width: auto; color: #f5f5f7; }
.rn-vis-places .trek-mark .pill-fg { fill: #101013; }
.rn-vis-search {
display: flex;
align-items: center;
gap: 6px;
height: 22px;
padding: 0 9px;
border-radius: 8px;
background: oklch(1 0 0 / 0.08);
border: 1px solid oklch(1 0 0 / 0.16);
font-size: 10px;
font-weight: 500;
white-space: nowrap;
}
.rn-vis-search svg { width: 11px; height: 11px; flex: none; color: oklch(1 0 0 / 0.55); }
/* The query types itself out once, then the answer arrives under it. */
.rn-vis-typed {
display: inline-block;
max-width: 90px;
overflow: hidden;
white-space: nowrap;
animation: rn-type 1.3s steps(13, end) 0.7s both;
}
@keyframes rn-type { from { max-width: 0; } to { max-width: 90px; } }
.rn-vis-caret {
width: 1px;
height: 12px;
margin-inline-start: -4px;
background: #f5f5f7;
animation: rn-caret 1s steps(1) infinite;
}
@keyframes rn-caret { 50% { opacity: 0; } }
.rn-vis-result {
display: flex;
align-items: center;
gap: 7px;
padding: 5px 8px;
border-radius: 8px;
background: oklch(1 0 0 / 0.07);
animation: rn-answer 0.3s ease 2.1s both;
}
@keyframes rn-answer { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
.rn-vis-cat {
width: 18px;
height: 18px;
border-radius: 50%;
border: 1.5px solid #ffffff;
color: #ffffff;
display: flex;
align-items: center;
justify-content: center;
flex: none;
box-sizing: border-box;
}
.rn-vis-place { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.rn-vis-place span {
font-size: 10px;
font-weight: 600;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.rn-vis-place small { font-size: 8.5px; color: oklch(1 0 0 / 0.5); }
@media (prefers-reduced-motion: reduce) {
.rn-vis-typed, .rn-vis-caret, .rn-vis-result { animation: none; }
}
[data-reduce-motion='true'] .rn-vis-typed,
[data-reduce-motion='true'] .rn-vis-caret,
[data-reduce-motion='true'] .rn-vis-result { animation: none; }
/* Road trip: the drive on the map, in the planner's route blue and marker style. */
.rn-vis-road-casing { fill: none; stroke: #0a5cc2; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.rn-vis-road-line { fill: none; stroke: #0a84ff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.rn-vis-marker {
position: absolute;
width: 18px;
height: 18px;
margin: -9px 0 0 -9px;
border-radius: 50%;
border: 2px solid #ffffff;
box-sizing: border-box;
box-shadow: 0 1px 4px oklch(0 0 0 / 0.35);
color: #ffffff;
font-size: 8.5px;
font-weight: 700;
display: flex;
align-items: center;
justify-content: center;
font-variant-numeric: tabular-nums;
}
.rn-vis-distance {
position: absolute;
right: 9px;
bottom: 8px;
display: flex;
align-items: center;
gap: 4px;
padding: 2px 7px;
border-radius: 99px;
background: #f5f5f7;
color: #101013;
font-size: 9px;
font-weight: 600;
white-space: nowrap;
font-variant-numeric: tabular-nums;
}
/* Dawarich: a recorded day, in the trail colour the map draws it with. */
.rn-vis-trail-line { fill: none; stroke: #2563eb; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rn-vis-trail-stay { fill: #ffffff; stroke: #2563eb; stroke-width: 2; }
/* Document sync: the wordmark, the two-way arrow under it, and the five stores in a row. */
.rn-vis-docs {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 4px;
padding: 8px 12px;
}
.rn-vis-docs .rn-vis-trekbadge { height: 22px; }
.rn-vis-docs .rn-vis-trekmark { height: 19px; }
.rn-vis-docs-flow { display: flex; color: oklch(1 0 0 / 0.55); transform: rotate(90deg); }
.rn-vis-docs-stores {
display: flex;
gap: 8px;
}
.rn-vis-docs-store {
display: flex;
align-items: center;
justify-content: center;
width: 34px;
height: 34px;
border-radius: 10px;
background: oklch(1 0 0 / 0.1);
box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.18), inset 0 0 0 1px oklch(1 0 0 / 0.1);
}
/* The mark itself, unframed, with its corners rounded like an app icon. */
.rn-vis-brand {
position: absolute;
top: 12px;
left: 12px;
width: 58px;
height: 58px;
border-radius: 15px;
overflow: hidden;
box-shadow: 0 4px 14px oklch(0 0 0 / 0.45), 0 0 0 1px oklch(1 0 0 / 0.14);
}
/* A glass sheen over the mark: a soft light from the top and a bright inner edge. */
.rn-vis-brand::after {
content: '';
position: absolute;
inset: 0;
border-radius: inherit;
background: linear-gradient(160deg, oklch(1 0 0 / 0.42) 0%, oklch(1 0 0 / 0.08) 38%, transparent 55%, oklch(0 0 0 / 0.12) 100%);
box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.55), inset 0 0 0 1px oklch(1 0 0 / 0.22);
pointer-events: none;
}
.rn-vis-brand img { display: block; width: 100%; height: 100%; }
/* ── Right: the note ───────────────────────────────────────────────────── */
.rn-note {
@@ -0,0 +1,582 @@
/*
* The pictures on the release cards (ReleaseNoticeVisuals.tsx). They sit on the
* release half, which is dark in both themes, so they draw in their own colours
* rather than the surface tokens, like the panel around them.
*/
/* ── The card pictures ─────────────────────────────────────────────────── */
.rn-vis {
position: absolute;
inset: 0;
color: #f5f5f7;
font-family: var(--font-system);
overflow: hidden;
}
.rn-vis-icon {
display: flex;
align-items: center;
justify-content: center;
color: oklch(1 0 0 / 0.55);
}
@keyframes rn-draw {
to {
stroke-dashoffset: 0;
}
}
@keyframes rn-pop {
from {
opacity: 0;
transform: scale(0.2);
}
to {
opacity: 1;
transform: none;
}
}
@keyframes rn-rise {
from {
opacity: 0;
transform: translateY(4px);
}
to {
opacity: 1;
transform: none;
}
}
@keyframes rn-typing {
0%,
60%,
100% {
opacity: 0.35;
transform: none;
}
30% {
opacity: 1;
transform: translateY(-2px);
}
}
@keyframes rn-ring {
0% {
box-shadow: 0 0 0 0 oklch(0.72 0.19 150 / 0.55);
}
70%,
100% {
box-shadow: 0 0 0 9px oklch(0.72 0.19 150 / 0);
}
}
@keyframes rn-marquee {
from {
transform: translateX(0);
}
to {
transform: translateX(-50%);
}
}
@keyframes rn-sticker {
from {
opacity: 0;
transform: scale(0.2) rotate(-50deg);
}
70% {
opacity: 1;
transform: scale(1.12) rotate(12deg);
}
to {
opacity: 1;
transform: rotate(8deg);
}
}
/* Tours: a trail climbing to the summit at dusk, and the kinds of tour along the foot. */
.rn-vis-tours {
background: linear-gradient(180deg, #24304f 0%, #3c4a6b 46%, #c9876a 100%);
}
.rn-vis-tours-scene {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
}
.rn-vis-tours-sun {
fill: #fde68a;
filter: drop-shadow(0 0 6px oklch(0.92 0.12 90 / 0.7));
}
.rn-vis-tours-far {
fill: #56668a;
opacity: 0.75;
}
.rn-vis-tours-mountain {
fill: #23344a;
}
.rn-vis-tours-snow {
fill: #e8f0f8;
}
.rn-vis-tours-meadow {
fill: #14202d;
}
.rn-vis-tours-trail {
fill: none;
stroke: #fbbf24;
stroke-width: 2;
stroke-linecap: round;
stroke-linejoin: round;
stroke-dasharray: 1;
stroke-dashoffset: 1;
filter: drop-shadow(0 0 2px oklch(0.85 0.16 80 / 0.6));
animation: rn-draw 1.3s ease-in-out 0.3s both;
}
.rn-vis-tours-walker {
fill: #ffffff;
filter: drop-shadow(0 0 3px #ffffff);
opacity: 0;
animation: rn-show 0.2s linear 1.6s both;
}
@keyframes rn-show {
to {
opacity: 1;
}
}
.rn-vis-tours-flag {
transform-box: fill-box;
transform-origin: 0% 100%;
animation: rn-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 1.5s both;
}
.rn-vis-tours-flag line {
stroke: #f5f5f7;
stroke-width: 1.2;
}
.rn-vis-tours-flag path {
fill: #ef4444;
}
.rn-vis-tours-climb {
position: absolute;
top: 8px;
inset-inline-start: 9px;
display: flex;
align-items: center;
gap: 3px;
padding: 2px 7px;
border-radius: 99px;
background: oklch(1 0 0 / 0.14);
border: 1px solid oklch(1 0 0 / 0.18);
backdrop-filter: blur(6px);
font-size: 9px;
font-weight: 700;
font-variant-numeric: tabular-nums;
}
.rn-vis-tours-kinds {
position: absolute;
inset-inline: 0;
bottom: 7px;
display: flex;
justify-content: center;
gap: 5px;
}
.rn-vis-tours-kind {
display: grid;
place-items: center;
width: 20px;
height: 20px;
border-radius: 50%;
background: oklch(1 0 0 / 0.12);
border: 1px solid oklch(1 0 0 / 0.2);
backdrop-filter: blur(6px);
animation: rn-rise 0.3s ease both;
}
/* TREK Studio: an open book, a polaroid taped in, a title, a stamp and a sticker. */
.rn-vis-studio {
background:
radial-gradient(120% 90% at 50% 115%, oklch(0.62 0.14 45 / 0.38) 0%, transparent 60%),
linear-gradient(165deg, #23201c 0%, #171513 100%);
}
.rn-vis-book {
position: absolute;
inset: 13px 20px 13px;
display: flex;
border-radius: 3px;
overflow: hidden;
transform: perspective(520px) rotateX(16deg);
box-shadow:
0 16px 22px -10px oklch(0 0 0 / 0.75),
0 0 0 1px oklch(1 0 0 / 0.08);
}
.rn-vis-page {
position: relative;
flex: 1;
min-width: 0;
}
.rn-vis-page-start {
background: #ede2c9;
}
.rn-vis-page-end {
background: #f6eedc;
display: flex;
flex-direction: column;
gap: 4px;
padding: 11px 9px 0;
}
.rn-vis-gutter {
position: absolute;
inset-block: 0;
inset-inline-start: 50%;
width: 16px;
margin-inline-start: -8px;
background: linear-gradient(90deg, transparent, oklch(0 0 0 / 0.2), transparent);
}
.rn-vis-polaroid {
position: absolute;
top: 11px;
inset-inline-start: 10px;
width: 58%;
padding: 3px 3px 9px;
background: #ffffff;
transform: rotate(-6deg);
box-shadow: 0 3px 6px oklch(0 0 0 / 0.25);
}
.rn-vis-polaroid svg {
display: block;
width: 100%;
height: auto;
}
.rn-vis-sky {
fill: #fcd5b0;
}
.rn-vis-sun {
fill: #fb923c;
}
.rn-vis-peak-far {
fill: #7c8aa0;
}
.rn-vis-peak-near {
fill: #334155;
}
.rn-vis-tape {
position: absolute;
top: 7px;
inset-inline-start: 30%;
width: 24px;
height: 7px;
transform: rotate(-24deg);
background: repeating-linear-gradient(45deg, #f43f5e 0 3px, #fecdd3 3px 6px);
opacity: 0.88;
}
.rn-vis-book-title {
font-family: Georgia, 'Times New Roman', serif;
font-style: italic;
font-weight: 700;
font-size: 13px;
line-height: 1;
color: #1f3d2b;
white-space: nowrap;
}
.rn-vis-book-line {
height: 3px;
width: 88%;
border-radius: 2px;
background: oklch(0.4 0.03 60 / 0.3);
}
.rn-vis-book-line-short {
width: 58%;
}
.rn-vis-stamp {
position: absolute;
bottom: 9px;
inset-inline-end: 9px;
display: grid;
place-items: center;
width: 24px;
height: 24px;
border-radius: 50%;
border: 1.5px dashed #b45309;
color: #b45309;
transform: rotate(-14deg);
opacity: 0.85;
}
.rn-vis-sticker {
position: absolute;
bottom: 7px;
inset-inline-start: 14px;
display: grid;
place-items: center;
width: 26px;
height: 26px;
border-radius: 50%;
background: #facc15;
color: #fff8db;
box-shadow:
0 0 0 2px #ffffff,
0 4px 10px oklch(0 0 0 / 0.4);
animation: rn-sticker 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1s both;
}
.rn-vis-sticker svg {
fill: currentColor;
}
/* The assistant: a day in Porto proposed stop by stop, and the button that applies it. */
.rn-vis-assist {
display: flex;
flex-direction: column;
gap: 6px;
padding: 9px 10px;
background:
radial-gradient(110% 80% at 0% 0%, oklch(0.55 0.2 290 / 0.36) 0%, transparent 62%),
linear-gradient(165deg, #1d1b29 0%, #141320 100%);
}
.rn-vis-assist-head {
display: flex;
align-items: center;
gap: 6px;
}
.rn-vis-assist-avatar {
display: grid;
place-items: center;
width: 19px;
height: 19px;
border-radius: 50%;
background: linear-gradient(135deg, #a78bfa 0%, #3b82f6 100%);
color: #ffffff;
box-shadow: 0 2px 8px oklch(0.55 0.2 290 / 0.6);
}
.rn-vis-assist-typing {
display: flex;
gap: 3px;
padding: 5px 7px;
border-radius: 99px;
background: oklch(1 0 0 / 0.1);
}
.rn-vis-assist-typing i {
width: 4px;
height: 4px;
border-radius: 50%;
background: #f5f5f7;
animation: rn-typing 1.2s ease-in-out infinite;
}
.rn-vis-assist-typing i:nth-child(2) {
animation-delay: 0.15s;
}
.rn-vis-assist-typing i:nth-child(3) {
animation-delay: 0.3s;
}
.rn-vis-assist-card {
display: flex;
flex-direction: column;
gap: 3px;
padding: 5px 8px;
border-radius: 9px;
background: oklch(1 0 0 / 0.08);
border: 1px solid oklch(1 0 0 / 0.14);
box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.12);
}
.rn-vis-assist-row {
display: flex;
align-items: center;
gap: 6px;
min-width: 0;
font-size: 9.5px;
line-height: 1.35;
animation: rn-rise 0.34s ease both;
}
.rn-vis-assist-time {
flex: none;
width: 27px;
color: oklch(1 0 0 / 0.5);
font-variant-numeric: tabular-nums;
}
.rn-vis-assist-dot {
flex: none;
width: 7px;
height: 7px;
border-radius: 50%;
}
.rn-vis-assist-dot-sight {
background: #f59e0b;
}
.rn-vis-assist-dot-culture {
background: #a78bfa;
}
.rn-vis-assist-dot-view {
background: #34d399;
}
.rn-vis-assist-name {
font-weight: 600;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.rn-vis-assist-apply {
position: absolute;
top: 8px;
inset-inline-end: 9px;
display: grid;
place-items: center;
width: 20px;
height: 20px;
border-radius: 50%;
background: #22c55e;
color: #ffffff;
animation:
rn-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) 1.7s both,
rn-ring 2.2s ease-out 2s infinite;
}
/* Help on every screen: the help button, and hello in TREK's languages drifting past it. */
.rn-vis-help {
display: flex;
align-items: center;
gap: 12px;
padding: 0 12px;
background:
radial-gradient(70% 120% at 10% 50%, oklch(0.6 0.16 250 / 0.34) 0%, transparent 70%),
linear-gradient(165deg, #1a1f2b 0%, #12151d 100%);
}
.rn-vis-help-q {
position: relative;
flex: none;
display: grid;
place-items: center;
width: 42px;
height: 42px;
border-radius: 50%;
background: #f5f5f7;
color: #101013;
font-size: 24px;
font-weight: 800;
box-shadow:
0 0 0 5px oklch(1 0 0 / 0.08),
0 6px 16px oklch(0 0 0 / 0.5);
}
.rn-vis-help-count {
position: absolute;
top: 12px;
inset-inline-start: 42px;
padding: 1px 6px;
border-radius: 99px;
background: #3b82f6;
color: #ffffff;
font-size: 9.5px;
font-weight: 800;
font-variant-numeric: tabular-nums;
box-shadow: 0 0 0 2px #12151d;
}
/* The rows slide the same way in every language: they are a picture, not text. */
.rn-vis-help-langs {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
gap: 6px;
overflow: hidden;
direction: ltr;
-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
}
.rn-vis-hello-row {
display: flex;
width: max-content;
animation: rn-marquee 34s linear infinite;
}
.rn-vis-hello-row-reverse {
animation-direction: reverse;
animation-duration: 40s;
}
.rn-vis-hello {
flex: none;
margin-inline-end: 5px;
padding: 3px 8px;
border-radius: 99px;
background: oklch(1 0 0 / 0.09);
border: 1px solid oklch(1 0 0 / 0.13);
font-size: 10px;
font-weight: 600;
white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
.rn-vis-tours-trail,
.rn-vis-tours-flag,
.rn-vis-tours-kind,
.rn-vis-sticker,
.rn-vis-assist-typing i,
.rn-vis-assist-row,
.rn-vis-assist-apply,
.rn-vis-hello-row {
animation: none;
}
.rn-vis-tours-trail {
stroke-dashoffset: 0;
}
.rn-vis-tours-walker {
display: none;
}
.rn-vis-sticker {
transform: rotate(8deg);
}
}
[data-reduce-motion='true'] .rn-vis-tours-trail,
[data-reduce-motion='true'] .rn-vis-tours-flag,
[data-reduce-motion='true'] .rn-vis-tours-kind,
[data-reduce-motion='true'] .rn-vis-sticker,
[data-reduce-motion='true'] .rn-vis-assist-typing i,
[data-reduce-motion='true'] .rn-vis-assist-row,
[data-reduce-motion='true'] .rn-vis-assist-apply,
[data-reduce-motion='true'] .rn-vis-hello-row {
animation: none;
}
[data-reduce-motion='true'] .rn-vis-tours-trail {
stroke-dashoffset: 0;
}
[data-reduce-motion='true'] .rn-vis-tours-walker {
display: none;
}
[data-reduce-motion='true'] .rn-vis-sticker {
transform: rotate(8deg);
}