ferst-core 0.15.0 → 0.17.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/NOTICE +63 -31
- package/README.md +13 -4
- package/bin/ferst-media.mjs +96 -0
- package/bin/ferst-modules.mjs +17 -2
- package/components/BlockRenderer.astro +131 -129
- package/components/Card.astro +53 -51
- package/components/MembersAccount.astro +370 -0
- package/components/PostCard.astro +138 -136
- package/components/SiteHeader.astro +32 -14
- package/components/blocks/Grid.astro +49 -48
- package/components/blocks/Heading.astro +4 -1
- package/components/islands/BookMonth.tsx +95 -0
- package/components/islands/MembersAccount.tsx +392 -0
- package/components/recipes/Banner.astro +146 -146
- package/components/recipes/Book.astro +1147 -926
- package/components/recipes/FeatureCards.astro +112 -118
- package/components/recipes/Gallery.astro +57 -59
- package/components/recipes/Hero.astro +112 -10
- package/components/recipes/LatestPosts.astro +295 -292
- package/components/recipes/Locations.astro +146 -143
- package/components/recipes/Marquee.astro +75 -75
- package/components/recipes/MediaCards.astro +213 -219
- package/components/recipes/MembersContent.astro +176 -0
- package/components/recipes/Pricing.astro +149 -150
- package/components/recipes/Stats.astro +150 -157
- package/components/recipes/Tiles.astro +342 -296
- package/content/blocks.ts +1091 -1024
- package/content/cookies.ts +14 -0
- package/content/imageSlots.mjs +542 -0
- package/content/recipe-questions.ts +81 -80
- package/content/schemas.ts +13 -11
- package/examples/recipes.ts +5 -0
- package/fonts/OFL.txt +1332 -287
- package/fonts/anton-latin-400-normal.woff2 +0 -0
- package/fonts/bangers-latin-400-normal.woff2 +0 -0
- package/fonts/bebas-neue-latin-400-normal.woff2 +0 -0
- package/fonts/bowlby-one-latin-400-normal.woff2 +0 -0
- package/fonts/fredoka-latin-400-normal.woff2 +0 -0
- package/fonts/fredoka-latin-600-normal.woff2 +0 -0
- package/fonts/fredoka-latin-700-normal.woff2 +0 -0
- package/fonts/knewave-latin-400-normal.woff2 +0 -0
- package/fonts/lora-latin-400-normal.woff2 +0 -0
- package/fonts/lora-latin-600-normal.woff2 +0 -0
- package/fonts/lora-latin-700-normal.woff2 +0 -0
- package/fonts/merriweather-latin-400-normal.woff2 +0 -0
- package/fonts/merriweather-latin-600-normal.woff2 +0 -0
- package/fonts/merriweather-latin-700-normal.woff2 +0 -0
- package/fonts/nunito-latin-400-normal.woff2 +0 -0
- package/fonts/nunito-latin-600-normal.woff2 +0 -0
- package/fonts/nunito-latin-700-normal.woff2 +0 -0
- package/fonts/oswald-latin-400-normal.woff2 +0 -0
- package/fonts/oswald-latin-600-normal.woff2 +0 -0
- package/fonts/oswald-latin-700-normal.woff2 +0 -0
- package/fonts/rubik-dirt-latin-400-normal.woff2 +0 -0
- package/integration.mjs +319 -263
- package/layouts/Base.astro +8 -16
- package/lib/book.ts +416 -378
- package/lib/fonts.ts +130 -0
- package/lib/gridRows.ts +197 -0
- package/lib/image-fields.ts +140 -0
- package/lib/image-size.mjs +108 -73
- package/lib/image-sizes.ts +16 -0
- package/lib/logo-header.ts +46 -0
- package/lib/media-check.mjs +524 -0
- package/lib/members-account.ts +276 -0
- package/lib/members.ts +115 -0
- package/lib/theme-preview.ts +203 -140
- package/lib/themeTokens.ts +235 -220
- package/package.json +80 -71
- package/routes/account.astro +16 -0
- package/routes/cookie-policy.astro +28 -28
- package/styles/fonts.css +239 -76
- package/styles/theme.css +228 -160
- package/lib/gridColumns.ts +0 -22
|
@@ -1,143 +1,146 @@
|
|
|
1
|
-
---
|
|
2
|
-
/**
|
|
3
|
-
* Locations ("Where to find us") — a Level-2 recipe: one or more places, each a
|
|
4
|
-
* neat tile with a consent-gated map on top and its name / address / directions
|
|
5
|
-
* below. Replaces stacking bare map embeds. The map loads once the visitor accepts
|
|
6
|
-
* the site cookie banner (shared consent — no per-tile gate for anyone who
|
|
7
|
-
* accepted); the per-tile "Show map" button is a fallback that grants the same
|
|
8
|
-
* consent. Token-driven, equal-height tiles. https embed URLs only.
|
|
9
|
-
*/
|
|
10
|
-
import Icon from '../Icon.astro';
|
|
11
|
-
import Heading from '../blocks/Heading.astro';
|
|
12
|
-
import { isSafeEmbedUrl } from '../../content/calendar';
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
</
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
.b-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
/*
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
and
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
.b-
|
|
136
|
-
.b-
|
|
137
|
-
.b-
|
|
138
|
-
.b-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
1
|
+
---
|
|
2
|
+
/**
|
|
3
|
+
* Locations ("Where to find us") — a Level-2 recipe: one or more places, each a
|
|
4
|
+
* neat tile with a consent-gated map on top and its name / address / directions
|
|
5
|
+
* below. Replaces stacking bare map embeds. The map loads once the visitor accepts
|
|
6
|
+
* the site cookie banner (shared consent — no per-tile gate for anyone who
|
|
7
|
+
* accepted); the per-tile "Show map" button is a fallback that grants the same
|
|
8
|
+
* consent. Token-driven, equal-height tiles. https embed URLs only.
|
|
9
|
+
*/
|
|
10
|
+
import Icon from '../Icon.astro';
|
|
11
|
+
import Heading from '../blocks/Heading.astro';
|
|
12
|
+
import { isSafeEmbedUrl } from '../../content/calendar';
|
|
13
|
+
import { planGrid } from '../../lib/gridRows';
|
|
14
|
+
|
|
15
|
+
interface Item {
|
|
16
|
+
name: string;
|
|
17
|
+
address?: string;
|
|
18
|
+
embedUrl: string;
|
|
19
|
+
directionsUrl?: string;
|
|
20
|
+
}
|
|
21
|
+
interface Props {
|
|
22
|
+
title?: string;
|
|
23
|
+
intro?: string;
|
|
24
|
+
columns?: 1 | 2;
|
|
25
|
+
provider?: string;
|
|
26
|
+
items?: Item[];
|
|
27
|
+
/** How the ragged last row lays out (lib/gridRows). */
|
|
28
|
+
lastRow?: 'auto' | 'fill' | 'center';
|
|
29
|
+
}
|
|
30
|
+
const { title, intro, columns = 2, provider = 'Google Maps', items = [], lastRow = 'auto' } = Astro.props;
|
|
31
|
+
// Rows planned per screen (lib/gridRows); `data-single` centres a lone place. (A deliberate
|
|
32
|
+
// columns=1 stacks every place.)
|
|
33
|
+
const rows = planGrid(items.length, { columns, item: 'locations', lastRow });
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
<section class="b-locations">
|
|
37
|
+
{(title || intro) && (
|
|
38
|
+
<div class="b-locations__head">
|
|
39
|
+
{title && <Heading text={title} level={2} />}
|
|
40
|
+
{intro && <p class="b-locations__intro">{intro}</p>}
|
|
41
|
+
</div>
|
|
42
|
+
)}
|
|
43
|
+
<div class="b-locations__grid ferst-rows" data-cols={rows.cols} data-single={items.length === 1 ? 'true' : undefined} style={rows.gridStyle}>
|
|
44
|
+
{items.map((item, i) => (
|
|
45
|
+
<article class="b-locations__card ferst-tile ferst-tile--sm" style={rows.itemStyles[i]}>
|
|
46
|
+
<div class="b-locations__map">
|
|
47
|
+
{isSafeEmbedUrl(item.embedUrl) ? (
|
|
48
|
+
<div class="b-loc-map" data-embed-url={item.embedUrl} data-title={`Map — ${item.name}`}>
|
|
49
|
+
<div class="b-loc-map__consent">
|
|
50
|
+
<p class="b-loc-map__text">This map is provided by {provider}.</p>
|
|
51
|
+
<button type="button" class="b-loc-map__load">Show map</button>
|
|
52
|
+
</div>
|
|
53
|
+
<div class="b-loc-map__frame"></div>
|
|
54
|
+
</div>
|
|
55
|
+
) : (
|
|
56
|
+
<div class="b-loc-map__fallback" aria-hidden="true"><Icon name="map-pin" size={30} /></div>
|
|
57
|
+
)}
|
|
58
|
+
</div>
|
|
59
|
+
<div class="b-locations__body">
|
|
60
|
+
<h3 class="b-locations__name">{item.name}</h3>
|
|
61
|
+
{item.address && <p class="b-locations__address">{item.address}</p>}
|
|
62
|
+
{item.directionsUrl && (
|
|
63
|
+
<a class="b-locations__dir" href={item.directionsUrl} target="_blank" rel="noopener">
|
|
64
|
+
Get directions <span aria-hidden="true">→</span>
|
|
65
|
+
</a>
|
|
66
|
+
)}
|
|
67
|
+
</div>
|
|
68
|
+
</article>
|
|
69
|
+
))}
|
|
70
|
+
</div>
|
|
71
|
+
</section>
|
|
72
|
+
|
|
73
|
+
<script>
|
|
74
|
+
// Shared consent-gated embed loader (see lib/embed-consent). Accepting the cookie
|
|
75
|
+
// banner or the footer panel auto-loads every map tile here; the per-tile button
|
|
76
|
+
// is a fallback that grants the same shared consent.
|
|
77
|
+
import { initEmbedConsent, makeEmbedFrame } from '../../lib/embed-consent';
|
|
78
|
+
|
|
79
|
+
initEmbedConsent({
|
|
80
|
+
root: '.b-loc-map',
|
|
81
|
+
frame: '.b-loc-map__frame',
|
|
82
|
+
consent: '.b-loc-map__consent',
|
|
83
|
+
button: '.b-loc-map__load',
|
|
84
|
+
buildFrame: (el, url) =>
|
|
85
|
+
makeEmbedFrame(url, { title: el.dataset.title || 'Map', height: '100%', referrer: true }),
|
|
86
|
+
});
|
|
87
|
+
</script>
|
|
88
|
+
|
|
89
|
+
<style>
|
|
90
|
+
.b-locations {
|
|
91
|
+
display: flex;
|
|
92
|
+
flex-direction: column;
|
|
93
|
+
gap: 1.75rem;
|
|
94
|
+
width: 100%; /* the full content width, whatever its items hold (lib/gridRows) */
|
|
95
|
+
max-width: 72rem;
|
|
96
|
+
margin-inline: auto;
|
|
97
|
+
padding-inline: 1rem;
|
|
98
|
+
}
|
|
99
|
+
.b-locations__head { display: flex; flex-direction: column; gap: 0.6rem; }
|
|
100
|
+
.b-locations__intro { margin: 0; color: var(--muted); max-width: var(--max); }
|
|
101
|
+
.b-locations__grid { display: grid; gap: 1.5rem; }
|
|
102
|
+
/* Rows come from lib/gridRows (the global .ferst-rows rules): even rows where the
|
|
103
|
+
count allows by using fewer columns, else full rows and a tidied last row. */
|
|
104
|
+
/* A solitary location is a centred feature, not a full-width slab. */
|
|
105
|
+
.b-locations__grid[data-single] { max-width: 32rem; margin-inline: auto; }
|
|
106
|
+
.b-locations__card {
|
|
107
|
+
display: flex;
|
|
108
|
+
flex-direction: column;
|
|
109
|
+
/* surface comes from .ferst-tile .ferst-tile--sm (bg/border/radius/shadow-sm) */
|
|
110
|
+
overflow: hidden;
|
|
111
|
+
}
|
|
112
|
+
/* Map region — uniform ratio; the consent card fills it until the iframe loads. */
|
|
113
|
+
.b-locations__map { position: relative; aspect-ratio: 4 / 3; background: var(--bg-section); }
|
|
114
|
+
.b-loc-map, .b-loc-map__frame, .b-loc-map__consent, .b-loc-map__fallback { position: absolute; inset: 0; }
|
|
115
|
+
/* The frame slot sits AFTER the consent card (both inset:0), so while it's empty
|
|
116
|
+
it would paint on top and swallow clicks meant for the "Show map" button. Keep
|
|
117
|
+
an empty slot click-through; once the iframe is injected it's no longer :empty
|
|
118
|
+
and becomes interactive. The consent card is also lifted above it as a belt-
|
|
119
|
+
and-braces guard while it's visible. */
|
|
120
|
+
.b-loc-map__frame:empty { pointer-events: none; }
|
|
121
|
+
.b-loc-map__frame :global(iframe) { display: block; }
|
|
122
|
+
.b-loc-map__consent {
|
|
123
|
+
display: flex; flex-direction: column; align-items: center; justify-content: center;
|
|
124
|
+
gap: 0.75rem; padding: 1.5rem; text-align: center;
|
|
125
|
+
z-index: 1;
|
|
126
|
+
}
|
|
127
|
+
.b-loc-map__consent[hidden] { display: none; }
|
|
128
|
+
.b-loc-map__text { margin: 0; color: var(--muted); font-size: 0.9rem; max-width: 32ch; }
|
|
129
|
+
.b-loc-map__load {
|
|
130
|
+
font: inherit; font-family: var(--font-heading); font-weight: 600; font-size: 0.9rem;
|
|
131
|
+
padding: 0.5rem 1.1rem; border: none; border-radius: var(--radius-sm);
|
|
132
|
+
background: var(--gold); color: var(--on-brand); cursor: pointer;
|
|
133
|
+
transition: filter 0.15s ease;
|
|
134
|
+
}
|
|
135
|
+
.b-loc-map__load:hover { filter: brightness(0.94); }
|
|
136
|
+
.b-loc-map__load:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
|
|
137
|
+
.b-loc-map__fallback { display: flex; align-items: center; justify-content: center; color: var(--muted); }
|
|
138
|
+
.b-locations__body { display: flex; flex-direction: column; gap: 0.4rem; padding: 1.1rem 1.2rem 1.3rem; }
|
|
139
|
+
.b-locations__name { margin: 0; font-size: 1.15rem; }
|
|
140
|
+
.b-locations__address { margin: 0; color: var(--muted); line-height: 1.55; white-space: pre-line; }
|
|
141
|
+
.b-locations__dir {
|
|
142
|
+
margin-top: 0.35rem;
|
|
143
|
+
font-family: var(--font-heading); font-weight: 600; font-size: 0.9rem;
|
|
144
|
+
color: var(--gold);
|
|
145
|
+
}
|
|
146
|
+
</style>
|
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
---
|
|
2
|
-
/** Marquee — a Level-2 recipe: an infinite horizontal scroll of short phrases
|
|
3
|
-
* (a feature strip). Pure-CSS transform loop (GPU-composited); pauses on hover.
|
|
4
|
-
* Under reduced-motion it doesn't move — the phrases wrap and centre statically.
|
|
5
|
-
* The moving track is duplicated for a seamless loop and marked decorative. */
|
|
6
|
-
interface Props {
|
|
7
|
-
items?: string[];
|
|
8
|
-
speed?: 'slow' | 'normal' | 'fast';
|
|
9
|
-
}
|
|
10
|
-
const { items = [], speed = 'normal' } = Astro.props;
|
|
11
|
-
---
|
|
12
|
-
|
|
13
|
-
<div class="b-marquee" data-speed={speed}>
|
|
14
|
-
<div class="b-marquee__track" aria-hidden="true">
|
|
15
|
-
{[...items, ...items].map((item) => (
|
|
16
|
-
<span class="b-marquee__item">{item}</span>
|
|
17
|
-
))}
|
|
18
|
-
</div>
|
|
19
|
-
</div>
|
|
20
|
-
|
|
21
|
-
<style>
|
|
22
|
-
.b-marquee {
|
|
23
|
-
overflow: hidden;
|
|
24
|
-
border-block: 1px solid var(--border);
|
|
25
|
-
padding-block: 0.85rem;
|
|
26
|
-
background: var(--bg-section);
|
|
27
|
-
-webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
|
|
28
|
-
mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
|
|
29
|
-
}
|
|
30
|
-
.b-marquee__track {
|
|
31
|
-
display: flex;
|
|
32
|
-
width: max-content;
|
|
33
|
-
gap: 0;
|
|
34
|
-
animation: b-marquee-scroll linear infinite;
|
|
35
|
-
}
|
|
36
|
-
.b-marquee[data-speed='slow'] .b-marquee__track { animation-duration: 45s; }
|
|
37
|
-
.b-marquee[data-speed='normal'] .b-marquee__track { animation-duration: 30s; }
|
|
38
|
-
.b-marquee[data-speed='fast'] .b-marquee__track { animation-duration: 18s; }
|
|
39
|
-
.b-marquee:hover .b-marquee__track { animation-play-state: paused; }
|
|
40
|
-
|
|
41
|
-
.b-marquee__item {
|
|
42
|
-
display: inline-flex;
|
|
43
|
-
align-items: center;
|
|
44
|
-
padding-inline: 1.75rem;
|
|
45
|
-
font-family: var(--font-heading);
|
|
46
|
-
font-weight: 600;
|
|
47
|
-
font-size: 0.95rem;
|
|
48
|
-
color: var(--fg);
|
|
49
|
-
white-space: nowrap;
|
|
50
|
-
}
|
|
51
|
-
.b-marquee__item::after {
|
|
52
|
-
content: '';
|
|
53
|
-
width: 6px;
|
|
54
|
-
height: 6px;
|
|
55
|
-
margin-left: 3.5rem;
|
|
56
|
-
border-radius: 999px;
|
|
57
|
-
background: var(--gold);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
@keyframes b-marquee-scroll {
|
|
61
|
-
from { transform: translateX(0); }
|
|
62
|
-
to { transform: translateX(-50%); }
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
@media (prefers-reduced-motion: reduce) {
|
|
66
|
-
.b-marquee { -webkit-mask-image: none; mask-image: none; }
|
|
67
|
-
.b-marquee__track {
|
|
68
|
-
animation: none;
|
|
69
|
-
width: auto;
|
|
70
|
-
flex-wrap: wrap;
|
|
71
|
-
justify-content: center;
|
|
72
|
-
gap: 0.25rem 0;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
</style>
|
|
1
|
+
---
|
|
2
|
+
/** Marquee — a Level-2 recipe: an infinite horizontal scroll of short phrases
|
|
3
|
+
* (a feature strip). Pure-CSS transform loop (GPU-composited); pauses on hover.
|
|
4
|
+
* Under reduced-motion it doesn't move — the phrases wrap and centre statically.
|
|
5
|
+
* The moving track is duplicated for a seamless loop and marked decorative. */
|
|
6
|
+
interface Props {
|
|
7
|
+
items?: string[];
|
|
8
|
+
speed?: 'slow' | 'normal' | 'fast';
|
|
9
|
+
}
|
|
10
|
+
const { items = [], speed = 'normal' } = Astro.props;
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
<div class="b-marquee" data-speed={speed}>
|
|
14
|
+
<div class="b-marquee__track" aria-hidden="true" data-display-title>
|
|
15
|
+
{[...items, ...items].map((item) => (
|
|
16
|
+
<span class="b-marquee__item">{item}</span>
|
|
17
|
+
))}
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
|
|
21
|
+
<style>
|
|
22
|
+
.b-marquee {
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
border-block: 1px solid var(--border);
|
|
25
|
+
padding-block: 0.85rem;
|
|
26
|
+
background: var(--bg-section);
|
|
27
|
+
-webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
|
|
28
|
+
mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
|
|
29
|
+
}
|
|
30
|
+
.b-marquee__track {
|
|
31
|
+
display: flex;
|
|
32
|
+
width: max-content;
|
|
33
|
+
gap: 0;
|
|
34
|
+
animation: b-marquee-scroll linear infinite;
|
|
35
|
+
}
|
|
36
|
+
.b-marquee[data-speed='slow'] .b-marquee__track { animation-duration: 45s; }
|
|
37
|
+
.b-marquee[data-speed='normal'] .b-marquee__track { animation-duration: 30s; }
|
|
38
|
+
.b-marquee[data-speed='fast'] .b-marquee__track { animation-duration: 18s; }
|
|
39
|
+
.b-marquee:hover .b-marquee__track { animation-play-state: paused; }
|
|
40
|
+
|
|
41
|
+
.b-marquee__item {
|
|
42
|
+
display: inline-flex;
|
|
43
|
+
align-items: center;
|
|
44
|
+
padding-inline: 1.75rem;
|
|
45
|
+
font-family: var(--font-title, var(--font-heading));
|
|
46
|
+
font-weight: 600;
|
|
47
|
+
font-size: 0.95rem;
|
|
48
|
+
color: var(--fg);
|
|
49
|
+
white-space: nowrap;
|
|
50
|
+
}
|
|
51
|
+
.b-marquee__item::after {
|
|
52
|
+
content: '';
|
|
53
|
+
width: 6px;
|
|
54
|
+
height: 6px;
|
|
55
|
+
margin-left: 3.5rem;
|
|
56
|
+
border-radius: 999px;
|
|
57
|
+
background: var(--gold);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@keyframes b-marquee-scroll {
|
|
61
|
+
from { transform: translateX(0); }
|
|
62
|
+
to { transform: translateX(-50%); }
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@media (prefers-reduced-motion: reduce) {
|
|
66
|
+
.b-marquee { -webkit-mask-image: none; mask-image: none; }
|
|
67
|
+
.b-marquee__track {
|
|
68
|
+
animation: none;
|
|
69
|
+
width: auto;
|
|
70
|
+
flex-wrap: wrap;
|
|
71
|
+
justify-content: center;
|
|
72
|
+
gap: 0.25rem 0;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
</style>
|