@hyvor/design 2.1.9 → 2.1.11
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/dist/cloud/HyvorBar/BarSupport.svelte +1 -1
- package/dist/components/ColorPicker/ColorPicker.svelte +68 -9
- package/dist/components/ColorPicker/ColorPicker.svelte.d.ts +3 -0
- package/dist/components/Confetti/confetti.d.ts +7 -0
- package/dist/components/Confetti/confetti.js +102 -0
- package/dist/components/NavLink/NavLinkGroup.svelte +1 -0
- package/dist/index.css +4 -0
- package/dist/marketing/AllFeaturesAccordion/AllFeaturesAccordion.svelte +251 -0
- package/dist/marketing/AllFeaturesAccordion/AllFeaturesAccordion.svelte.d.ts +23 -0
- package/dist/marketing/AllFeaturesAccordion/AllFeaturesAccordionFeature.svelte +70 -0
- package/dist/marketing/AllFeaturesAccordion/AllFeaturesAccordionFeature.svelte.d.ts +10 -0
- package/dist/marketing/FAQ/FAQ.svelte +227 -0
- package/dist/marketing/FAQ/FAQ.svelte.d.ts +13 -0
- package/dist/marketing/FeatureSplit/FeatureSplit.svelte +325 -0
- package/dist/marketing/FeatureSplit/FeatureSplit.svelte.d.ts +24 -0
- package/dist/marketing/Footer/Footer.svelte +395 -98
- package/dist/marketing/Footer/Footer.svelte.d.ts +18 -2
- package/dist/marketing/Footer/FooterLinkList.svelte +10 -3
- package/dist/marketing/FullTrialSignup/FullTrialSignup.svelte +164 -0
- package/dist/marketing/FullTrialSignup/FullTrialSignup.svelte.d.ts +18 -0
- package/dist/marketing/Header/Header.svelte +72 -28
- package/dist/marketing/Header/Header.svelte.d.ts +5 -2
- package/dist/marketing/Header/HeaderLanguageToggle.svelte +119 -0
- package/dist/marketing/Header/HeaderLanguageToggle.svelte.d.ts +14 -0
- package/dist/marketing/Header/HeaderNavLink.svelte +149 -0
- package/dist/marketing/Header/HeaderNavLink.svelte.d.ts +18 -0
- package/dist/marketing/Header/language.d.ts +16 -0
- package/dist/marketing/Header/language.js +28 -0
- package/dist/marketing/Hero/Hero.svelte +349 -0
- package/dist/marketing/Hero/Hero.svelte.d.ts +16 -0
- package/dist/marketing/LogoStrip/LogoStrip.svelte +199 -0
- package/dist/marketing/LogoStrip/LogoStrip.svelte.d.ts +19 -0
- package/dist/marketing/Seal/CcpaSeal.svelte +29 -0
- package/dist/marketing/Seal/CcpaSeal.svelte.d.ts +6 -0
- package/dist/marketing/Seal/GdprSeal.svelte +60 -0
- package/dist/marketing/Seal/GdprSeal.svelte.d.ts +6 -0
- package/dist/marketing/Seal/IsoSeal.svelte +44 -0
- package/dist/marketing/Seal/IsoSeal.svelte.d.ts +6 -0
- package/dist/marketing/Seal/Seal.svelte +62 -0
- package/dist/marketing/Seal/Seal.svelte.d.ts +8 -0
- package/dist/marketing/Seal/SsoSeal.svelte +31 -0
- package/dist/marketing/Seal/SsoSeal.svelte.d.ts +6 -0
- package/dist/marketing/Seal/ccpa.svg +131 -0
- package/dist/marketing/SpotlightSplit/SpotlightSplit.svelte +256 -0
- package/dist/marketing/SpotlightSplit/SpotlightSplit.svelte.d.ts +19 -0
- package/dist/marketing/Testimonials/Testimonials.svelte +441 -0
- package/dist/marketing/Testimonials/Testimonials.svelte.d.ts +24 -0
- package/dist/marketing/index.d.ts +20 -2
- package/dist/marketing/index.js +26 -2
- package/dist/marketing/social.d.ts +1 -1
- package/dist/marketing/social.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Rewrites `path` (the current pathname) from `currentLang` to `targetLang`,
|
|
3
|
+
* for the common convention where the default language is served without a
|
|
4
|
+
* prefix and every other language is served under `/{code}`.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* buildLocalizedUrl('/pricing', 'en', 'fr', 'en') // '/fr/pricing'
|
|
8
|
+
* buildLocalizedUrl('/fr/pricing', 'fr', 'en', 'en') // '/pricing'
|
|
9
|
+
* buildLocalizedUrl('/fr', 'fr', 'en', 'en') // '/'
|
|
10
|
+
*/
|
|
11
|
+
export function buildLocalizedUrl(path, currentLang, targetLang, defaultLang) {
|
|
12
|
+
let basePath = path;
|
|
13
|
+
// strip the current language prefix, if any, to get the language-agnostic path
|
|
14
|
+
if (currentLang !== defaultLang) {
|
|
15
|
+
const prefix = `/${currentLang}`;
|
|
16
|
+
if (basePath === prefix) {
|
|
17
|
+
basePath = '/';
|
|
18
|
+
}
|
|
19
|
+
else if (basePath.startsWith(`${prefix}/`)) {
|
|
20
|
+
basePath = basePath.slice(prefix.length);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
// the default language is served without a prefix
|
|
24
|
+
if (targetLang === defaultLang) {
|
|
25
|
+
return basePath;
|
|
26
|
+
}
|
|
27
|
+
return basePath === '/' ? `/${targetLang}` : `/${targetLang}${basePath}`;
|
|
28
|
+
}
|
|
@@ -0,0 +1,349 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import Button from '../../components/Button/Button.svelte';
|
|
3
|
+
import IconChevronDown from '@hyvor/icons/IconChevronDown';
|
|
4
|
+
import type { ComponentProps, Snippet } from 'svelte';
|
|
5
|
+
|
|
6
|
+
type ButtonProps = ComponentProps<typeof Button>;
|
|
7
|
+
|
|
8
|
+
interface Props {
|
|
9
|
+
title: string | Snippet;
|
|
10
|
+
subtitle?: string | Snippet;
|
|
11
|
+
badge?: string | Snippet;
|
|
12
|
+
buttons?: ButtonProps | ButtonProps[] | null;
|
|
13
|
+
accentColor?: string;
|
|
14
|
+
accentColorDark?: string;
|
|
15
|
+
fullHeight?: boolean;
|
|
16
|
+
after?: Snippet;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
let {
|
|
20
|
+
title,
|
|
21
|
+
subtitle,
|
|
22
|
+
badge,
|
|
23
|
+
buttons = null,
|
|
24
|
+
accentColor,
|
|
25
|
+
accentColorDark,
|
|
26
|
+
fullHeight = false,
|
|
27
|
+
after
|
|
28
|
+
}: Props = $props();
|
|
29
|
+
|
|
30
|
+
const buttonList = $derived(buttons ? (Array.isArray(buttons) ? buttons : [buttons]) : []);
|
|
31
|
+
</script>
|
|
32
|
+
|
|
33
|
+
<section
|
|
34
|
+
class="hero"
|
|
35
|
+
class:full-height={fullHeight}
|
|
36
|
+
style:--hero-accent={accentColor}
|
|
37
|
+
style:--hero-accent-dark={accentColorDark}
|
|
38
|
+
>
|
|
39
|
+
<svg class="hero-pattern" aria-hidden="true" focusable="false">
|
|
40
|
+
<defs>
|
|
41
|
+
<pattern id="hero-dot-pattern" width="28" height="28" patternUnits="userSpaceOnUse">
|
|
42
|
+
<circle cx="2" cy="2" r="1.6" fill="currentColor" />
|
|
43
|
+
</pattern>
|
|
44
|
+
</defs>
|
|
45
|
+
<rect width="100%" height="100%" fill="url(#hero-dot-pattern)" />
|
|
46
|
+
</svg>
|
|
47
|
+
|
|
48
|
+
<div class="hds-container inner">
|
|
49
|
+
<div class="left">
|
|
50
|
+
{#if badge}
|
|
51
|
+
<div class="badge anim anim-0">
|
|
52
|
+
{#if typeof badge === 'string'}
|
|
53
|
+
{badge}
|
|
54
|
+
{:else}
|
|
55
|
+
{@render badge()}
|
|
56
|
+
{/if}
|
|
57
|
+
</div>
|
|
58
|
+
{/if}
|
|
59
|
+
|
|
60
|
+
<h1 class="anim anim-1">
|
|
61
|
+
{#if typeof title === 'string'}
|
|
62
|
+
{@html title}
|
|
63
|
+
{:else}
|
|
64
|
+
{@render title()}
|
|
65
|
+
{/if}
|
|
66
|
+
</h1>
|
|
67
|
+
|
|
68
|
+
{#if subtitle}
|
|
69
|
+
<h2 class="subtitle anim anim-2">
|
|
70
|
+
{#if typeof subtitle === 'string'}
|
|
71
|
+
{@html subtitle}
|
|
72
|
+
{:else}
|
|
73
|
+
{@render subtitle()}
|
|
74
|
+
{/if}
|
|
75
|
+
</h2>
|
|
76
|
+
{/if}
|
|
77
|
+
|
|
78
|
+
{#if buttonList.length}
|
|
79
|
+
<div class="buttons anim anim-3">
|
|
80
|
+
{#each buttonList as b}
|
|
81
|
+
<Button
|
|
82
|
+
as="a"
|
|
83
|
+
href={b.href}
|
|
84
|
+
target={b.external ? '_blank' : undefined}
|
|
85
|
+
rel={b.external ? 'noopener' : undefined}
|
|
86
|
+
size={b.size || 'x-large'}
|
|
87
|
+
variant={b.variant}
|
|
88
|
+
>
|
|
89
|
+
{b.label}
|
|
90
|
+
</Button>
|
|
91
|
+
{/each}
|
|
92
|
+
</div>
|
|
93
|
+
{/if}
|
|
94
|
+
|
|
95
|
+
{#if after}
|
|
96
|
+
<div class="anim anim-3">
|
|
97
|
+
{@render after()}
|
|
98
|
+
</div>
|
|
99
|
+
{/if}
|
|
100
|
+
</div>
|
|
101
|
+
</div>
|
|
102
|
+
|
|
103
|
+
<div class="scroll-indicator anim anim-4" aria-hidden="true">
|
|
104
|
+
<div class="scroll-mouse">
|
|
105
|
+
<div class="scroll-dot"></div>
|
|
106
|
+
</div>
|
|
107
|
+
<IconChevronDown size={12} />
|
|
108
|
+
</div>
|
|
109
|
+
</section>
|
|
110
|
+
|
|
111
|
+
<style>
|
|
112
|
+
.hero {
|
|
113
|
+
--hero-accent-resolved: var(--hero-accent, var(--accent));
|
|
114
|
+
|
|
115
|
+
position: relative;
|
|
116
|
+
display: flex;
|
|
117
|
+
align-items: center;
|
|
118
|
+
padding: 60px 0 80px;
|
|
119
|
+
overflow: hidden;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.hero.full-height {
|
|
123
|
+
min-height: calc(100vh - var(--header-height, 60px));
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
:global(:root.dark) .hero {
|
|
127
|
+
--hero-accent-resolved: var(--hero-accent-dark, var(--hero-accent, var(--accent)));
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.hero-pattern {
|
|
131
|
+
position: absolute;
|
|
132
|
+
inset: 0;
|
|
133
|
+
width: 100%;
|
|
134
|
+
height: 100%;
|
|
135
|
+
color: var(--border);
|
|
136
|
+
mask-image: radial-gradient(ellipse 65% 60% at 50% 38%, black 0%, transparent 75%);
|
|
137
|
+
-webkit-mask-image: radial-gradient(ellipse 65% 60% at 50% 38%, black 0%, transparent 75%);
|
|
138
|
+
pointer-events: none;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.inner {
|
|
142
|
+
position: relative;
|
|
143
|
+
z-index: 1;
|
|
144
|
+
display: flex;
|
|
145
|
+
align-items: center;
|
|
146
|
+
gap: 100px;
|
|
147
|
+
width: 1120px;
|
|
148
|
+
max-width: 100%;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.left {
|
|
152
|
+
flex: 1;
|
|
153
|
+
min-width: 0;
|
|
154
|
+
text-align: center;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.badge {
|
|
158
|
+
display: inline-flex;
|
|
159
|
+
align-items: center;
|
|
160
|
+
gap: 6px;
|
|
161
|
+
padding: 4px 12px;
|
|
162
|
+
border-radius: 100px;
|
|
163
|
+
font-size: 13px;
|
|
164
|
+
font-weight: 600;
|
|
165
|
+
background: color-mix(in srgb, var(--hero-accent-resolved) 12%, transparent);
|
|
166
|
+
color: var(--hero-accent-resolved);
|
|
167
|
+
margin-bottom: 24px;
|
|
168
|
+
border: 1px solid color-mix(in srgb, var(--hero-accent-resolved) 25%, transparent);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
h1 {
|
|
172
|
+
margin: 0;
|
|
173
|
+
font-size: clamp(36px, 5vw, 56px);
|
|
174
|
+
line-height: 1.1;
|
|
175
|
+
letter-spacing: -0.02em;
|
|
176
|
+
font-weight: 800;
|
|
177
|
+
font-family: var(--font-serif);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.left :global(h1 .heading-small) {
|
|
181
|
+
font-size: clamp(35px, 5vw, 46px);
|
|
182
|
+
font-weight: 800;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.subtitle {
|
|
186
|
+
font-weight: 500;
|
|
187
|
+
letter-spacing: -0.02em;
|
|
188
|
+
font-family: var(--font-serif);
|
|
189
|
+
|
|
190
|
+
margin: auto;
|
|
191
|
+
margin-top: 30px;
|
|
192
|
+
font-size: clamp(22px, 3vw, 26px);
|
|
193
|
+
line-height: 1.6;
|
|
194
|
+
color: color-mix(in srgb, var(--text) 70%, var(--text-light));
|
|
195
|
+
max-width: 480px;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.left :global(.hds-hl) {
|
|
199
|
+
color: var(--hero-accent-resolved);
|
|
200
|
+
font-weight: 700;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.left :global(.hds-marker) {
|
|
204
|
+
position: relative;
|
|
205
|
+
font-weight: 700;
|
|
206
|
+
background-image: linear-gradient(
|
|
207
|
+
100deg,
|
|
208
|
+
color-mix(in srgb, var(--hero-accent-resolved) 35%, transparent) 0%,
|
|
209
|
+
color-mix(in srgb, var(--hero-accent-resolved) 45%, transparent) 100%
|
|
210
|
+
);
|
|
211
|
+
background-repeat: no-repeat;
|
|
212
|
+
background-size: 100% 0.5em;
|
|
213
|
+
background-position: 0 88%;
|
|
214
|
+
box-decoration-break: clone;
|
|
215
|
+
-webkit-box-decoration-break: clone;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.buttons {
|
|
219
|
+
display: flex;
|
|
220
|
+
gap: 12px;
|
|
221
|
+
margin-top: 36px;
|
|
222
|
+
flex-wrap: wrap;
|
|
223
|
+
justify-content: center;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.anim {
|
|
227
|
+
opacity: 0;
|
|
228
|
+
animation: hero-fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.anim-0 {
|
|
232
|
+
animation-delay: 0s;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.anim-1 {
|
|
236
|
+
animation-delay: 0.05s;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.anim-2 {
|
|
240
|
+
animation-delay: 0.15s;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.anim-3 {
|
|
244
|
+
animation-delay: 0.25s;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.anim-4 {
|
|
248
|
+
animation-delay: 0.6s;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
@keyframes hero-fade-up {
|
|
252
|
+
from {
|
|
253
|
+
opacity: 0;
|
|
254
|
+
transform: translateY(18px);
|
|
255
|
+
}
|
|
256
|
+
to {
|
|
257
|
+
opacity: 1;
|
|
258
|
+
transform: translateY(0);
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
@media (prefers-reduced-motion: reduce) {
|
|
263
|
+
.anim {
|
|
264
|
+
animation: none;
|
|
265
|
+
opacity: 1;
|
|
266
|
+
transform: none;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.scroll-indicator {
|
|
271
|
+
position: absolute;
|
|
272
|
+
left: 50%;
|
|
273
|
+
bottom: 28px;
|
|
274
|
+
transform: translateX(-50%);
|
|
275
|
+
z-index: 1;
|
|
276
|
+
display: flex;
|
|
277
|
+
flex-direction: column;
|
|
278
|
+
align-items: center;
|
|
279
|
+
gap: 8px;
|
|
280
|
+
color: var(--text-light);
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.scroll-mouse {
|
|
284
|
+
width: 24px;
|
|
285
|
+
height: 38px;
|
|
286
|
+
border: 2px solid var(--border);
|
|
287
|
+
border-radius: 100px;
|
|
288
|
+
display: flex;
|
|
289
|
+
justify-content: center;
|
|
290
|
+
padding-top: 6px;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.scroll-dot {
|
|
294
|
+
width: 4px;
|
|
295
|
+
height: 8px;
|
|
296
|
+
border-radius: 2px;
|
|
297
|
+
background: var(--hero-accent-resolved);
|
|
298
|
+
animation: scroll-wheel 1.8s ease-in-out infinite;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
@keyframes scroll-wheel {
|
|
302
|
+
0% {
|
|
303
|
+
opacity: 1;
|
|
304
|
+
transform: translateY(0);
|
|
305
|
+
}
|
|
306
|
+
60% {
|
|
307
|
+
opacity: 0;
|
|
308
|
+
transform: translateY(12px);
|
|
309
|
+
}
|
|
310
|
+
100% {
|
|
311
|
+
opacity: 0;
|
|
312
|
+
transform: translateY(12px);
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
@media (prefers-reduced-motion: reduce) {
|
|
317
|
+
.scroll-dot {
|
|
318
|
+
animation: none;
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
@media (max-width: 992px) {
|
|
323
|
+
.hero.full-height {
|
|
324
|
+
min-height: unset;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
.hero {
|
|
328
|
+
padding: 60px 0;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
.inner {
|
|
332
|
+
flex-direction: column;
|
|
333
|
+
gap: 48px;
|
|
334
|
+
text-align: center;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.subtitle {
|
|
338
|
+
max-width: 100%;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.buttons {
|
|
342
|
+
justify-content: center;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
.scroll-indicator {
|
|
346
|
+
display: none;
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
</style>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import Button from '../../components/Button/Button.svelte';
|
|
2
|
+
import type { ComponentProps, Snippet } from 'svelte';
|
|
3
|
+
type ButtonProps = ComponentProps<typeof Button>;
|
|
4
|
+
interface Props {
|
|
5
|
+
title: string | Snippet;
|
|
6
|
+
subtitle?: string | Snippet;
|
|
7
|
+
badge?: string | Snippet;
|
|
8
|
+
buttons?: ButtonProps | ButtonProps[] | null;
|
|
9
|
+
accentColor?: string;
|
|
10
|
+
accentColorDark?: string;
|
|
11
|
+
fullHeight?: boolean;
|
|
12
|
+
after?: Snippet;
|
|
13
|
+
}
|
|
14
|
+
declare const Hero: import("svelte").Component<Props, {}, "">;
|
|
15
|
+
type Hero = ReturnType<typeof Hero>;
|
|
16
|
+
export default Hero;
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
interface Logo {
|
|
3
|
+
name: string;
|
|
4
|
+
src: string;
|
|
5
|
+
href?: string;
|
|
6
|
+
width?: number;
|
|
7
|
+
height?: number;
|
|
8
|
+
color?: boolean;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
interface Props {
|
|
12
|
+
logos: Logo[];
|
|
13
|
+
label?: string;
|
|
14
|
+
background?: string;
|
|
15
|
+
invert?: boolean;
|
|
16
|
+
marquee?: boolean;
|
|
17
|
+
speed?: number;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
let {
|
|
21
|
+
logos,
|
|
22
|
+
label = '',
|
|
23
|
+
background = 'var(--accent)',
|
|
24
|
+
invert = true,
|
|
25
|
+
marquee = true,
|
|
26
|
+
speed = 34
|
|
27
|
+
}: Props = $props();
|
|
28
|
+
|
|
29
|
+
// render twice for marquee effect
|
|
30
|
+
const track = $derived(marquee ? [...logos, ...logos] : logos);
|
|
31
|
+
</script>
|
|
32
|
+
|
|
33
|
+
{#snippet logoImg(logo: Logo, hidden = false)}
|
|
34
|
+
<img
|
|
35
|
+
src={logo.src}
|
|
36
|
+
alt={logo.name}
|
|
37
|
+
width={logo.width ?? 120}
|
|
38
|
+
height={logo.height ?? 28}
|
|
39
|
+
class="logo"
|
|
40
|
+
class:invert={invert && !logo.color}
|
|
41
|
+
class:color={logo.color}
|
|
42
|
+
aria-hidden={hidden}
|
|
43
|
+
/>
|
|
44
|
+
{/snippet}
|
|
45
|
+
|
|
46
|
+
<section class="hds-logo-strip" style:--ls-bg={background} style:--ls-speed="{speed}s">
|
|
47
|
+
<div class="hds-container">
|
|
48
|
+
{#if label}
|
|
49
|
+
<p class="label">{label}</p>
|
|
50
|
+
{/if}
|
|
51
|
+
|
|
52
|
+
{#if !marquee}
|
|
53
|
+
<div class="logos">
|
|
54
|
+
{#each logos as logo}
|
|
55
|
+
{#if logo.href}
|
|
56
|
+
<a href={logo.href} target="_blank" rel="noopener" class="logo-link">
|
|
57
|
+
{@render logoImg(logo)}
|
|
58
|
+
</a>
|
|
59
|
+
{:else}
|
|
60
|
+
{@render logoImg(logo)}
|
|
61
|
+
{/if}
|
|
62
|
+
{/each}
|
|
63
|
+
</div>
|
|
64
|
+
{/if}
|
|
65
|
+
</div>
|
|
66
|
+
|
|
67
|
+
{#if marquee}
|
|
68
|
+
<div class="marquee hds-container-max">
|
|
69
|
+
<div class="marquee-track">
|
|
70
|
+
{#each track as logo, i}
|
|
71
|
+
{@const hidden = i >= logos.length}
|
|
72
|
+
{#if logo.href}
|
|
73
|
+
<a
|
|
74
|
+
href={logo.href}
|
|
75
|
+
target="_blank"
|
|
76
|
+
rel="noopener"
|
|
77
|
+
class="logo-link"
|
|
78
|
+
tabindex={hidden ? -1 : undefined}
|
|
79
|
+
>
|
|
80
|
+
{@render logoImg(logo, hidden)}
|
|
81
|
+
</a>
|
|
82
|
+
{:else}
|
|
83
|
+
{@render logoImg(logo, hidden)}
|
|
84
|
+
{/if}
|
|
85
|
+
{/each}
|
|
86
|
+
</div>
|
|
87
|
+
</div>
|
|
88
|
+
{/if}
|
|
89
|
+
</section>
|
|
90
|
+
|
|
91
|
+
<style>
|
|
92
|
+
.hds-logo-strip {
|
|
93
|
+
background: var(--ls-bg);
|
|
94
|
+
padding: 52px 0;
|
|
95
|
+
overflow: hidden;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.label {
|
|
99
|
+
text-align: center;
|
|
100
|
+
font-size: 16px;
|
|
101
|
+
font-weight: 600;
|
|
102
|
+
letter-spacing: 0.07em;
|
|
103
|
+
text-transform: uppercase;
|
|
104
|
+
color: var(--accent-light-mid);
|
|
105
|
+
margin: 0 0 36px;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.logos {
|
|
109
|
+
display: flex;
|
|
110
|
+
align-items: center;
|
|
111
|
+
justify-content: center;
|
|
112
|
+
flex-wrap: wrap;
|
|
113
|
+
gap: 24px 52px;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/* marquee layout */
|
|
117
|
+
.marquee {
|
|
118
|
+
mask-image: linear-gradient(
|
|
119
|
+
to right,
|
|
120
|
+
transparent 0,
|
|
121
|
+
black 64px,
|
|
122
|
+
black calc(100% - 64px),
|
|
123
|
+
transparent 100%
|
|
124
|
+
);
|
|
125
|
+
-webkit-mask-image: linear-gradient(
|
|
126
|
+
to right,
|
|
127
|
+
transparent 0,
|
|
128
|
+
black 64px,
|
|
129
|
+
black calc(100% - 64px),
|
|
130
|
+
transparent 100%
|
|
131
|
+
);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.marquee-track {
|
|
135
|
+
display: flex;
|
|
136
|
+
align-items: center;
|
|
137
|
+
gap: 52px;
|
|
138
|
+
width: max-content;
|
|
139
|
+
animation: marquee-scroll var(--ls-speed) linear infinite;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.marquee:hover .marquee-track {
|
|
143
|
+
animation-play-state: paused;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
@keyframes marquee-scroll {
|
|
147
|
+
from {
|
|
148
|
+
transform: translateX(0);
|
|
149
|
+
}
|
|
150
|
+
to {
|
|
151
|
+
/* one full set-width, since the track is two identical sets back to back */
|
|
152
|
+
transform: translateX(-50%);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.logo-link {
|
|
157
|
+
display: block;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.logo {
|
|
161
|
+
display: block;
|
|
162
|
+
flex-shrink: 0;
|
|
163
|
+
opacity: 0.8;
|
|
164
|
+
transition: opacity 0.15s ease;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.logo.invert {
|
|
168
|
+
filter: brightness(0) invert(1);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.logo.color {
|
|
172
|
+
filter: none;
|
|
173
|
+
opacity: 1;
|
|
174
|
+
border-radius: 10px;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.logo:hover {
|
|
178
|
+
opacity: 1;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
@media (prefers-reduced-motion: reduce) {
|
|
182
|
+
.marquee {
|
|
183
|
+
mask-image: none;
|
|
184
|
+
-webkit-mask-image: none;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.marquee-track {
|
|
188
|
+
animation: none;
|
|
189
|
+
flex-wrap: wrap;
|
|
190
|
+
justify-content: center;
|
|
191
|
+
width: 100%;
|
|
192
|
+
padding: 0 15px;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.marquee-track :global(.logo[aria-hidden='true']) {
|
|
196
|
+
display: none;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
</style>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
interface Logo {
|
|
2
|
+
name: string;
|
|
3
|
+
src: string;
|
|
4
|
+
href?: string;
|
|
5
|
+
width?: number;
|
|
6
|
+
height?: number;
|
|
7
|
+
color?: boolean;
|
|
8
|
+
}
|
|
9
|
+
interface Props {
|
|
10
|
+
logos: Logo[];
|
|
11
|
+
label?: string;
|
|
12
|
+
background?: string;
|
|
13
|
+
invert?: boolean;
|
|
14
|
+
marquee?: boolean;
|
|
15
|
+
speed?: number;
|
|
16
|
+
}
|
|
17
|
+
declare const LogoStrip: import("svelte").Component<Props, {}, "">;
|
|
18
|
+
type LogoStrip = ReturnType<typeof LogoStrip>;
|
|
19
|
+
export default LogoStrip;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import Seal from './Seal.svelte';
|
|
3
|
+
import ccpa from './ccpa.svg?url';
|
|
4
|
+
|
|
5
|
+
interface Props {
|
|
6
|
+
size?: number;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
let { size = 100 }: Props = $props();
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<Seal {size}>
|
|
13
|
+
<img src={ccpa} alt="CCPA Seal" class="map" />
|
|
14
|
+
<span class="label">CCPA</span>
|
|
15
|
+
</Seal>
|
|
16
|
+
|
|
17
|
+
<style>
|
|
18
|
+
.map {
|
|
19
|
+
width: 22px;
|
|
20
|
+
height: auto;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.label {
|
|
24
|
+
font-size: 13px;
|
|
25
|
+
font-weight: 700;
|
|
26
|
+
letter-spacing: 0.03em;
|
|
27
|
+
color: #fff;
|
|
28
|
+
}
|
|
29
|
+
</style>
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import IconStarFill from '@hyvor/icons/IconStarFill';
|
|
3
|
+
import Seal from './Seal.svelte';
|
|
4
|
+
|
|
5
|
+
interface Props {
|
|
6
|
+
size?: number;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
let { size = 100 }: Props = $props();
|
|
10
|
+
|
|
11
|
+
const starAngles = Array.from({ length: 12 }, (_, i) => i * 30);
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<Seal {size}>
|
|
15
|
+
<div class="star-ring">
|
|
16
|
+
{#each starAngles as angle}
|
|
17
|
+
<span class="star" style="--angle: {angle}deg">
|
|
18
|
+
<IconStarFill size={7} />
|
|
19
|
+
</span>
|
|
20
|
+
{/each}
|
|
21
|
+
</div>
|
|
22
|
+
<span class="label">GDPR</span>
|
|
23
|
+
</Seal>
|
|
24
|
+
|
|
25
|
+
<style>
|
|
26
|
+
.star-ring {
|
|
27
|
+
position: absolute;
|
|
28
|
+
inset: 0;
|
|
29
|
+
--star-radius: 34px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.star {
|
|
33
|
+
position: absolute;
|
|
34
|
+
top: 50%;
|
|
35
|
+
left: 50%;
|
|
36
|
+
width: 10px;
|
|
37
|
+
height: 10px;
|
|
38
|
+
margin: -5px 0 0 -5px;
|
|
39
|
+
display: flex;
|
|
40
|
+
align-items: center;
|
|
41
|
+
justify-content: center;
|
|
42
|
+
color: #e3b34a;
|
|
43
|
+
transform: rotate(var(--angle)) translateY(calc(var(--star-radius) * -1))
|
|
44
|
+
rotate(calc(var(--angle) * -1));
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.label {
|
|
48
|
+
font-size: 13px;
|
|
49
|
+
font-weight: 700;
|
|
50
|
+
letter-spacing: 0.03em;
|
|
51
|
+
color: #fff;
|
|
52
|
+
z-index: 1;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@media (max-width: 768px) {
|
|
56
|
+
.star-ring {
|
|
57
|
+
--star-radius: 28px;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
</style>
|