@sarimarcus/content-sites-tourism 0.65.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,13 @@
|
|
|
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
|
+
|
|
5
12
|
## 0.65.0 (2026-11-12)
|
|
6
13
|
|
|
7
14
|
Additive.
|
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
|
}
|
|
@@ -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
|
@@ -285,7 +285,7 @@
|
|
|
285
285
|
.hp .hp-plan { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
|
|
286
286
|
.hp .hp-feed { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
|
|
287
287
|
.hp .hp-quarters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
|
|
288
|
-
.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
289
|
.hp .hp-food__fig { position: sticky; top: 6rem; }
|
|
290
290
|
.hp .hp-dishes { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
|
|
291
291
|
.hp .hp-out { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
@@ -314,6 +314,7 @@
|
|
|
314
314
|
}
|
|
315
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; }
|
|
316
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); }
|
|
317
318
|
}
|
|
318
319
|
|
|
319
320
|
/* small screens */
|
|
@@ -99,7 +99,8 @@ export interface TourismHomeModel {
|
|
|
99
99
|
/** `href` links the caption to the featured dish. */
|
|
100
100
|
feature: { image?: ImageMetadata; alt: string; caption: string; href?: string };
|
|
101
101
|
dishes: HomeDish[];
|
|
102
|
-
wheres
|
|
102
|
+
wheres?: { heading: string; /** Each an HTML string. */ items: string[] };
|
|
103
|
+
more?: HomeLink;
|
|
103
104
|
};
|
|
104
105
|
stay: HomeHead & {
|
|
105
106
|
carouselAriaLabel: string;
|