@aspect-ops/exon-ui 0.2.2 → 0.3.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/dist/components/CTASection/CTASection.svelte +298 -0
- package/dist/components/CTASection/CTASection.svelte.d.ts +15 -0
- package/dist/components/CTASection/index.d.ts +2 -0
- package/dist/components/CTASection/index.js +1 -0
- package/dist/components/GlobalHeader/GlobalHeader.svelte +692 -0
- package/dist/components/GlobalHeader/GlobalHeader.svelte.d.ts +3 -0
- package/dist/components/GlobalHeader/index.d.ts +2 -0
- package/dist/components/GlobalHeader/index.js +1 -0
- package/dist/components/Hero/Hero.svelte +306 -0
- package/dist/components/Hero/Hero.svelte.d.ts +18 -0
- package/dist/components/Hero/index.d.ts +2 -0
- package/dist/components/Hero/index.js +1 -0
- package/dist/components/LogoCloud/LogoCloud.svelte +333 -0
- package/dist/components/LogoCloud/LogoCloud.svelte.d.ts +20 -0
- package/dist/components/LogoCloud/index.d.ts +2 -0
- package/dist/components/LogoCloud/index.js +1 -0
- package/dist/components/ServiceCard/ServiceCard.svelte +359 -0
- package/dist/components/ServiceCard/ServiceCard.svelte.d.ts +16 -0
- package/dist/components/ServiceCard/index.d.ts +1 -0
- package/dist/components/ServiceCard/index.js +1 -0
- package/dist/components/SplitSection/SplitSection.svelte +194 -0
- package/dist/components/SplitSection/SplitSection.svelte.d.ts +15 -0
- package/dist/components/SplitSection/index.d.ts +1 -0
- package/dist/components/SplitSection/index.js +1 -0
- package/dist/components/TestimonialCard/TestimonialCard.svelte +290 -0
- package/dist/components/TestimonialCard/TestimonialCard.svelte.d.ts +14 -0
- package/dist/components/TestimonialCard/index.d.ts +1 -0
- package/dist/components/TestimonialCard/index.js +1 -0
- package/dist/components/Timeline/Timeline.svelte +444 -0
- package/dist/components/Timeline/Timeline.svelte.d.ts +19 -0
- package/dist/components/Timeline/index.d.ts +2 -0
- package/dist/components/Timeline/index.js +1 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +9 -0
- package/package.json +1 -1
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import type { Snippet } from 'svelte';
|
|
3
|
+
|
|
4
|
+
export interface CTASectionProps {
|
|
5
|
+
title: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
variant?: 'default' | 'gradient' | 'image' | 'split';
|
|
8
|
+
background?: string;
|
|
9
|
+
align?: 'left' | 'center' | 'right';
|
|
10
|
+
size?: 'sm' | 'md' | 'lg';
|
|
11
|
+
class?: string;
|
|
12
|
+
actions: Snippet;
|
|
13
|
+
icon?: Snippet;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
let {
|
|
17
|
+
title,
|
|
18
|
+
description,
|
|
19
|
+
variant = 'default',
|
|
20
|
+
background,
|
|
21
|
+
align = 'center',
|
|
22
|
+
size = 'md',
|
|
23
|
+
class: className = '',
|
|
24
|
+
actions,
|
|
25
|
+
icon
|
|
26
|
+
}: CTASectionProps = $props();
|
|
27
|
+
|
|
28
|
+
const sizeClasses = {
|
|
29
|
+
sm: 'cta-section--sm',
|
|
30
|
+
md: 'cta-section--md',
|
|
31
|
+
lg: 'cta-section--lg'
|
|
32
|
+
};
|
|
33
|
+
</script>
|
|
34
|
+
|
|
35
|
+
<section
|
|
36
|
+
class="cta-section cta-section--{variant} cta-section--{align} {sizeClasses[size]} {className}"
|
|
37
|
+
style:--cta-background={background}
|
|
38
|
+
>
|
|
39
|
+
<div class="cta-section__container">
|
|
40
|
+
{#if variant === 'split' && icon}
|
|
41
|
+
<div class="cta-section__split">
|
|
42
|
+
<div class="cta-section__content">
|
|
43
|
+
<h2 class="cta-section__title">{title}</h2>
|
|
44
|
+
{#if description}
|
|
45
|
+
<p class="cta-section__description">{description}</p>
|
|
46
|
+
{/if}
|
|
47
|
+
<div class="cta-section__actions">
|
|
48
|
+
{@render actions()}
|
|
49
|
+
</div>
|
|
50
|
+
</div>
|
|
51
|
+
<div class="cta-section__icon">
|
|
52
|
+
{@render icon()}
|
|
53
|
+
</div>
|
|
54
|
+
</div>
|
|
55
|
+
{:else}
|
|
56
|
+
<div class="cta-section__content">
|
|
57
|
+
{#if icon && variant !== 'split'}
|
|
58
|
+
<div class="cta-section__icon">
|
|
59
|
+
{@render icon()}
|
|
60
|
+
</div>
|
|
61
|
+
{/if}
|
|
62
|
+
<h2 class="cta-section__title">{title}</h2>
|
|
63
|
+
{#if description}
|
|
64
|
+
<p class="cta-section__description">{description}</p>
|
|
65
|
+
{/if}
|
|
66
|
+
<div class="cta-section__actions">
|
|
67
|
+
{@render actions()}
|
|
68
|
+
</div>
|
|
69
|
+
</div>
|
|
70
|
+
{/if}
|
|
71
|
+
</div>
|
|
72
|
+
</section>
|
|
73
|
+
|
|
74
|
+
<style>
|
|
75
|
+
.cta-section {
|
|
76
|
+
--cta-bg: var(--color-primary, #0066cc);
|
|
77
|
+
--cta-text-color: var(--color-on-primary, #ffffff);
|
|
78
|
+
--cta-padding: 4rem;
|
|
79
|
+
--cta-max-width: 1200px;
|
|
80
|
+
--cta-gradient-from: var(--color-primary, #0066cc);
|
|
81
|
+
--cta-gradient-to: var(--color-primary-dark, #004999);
|
|
82
|
+
|
|
83
|
+
position: relative;
|
|
84
|
+
padding: var(--cta-padding) 1.5rem;
|
|
85
|
+
color: var(--cta-text-color);
|
|
86
|
+
overflow: hidden;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/* Variant: Default */
|
|
90
|
+
.cta-section--default {
|
|
91
|
+
background-color: var(--cta-background, var(--cta-bg));
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/* Variant: Gradient */
|
|
95
|
+
.cta-section--gradient {
|
|
96
|
+
background: linear-gradient(
|
|
97
|
+
135deg,
|
|
98
|
+
var(--cta-background, var(--cta-gradient-from)),
|
|
99
|
+
var(--cta-gradient-to)
|
|
100
|
+
);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/* Variant: Image */
|
|
104
|
+
.cta-section--image {
|
|
105
|
+
background-image: var(--cta-background);
|
|
106
|
+
background-size: cover;
|
|
107
|
+
background-position: center;
|
|
108
|
+
background-repeat: no-repeat;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.cta-section--image::before {
|
|
112
|
+
content: '';
|
|
113
|
+
position: absolute;
|
|
114
|
+
inset: 0;
|
|
115
|
+
background: rgba(0, 0, 0, 0.5);
|
|
116
|
+
z-index: 0;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.cta-section--image .cta-section__container {
|
|
120
|
+
position: relative;
|
|
121
|
+
z-index: 1;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/* Variant: Split */
|
|
125
|
+
.cta-section--split {
|
|
126
|
+
background-color: var(--cta-background, var(--cta-bg));
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.cta-section__split {
|
|
130
|
+
display: grid;
|
|
131
|
+
grid-template-columns: 1fr;
|
|
132
|
+
gap: 2rem;
|
|
133
|
+
align-items: center;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
@media (min-width: 768px) {
|
|
137
|
+
.cta-section__split {
|
|
138
|
+
grid-template-columns: 1fr 1fr;
|
|
139
|
+
gap: 3rem;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/* Size variants */
|
|
144
|
+
.cta-section--sm {
|
|
145
|
+
--cta-padding: 2rem;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.cta-section--md {
|
|
149
|
+
--cta-padding: 4rem;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.cta-section--lg {
|
|
153
|
+
--cta-padding: 6rem;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/* Container */
|
|
157
|
+
.cta-section__container {
|
|
158
|
+
max-width: var(--cta-max-width);
|
|
159
|
+
margin: 0 auto;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/* Content */
|
|
163
|
+
.cta-section__content {
|
|
164
|
+
display: flex;
|
|
165
|
+
flex-direction: column;
|
|
166
|
+
gap: 1.5rem;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/* Alignment */
|
|
170
|
+
.cta-section--left .cta-section__content {
|
|
171
|
+
align-items: flex-start;
|
|
172
|
+
text-align: left;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.cta-section--center .cta-section__content {
|
|
176
|
+
align-items: center;
|
|
177
|
+
text-align: center;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.cta-section--right .cta-section__content {
|
|
181
|
+
align-items: flex-end;
|
|
182
|
+
text-align: right;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/* Title */
|
|
186
|
+
.cta-section__title {
|
|
187
|
+
margin: 0;
|
|
188
|
+
font-size: clamp(1.75rem, 4vw, 2.5rem);
|
|
189
|
+
font-weight: 700;
|
|
190
|
+
line-height: 1.2;
|
|
191
|
+
color: inherit;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
/* Description */
|
|
195
|
+
.cta-section__description {
|
|
196
|
+
margin: 0;
|
|
197
|
+
font-size: clamp(1rem, 2vw, 1.25rem);
|
|
198
|
+
line-height: 1.6;
|
|
199
|
+
max-width: 48rem;
|
|
200
|
+
opacity: 0.95;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/* Actions */
|
|
204
|
+
.cta-section__actions {
|
|
205
|
+
display: flex;
|
|
206
|
+
flex-wrap: wrap;
|
|
207
|
+
gap: 1rem;
|
|
208
|
+
margin-top: 0.5rem;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.cta-section--left .cta-section__actions {
|
|
212
|
+
justify-content: flex-start;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.cta-section--center .cta-section__actions {
|
|
216
|
+
justify-content: center;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.cta-section--right .cta-section__actions {
|
|
220
|
+
justify-content: flex-end;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
/* Icon */
|
|
224
|
+
.cta-section__icon {
|
|
225
|
+
display: flex;
|
|
226
|
+
align-items: center;
|
|
227
|
+
justify-content: center;
|
|
228
|
+
margin-bottom: 0.5rem;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.cta-section--split .cta-section__icon {
|
|
232
|
+
margin-bottom: 0;
|
|
233
|
+
min-height: 300px;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.cta-section--left .cta-section__icon {
|
|
237
|
+
margin-left: 0;
|
|
238
|
+
margin-right: auto;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.cta-section--center .cta-section__icon {
|
|
242
|
+
margin-left: auto;
|
|
243
|
+
margin-right: auto;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.cta-section--right .cta-section__icon {
|
|
247
|
+
margin-left: auto;
|
|
248
|
+
margin-right: 0;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
/* Focus visible for interactive elements */
|
|
252
|
+
.cta-section__actions :global(a:focus-visible),
|
|
253
|
+
.cta-section__actions :global(button:focus-visible) {
|
|
254
|
+
outline: 2px solid currentColor;
|
|
255
|
+
outline-offset: 2px;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/* Mobile optimization */
|
|
259
|
+
@media (max-width: 767px) {
|
|
260
|
+
.cta-section {
|
|
261
|
+
padding-left: 1rem;
|
|
262
|
+
padding-right: 1rem;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.cta-section--sm {
|
|
266
|
+
--cta-padding: 1.5rem;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.cta-section--md {
|
|
270
|
+
--cta-padding: 2.5rem;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.cta-section--lg {
|
|
274
|
+
--cta-padding: 4rem;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.cta-section__actions {
|
|
278
|
+
width: 100%;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.cta-section__actions :global(a),
|
|
282
|
+
.cta-section__actions :global(button) {
|
|
283
|
+
min-height: 44px;
|
|
284
|
+
min-width: 44px;
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
/* Dark mode support */
|
|
289
|
+
@media (prefers-color-scheme: dark) {
|
|
290
|
+
.cta-section--default {
|
|
291
|
+
--cta-bg: var(--color-primary-dark, #004999);
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.cta-section--image::before {
|
|
295
|
+
background: rgba(0, 0, 0, 0.65);
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
</style>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Snippet } from 'svelte';
|
|
2
|
+
export interface CTASectionProps {
|
|
3
|
+
title: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
variant?: 'default' | 'gradient' | 'image' | 'split';
|
|
6
|
+
background?: string;
|
|
7
|
+
align?: 'left' | 'center' | 'right';
|
|
8
|
+
size?: 'sm' | 'md' | 'lg';
|
|
9
|
+
class?: string;
|
|
10
|
+
actions: Snippet;
|
|
11
|
+
icon?: Snippet;
|
|
12
|
+
}
|
|
13
|
+
declare const CTASection: import("svelte").Component<CTASectionProps, {}, "">;
|
|
14
|
+
type CTASection = ReturnType<typeof CTASection>;
|
|
15
|
+
export default CTASection;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as CTASection } from './CTASection.svelte';
|