@sarimarcus/content-sites-tourism 0.64.0 → 0.66.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,20 @@
|
|
|
2
2
|
|
|
3
3
|
All packages in the platform release in lockstep; entries are per release version.
|
|
4
4
|
|
|
5
|
+
## 0.66.0 (2026-11-12)
|
|
6
|
+
|
|
7
|
+
Additive.
|
|
8
|
+
|
|
9
|
+
- `TourismHomePage` food band: at desktop width (52rem+) the dish list takes 8 of 12 columns (was 7) and the feature figure 4 (was 5); dish thumbnails grow from 5rem to 7rem (image `sizes` 224px).
|
|
10
|
+
- `food.more` (`HomeLink`, optional) renders an `hp-more` link under the dishes, like the other sections; `food.wheres` is now optional.
|
|
11
|
+
|
|
12
|
+
## 0.65.0 (2026-11-12)
|
|
13
|
+
|
|
14
|
+
Additive.
|
|
15
|
+
|
|
16
|
+
- `TourismHomePage` food band: at desktop width the feature figure stays in view (sticky) beside the dish list, and each dish line is clamped to 3 lines from tablet width up.
|
|
17
|
+
- New optional `food.feature.href` on `TourismHomeModel`: links the feature caption to its dish. Left out, the caption stays plain text.
|
|
18
|
+
|
|
5
19
|
## 0.64.0 (2026-11-12)
|
|
6
20
|
|
|
7
21
|
Additive (SLA-4070).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sarimarcus/content-sites-tourism",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.66.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",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"astro": "^7.0.6",
|
|
40
40
|
"tailwindcss": "^4.1.18",
|
|
41
|
-
"@sarimarcus/content-sites-core": "0.
|
|
42
|
-
"@sarimarcus/content-sites-ui": "0.
|
|
41
|
+
"@sarimarcus/content-sites-core": "0.66.0",
|
|
42
|
+
"@sarimarcus/content-sites-ui": "0.66.0"
|
|
43
43
|
}
|
|
44
44
|
}
|
|
@@ -346,7 +346,7 @@ const showEntry = Boolean(events?.columns.entry);
|
|
|
346
346
|
<div class="hp-food">
|
|
347
347
|
<figure class="hp-food__fig">
|
|
348
348
|
<div>{food.feature.image && <ResponsiveImage src={food.feature.image} alt={food.feature.alt} sizes="(min-width: 52rem) 640px, 141vw" loading="lazy" />}</div>
|
|
349
|
-
<figcaption class="hp-soft">{food.feature.caption}</figcaption>
|
|
349
|
+
<figcaption class="hp-soft">{food.feature.href ? <a href={food.feature.href}>{food.feature.caption}</a> : food.feature.caption}</figcaption>
|
|
350
350
|
</figure>
|
|
351
351
|
<div>
|
|
352
352
|
<div class="hp-head">
|
|
@@ -356,17 +356,20 @@ const showEntry = Boolean(events?.columns.entry);
|
|
|
356
356
|
<CardCarousel staticFrom="sm" ariaLabel={food.carouselAriaLabel} trackClass="hp-dishes hp-swipe" locale={locale}>
|
|
357
357
|
{food.dishes.map((d) => (
|
|
358
358
|
<div>
|
|
359
|
-
<div class="hp-img hp-m-only">{d.image && <ResponsiveImage src={d.image} alt="" sizes="(min-width: 40rem)
|
|
359
|
+
<div class="hp-img hp-m-only">{d.image && <ResponsiveImage src={d.image} alt="" sizes="(min-width: 40rem) 224px, 82vw" loading="lazy" />}</div>
|
|
360
360
|
<a href={d.href}>{d.name}</a><p class="hp-soft">{d.line}</p>
|
|
361
361
|
</div>
|
|
362
362
|
))}
|
|
363
363
|
</CardCarousel>
|
|
364
|
-
<
|
|
365
|
-
|
|
366
|
-
<
|
|
367
|
-
{food.wheres.
|
|
368
|
-
|
|
369
|
-
|
|
364
|
+
{food.more && <a class="hp-more" href={food.more.href}>{food.more.label}</a>}
|
|
365
|
+
{food.wheres && (
|
|
366
|
+
<div class="hp-wheres">
|
|
367
|
+
<h3>{food.wheres.heading}</h3>
|
|
368
|
+
<ul>
|
|
369
|
+
{food.wheres.items.map((html, i) => <>{i > 0 && ' '}<li set:html={html} /></>)}
|
|
370
|
+
</ul>
|
|
371
|
+
</div>
|
|
372
|
+
)}
|
|
370
373
|
</div>
|
|
371
374
|
</div>
|
|
372
375
|
</Container>
|
package/src/templates/home.css
CHANGED
|
@@ -268,6 +268,7 @@
|
|
|
268
268
|
.hp .hp-itins { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
|
|
269
269
|
.hp .hp-mons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; }
|
|
270
270
|
.hp .hp-dishes { display: grid; gap: 0; }
|
|
271
|
+
.hp .hp-dishes > * p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
|
|
271
272
|
.hp .hp-quarters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1.5rem; }
|
|
272
273
|
.hp .hp-feed__list, .hp .hp-walks, .hp .hp-trips, .hp .hp-tours .hp-swipe { display: block; }
|
|
273
274
|
.hp .hp-context ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
|
@@ -284,7 +285,8 @@
|
|
|
284
285
|
.hp .hp-plan { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
|
|
285
286
|
.hp .hp-feed { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
|
|
286
287
|
.hp .hp-quarters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
|
|
287
|
-
.hp .hp-food { grid-template-columns: minmax(0,
|
|
288
|
+
.hp .hp-food { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; }
|
|
289
|
+
.hp .hp-food__fig { position: sticky; top: 6rem; }
|
|
288
290
|
.hp .hp-dishes { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
|
|
289
291
|
.hp .hp-out { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
290
292
|
}
|
|
@@ -312,6 +314,7 @@
|
|
|
312
314
|
}
|
|
313
315
|
.hp.hp--thumbs :is(.hp-tours .hp-swipe, .hp-walks, .hp-trips, .hp-dishes) > *:has(> .hp-img:not(:empty)) > :not(.hp-img) { grid-column: 2; }
|
|
314
316
|
.hp.hp--thumbs .hp-walks .hp-meta { white-space: normal; }
|
|
317
|
+
.hp.hp--thumbs .hp-food .hp-dishes > *:has(> .hp-img:not(:empty)) { grid-template-columns: 7rem minmax(0, 1fr); }
|
|
315
318
|
}
|
|
316
319
|
|
|
317
320
|
/* small screens */
|
|
@@ -96,9 +96,11 @@ export interface TourismHomeModel {
|
|
|
96
96
|
};
|
|
97
97
|
food: HomeHead & {
|
|
98
98
|
carouselAriaLabel: string;
|
|
99
|
-
|
|
99
|
+
/** `href` links the caption to the featured dish. */
|
|
100
|
+
feature: { image?: ImageMetadata; alt: string; caption: string; href?: string };
|
|
100
101
|
dishes: HomeDish[];
|
|
101
|
-
wheres
|
|
102
|
+
wheres?: { heading: string; /** Each an HTML string. */ items: string[] };
|
|
103
|
+
more?: HomeLink;
|
|
102
104
|
};
|
|
103
105
|
stay: HomeHead & {
|
|
104
106
|
carouselAriaLabel: string;
|