@hyvor/design 2.1.8-beta.2 → 2.1.8-beta.4

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.
Files changed (30) hide show
  1. package/dist/marketing/AllFeaturesAccordion/AllFeaturesAccordion.svelte +251 -0
  2. package/dist/marketing/AllFeaturesAccordion/AllFeaturesAccordion.svelte.d.ts +23 -0
  3. package/dist/marketing/AllFeaturesAccordion/AllFeaturesAccordionFeature.svelte +75 -0
  4. package/dist/marketing/AllFeaturesAccordion/AllFeaturesAccordionFeature.svelte.d.ts +10 -0
  5. package/dist/marketing/FAQ/FAQ.svelte +233 -0
  6. package/dist/marketing/FAQ/FAQ.svelte.d.ts +13 -0
  7. package/dist/marketing/FeatureSplit/FeatureSplit.svelte +325 -0
  8. package/dist/marketing/FeatureSplit/FeatureSplit.svelte.d.ts +24 -0
  9. package/dist/marketing/FullTrialSignup/FullTrialSignup.svelte +164 -0
  10. package/dist/marketing/FullTrialSignup/FullTrialSignup.svelte.d.ts +18 -0
  11. package/dist/marketing/Hero/Hero.svelte +353 -0
  12. package/dist/marketing/Hero/Hero.svelte.d.ts +16 -0
  13. package/dist/marketing/Seal/CcpaSeal.svelte +29 -0
  14. package/dist/marketing/Seal/CcpaSeal.svelte.d.ts +6 -0
  15. package/dist/marketing/Seal/GdprSeal.svelte +60 -0
  16. package/dist/marketing/Seal/GdprSeal.svelte.d.ts +6 -0
  17. package/dist/marketing/Seal/IsoSeal.svelte +44 -0
  18. package/dist/marketing/Seal/IsoSeal.svelte.d.ts +6 -0
  19. package/dist/marketing/Seal/Seal.svelte +62 -0
  20. package/dist/marketing/Seal/Seal.svelte.d.ts +8 -0
  21. package/dist/marketing/Seal/SsoSeal.svelte +31 -0
  22. package/dist/marketing/Seal/SsoSeal.svelte.d.ts +6 -0
  23. package/dist/marketing/Seal/ccpa.svg +131 -0
  24. package/dist/marketing/SpotlightSplit/SpotlightSplit.svelte +256 -0
  25. package/dist/marketing/SpotlightSplit/SpotlightSplit.svelte.d.ts +19 -0
  26. package/dist/marketing/Testimonials/Testimonials.svelte +382 -0
  27. package/dist/marketing/Testimonials/Testimonials.svelte.d.ts +23 -0
  28. package/dist/marketing/index.d.ts +13 -0
  29. package/dist/marketing/index.js +13 -0
  30. package/package.json +1 -1
@@ -0,0 +1,353 @@
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
+ /* smaller second line inside the title, e.g. a parenthetical sub-line */
181
+ .left :global(h1 .heading-small) {
182
+ font-size: clamp(35px, 5vw, 46px);
183
+ font-weight: 800;
184
+ }
185
+
186
+ .subtitle {
187
+ font-weight: 500;
188
+ letter-spacing: -0.02em;
189
+ font-family: var(--font-serif);
190
+
191
+ margin: auto;
192
+ margin-top: 30px;
193
+ font-size: clamp(22px, 3vw, 26px);
194
+ line-height: 1.6;
195
+ color: color-mix(in srgb, var(--text) 70%, var(--text-light));
196
+ max-width: 480px;
197
+ }
198
+
199
+ .left :global(.hds-hl) {
200
+ color: var(--hero-accent-resolved);
201
+ font-weight: 700;
202
+ }
203
+
204
+ .left :global(.hds-marker) {
205
+ position: relative;
206
+ font-weight: 700;
207
+ background-image: linear-gradient(
208
+ 100deg,
209
+ color-mix(in srgb, var(--hero-accent-resolved) 35%, transparent) 0%,
210
+ color-mix(in srgb, var(--hero-accent-resolved) 45%, transparent) 100%
211
+ );
212
+ background-repeat: no-repeat;
213
+ background-size: 100% 0.5em;
214
+ background-position: 0 88%;
215
+ box-decoration-break: clone;
216
+ -webkit-box-decoration-break: clone;
217
+ }
218
+
219
+ .buttons {
220
+ display: flex;
221
+ gap: 12px;
222
+ margin-top: 36px;
223
+ flex-wrap: wrap;
224
+ justify-content: center;
225
+ }
226
+
227
+ /* Entrance animation */
228
+ .anim {
229
+ opacity: 0;
230
+ animation: hero-fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
231
+ }
232
+
233
+ .anim-0 {
234
+ animation-delay: 0s;
235
+ }
236
+
237
+ .anim-1 {
238
+ animation-delay: 0.05s;
239
+ }
240
+
241
+ .anim-2 {
242
+ animation-delay: 0.15s;
243
+ }
244
+
245
+ .anim-3 {
246
+ animation-delay: 0.25s;
247
+ }
248
+
249
+ .anim-4 {
250
+ animation-delay: 0.6s;
251
+ }
252
+
253
+ @keyframes hero-fade-up {
254
+ from {
255
+ opacity: 0;
256
+ transform: translateY(18px);
257
+ }
258
+ to {
259
+ opacity: 1;
260
+ transform: translateY(0);
261
+ }
262
+ }
263
+
264
+ @media (prefers-reduced-motion: reduce) {
265
+ .anim {
266
+ animation: none;
267
+ opacity: 1;
268
+ transform: none;
269
+ }
270
+ }
271
+
272
+ /* Scroll indicator */
273
+ .scroll-indicator {
274
+ position: absolute;
275
+ left: 50%;
276
+ bottom: 28px;
277
+ transform: translateX(-50%);
278
+ z-index: 1;
279
+ display: flex;
280
+ flex-direction: column;
281
+ align-items: center;
282
+ gap: 8px;
283
+ color: var(--text-light);
284
+ }
285
+
286
+ .scroll-mouse {
287
+ width: 24px;
288
+ height: 38px;
289
+ border: 2px solid var(--border);
290
+ border-radius: 100px;
291
+ display: flex;
292
+ justify-content: center;
293
+ padding-top: 6px;
294
+ }
295
+
296
+ .scroll-dot {
297
+ width: 4px;
298
+ height: 8px;
299
+ border-radius: 2px;
300
+ background: var(--hero-accent-resolved);
301
+ animation: scroll-wheel 1.8s ease-in-out infinite;
302
+ }
303
+
304
+ @keyframes scroll-wheel {
305
+ 0% {
306
+ opacity: 1;
307
+ transform: translateY(0);
308
+ }
309
+ 60% {
310
+ opacity: 0;
311
+ transform: translateY(12px);
312
+ }
313
+ 100% {
314
+ opacity: 0;
315
+ transform: translateY(12px);
316
+ }
317
+ }
318
+
319
+ @media (prefers-reduced-motion: reduce) {
320
+ .scroll-dot {
321
+ animation: none;
322
+ }
323
+ }
324
+
325
+ /* Responsive */
326
+ @media (max-width: 992px) {
327
+ .hero.full-height {
328
+ min-height: unset;
329
+ }
330
+
331
+ .hero {
332
+ padding: 60px 0;
333
+ }
334
+
335
+ .inner {
336
+ flex-direction: column;
337
+ gap: 48px;
338
+ text-align: center;
339
+ }
340
+
341
+ .subtitle {
342
+ max-width: 100%;
343
+ }
344
+
345
+ .buttons {
346
+ justify-content: center;
347
+ }
348
+
349
+ .scroll-indicator {
350
+ display: none;
351
+ }
352
+ }
353
+ </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,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,6 @@
1
+ interface Props {
2
+ size?: number;
3
+ }
4
+ declare const CcpaSeal: import("svelte").Component<Props, {}, "">;
5
+ type CcpaSeal = ReturnType<typeof CcpaSeal>;
6
+ export default CcpaSeal;
@@ -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>
@@ -0,0 +1,6 @@
1
+ interface Props {
2
+ size?: number;
3
+ }
4
+ declare const GdprSeal: import("svelte").Component<Props, {}, "">;
5
+ type GdprSeal = ReturnType<typeof GdprSeal>;
6
+ export default GdprSeal;
@@ -0,0 +1,44 @@
1
+ <script lang="ts">
2
+ import IconAwardFill from '@hyvor/icons/IconAwardFill';
3
+ import Seal from './Seal.svelte';
4
+
5
+ interface Props {
6
+ size?: number;
7
+ }
8
+
9
+ let { size = 100 }: Props = $props();
10
+ </script>
11
+
12
+ <Seal {size} pending>
13
+ <span class="icon">
14
+ <IconAwardFill size={20} />
15
+ </span>
16
+ <span class="label">ISO 27001</span>
17
+ <span class="note">Soon</span>
18
+ </Seal>
19
+
20
+ <style>
21
+ .icon {
22
+ display: flex;
23
+ color: rgba(255, 255, 255, 0.45);
24
+ }
25
+
26
+ .label {
27
+ font-size: 11px;
28
+ font-weight: 700;
29
+ letter-spacing: 0.02em;
30
+ color: rgba(255, 255, 255, 0.55);
31
+ }
32
+
33
+ .note {
34
+ position: absolute;
35
+ bottom: -10px;
36
+ font-size: 10px;
37
+ font-weight: 600;
38
+ padding: 2px 8px;
39
+ border-radius: 100px;
40
+ color: rgba(255, 255, 255, 0.6);
41
+ background: rgba(255, 255, 255, 0.1);
42
+ white-space: nowrap;
43
+ }
44
+ </style>
@@ -0,0 +1,6 @@
1
+ interface Props {
2
+ size?: number;
3
+ }
4
+ declare const IsoSeal: import("svelte").Component<Props, {}, "">;
5
+ type IsoSeal = ReturnType<typeof IsoSeal>;
6
+ export default IsoSeal;
@@ -0,0 +1,62 @@
1
+ <script lang="ts">
2
+ interface Props {
3
+ pending?: boolean;
4
+ size?: number;
5
+ children: import('svelte').Snippet;
6
+ }
7
+
8
+ let { pending = false, size = 100, children }: Props = $props();
9
+
10
+ const scale = $derived(size / 100);
11
+ </script>
12
+
13
+ <div class="seal" class:pending style="--scale: {scale};">
14
+ <div class="seal-inner">
15
+ {@render children()}
16
+ </div>
17
+ </div>
18
+
19
+ <style>
20
+ .seal {
21
+ position: relative;
22
+ display: flex;
23
+ align-items: center;
24
+ justify-content: center;
25
+ width: calc(var(--scale) * 100px);
26
+ height: calc(var(--scale) * 100px);
27
+ border-radius: calc(var(--scale) * 100px);
28
+ background: radial-gradient(
29
+ circle at 50% 42%,
30
+ rgba(255, 255, 255, 0.09),
31
+ rgba(255, 255, 255, 0.015) 72%
32
+ );
33
+ }
34
+
35
+ .seal.pending {
36
+ background: none;
37
+ border: 1.5px dashed rgba(255, 255, 255, 0.16);
38
+ }
39
+
40
+ .seal-inner {
41
+ display: flex;
42
+ flex-direction: column;
43
+ align-items: center;
44
+ justify-content: center;
45
+ gap: 5px;
46
+ width: 100px;
47
+ height: 100px;
48
+ transform: scale(var(--scale));
49
+ }
50
+
51
+ @media (max-width: 768px) {
52
+ .seal {
53
+ width: calc(var(--scale) * 76px);
54
+ height: calc(var(--scale) * 76px);
55
+ border-radius: calc(var(--scale) * 76px);
56
+ }
57
+
58
+ .seal-inner {
59
+ transform: scale(calc(var(--scale) * 0.76));
60
+ }
61
+ }
62
+ </style>
@@ -0,0 +1,8 @@
1
+ interface Props {
2
+ pending?: boolean;
3
+ size?: number;
4
+ children: import('svelte').Snippet;
5
+ }
6
+ declare const Seal: import("svelte").Component<Props, {}, "">;
7
+ type Seal = ReturnType<typeof Seal>;
8
+ export default Seal;
@@ -0,0 +1,31 @@
1
+ <script lang="ts">
2
+ import IconShieldLockFill from '@hyvor/icons/IconShieldLockFill';
3
+ import Seal from './Seal.svelte';
4
+
5
+ interface Props {
6
+ size?: number;
7
+ }
8
+
9
+ let { size = 100 }: Props = $props();
10
+ </script>
11
+
12
+ <Seal {size}>
13
+ <span class="icon">
14
+ <IconShieldLockFill size={22} />
15
+ </span>
16
+ <span class="label">SSO</span>
17
+ </Seal>
18
+
19
+ <style>
20
+ .icon {
21
+ display: flex;
22
+ color: #e3b34a;
23
+ }
24
+
25
+ .label {
26
+ font-size: 13px;
27
+ font-weight: 700;
28
+ letter-spacing: 0.03em;
29
+ color: #fff;
30
+ }
31
+ </style>
@@ -0,0 +1,6 @@
1
+ interface Props {
2
+ size?: number;
3
+ }
4
+ declare const SsoSeal: import("svelte").Component<Props, {}, "">;
5
+ type SsoSeal = ReturnType<typeof SsoSeal>;
6
+ export default SsoSeal;