@sharadox/sharadox-web-library 0.6.6 → 0.7.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/README.md +46 -8
- package/distribution/action/send-contact/index.d.ts +5 -6
- package/distribution/action/send-contact/index.d.ts.map +1 -1
- package/distribution/action/send-contact/index.js +13 -49
- package/distribution/action/send-contact/index.js.map +1 -1
- package/distribution/action/send-contact/type.d.ts +1 -3
- package/distribution/action/send-contact/type.d.ts.map +1 -1
- package/distribution/component/button/index.module.css +1 -58
- package/distribution/component/button/index.module.scss +60 -0
- package/distribution/component/capability/index.js +2 -2
- package/distribution/component/capability/index.module.css +1 -94
- package/distribution/component/capability/index.module.scss +85 -0
- package/distribution/component/capability/type.d.ts +1 -1
- package/distribution/component/consent/index.d.ts +1 -4
- package/distribution/component/consent/index.d.ts.map +1 -1
- package/distribution/component/consent/index.js +19 -32
- package/distribution/component/consent/index.js.map +1 -1
- package/distribution/component/consent/index.module.css +1 -183
- package/distribution/component/consent/index.module.scss +45 -0
- package/distribution/component/consent/preferences-link/index.js +1 -1
- package/distribution/component/consent/type.d.ts +1 -1
- package/distribution/component/contact/form/index.d.ts.map +1 -1
- package/distribution/component/contact/form/index.js +4 -4
- package/distribution/component/contact/form/index.js.map +1 -1
- package/distribution/component/contact/form/index.module.css +1 -168
- package/distribution/component/contact/form/index.module.scss +163 -0
- package/distribution/component/contact/form/type.d.ts +1 -1
- package/distribution/component/contact/index.js +2 -2
- package/distribution/component/contact/index.module.css +1 -56
- package/distribution/component/contact/index.module.scss +52 -0
- package/distribution/component/contact/type.d.ts +1 -1
- package/distribution/component/cross/index.module.css +1 -53
- package/distribution/component/cross/index.module.scss +50 -0
- package/distribution/component/eyebrow/index.module.css +1 -9
- package/distribution/component/eyebrow/index.module.scss +9 -0
- package/distribution/component/footer/index.js +4 -4
- package/distribution/component/footer/index.js.map +1 -1
- package/distribution/component/footer/index.module.css +1 -138
- package/distribution/component/footer/index.module.scss +125 -0
- package/distribution/component/footer/type.d.ts +1 -1
- package/distribution/component/globe/index.d.ts +2 -2
- package/distribution/component/globe/index.d.ts.map +1 -1
- package/distribution/component/globe/index.js +23 -32
- package/distribution/component/globe/index.js.map +1 -1
- package/distribution/component/globe/index.module.css +1 -25
- package/distribution/component/globe/index.module.scss +7 -0
- package/distribution/component/hero/guide/index.module.css +1 -97
- package/distribution/component/hero/guide/index.module.scss +94 -0
- package/distribution/component/hero/index.js +1 -1
- package/distribution/component/hero/index.module.css +1 -124
- package/distribution/component/hero/index.module.scss +109 -0
- package/distribution/component/hero/type.d.ts +1 -1
- package/distribution/component/language-switch/index.js +4 -4
- package/distribution/component/language-switch/index.js.map +1 -1
- package/distribution/component/language-switch/index.module.css +1 -20
- package/distribution/component/language-switch/index.module.scss +22 -0
- package/distribution/component/language-switch/type.d.ts +1 -1
- package/distribution/component/marquee/index.js +1 -1
- package/distribution/component/marquee/index.module.css +1 -43
- package/distribution/component/marquee/index.module.scss +39 -0
- package/distribution/component/navigation/index.js +1 -1
- package/distribution/component/navigation/index.module.css +1 -81
- package/distribution/component/navigation/index.module.scss +76 -0
- package/distribution/component/navigation/type.d.ts +1 -1
- package/distribution/component/process/index.js +1 -1
- package/distribution/component/process/index.module.css +1 -43
- package/distribution/component/process/index.module.scss +40 -0
- package/distribution/component/process/step/index.module.css +1 -33
- package/distribution/component/process/step/index.module.scss +31 -0
- package/distribution/component/process/type.d.ts +1 -1
- package/distribution/component/section/index.module.css +1 -35
- package/distribution/component/section/index.module.scss +32 -0
- package/distribution/component/section-heading/index.js +1 -1
- package/distribution/component/section-heading/index.module.css +1 -7
- package/distribution/component/section-heading/index.module.scss +7 -0
- package/distribution/component/section-indicator/index.js +2 -2
- package/distribution/component/section-indicator/index.module.css +1 -145
- package/distribution/component/section-indicator/index.module.scss +143 -0
- package/distribution/component/section-indicator/type.d.ts +1 -1
- package/distribution/component/service-index/index.js +1 -1
- package/distribution/component/service-index/index.module.css +1 -88
- package/distribution/component/service-index/index.module.scss +83 -0
- package/distribution/component/service-index/type.d.ts +1 -1
- package/distribution/component/services/campaign-visual/index.js +2 -2
- package/distribution/component/services/campaign-visual/index.module.css +1 -128
- package/distribution/component/services/campaign-visual/index.module.scss +122 -0
- package/distribution/component/services/campaign-visual/stage/index.js +3 -3
- package/distribution/component/services/campaign-visual/stage/index.js.map +1 -1
- package/distribution/component/services/campaign-visual/stage/type.d.ts +1 -1
- package/distribution/component/services/campaign-visual/type.d.ts +1 -1
- package/distribution/component/services/cell/index.js +2 -2
- package/distribution/component/services/cell/index.module.css +1 -86
- package/distribution/component/services/cell/index.module.scss +81 -0
- package/distribution/component/services/design-visual/index.js +1 -1
- package/distribution/component/services/design-visual/index.module.css +1 -130
- package/distribution/component/services/design-visual/index.module.scss +117 -0
- package/distribution/component/services/index.js +2 -2
- package/distribution/component/services/index.module.css +1 -84
- package/distribution/component/services/index.module.scss +66 -0
- package/distribution/component/services/mobile-visual/index.d.ts.map +1 -1
- package/distribution/component/services/mobile-visual/index.js +2 -1
- package/distribution/component/services/mobile-visual/index.js.map +1 -1
- package/distribution/component/services/mobile-visual/index.module.css +1 -104
- package/distribution/component/services/mobile-visual/index.module.scss +93 -0
- package/distribution/component/services/mobile-visual/type.d.ts +1 -1
- package/distribution/component/services/platform-visual/index.module.css +1 -46
- package/distribution/component/services/platform-visual/index.module.scss +39 -0
- package/distribution/component/services/social-visual/index.js +5 -5
- package/distribution/component/services/social-visual/index.js.map +1 -1
- package/distribution/component/services/social-visual/index.module.css +1 -131
- package/distribution/component/services/social-visual/index.module.scss +120 -0
- package/distribution/component/services/social-visual/type.d.ts +1 -1
- package/distribution/component/services/type.d.ts +1 -1
- package/distribution/component/services/web-visual/index.js +1 -1
- package/distribution/component/services/web-visual/index.module.css +1 -142
- package/distribution/component/services/web-visual/index.module.scss +132 -0
- package/distribution/component/share-image/index.d.ts +1 -2
- package/distribution/component/share-image/index.d.ts.map +1 -1
- package/distribution/component/share-image/index.js +3 -3
- package/distribution/component/share-image/index.js.map +1 -1
- package/distribution/component/share-image/type.d.ts +1 -1
- package/distribution/component/statement/index.js +1 -1
- package/distribution/component/statement/index.module.css +1 -11
- package/distribution/component/statement/index.module.scss +10 -0
- package/distribution/component/structured-data/index.d.ts.map +1 -1
- package/distribution/component/structured-data/index.js +48 -53
- package/distribution/component/structured-data/index.js.map +1 -1
- package/distribution/component/structured-data/type.d.ts +1 -1
- package/distribution/component/style-switch/index.d.ts +2 -2
- package/distribution/component/style-switch/index.d.ts.map +1 -1
- package/distribution/component/style-switch/index.js +11 -18
- package/distribution/component/style-switch/index.js.map +1 -1
- package/distribution/component/style-switch/index.module.css +1 -36
- package/distribution/component/style-switch/index.module.scss +37 -0
- package/distribution/component/style-switch/type.d.ts +1 -1
- package/distribution/component/touchpoint/index.js +3 -3
- package/distribution/component/touchpoint/index.module.css +1 -85
- package/distribution/component/touchpoint/index.module.scss +75 -0
- package/distribution/component/touchpoint/plate/index.module.css +1 -136
- package/distribution/component/touchpoint/plate/index.module.scss +129 -0
- package/distribution/component/touchpoint/type.d.ts +1 -1
- package/distribution/component/wordmark/index.module.css +1 -23
- package/distribution/component/wordmark/index.module.scss +22 -0
- package/distribution/content/locale/index.d.ts +6 -0
- package/distribution/content/locale/index.d.ts.map +1 -0
- package/distribution/content/locale/index.js +7 -0
- package/distribution/content/locale/index.js.map +1 -0
- package/distribution/{utility → content}/locale/type.d.ts +3 -2
- package/distribution/content/locale/type.d.ts.map +1 -0
- package/distribution/{utility → content}/locale/type.js.map +1 -1
- package/distribution/content/style/index.d.ts +47 -43
- package/distribution/content/style/index.d.ts.map +1 -1
- package/distribution/content/style/index.js +20 -13
- package/distribution/content/style/index.js.map +1 -1
- package/distribution/utility/separate/index.d.ts +6 -1
- package/distribution/utility/separate/index.d.ts.map +1 -1
- package/distribution/utility/separate/index.js +8 -2
- package/distribution/utility/separate/index.js.map +1 -1
- package/llms.txt +10 -0
- package/package.json +36 -27
- package/distribution/component/consent/toggle/index.d.ts +0 -4
- package/distribution/component/consent/toggle/index.d.ts.map +0 -1
- package/distribution/component/consent/toggle/index.js +0 -7
- package/distribution/component/consent/toggle/index.js.map +0 -1
- package/distribution/component/consent/toggle/type.d.ts +0 -10
- package/distribution/component/consent/toggle/type.d.ts.map +0 -1
- package/distribution/component/consent/toggle/type.js.map +0 -1
- package/distribution/component/cursor/index.d.ts +0 -3
- package/distribution/component/cursor/index.d.ts.map +0 -1
- package/distribution/component/cursor/index.js +0 -45
- package/distribution/component/cursor/index.js.map +0 -1
- package/distribution/component/cursor/index.module.css +0 -55
- package/distribution/component/globe/arc/index.d.ts +0 -4
- package/distribution/component/globe/arc/index.d.ts.map +0 -1
- package/distribution/component/globe/arc/index.js +0 -29
- package/distribution/component/globe/arc/index.js.map +0 -1
- package/distribution/component/globe/arc/type.d.ts +0 -12
- package/distribution/component/globe/arc/type.d.ts.map +0 -1
- package/distribution/component/globe/arc/type.js +0 -2
- package/distribution/component/globe/arc/type.js.map +0 -1
- package/distribution/component/globe/color/index.d.ts +0 -4
- package/distribution/component/globe/color/index.d.ts.map +0 -1
- package/distribution/component/globe/color/index.js +0 -16
- package/distribution/component/globe/color/index.js.map +0 -1
- package/distribution/component/globe/color/type.d.ts +0 -13
- package/distribution/component/globe/color/type.d.ts.map +0 -1
- package/distribution/component/globe/color/type.js +0 -2
- package/distribution/component/globe/color/type.js.map +0 -1
- package/distribution/component/globe/dots/index.d.ts +0 -4
- package/distribution/component/globe/dots/index.d.ts.map +0 -1
- package/distribution/component/globe/dots/index.js +0 -38
- package/distribution/component/globe/dots/index.js.map +0 -1
- package/distribution/component/globe/dots/type.d.ts +0 -7
- package/distribution/component/globe/dots/type.d.ts.map +0 -1
- package/distribution/component/globe/dots/type.js +0 -2
- package/distribution/component/globe/dots/type.js.map +0 -1
- package/distribution/component/globe/marker/index.d.ts +0 -4
- package/distribution/component/globe/marker/index.d.ts.map +0 -1
- package/distribution/component/globe/marker/index.js +0 -21
- package/distribution/component/globe/marker/index.js.map +0 -1
- package/distribution/component/globe/marker/type.d.ts +0 -9
- package/distribution/component/globe/marker/type.d.ts.map +0 -1
- package/distribution/component/globe/marker/type.js +0 -2
- package/distribution/component/globe/marker/type.js.map +0 -1
- package/distribution/component/globe/shader/arc/index.d.ts +0 -6
- package/distribution/component/globe/shader/arc/index.d.ts.map +0 -1
- package/distribution/component/globe/shader/arc/index.js +0 -24
- package/distribution/component/globe/shader/arc/index.js.map +0 -1
- package/distribution/component/globe/shader/atmosphere/index.d.ts +0 -6
- package/distribution/component/globe/shader/atmosphere/index.d.ts.map +0 -1
- package/distribution/component/globe/shader/atmosphere/index.js +0 -15
- package/distribution/component/globe/shader/atmosphere/index.js.map +0 -1
- package/distribution/component/globe/shader/body/index.d.ts +0 -6
- package/distribution/component/globe/shader/body/index.d.ts.map +0 -1
- package/distribution/component/globe/shader/body/index.js +0 -15
- package/distribution/component/globe/shader/body/index.js.map +0 -1
- package/distribution/component/globe/shader/dot/index.d.ts +0 -6
- package/distribution/component/globe/shader/dot/index.d.ts.map +0 -1
- package/distribution/component/globe/shader/dot/index.js +0 -29
- package/distribution/component/globe/shader/dot/index.js.map +0 -1
- package/distribution/component/globe/shader/glow-vertex/index.d.ts +0 -3
- package/distribution/component/globe/shader/glow-vertex/index.d.ts.map +0 -1
- package/distribution/component/globe/shader/glow-vertex/index.js +0 -9
- package/distribution/component/globe/shader/glow-vertex/index.js.map +0 -1
- package/distribution/component/globe/world/index.d.ts +0 -4
- package/distribution/component/globe/world/index.d.ts.map +0 -1
- package/distribution/component/globe/world/index.js +0 -39
- package/distribution/component/globe/world/index.js.map +0 -1
- package/distribution/component/globe/world/type.d.ts +0 -10
- package/distribution/component/globe/world/type.d.ts.map +0 -1
- package/distribution/component/globe/world/type.js +0 -2
- package/distribution/component/globe/world/type.js.map +0 -1
- package/distribution/component/locale-link/index.d.ts +0 -4
- package/distribution/component/locale-link/index.d.ts.map +0 -1
- package/distribution/component/locale-link/index.js +0 -9
- package/distribution/component/locale-link/index.js.map +0 -1
- package/distribution/component/locale-link/type.d.ts +0 -10
- package/distribution/component/locale-link/type.d.ts.map +0 -1
- package/distribution/component/locale-link/type.js +0 -2
- package/distribution/component/locale-link/type.js.map +0 -1
- package/distribution/hook/globe-drag/index.d.ts +0 -10
- package/distribution/hook/globe-drag/index.d.ts.map +0 -1
- package/distribution/hook/globe-drag/index.js +0 -99
- package/distribution/hook/globe-drag/index.js.map +0 -1
- package/distribution/hook/globe-drag/type.d.ts +0 -11
- package/distribution/hook/globe-drag/type.d.ts.map +0 -1
- package/distribution/hook/globe-drag/type.js +0 -2
- package/distribution/hook/globe-drag/type.js.map +0 -1
- package/distribution/hook/land-points/index.d.ts +0 -3
- package/distribution/hook/land-points/index.d.ts.map +0 -1
- package/distribution/hook/land-points/index.js +0 -17
- package/distribution/hook/land-points/index.js.map +0 -1
- package/distribution/style/token/index.css +0 -1
- package/distribution/utility/hex-channel/index.d.ts +0 -3
- package/distribution/utility/hex-channel/index.d.ts.map +0 -1
- package/distribution/utility/hex-channel/index.js +0 -8
- package/distribution/utility/hex-channel/index.js.map +0 -1
- package/distribution/utility/latitude-longitude-to-vector/index.d.ts +0 -7
- package/distribution/utility/latitude-longitude-to-vector/index.d.ts.map +0 -1
- package/distribution/utility/latitude-longitude-to-vector/index.js +0 -12
- package/distribution/utility/latitude-longitude-to-vector/index.js.map +0 -1
- package/distribution/utility/locale/index.d.ts +0 -6
- package/distribution/utility/locale/index.d.ts.map +0 -1
- package/distribution/utility/locale/index.js +0 -8
- package/distribution/utility/locale/index.js.map +0 -1
- package/distribution/utility/locale/type.d.ts.map +0 -1
- package/distribution/utility/locale/type.js +0 -2
- package/distribution/utility/parse-contact/index.d.ts +0 -4
- package/distribution/utility/parse-contact/index.d.ts.map +0 -1
- package/distribution/utility/parse-contact/index.js +0 -23
- package/distribution/utility/parse-contact/index.js.map +0 -1
- package/distribution/utility/parse-contact/type.d.ts +0 -20
- package/distribution/utility/parse-contact/type.d.ts.map +0 -1
- package/distribution/utility/parse-contact/type.js +0 -2
- package/distribution/utility/parse-contact/type.js.map +0 -1
- package/distribution/utility/web-gl-support/index.d.ts +0 -3
- package/distribution/utility/web-gl-support/index.d.ts.map +0 -1
- package/distribution/utility/web-gl-support/index.js +0 -11
- package/distribution/utility/web-gl-support/index.js.map +0 -1
- /package/distribution/{component/consent/toggle → content/locale}/type.js +0 -0
|
@@ -1,25 +1 @@
|
|
|
1
|
-
.globe
|
|
2
|
-
position: absolute;
|
|
3
|
-
inset: 0;
|
|
4
|
-
}
|
|
5
|
-
.globe canvas {
|
|
6
|
-
display: block;
|
|
7
|
-
touch-action: pan-y;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.halo {
|
|
11
|
-
position: absolute;
|
|
12
|
-
inset: 14%;
|
|
13
|
-
border-radius: 50%;
|
|
14
|
-
background: radial-gradient(closest-side, color-mix(in srgb, var(--foreground) 14%, transparent), color-mix(in srgb, var(--foreground) 4%, transparent) 60%, transparent);
|
|
15
|
-
filter: blur(30px);
|
|
16
|
-
pointer-events: none;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.fallback {
|
|
20
|
-
position: absolute;
|
|
21
|
-
inset: 18%;
|
|
22
|
-
border-radius: 50%;
|
|
23
|
-
background: radial-gradient(circle at 35% 30%, var(--surface), var(--background) 70%);
|
|
24
|
-
box-shadow: 0 0 120px 10px color-mix(in srgb, var(--foreground) 8%, transparent), inset 0 0 40px color-mix(in srgb, var(--foreground) 8%, transparent);
|
|
25
|
-
}
|
|
1
|
+
.globe{--globe-glow: var(--foreground);--globe-surface: var(--background);position:absolute;inset:0}
|
|
@@ -1,97 +1 @@
|
|
|
1
|
-
.guide {
|
|
2
|
-
position: absolute;
|
|
3
|
-
inset: 0;
|
|
4
|
-
z-index: 0;
|
|
5
|
-
overflow: hidden;
|
|
6
|
-
pointer-events: none;
|
|
7
|
-
mask-image: radial-gradient(75% 70% at 60% 45%, #000 30%, transparent 85%);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.column {
|
|
11
|
-
position: absolute;
|
|
12
|
-
top: 0;
|
|
13
|
-
bottom: 0;
|
|
14
|
-
width: 1px;
|
|
15
|
-
background: linear-gradient(180deg, var(--line-2) 50%, transparent 0) 0 0/1px 10px repeat-y;
|
|
16
|
-
transform-origin: top;
|
|
17
|
-
animation: grow-down 1.6s cubic-bezier(0.22, 1, 0.36, 1) both;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.row {
|
|
21
|
-
position: absolute;
|
|
22
|
-
left: 0;
|
|
23
|
-
right: 0;
|
|
24
|
-
height: 1px;
|
|
25
|
-
background: linear-gradient(90deg, var(--line-2) 50%, transparent 0) 0 0/10px 1px repeat-x;
|
|
26
|
-
transform-origin: left;
|
|
27
|
-
animation: grow-across 1.6s cubic-bezier(0.22, 1, 0.36, 1) both;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
@keyframes grow-down {
|
|
31
|
-
from {
|
|
32
|
-
transform: scaleY(0);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
@keyframes grow-across {
|
|
36
|
-
from {
|
|
37
|
-
transform: scaleX(0);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
.beam {
|
|
41
|
-
position: absolute;
|
|
42
|
-
opacity: 0;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.down {
|
|
46
|
-
top: 0;
|
|
47
|
-
width: 1px;
|
|
48
|
-
height: 120px;
|
|
49
|
-
margin-left: -0.5px;
|
|
50
|
-
background: linear-gradient(180deg, transparent, var(--foreground));
|
|
51
|
-
animation: beam-down 7s 1.4s linear infinite;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.across {
|
|
55
|
-
left: 0;
|
|
56
|
-
height: 1px;
|
|
57
|
-
width: 160px;
|
|
58
|
-
margin-top: -0.5px;
|
|
59
|
-
background: linear-gradient(90deg, transparent, var(--foreground));
|
|
60
|
-
animation: beam-across 9s 2.2s linear infinite;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.late {
|
|
64
|
-
animation-delay: 4.6s;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
@keyframes beam-down {
|
|
68
|
-
0% {
|
|
69
|
-
opacity: 0;
|
|
70
|
-
transform: translateY(-120px);
|
|
71
|
-
}
|
|
72
|
-
8% {
|
|
73
|
-
opacity: 1;
|
|
74
|
-
}
|
|
75
|
-
45%, 100% {
|
|
76
|
-
opacity: 0;
|
|
77
|
-
transform: translateY(100vh);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
@keyframes beam-across {
|
|
81
|
-
0% {
|
|
82
|
-
opacity: 0;
|
|
83
|
-
transform: translateX(-160px);
|
|
84
|
-
}
|
|
85
|
-
8% {
|
|
86
|
-
opacity: 1;
|
|
87
|
-
}
|
|
88
|
-
50%, 100% {
|
|
89
|
-
opacity: 0;
|
|
90
|
-
transform: translateX(100vw);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
@media (prefers-reduced-motion: reduce) {
|
|
94
|
-
.beam {
|
|
95
|
-
display: none;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
1
|
+
.guide{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none;mask-image:radial-gradient(75% 70% at 60% 45%, #000 30%, transparent 85%)}.column{position:absolute;top:0;bottom:0;width:1px;background:linear-gradient(180deg, var(--line-2) 50%, transparent 0) 0 0/1px 10px repeat-y;transform-origin:top;animation:grow-down 1.6s cubic-bezier(0.22, 1, 0.36, 1) both}.row{position:absolute;left:0;right:0;height:1px;background:linear-gradient(90deg, var(--line-2) 50%, transparent 0) 0 0/10px 1px repeat-x;transform-origin:left;animation:grow-across 1.6s cubic-bezier(0.22, 1, 0.36, 1) both}@keyframes grow-down{from{transform:scaleY(0)}}@keyframes grow-across{from{transform:scaleX(0)}}.beam{position:absolute;opacity:0}.down{top:0;width:1px;height:120px;margin-left:-0.5px;background:linear-gradient(180deg, transparent, var(--foreground));animation:beam-down 7s 1.4s linear infinite}.across{left:0;height:1px;width:160px;margin-top:-0.5px;background:linear-gradient(90deg, transparent, var(--foreground));animation:beam-across 9s 2.2s linear infinite}.late{animation-delay:4.6s}@keyframes beam-down{0%{opacity:0;transform:translateY(-120px)}8%{opacity:1}45%,100%{opacity:0;transform:translateY(100vh)}}@keyframes beam-across{0%{opacity:0;transform:translateX(-160px)}8%{opacity:1}50%,100%{opacity:0;transform:translateX(100vw)}}@media(prefers-reduced-motion: reduce){.beam{display:none}}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
@use "style/token" as *;
|
|
2
|
+
|
|
3
|
+
.guide {
|
|
4
|
+
position: absolute;
|
|
5
|
+
inset: 0;
|
|
6
|
+
z-index: 0;
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
pointer-events: none;
|
|
9
|
+
mask-image: radial-gradient(75% 70% at 60% 45%, #000 30%, transparent 85%);
|
|
10
|
+
}
|
|
11
|
+
.column {
|
|
12
|
+
position: absolute;
|
|
13
|
+
top: 0;
|
|
14
|
+
bottom: 0;
|
|
15
|
+
width: 1px;
|
|
16
|
+
@include dashed(vertical, var(--line-2), 5px, 5px);
|
|
17
|
+
transform-origin: top;
|
|
18
|
+
animation: grow-down 1.6s $ease both;
|
|
19
|
+
}
|
|
20
|
+
.row {
|
|
21
|
+
position: absolute;
|
|
22
|
+
left: 0;
|
|
23
|
+
right: 0;
|
|
24
|
+
height: 1px;
|
|
25
|
+
@include dashed(horizontal, var(--line-2), 5px, 5px);
|
|
26
|
+
transform-origin: left;
|
|
27
|
+
animation: grow-across 1.6s $ease both;
|
|
28
|
+
}
|
|
29
|
+
@keyframes grow-down {
|
|
30
|
+
from {
|
|
31
|
+
transform: scaleY(0);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
@keyframes grow-across {
|
|
35
|
+
from {
|
|
36
|
+
transform: scaleX(0);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
.beam {
|
|
40
|
+
position: absolute;
|
|
41
|
+
opacity: 0;
|
|
42
|
+
}
|
|
43
|
+
.down {
|
|
44
|
+
top: 0;
|
|
45
|
+
width: 1px;
|
|
46
|
+
height: 120px;
|
|
47
|
+
margin-left: -0.5px;
|
|
48
|
+
background: linear-gradient(180deg, transparent, var(--foreground));
|
|
49
|
+
animation: beam-down 7s 1.4s linear infinite;
|
|
50
|
+
}
|
|
51
|
+
.across {
|
|
52
|
+
left: 0;
|
|
53
|
+
height: 1px;
|
|
54
|
+
width: 160px;
|
|
55
|
+
margin-top: -0.5px;
|
|
56
|
+
background: linear-gradient(90deg, transparent, var(--foreground));
|
|
57
|
+
animation: beam-across 9s 2.2s linear infinite;
|
|
58
|
+
}
|
|
59
|
+
.late {
|
|
60
|
+
animation-delay: 4.6s;
|
|
61
|
+
}
|
|
62
|
+
@keyframes beam-down {
|
|
63
|
+
0% {
|
|
64
|
+
opacity: 0;
|
|
65
|
+
transform: translateY(-120px);
|
|
66
|
+
}
|
|
67
|
+
8% {
|
|
68
|
+
opacity: 1;
|
|
69
|
+
}
|
|
70
|
+
45%,
|
|
71
|
+
100% {
|
|
72
|
+
opacity: 0;
|
|
73
|
+
transform: translateY(100vh);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
@keyframes beam-across {
|
|
77
|
+
0% {
|
|
78
|
+
opacity: 0;
|
|
79
|
+
transform: translateX(-160px);
|
|
80
|
+
}
|
|
81
|
+
8% {
|
|
82
|
+
opacity: 1;
|
|
83
|
+
}
|
|
84
|
+
50%,
|
|
85
|
+
100% {
|
|
86
|
+
opacity: 0;
|
|
87
|
+
transform: translateX(100vw);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
@media (prefers-reduced-motion: reduce) {
|
|
91
|
+
.beam {
|
|
92
|
+
display: none;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
@@ -8,7 +8,7 @@ import { Eyebrow } from "@sharadox/sharadox-web-library/component/eyebrow";
|
|
|
8
8
|
import { GlobePlaceholder } from "@sharadox/sharadox-web-library/component/globe/placeholder";
|
|
9
9
|
import { HeroGuide } from "@sharadox/sharadox-web-library/component/hero/guide";
|
|
10
10
|
import { HERO } from "@sharadox/sharadox-web-library/content/hero";
|
|
11
|
-
import { translate } from "@sharadox/web-library/
|
|
11
|
+
import { translate } from "@sharadox/internationalization-web-library/translate";
|
|
12
12
|
import styles from "./index.module.css";
|
|
13
13
|
const Globe = dynamic(() => import("@sharadox/sharadox-web-library/component/globe"), {
|
|
14
14
|
ssr: false,
|
|
@@ -1,124 +1 @@
|
|
|
1
|
-
.hero {
|
|
2
|
-
position: relative;
|
|
3
|
-
min-height: min(100svh, 980px);
|
|
4
|
-
width: min(100% - 2 * var(--gutter), var(--maximum-width));
|
|
5
|
-
margin: 0 auto;
|
|
6
|
-
padding: 104px var(--padding) 56px;
|
|
7
|
-
border-inline: 1px solid var(--line);
|
|
8
|
-
display: grid;
|
|
9
|
-
grid-template-columns: 1fr 1fr;
|
|
10
|
-
align-items: center;
|
|
11
|
-
gap: 24px;
|
|
12
|
-
}
|
|
13
|
-
@media (max-width: 900px) {
|
|
14
|
-
.hero {
|
|
15
|
-
grid-template-columns: 1fr;
|
|
16
|
-
padding-top: 72px;
|
|
17
|
-
gap: 0;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.copy {
|
|
22
|
-
position: relative;
|
|
23
|
-
z-index: 2;
|
|
24
|
-
container-type: inline-size;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.eyebrow {
|
|
28
|
-
padding: 6px 12px 6px 10px;
|
|
29
|
-
border: 1px solid var(--line-2);
|
|
30
|
-
border-radius: 99px;
|
|
31
|
-
background: color-mix(in srgb, var(--background) 60%, transparent);
|
|
32
|
-
backdrop-filter: blur(6px);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.live {
|
|
36
|
-
width: 7px;
|
|
37
|
-
height: 7px;
|
|
38
|
-
border-radius: 50%;
|
|
39
|
-
background: var(--foreground);
|
|
40
|
-
box-shadow: 0 0 0 0 color-mix(in srgb, var(--foreground) 60%, transparent);
|
|
41
|
-
animation: live 2.4s infinite;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
@keyframes live {
|
|
45
|
-
70% {
|
|
46
|
-
box-shadow: 0 0 0 9px color-mix(in srgb, var(--foreground) 0%, transparent);
|
|
47
|
-
}
|
|
48
|
-
100% {
|
|
49
|
-
box-shadow: 0 0 0 0 color-mix(in srgb, var(--foreground) 0%, transparent);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
.title {
|
|
53
|
-
margin: 26px 0 26px;
|
|
54
|
-
/* Each line stays on one line: the size follows the column so the longest line ("que simplificam") fits. */
|
|
55
|
-
font-size: min(clamp(3rem, 7vw, 6.4rem), 14.6cqi);
|
|
56
|
-
white-space: nowrap;
|
|
57
|
-
letter-spacing: -0.06em;
|
|
58
|
-
line-height: 0.95;
|
|
59
|
-
}
|
|
60
|
-
@media (max-width: 900px) {
|
|
61
|
-
.title {
|
|
62
|
-
margin-top: 18px;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.line {
|
|
67
|
-
display: block;
|
|
68
|
-
overflow: hidden;
|
|
69
|
-
padding-bottom: 0.06em;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.lineInner {
|
|
73
|
-
display: inline-block;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.dim {
|
|
77
|
-
background: linear-gradient(180deg, var(--foreground) 10%, var(--foreground-3) 120%);
|
|
78
|
-
-webkit-background-clip: text;
|
|
79
|
-
background-clip: text;
|
|
80
|
-
color: transparent;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.subtitle {
|
|
84
|
-
max-width: 31rem;
|
|
85
|
-
font-size: clamp(1.05rem, 1.4vw, 1.2rem);
|
|
86
|
-
color: var(--foreground-2);
|
|
87
|
-
line-height: 1.55;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.actions {
|
|
91
|
-
display: flex;
|
|
92
|
-
flex-wrap: wrap;
|
|
93
|
-
gap: 12px;
|
|
94
|
-
margin-top: 34px;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.globe {
|
|
98
|
-
position: relative;
|
|
99
|
-
z-index: 1;
|
|
100
|
-
aspect-ratio: 1;
|
|
101
|
-
width: 128%;
|
|
102
|
-
margin: -6% -24% -6% 0;
|
|
103
|
-
justify-self: end;
|
|
104
|
-
}
|
|
105
|
-
@media (max-width: 900px) {
|
|
106
|
-
.globe {
|
|
107
|
-
order: -1;
|
|
108
|
-
width: 112%;
|
|
109
|
-
margin: 0 -6%;
|
|
110
|
-
justify-self: center;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.hint {
|
|
115
|
-
position: absolute;
|
|
116
|
-
left: 50%;
|
|
117
|
-
bottom: 13%;
|
|
118
|
-
transform: translateX(-50%);
|
|
119
|
-
font-size: 11.5px;
|
|
120
|
-
letter-spacing: 0.06em;
|
|
121
|
-
text-transform: uppercase;
|
|
122
|
-
color: var(--foreground-3);
|
|
123
|
-
pointer-events: none;
|
|
124
|
-
}
|
|
1
|
+
.hero{position:relative;min-height:min(100svh,980px);width:min(100% - 2*var(--gutter),var(--maximum-width));margin:0 auto;padding:104px var(--padding) 56px;border-inline:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:24px}@media(max-width: 900px){.hero{grid-template-columns:1fr;padding-top:72px;gap:0}}.copy{position:relative;z-index:2;container-type:inline-size}.eyebrow{padding:6px 12px 6px 10px;border:1px solid var(--line-2);border-radius:99px;background:color-mix(in srgb, var(--background) 60%, transparent);backdrop-filter:blur(6px)}.live{width:7px;height:7px;border-radius:50%;background:var(--foreground);box-shadow:0 0 0 0 color-mix(in srgb, var(--foreground) 60%, transparent);animation:live 2.4s infinite}@keyframes live{70%{box-shadow:0 0 0 9px color-mix(in srgb, var(--foreground) 0%, transparent)}100%{box-shadow:0 0 0 0 color-mix(in srgb, var(--foreground) 0%, transparent)}}.title{margin:26px 0 26px;font-size:min(clamp(3rem,7vw,6.4rem),14.6cqi);white-space:nowrap;letter-spacing:-0.06em;line-height:.95}@media(max-width: 900px){.title{margin-top:18px}}.line{display:block;overflow:hidden;padding-bottom:.06em}.lineInner{display:inline-block}.dim{background:linear-gradient(180deg, var(--foreground) 10%, var(--foreground-3) 120%);-webkit-background-clip:text;background-clip:text;color:rgba(0,0,0,0)}.subtitle{max-width:31rem;font-size:clamp(1.05rem,1.4vw,1.2rem);color:var(--foreground-2);line-height:1.55}.actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:34px}.globe{position:relative;z-index:1;aspect-ratio:1;width:128%;margin:-6% -24% -6% 0;justify-self:end}@media(max-width: 900px){.globe{order:-1;width:112%;margin:0 -6%;justify-self:center}}.hint{position:absolute;left:50%;bottom:13%;transform:translateX(-50%);font-size:11.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--foreground-3);pointer-events:none}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
@use "style/token" as *;
|
|
2
|
+
|
|
3
|
+
.hero {
|
|
4
|
+
position: relative;
|
|
5
|
+
min-height: min(100svh, 980px);
|
|
6
|
+
width: min(100% - 2 * var(--gutter), var(--maximum-width));
|
|
7
|
+
margin: 0 auto;
|
|
8
|
+
padding: 104px var(--padding) 56px;
|
|
9
|
+
border-inline: 1px solid var(--line);
|
|
10
|
+
display: grid;
|
|
11
|
+
grid-template-columns: 1fr 1fr;
|
|
12
|
+
align-items: center;
|
|
13
|
+
gap: 24px;
|
|
14
|
+
@include below(900px) {
|
|
15
|
+
grid-template-columns: 1fr;
|
|
16
|
+
padding-top: 72px;
|
|
17
|
+
gap: 0;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
.copy {
|
|
21
|
+
position: relative;
|
|
22
|
+
z-index: 2;
|
|
23
|
+
container-type: inline-size;
|
|
24
|
+
}
|
|
25
|
+
.eyebrow {
|
|
26
|
+
padding: 6px 12px 6px 10px;
|
|
27
|
+
border: 1px solid var(--line-2);
|
|
28
|
+
border-radius: 99px;
|
|
29
|
+
background: shade(60%);
|
|
30
|
+
backdrop-filter: blur(6px);
|
|
31
|
+
}
|
|
32
|
+
.live {
|
|
33
|
+
width: 7px;
|
|
34
|
+
height: 7px;
|
|
35
|
+
border-radius: 50%;
|
|
36
|
+
background: var(--foreground);
|
|
37
|
+
box-shadow: 0 0 0 0 tint(60%);
|
|
38
|
+
animation: live 2.4s infinite;
|
|
39
|
+
}
|
|
40
|
+
@keyframes live {
|
|
41
|
+
70% {
|
|
42
|
+
box-shadow: 0 0 0 9px tint(0%);
|
|
43
|
+
}
|
|
44
|
+
100% {
|
|
45
|
+
box-shadow: 0 0 0 0 tint(0%);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
.title {
|
|
49
|
+
margin: 26px 0 26px;
|
|
50
|
+
/* Each line stays on one line: the size follows the column so the longest line ("que simplificam") fits. */
|
|
51
|
+
font-size: min(clamp(3rem, 7vw, 6.4rem), 14.6cqi);
|
|
52
|
+
white-space: nowrap;
|
|
53
|
+
letter-spacing: -0.06em;
|
|
54
|
+
line-height: 0.95;
|
|
55
|
+
@include below(900px) {
|
|
56
|
+
margin-top: 18px;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
.line {
|
|
60
|
+
display: block;
|
|
61
|
+
overflow: hidden;
|
|
62
|
+
padding-bottom: 0.06em;
|
|
63
|
+
}
|
|
64
|
+
.lineInner {
|
|
65
|
+
display: inline-block;
|
|
66
|
+
}
|
|
67
|
+
.dim {
|
|
68
|
+
background: linear-gradient(180deg, var(--foreground) 10%, var(--foreground-3) 120%);
|
|
69
|
+
-webkit-background-clip: text;
|
|
70
|
+
background-clip: text;
|
|
71
|
+
color: transparent;
|
|
72
|
+
}
|
|
73
|
+
.subtitle {
|
|
74
|
+
max-width: 31rem;
|
|
75
|
+
font-size: clamp(1.05rem, 1.4vw, 1.2rem);
|
|
76
|
+
color: var(--foreground-2);
|
|
77
|
+
line-height: 1.55;
|
|
78
|
+
}
|
|
79
|
+
.actions {
|
|
80
|
+
display: flex;
|
|
81
|
+
flex-wrap: wrap;
|
|
82
|
+
gap: 12px;
|
|
83
|
+
margin-top: 34px;
|
|
84
|
+
}
|
|
85
|
+
.globe {
|
|
86
|
+
position: relative;
|
|
87
|
+
z-index: 1;
|
|
88
|
+
aspect-ratio: 1;
|
|
89
|
+
width: 128%;
|
|
90
|
+
margin: -6% -24% -6% 0;
|
|
91
|
+
justify-self: end;
|
|
92
|
+
@include below(900px) {
|
|
93
|
+
order: -1;
|
|
94
|
+
width: 112%;
|
|
95
|
+
margin: 0 -6%;
|
|
96
|
+
justify-self: center;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
.hint {
|
|
100
|
+
position: absolute;
|
|
101
|
+
left: 50%;
|
|
102
|
+
bottom: 13%;
|
|
103
|
+
transform: translateX(-50%);
|
|
104
|
+
font-size: 11.5px;
|
|
105
|
+
letter-spacing: 0.06em;
|
|
106
|
+
text-transform: uppercase;
|
|
107
|
+
color: var(--foreground-3);
|
|
108
|
+
pointer-events: none;
|
|
109
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { translate } from "@sharadox/web-library/
|
|
3
|
-
import { LocaleLink } from "@sharadox/
|
|
2
|
+
import { translate } from "@sharadox/internationalization-web-library/translate";
|
|
3
|
+
import { LocaleLink } from "@sharadox/internationalization-web-library/locale-link";
|
|
4
4
|
import { NAVIGATION } from "@sharadox/sharadox-web-library/content/navigation";
|
|
5
|
-
import { LOCALES } from "@sharadox/sharadox-web-library/
|
|
5
|
+
import { LOCALES } from "@sharadox/sharadox-web-library/content/locale";
|
|
6
6
|
import styles from "./index.module.css";
|
|
7
7
|
/** EN/PT pill toggle. A manual choice is remembered, so sharadox.com opens in that language next time. */
|
|
8
8
|
export function LanguageSwitch({ locale }) {
|
|
9
|
-
return (_jsx("div", { className: styles.switch, role: "group", "aria-label": translate(NAVIGATION.language, locale), children: LOCALES.map((other) => (_jsx(LocaleLink, { locale: other, current: other === locale, children: other.toUpperCase() }, other))) }));
|
|
9
|
+
return (_jsx("div", { className: styles.switch, role: "group", "aria-label": translate(NAVIGATION.language, locale), children: LOCALES.locales.map((other) => (_jsx(LocaleLink, { locale: other, current: other === locale, children: other.toUpperCase() }, other))) }));
|
|
10
10
|
}
|
|
11
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/language-switch/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/language-switch/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,EAAE,UAAU,EAAE,MAAM,wDAAwD,CAAC;AACpF,OAAO,EAAE,UAAU,EAAE,MAAM,mDAAmD,CAAC;AAC/E,OAAO,EAAE,OAAO,EAAE,MAAM,+CAA+C,CAAC;AACxE,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC,0GAA0G;AAC1G,MAAM,UAAU,cAAc,CAAC,EAAE,MAAM,EAA4B;IACjE,OAAO,CACL,cAAK,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,EAAC,OAAO,gBAAa,SAAS,CAAC,UAAU,CAAC,QAAQ,EAAE,MAAM,CAAC,YAC3F,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAC9B,KAAC,UAAU,IAAa,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,KAAK,MAAM,YAC7D,KAAK,CAAC,WAAW,EAAE,IADL,KAAK,CAET,CACd,CAAC,GACE,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,20 +1 @@
|
|
|
1
|
-
.switch {
|
|
2
|
-
display: flex;
|
|
3
|
-
padding: 3px;
|
|
4
|
-
border: 1px solid var(--line-2);
|
|
5
|
-
border-radius: 99px;
|
|
6
|
-
}
|
|
7
|
-
.switch a {
|
|
8
|
-
font: 500 11px/1 var(--monospace);
|
|
9
|
-
padding: 7.5px 9px;
|
|
10
|
-
border-radius: 99px;
|
|
11
|
-
color: var(--foreground-3);
|
|
12
|
-
transition: color 0.2s, background 0.2s;
|
|
13
|
-
}
|
|
14
|
-
.switch a:hover {
|
|
15
|
-
color: var(--foreground);
|
|
16
|
-
}
|
|
17
|
-
.switch a[aria-current] {
|
|
18
|
-
background: var(--foreground);
|
|
19
|
-
color: var(--background);
|
|
20
|
-
}
|
|
1
|
+
.switch{display:flex;padding:3px;border:1px solid var(--line-2);border-radius:99px}.switch a{font:500 11px/1 var(--monospace);padding:7.5px 9px;border-radius:99px;color:var(--foreground-3);transition:color .2s,background .2s}.switch a:hover{color:var(--foreground)}.switch a[aria-current]{background:var(--foreground);color:var(--background)}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
.switch {
|
|
2
|
+
display: flex;
|
|
3
|
+
padding: 3px;
|
|
4
|
+
border: 1px solid var(--line-2);
|
|
5
|
+
border-radius: 99px;
|
|
6
|
+
a {
|
|
7
|
+
font: 500 11px/1 var(--monospace);
|
|
8
|
+
padding: 7.5px 9px;
|
|
9
|
+
border-radius: 99px;
|
|
10
|
+
color: var(--foreground-3);
|
|
11
|
+
transition:
|
|
12
|
+
color 0.2s,
|
|
13
|
+
background 0.2s;
|
|
14
|
+
&:hover {
|
|
15
|
+
color: var(--foreground);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
a[aria-current] {
|
|
19
|
+
background: var(--foreground);
|
|
20
|
+
color: var(--background);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { useMarquee } from "@sharadox/web-library/
|
|
3
|
+
import { useMarquee } from "@sharadox/animation-web-library/marquee";
|
|
4
4
|
import { STACK } from "@sharadox/sharadox-web-library/content/stack";
|
|
5
5
|
import styles from "./index.module.css";
|
|
6
6
|
/** Times the list repeats inside one group, so a group is always wider than the widest screen. */
|
|
@@ -1,43 +1 @@
|
|
|
1
|
-
|
|
2
|
-
.frame {
|
|
3
|
-
position: relative;
|
|
4
|
-
width: min(100% - 2 * var(--gutter), var(--maximum-width));
|
|
5
|
-
margin-inline: auto;
|
|
6
|
-
border: 1px solid var(--line);
|
|
7
|
-
border-bottom: 0;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.marquee {
|
|
11
|
-
--marquee-gap: 12px;
|
|
12
|
-
overflow: hidden;
|
|
13
|
-
padding: 22px 0;
|
|
14
|
-
mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.track {
|
|
18
|
-
display: flex;
|
|
19
|
-
width: max-content;
|
|
20
|
-
cursor: grab;
|
|
21
|
-
touch-action: pan-y;
|
|
22
|
-
user-select: none;
|
|
23
|
-
will-change: transform;
|
|
24
|
-
}
|
|
25
|
-
.track:active {
|
|
26
|
-
cursor: grabbing;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/* Each group ends with the same gap that separates the pills, so both groups are exactly the same width. */
|
|
30
|
-
.group {
|
|
31
|
-
display: flex;
|
|
32
|
-
gap: var(--marquee-gap);
|
|
33
|
-
padding-right: var(--marquee-gap);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.pill {
|
|
37
|
-
padding: 9px 16px;
|
|
38
|
-
border-radius: 99px;
|
|
39
|
-
border: 1px solid var(--line-2);
|
|
40
|
-
font-size: 13px;
|
|
41
|
-
color: var(--foreground-2);
|
|
42
|
-
white-space: nowrap;
|
|
43
|
-
}
|
|
1
|
+
.frame{position:relative;width:min(100% - 2*var(--gutter),var(--maximum-width));margin-inline:auto;border:1px solid var(--line);border-bottom:0}.marquee{--marquee-gap: 12px;overflow:hidden;padding:22px 0;mask-image:linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent)}.track{display:flex;width:max-content;cursor:grab;touch-action:pan-y;user-select:none;will-change:transform}.track:active{cursor:grabbing}.group{display:flex;gap:var(--marquee-gap);padding-right:var(--marquee-gap)}.pill{padding:9px 16px;border-radius:99px;border:1px solid var(--line-2);font-size:13px;color:var(--foreground-2);white-space:nowrap}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/* The frame carries the grid's rails and top line; the strip inside fades at its edges. */
|
|
2
|
+
.frame {
|
|
3
|
+
position: relative;
|
|
4
|
+
width: min(100% - 2 * var(--gutter), var(--maximum-width));
|
|
5
|
+
margin-inline: auto;
|
|
6
|
+
border: 1px solid var(--line);
|
|
7
|
+
border-bottom: 0;
|
|
8
|
+
}
|
|
9
|
+
.marquee {
|
|
10
|
+
--marquee-gap: 12px;
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
padding: 22px 0;
|
|
13
|
+
mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
|
|
14
|
+
}
|
|
15
|
+
.track {
|
|
16
|
+
display: flex;
|
|
17
|
+
width: max-content;
|
|
18
|
+
cursor: grab;
|
|
19
|
+
touch-action: pan-y;
|
|
20
|
+
user-select: none;
|
|
21
|
+
will-change: transform;
|
|
22
|
+
&:active {
|
|
23
|
+
cursor: grabbing;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
/* Each group ends with the same gap that separates the pills, so both groups are exactly the same width. */
|
|
27
|
+
.group {
|
|
28
|
+
display: flex;
|
|
29
|
+
gap: var(--marquee-gap);
|
|
30
|
+
padding-right: var(--marquee-gap);
|
|
31
|
+
}
|
|
32
|
+
.pill {
|
|
33
|
+
padding: 9px 16px;
|
|
34
|
+
border-radius: 99px;
|
|
35
|
+
border: 1px solid var(--line-2);
|
|
36
|
+
font-size: 13px;
|
|
37
|
+
color: var(--foreground-2);
|
|
38
|
+
white-space: nowrap;
|
|
39
|
+
}
|
|
@@ -6,7 +6,7 @@ import { LanguageSwitch } from "@sharadox/sharadox-web-library/component/languag
|
|
|
6
6
|
import { StyleSwitch } from "@sharadox/sharadox-web-library/component/style-switch";
|
|
7
7
|
import { Wordmark } from "@sharadox/sharadox-web-library/component/wordmark";
|
|
8
8
|
import { NAVIGATION } from "@sharadox/sharadox-web-library/content/navigation";
|
|
9
|
-
import { translate } from "@sharadox/web-library/
|
|
9
|
+
import { translate } from "@sharadox/internationalization-web-library/translate";
|
|
10
10
|
import styles from "./index.module.css";
|
|
11
11
|
const LINKS = ["services", "capabilities", "process", "contact"];
|
|
12
12
|
/** Fixed top bar that frosts once the page scrolls, with the style and language switches. */
|