@sarimarcus/content-sites-tourism 0.67.0 → 0.69.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,31 @@
|
|
|
2
2
|
|
|
3
3
|
All packages in the platform release in lockstep; entries are per release version.
|
|
4
4
|
|
|
5
|
+
## 0.69.0 (2026-11-13)
|
|
6
|
+
|
|
7
|
+
Additive (SLA-4111).
|
|
8
|
+
|
|
9
|
+
- `TourismItinerariesHub`: `arrivals`, `trips` (with its map), `plan` and `faq` become optional, as do `lead.also`, `lead.checked`/`checkedLabel`, `lead.photo.caption` and `HubItinerary.image`; an omitted section, line or image renders nothing. New named slots: `toc`, `tips`, `faq` (replaces the model FAQ) and `after-faq`, each wrapped in a package band only when it renders content, and raw `after-lead`, `after-arrivals`, `after-trips`, `after-routes`, `after-plan` for a site's own sections. Output without slots is unchanged (render-diff case `tests/fixtures/render-diff/tourism-itineraries-hub.json`).
|
|
10
|
+
|
|
11
|
+
### Intended output changes
|
|
12
|
+
|
|
13
|
+
- `turism-cordoba-en=html:itineraries.html` — the template's scoped stylesheet gains the `.itn-toc` padding rule; the markup is byte-identical.
|
|
14
|
+
|
|
15
|
+
## 0.68.0 (2026-11-13)
|
|
16
|
+
|
|
17
|
+
Additive (SLA-4105).
|
|
18
|
+
|
|
19
|
+
- New `TourismItinerariesHub` template (with `TourismItinerariesModel`, `HubItinerary` types) on its own subpath, `@sarimarcus/content-sites-tourism/templates/itineraries`, so its scoped styles load only on the page that renders it, never through the `templates` barrel. It renders the itineraries hub that Córdoba shipped in SLA-4104, with one named slot per tour block.
|
|
20
|
+
- Codemod `scripts/platform/migrations/tourism-itineraries-hub.mjs` moves a site's `src/pages/itineraries.astro` onto the template (Córdoba).
|
|
21
|
+
|
|
22
|
+
### Breaking
|
|
23
|
+
|
|
24
|
+
- Córdoba's `src/pages/itineraries.astro` moves onto `TourismItinerariesHub`: after `pin-bump.mjs` and `rewrite-imports.mjs --delete-local`, run `scripts/platform/migrations/tourism-itineraries-hub.mjs --site-root=<site>` (a no-op on sites without that page) (SLA-4105).
|
|
25
|
+
|
|
26
|
+
### Intended output changes
|
|
27
|
+
|
|
28
|
+
- `turism-cordoba-en=html:itineraries.html` — the page renders from the package template; markup reorganised, content preserved (codemod assertions plus browser checks at 375/768/1440px).
|
|
29
|
+
|
|
5
30
|
## 0.67.0 (2026-11-12)
|
|
6
31
|
|
|
7
32
|
Additive (SLA-4074).
|
package/README.md
CHANGED
|
@@ -15,5 +15,13 @@ strip, Itineraries, Events and the mobile accordion) on the ui navigation shells
|
|
|
15
15
|
passes every link, label and count as props (`TourismNavigationProps`) and its logo through the `logo` slot, so the
|
|
16
16
|
hrefs stay in the site where the link gate reads them.
|
|
17
17
|
|
|
18
|
+
`TourismItinerariesHub` (`templates/itineraries`) renders the itinerary hub from a resolved
|
|
19
|
+
`TourismItinerariesModel`: hero and byline, stays, arrival fare table, day trips, regional routes,
|
|
20
|
+
month planning and FAQ. The route imports `home.css`, keeps Layout, schema and breadcrumbs,
|
|
21
|
+
and resolves every label, href, date and image from its itinerary registry. The `map` slot
|
|
22
|
+
holds the site map; `tour-disclosure` and each `plan.tours.items[].slot` hold the site's
|
|
23
|
+
affiliate adapters. Tour links use an always-static `CardCarousel`. Regional route lead and
|
|
24
|
+
tours are optional. The template owns the `.itn-*` styles.
|
|
25
|
+
|
|
18
26
|
Depends on `@sarimarcus/content-sites-core` and `@sarimarcus/content-sites-ui` (exact lockstep peers).
|
|
19
27
|
Nothing may depend on it. Sites import `@sarimarcus/content-sites-tourism/tailwind.css` the same way as ui's.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sarimarcus/content-sites-tourism",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.69.0",
|
|
4
4
|
"description": "City-tourism vertical: city-entity components, pages templates and utilities for the tourism sites.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"./cards": "./src/cards/index.ts",
|
|
30
30
|
"./sections": "./src/sections/index.ts",
|
|
31
31
|
"./templates": "./src/templates/index.ts",
|
|
32
|
+
"./templates/itineraries": "./src/templates/itineraries.ts",
|
|
32
33
|
"./schema": "./src/schema/index.ts",
|
|
33
34
|
"./neighborhoods": "./src/templates/neighborhoods.ts",
|
|
34
35
|
"./llms": "./src/llms/index.ts",
|
|
@@ -38,7 +39,7 @@
|
|
|
38
39
|
"peerDependencies": {
|
|
39
40
|
"astro": "^7.0.6",
|
|
40
41
|
"tailwindcss": "^4.1.18",
|
|
41
|
-
"@sarimarcus/content-sites-core": "0.
|
|
42
|
-
"@sarimarcus/content-sites-ui": "0.
|
|
42
|
+
"@sarimarcus/content-sites-core": "0.69.0",
|
|
43
|
+
"@sarimarcus/content-sites-ui": "0.69.0"
|
|
43
44
|
}
|
|
44
45
|
}
|
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
---
|
|
2
|
+
import { ResponsiveImage } from '@sarimarcus/content-sites-ui/primitives';
|
|
3
|
+
import { CardCarousel } from '@sarimarcus/content-sites-ui/composed';
|
|
4
|
+
import { Container } from '@sarimarcus/content-sites-ui/layout';
|
|
5
|
+
import Mark from '../sections/Mark.astro';
|
|
6
|
+
import type { TourismItinerariesModel } from './tourismItinerariesModel';
|
|
7
|
+
|
|
8
|
+
interface Props { model: TourismItinerariesModel }
|
|
9
|
+
const { model } = Astro.props;
|
|
10
|
+
const { lead, stays, arrivals, trips, routes, plan, faq } = model;
|
|
11
|
+
const routeLead = routes.lead;
|
|
12
|
+
const tourLinks = plan?.tours ? await Promise.all(plan.tours.items.map((t) => Astro.slots.render(t.slot))) : [];
|
|
13
|
+
const markKinds = [...new Set((plan?.months ?? []).flatMap((m) => m.mark ? [m.mark] : []))];
|
|
14
|
+
const showDays = (i: { days?: string; name: string }) => i.days && !i.name.includes(i.days);
|
|
15
|
+
const slotHtml = async (name: string) => (Astro.slots.has(name) ? (await Astro.slots.render(name)).trim() : '');
|
|
16
|
+
const [toc, tips, faqHtml, afterFaq] = await Promise.all(['toc', 'tips', 'faq', 'after-faq'].map(slotHtml));
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
<div data-pagefind-ignore>
|
|
20
|
+
<main class="hp hp--thumbs itn">
|
|
21
|
+
|
|
22
|
+
<section class="hp-lead itn-lead" aria-labelledby="itn-h1">
|
|
23
|
+
<Container>
|
|
24
|
+
<div class="hp-lead__top" data-track-zone="hero">
|
|
25
|
+
<div>
|
|
26
|
+
<h1 id="itn-h1">{lead.heading}</h1>
|
|
27
|
+
<p class="hp-lead__stand">{lead.standfirst}</p>
|
|
28
|
+
{lead.also && <p class="itn-also" set:html={lead.also} />}
|
|
29
|
+
<p class="hp-lead__links">{lead.links.map((g) => <a href={g.href}>{g.label}</a>)}</p>
|
|
30
|
+
<nav class="hp-jump" aria-label={lead.jumpLabel}>
|
|
31
|
+
<ul role="list">
|
|
32
|
+
{lead.links.map((g) => <li><a href={g.href}>{g.label}</a></li>)}
|
|
33
|
+
</ul>
|
|
34
|
+
</nav>
|
|
35
|
+
<p class="hp-meta itn-byline">{lead.byLabel} <a href={lead.author.href}>{lead.author.label}</a> · {lead.updatedLabel} <time datetime={lead.updated.datetime}>{lead.updated.label}</time>{lead.checked && <> · {lead.checkedLabel} <time datetime={lead.checked.datetime}>{lead.checked.label}</time></>}</p>
|
|
36
|
+
</div>
|
|
37
|
+
<figure class="hp-lead__photo">
|
|
38
|
+
<div>
|
|
39
|
+
<ResponsiveImage src={lead.photo.image} alt={lead.photo.alt} sizes="(min-width: 72rem) 760px, (min-width: 52rem) 64vw, 112vw" loading="eager" fetchpriority="high" />
|
|
40
|
+
</div>
|
|
41
|
+
{lead.photo.caption && <figcaption>{lead.photo.caption}</figcaption>}
|
|
42
|
+
</figure>
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
<section class="hp-ess" id="stays" aria-labelledby="stays-h" data-track-zone="stays">
|
|
46
|
+
<div class="hp-ess__head">
|
|
47
|
+
<h2 id="stays-h">{stays.heading}</h2>
|
|
48
|
+
<p class="hp-meta">{stays.intro}</p>
|
|
49
|
+
</div>
|
|
50
|
+
<ol role="list" class="hp-rank itn-stay">
|
|
51
|
+
{stays.items.map((s) => (
|
|
52
|
+
<li>
|
|
53
|
+
{s.image && <span class="hp-rank__thumb"><ResponsiveImage src={s.image} alt="" sizes="(min-width: 52rem) 256px, 192px" loading="lazy" /></span>}
|
|
54
|
+
<div class="hp-rank__body">
|
|
55
|
+
<h3><a href={s.href}>{s.name}</a></h3>
|
|
56
|
+
{s.text && <p class="hp-rank__why">{s.text}</p>}
|
|
57
|
+
</div>
|
|
58
|
+
<p class="hp-rank__fact">{showDays(s) && <span class="itn-len">{s.days}</span>}{s.budget}</p>
|
|
59
|
+
</li>
|
|
60
|
+
))}
|
|
61
|
+
</ol>
|
|
62
|
+
</section>
|
|
63
|
+
</Container>
|
|
64
|
+
</section>{toc && <div class="itn-toc"><Container><Fragment set:html={toc} /></Container></div>}<slot name="after-lead" />
|
|
65
|
+
{arrivals && (
|
|
66
|
+
<section class="hp-band hp-band--muted" id="getting-here" aria-labelledby="arrive-h" data-track-zone="getting-here">
|
|
67
|
+
<Container>
|
|
68
|
+
<div class="hp-head">
|
|
69
|
+
<h2 id="arrive-h">{arrivals.heading}</h2>
|
|
70
|
+
<p>{arrivals.intro}</p>
|
|
71
|
+
</div>
|
|
72
|
+
<table class="hp-cal itn-table" style={`--itn-from-label: ${JSON.stringify(arrivals.fromLabel)}`}>
|
|
73
|
+
<caption>{arrivals.caption}</caption>
|
|
74
|
+
<thead>
|
|
75
|
+
<tr><th scope="col">{arrivals.columns.route}</th><th scope="col">{arrivals.columns.journey}</th><th scope="col">{arrivals.columns.mode}</th><th scope="col">{arrivals.columns.fare}</th></tr>
|
|
76
|
+
</thead>
|
|
77
|
+
<tbody>
|
|
78
|
+
{arrivals.items.map((a) => (
|
|
79
|
+
<tr>
|
|
80
|
+
<th scope="row">
|
|
81
|
+
<span class="hp-cal__ev">
|
|
82
|
+
{a.image && <span class="hp-cal__thumb"><ResponsiveImage src={a.image} alt="" sizes="(min-width: 40rem) 96px, 152px" loading="lazy" /></span>}
|
|
83
|
+
<span class="hp-cal__name"><a href={a.href}>{a.name}</a></span>
|
|
84
|
+
</span>
|
|
85
|
+
</th>
|
|
86
|
+
<td class="hp-when">{a.journey?.duration}</td>
|
|
87
|
+
<td class="hp-where">{a.journey?.mode}{a.journey?.perDay && <>, {a.journey.perDay} {arrivals.perDaySuffix}</>}</td>
|
|
88
|
+
<td class="hp-entry">{a.journey?.fromPrice ?? arrivals.missingFare}</td>
|
|
89
|
+
</tr>
|
|
90
|
+
))}
|
|
91
|
+
</tbody>
|
|
92
|
+
</table>
|
|
93
|
+
</Container>
|
|
94
|
+
</section>
|
|
95
|
+
)}<slot name="after-arrivals" />
|
|
96
|
+
{trips && (
|
|
97
|
+
<section class="hp-band" id="day-trips" aria-labelledby="trips-h" data-track-zone="day-trips">
|
|
98
|
+
<Container>
|
|
99
|
+
<div class="hp-head">
|
|
100
|
+
<h2 id="trips-h">{trips.heading}</h2>
|
|
101
|
+
<p>{trips.intro}</p>
|
|
102
|
+
</div>
|
|
103
|
+
<div class="itn-split">
|
|
104
|
+
<ol role="list" class="hp-trips">
|
|
105
|
+
{trips.items.map((t, i) => (
|
|
106
|
+
<li>
|
|
107
|
+
{t.image && <div class="hp-img"><ResponsiveImage src={t.image} alt="" sizes="160px" loading="lazy" /></div>}
|
|
108
|
+
<h3><span class="itn-n" aria-hidden="true">{i + 1}</span><a class="hp-quiet" href={t.href}>{t.name}</a></h3>
|
|
109
|
+
{t.text && <p>{t.text}</p>}
|
|
110
|
+
<span class="hp-meta">{t.journeyMeta}</span>
|
|
111
|
+
</li>
|
|
112
|
+
))}
|
|
113
|
+
</ol>
|
|
114
|
+
<div class="itn-map" role="region" aria-label={trips.mapLabel}>
|
|
115
|
+
<slot name="map" />
|
|
116
|
+
</div>
|
|
117
|
+
</div>
|
|
118
|
+
</Container>
|
|
119
|
+
</section>
|
|
120
|
+
)}<slot name="after-trips" />
|
|
121
|
+
|
|
122
|
+
<section class="hp-band hp-band--muted" id={routes.id} aria-labelledby={`${routes.id}-h`} data-track-zone={routes.trackZone}>
|
|
123
|
+
<Container>
|
|
124
|
+
<div class="hp-head">
|
|
125
|
+
<h2 id={`${routes.id}-h`}>{routes.heading}</h2>
|
|
126
|
+
<p>{routes.intro}</p>
|
|
127
|
+
</div>
|
|
128
|
+
<div class="hp-feed">
|
|
129
|
+
{routeLead && <article class="hp-feed__lead">
|
|
130
|
+
{routeLead.image && <div class="hp-img"><ResponsiveImage src={routeLead.image} alt={routeLead.imageAlt} sizes="(min-width: 72rem) 760px, (min-width: 52rem) 58vw, 100vw" loading="lazy" /></div>}
|
|
131
|
+
<h3><a href={routeLead.href}>{routeLead.name}</a></h3>
|
|
132
|
+
{routeLead.text && <p class="hp-dek">{routeLead.text}</p>}
|
|
133
|
+
{showDays(routeLead) && <p class="hp-meta">{routeLead.days}</p>}
|
|
134
|
+
</article>}
|
|
135
|
+
<ul role="list" class="hp-feed__list">
|
|
136
|
+
{routes.items.map((r) => (
|
|
137
|
+
<li>
|
|
138
|
+
<div>
|
|
139
|
+
<h3><a href={r.href}>{r.name}</a></h3>
|
|
140
|
+
{r.text && <p>{r.text}</p>}
|
|
141
|
+
{showDays(r) && <p class="hp-meta">{r.days}</p>}
|
|
142
|
+
</div>
|
|
143
|
+
{r.image && <div class="hp-thumb"><ResponsiveImage src={r.image} alt="" sizes="176px" loading="lazy" /></div>}
|
|
144
|
+
</li>
|
|
145
|
+
))}
|
|
146
|
+
</ul>
|
|
147
|
+
</div>
|
|
148
|
+
</Container>
|
|
149
|
+
</section><slot name="after-routes" />
|
|
150
|
+
{plan && (
|
|
151
|
+
<section class="hp-band" id="when" aria-labelledby="plan-h" data-track-zone="plan-your-visit">
|
|
152
|
+
<Container>
|
|
153
|
+
<div class="hp-head">
|
|
154
|
+
<h2 id="plan-h">{plan.heading}</h2>
|
|
155
|
+
</div>
|
|
156
|
+
<div class="hp-plan">
|
|
157
|
+
<div class="hp-plan__main">
|
|
158
|
+
<div class="hp-plan__when">
|
|
159
|
+
<h3>{plan.monthsHeading}</h3>
|
|
160
|
+
<ol role="list" class="hp-months" aria-label={plan.monthsHeading}>
|
|
161
|
+
{plan.months.map((mo) => (
|
|
162
|
+
<li class:list={[{ 'is-peak': mo.peak }]}><a class="hp-quiet" href={mo.href} aria-label={mo.ariaLabel}>{mo.label}{mo.mark && <Mark kind={mo.mark} label={plan.marks[mo.mark]} decorative />}</a></li>
|
|
163
|
+
))}
|
|
164
|
+
</ol>
|
|
165
|
+
<ul role="list" class="hp-key" aria-label={plan.keyLabel}>
|
|
166
|
+
{markKinds.map((k) => <li><Mark kind={k} decorative />{plan.marks[k]}</li>)}
|
|
167
|
+
</ul>
|
|
168
|
+
<p set:html={plan.note} />
|
|
169
|
+
</div>
|
|
170
|
+
</div>
|
|
171
|
+
{plan.tours && plan.tours.items.length > 0 && (
|
|
172
|
+
<aside class="hp-tours" aria-labelledby="tours-h" data-track-zone="activities">
|
|
173
|
+
<h3 id="tours-h">{plan.tours.heading}</h3>
|
|
174
|
+
<slot name="tour-disclosure" />
|
|
175
|
+
<CardCarousel staticFrom="base" ariaLabel={plan.tours.heading} trackClass="itn-tours">
|
|
176
|
+
{plan.tours.items.map((t, i) => (
|
|
177
|
+
<div>
|
|
178
|
+
<Fragment set:html={tourLinks[i]} />
|
|
179
|
+
<span class="hp-meta">{t.meta}</span>
|
|
180
|
+
</div>
|
|
181
|
+
))}
|
|
182
|
+
</CardCarousel>
|
|
183
|
+
<a class="hp-more" href={plan.tours.more.href}>{plan.tours.more.label}</a>
|
|
184
|
+
</aside>
|
|
185
|
+
)}
|
|
186
|
+
</div>
|
|
187
|
+
</Container>
|
|
188
|
+
</section>
|
|
189
|
+
)}<slot name="after-plan" />
|
|
190
|
+
{tips && <section class="hp-band" id="insider-tips" data-track-zone="insider-tips"><Container><Fragment set:html={tips} /></Container></section>}{faqHtml ? <section class="hp-band hp-band--muted" id="faq" data-track-zone="faq"><Container><Fragment set:html={faqHtml} /></Container></section> : faq && (
|
|
191
|
+
<section class="hp-band hp-band--muted" aria-labelledby="qa-h" data-track-zone="faq">
|
|
192
|
+
<Container>
|
|
193
|
+
<div class="hp-head">
|
|
194
|
+
<h2 id="qa-h">{faq.heading}</h2>
|
|
195
|
+
</div>
|
|
196
|
+
<dl class="hp-qa">
|
|
197
|
+
{faq.items.map((q) => (
|
|
198
|
+
<div>
|
|
199
|
+
<dt>{q.question}</dt>
|
|
200
|
+
<dd set:html={q.answer} />
|
|
201
|
+
</div>
|
|
202
|
+
))}
|
|
203
|
+
</dl>
|
|
204
|
+
</Container>
|
|
205
|
+
</section>
|
|
206
|
+
)}{afterFaq && <section class="hp-band" data-track-zone="sources"><Container><Fragment set:html={afterFaq} /></Container></section>}
|
|
207
|
+
</main>
|
|
208
|
+
</div>
|
|
209
|
+
|
|
210
|
+
<style>
|
|
211
|
+
.hp.itn .itn-lead { padding-top: clamp(2rem, 5vw, 3.5rem); }
|
|
212
|
+
.hp .itn-also { margin-top: 0.75rem; font-size: 0.9375rem; color: var(--muted-foreground); }
|
|
213
|
+
.hp .itn-byline { margin-top: 1.25rem; }
|
|
214
|
+
.hp .itn-toc { padding-block: 1.5rem; }
|
|
215
|
+
.hp .hp-plan__when .hp-key { margin-bottom: 1rem; }
|
|
216
|
+
.hp :global(.itn-tours) > div { padding-block: 0.75rem; border-top: var(--hp-rule); display: grid; gap: 0.125rem; }
|
|
217
|
+
.hp :global(.itn-tours a) { font-weight: 600; }
|
|
218
|
+
|
|
219
|
+
.hp .itn-stay > li { grid-template-columns: 6rem minmax(0, 1fr); gap: 0 1rem; }
|
|
220
|
+
.hp .itn-stay .hp-rank__thumb { grid-column: 1; grid-row: 1 / span 2; width: 6rem; height: 4.5rem; }
|
|
221
|
+
.hp .itn-stay .hp-rank__body { grid-column: 2; }
|
|
222
|
+
.hp .itn-stay .hp-rank__fact { grid-column: 2; grid-row: 2; color: var(--foreground); font-variant-numeric: tabular-nums; }
|
|
223
|
+
.hp .itn-len { display: block; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.2; color: var(--primary-strong); }
|
|
224
|
+
|
|
225
|
+
.hp .itn-table td.hp-entry::before { content: none; }
|
|
226
|
+
.hp .itn-table td.hp-entry { white-space: nowrap; font-variant-numeric: tabular-nums; }
|
|
227
|
+
|
|
228
|
+
.hp .itn-split { display: grid; gap: 2rem; }
|
|
229
|
+
.hp .itn-n { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; margin-right: 0.5rem; border-radius: 50%; background: var(--primary-strong); color: var(--background); font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; vertical-align: 0.15em; }
|
|
230
|
+
.hp .hp-trips .hp-meta { display: block; margin-top: 0.375rem; }
|
|
231
|
+
.hp .hp-trips > li > .hp-img { display: none; }
|
|
232
|
+
|
|
233
|
+
@media (max-width: 39.99rem) {
|
|
234
|
+
.hp .itn-table td.hp-entry::before { content: var(--itn-from-label); color: var(--muted-foreground); }
|
|
235
|
+
.hp .itn-table caption { display: block; padding: 0 0 1rem; background: var(--muted); }
|
|
236
|
+
.hp .itn-table .hp-cal__name { grid-row: 1; }
|
|
237
|
+
.hp .itn-table td.hp-when { grid-row: 2; }
|
|
238
|
+
}
|
|
239
|
+
@media (min-width: 40rem) {
|
|
240
|
+
.hp .hp-trips > li > .hp-img { display: block; }
|
|
241
|
+
.hp .itn-table td.hp-entry, .hp .itn-table thead th:last-child { text-align: right; }
|
|
242
|
+
}
|
|
243
|
+
@media (min-width: 52rem) {
|
|
244
|
+
.hp .itn-stay > li { grid-template-columns: 8rem minmax(0, 1fr) 14rem; gap: 0 1.5rem; }
|
|
245
|
+
.hp .itn-stay .hp-rank__thumb { grid-row: 1; width: 8rem; height: 6rem; }
|
|
246
|
+
.hp .itn-stay .hp-rank__fact { grid-column: 3; grid-row: 1; text-align: right; }
|
|
247
|
+
.hp .itn-split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
|
|
248
|
+
.hp .itn-map { position: sticky; top: 6rem; }
|
|
249
|
+
}
|
|
250
|
+
</style>
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { ImageMetadata } from 'astro';
|
|
2
|
+
import type { HomeHead, HomeLink, HomeMonth } from './tourismHomeModel';
|
|
3
|
+
import type { MarkLabels } from '../sections/marks';
|
|
4
|
+
|
|
5
|
+
export interface HubItinerary {
|
|
6
|
+
name: string;
|
|
7
|
+
href: string;
|
|
8
|
+
image?: ImageMetadata;
|
|
9
|
+
imageAlt: string;
|
|
10
|
+
text?: string;
|
|
11
|
+
days?: string;
|
|
12
|
+
budget?: string;
|
|
13
|
+
journey?: { mode: string; duration: string; fromPrice?: string; perDay?: string };
|
|
14
|
+
journeyMeta?: string;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/** Optional sections render nothing when omitted. Named slots: `toc`, `after-lead`, `after-arrivals`, `after-trips`, `after-routes`, `after-plan`, `tips`, `faq` (replaces the model FAQ), `after-faq`. */
|
|
18
|
+
export interface TourismItinerariesModel {
|
|
19
|
+
lead: {
|
|
20
|
+
heading: string;
|
|
21
|
+
standfirst: string;
|
|
22
|
+
/** HTML. */
|
|
23
|
+
also?: string;
|
|
24
|
+
links: HomeLink[];
|
|
25
|
+
jumpLabel: string;
|
|
26
|
+
photo: { image: ImageMetadata; alt: string; caption?: string };
|
|
27
|
+
author: HomeLink;
|
|
28
|
+
byLabel: string;
|
|
29
|
+
updatedLabel: string;
|
|
30
|
+
updated: { datetime: string; label: string };
|
|
31
|
+
checkedLabel?: string;
|
|
32
|
+
checked?: { datetime: string; label: string };
|
|
33
|
+
};
|
|
34
|
+
stays: HomeHead & { items: HubItinerary[] };
|
|
35
|
+
arrivals?: HomeHead & {
|
|
36
|
+
caption: string;
|
|
37
|
+
columns: { route: string; journey: string; mode: string; fare: string };
|
|
38
|
+
perDaySuffix: string;
|
|
39
|
+
missingFare: string;
|
|
40
|
+
fromLabel: string;
|
|
41
|
+
items: HubItinerary[];
|
|
42
|
+
};
|
|
43
|
+
trips?: HomeHead & { mapLabel: string; items: HubItinerary[] };
|
|
44
|
+
routes: HomeHead & { id: string; trackZone: string; lead?: HubItinerary; items: HubItinerary[] };
|
|
45
|
+
plan?: {
|
|
46
|
+
heading: string;
|
|
47
|
+
monthsHeading: string;
|
|
48
|
+
months: HomeMonth[];
|
|
49
|
+
marks: MarkLabels;
|
|
50
|
+
keyLabel: string;
|
|
51
|
+
/** HTML. */
|
|
52
|
+
note: string;
|
|
53
|
+
/** Each named slot contains the site's affiliate link, followed by its meta. */
|
|
54
|
+
tours?: { heading: string; items: { slot: string; meta: string }[]; more: HomeLink };
|
|
55
|
+
};
|
|
56
|
+
/** Omit when the page fills the `faq` slot. */
|
|
57
|
+
faq?: { heading: string; items: { question: string; /** HTML. */ answer: string }[] };
|
|
58
|
+
}
|