@sharadox/sharadox-web-library 0.3.0 → 0.4.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 +4 -2
- package/distribution/action/send-contact/index.d.ts.map +1 -1
- package/distribution/action/send-contact/index.js +6 -3
- package/distribution/action/send-contact/index.js.map +1 -1
- package/distribution/component/button/index.d.ts +1 -1
- package/distribution/component/button/index.d.ts.map +1 -1
- package/distribution/component/button/index.js +2 -2
- package/distribution/component/button/index.js.map +1 -1
- package/distribution/component/button/index.module.css +11 -8
- package/distribution/component/button/type.d.ts +1 -1
- package/distribution/component/capability/index.d.ts +4 -0
- package/distribution/component/capability/index.d.ts.map +1 -0
- package/distribution/component/capability/index.js +13 -0
- package/distribution/component/capability/index.js.map +1 -0
- package/distribution/component/capability/index.module.css +83 -0
- package/distribution/component/{services/application-visual → capability}/type.d.ts +1 -1
- package/distribution/component/capability/type.d.ts.map +1 -0
- package/distribution/component/capability/type.js.map +1 -0
- package/distribution/component/contact/form/index.d.ts.map +1 -1
- package/distribution/component/contact/form/index.js +2 -1
- package/distribution/component/contact/form/index.js.map +1 -1
- package/distribution/component/contact/form/index.module.css +67 -7
- package/distribution/component/contact/index.module.css +2 -2
- package/distribution/component/cross/index.d.ts +4 -0
- package/distribution/component/cross/index.d.ts.map +1 -0
- package/distribution/component/cross/index.js +7 -0
- package/distribution/component/cross/index.js.map +1 -0
- package/distribution/component/cross/index.module.css +53 -0
- package/distribution/component/cross/type.d.ts +6 -0
- package/distribution/component/cross/type.d.ts.map +1 -0
- package/distribution/component/cross/type.js.map +1 -0
- package/distribution/component/cursor/index.module.css +1 -0
- package/distribution/component/footer/index.d.ts +1 -1
- package/distribution/component/footer/index.d.ts.map +1 -1
- package/distribution/component/footer/index.js +12 -5
- package/distribution/component/footer/index.js.map +1 -1
- package/distribution/component/footer/index.module.css +88 -22
- package/distribution/component/globe/arc/index.d.ts +1 -1
- package/distribution/component/globe/arc/index.d.ts.map +1 -1
- package/distribution/component/globe/arc/index.js +4 -4
- package/distribution/component/globe/arc/index.js.map +1 -1
- package/distribution/component/globe/arc/type.d.ts +2 -0
- package/distribution/component/globe/arc/type.d.ts.map +1 -1
- package/distribution/component/globe/color/index.d.ts +4 -0
- package/distribution/component/globe/color/index.d.ts.map +1 -0
- package/distribution/component/globe/color/index.js +16 -0
- package/distribution/component/globe/color/index.js.map +1 -0
- package/distribution/component/globe/color/type.d.ts +13 -0
- package/distribution/component/globe/color/type.d.ts.map +1 -0
- package/distribution/component/globe/color/type.js +2 -0
- package/distribution/component/globe/color/type.js.map +1 -0
- package/distribution/component/globe/dots/index.d.ts +1 -1
- package/distribution/component/globe/dots/index.d.ts.map +1 -1
- package/distribution/component/globe/dots/index.js +6 -2
- package/distribution/component/globe/dots/index.js.map +1 -1
- package/distribution/component/globe/dots/type.d.ts +2 -0
- package/distribution/component/globe/dots/type.d.ts.map +1 -1
- package/distribution/component/globe/index.d.ts +1 -1
- package/distribution/component/globe/index.d.ts.map +1 -1
- package/distribution/component/globe/index.js +8 -3
- package/distribution/component/globe/index.js.map +1 -1
- package/distribution/component/globe/index.module.css +3 -3
- package/distribution/component/globe/marker/index.d.ts +1 -1
- package/distribution/component/globe/marker/index.d.ts.map +1 -1
- package/distribution/component/globe/marker/index.js +2 -2
- package/distribution/component/globe/marker/index.js.map +1 -1
- package/distribution/component/globe/marker/type.d.ts +2 -0
- package/distribution/component/globe/marker/type.d.ts.map +1 -1
- package/distribution/component/globe/shader/arc/index.d.ts.map +1 -1
- package/distribution/component/globe/shader/arc/index.js +2 -1
- package/distribution/component/globe/shader/arc/index.js.map +1 -1
- package/distribution/component/globe/shader/atmosphere/index.d.ts.map +1 -1
- package/distribution/component/globe/shader/atmosphere/index.js +2 -1
- package/distribution/component/globe/shader/atmosphere/index.js.map +1 -1
- package/distribution/component/globe/shader/body/index.d.ts +1 -1
- package/distribution/component/globe/shader/body/index.d.ts.map +1 -1
- package/distribution/component/globe/shader/body/index.js +4 -2
- package/distribution/component/globe/shader/body/index.js.map +1 -1
- package/distribution/component/globe/shader/dot/index.d.ts.map +1 -1
- package/distribution/component/globe/shader/dot/index.js +2 -1
- package/distribution/component/globe/shader/dot/index.js.map +1 -1
- package/distribution/component/globe/world/index.d.ts +1 -1
- package/distribution/component/globe/world/index.d.ts.map +1 -1
- package/distribution/component/globe/world/index.js +11 -7
- package/distribution/component/globe/world/index.js.map +1 -1
- package/distribution/component/globe/world/type.d.ts +2 -0
- package/distribution/component/globe/world/type.d.ts.map +1 -1
- package/distribution/component/hero/guide/index.d.ts +6 -0
- package/distribution/component/hero/guide/index.d.ts.map +1 -0
- package/distribution/component/hero/guide/index.js +12 -0
- package/distribution/component/hero/guide/index.js.map +1 -0
- package/distribution/component/hero/guide/index.module.css +97 -0
- package/distribution/component/hero/index.d.ts +1 -1
- package/distribution/component/hero/index.d.ts.map +1 -1
- package/distribution/component/hero/index.js +4 -2
- package/distribution/component/hero/index.js.map +1 -1
- package/distribution/component/hero/index.module.css +23 -29
- package/distribution/component/language-switch/index.d.ts +1 -1
- package/distribution/component/language-switch/index.d.ts.map +1 -1
- package/distribution/component/language-switch/index.js +5 -3
- package/distribution/component/language-switch/index.js.map +1 -1
- package/distribution/component/language-switch/index.module.css +6 -3
- package/distribution/component/locale-link/index.d.ts +4 -0
- package/distribution/component/locale-link/index.d.ts.map +1 -0
- package/distribution/component/locale-link/index.js +9 -0
- package/distribution/component/locale-link/index.js.map +1 -0
- package/distribution/component/locale-link/type.d.ts +10 -0
- package/distribution/component/locale-link/type.d.ts.map +1 -0
- package/distribution/component/locale-link/type.js +2 -0
- package/distribution/component/locale-link/type.js.map +1 -0
- package/distribution/component/marquee/index.module.css +5 -1
- package/distribution/component/navigation/index.d.ts +1 -1
- package/distribution/component/navigation/index.d.ts.map +1 -1
- package/distribution/component/navigation/index.js +4 -2
- package/distribution/component/navigation/index.js.map +1 -1
- package/distribution/component/navigation/index.module.css +32 -7
- package/distribution/component/process/index.module.css +3 -3
- package/distribution/component/process/step/index.module.css +2 -2
- package/distribution/component/section/index.d.ts +5 -2
- package/distribution/component/section/index.d.ts.map +1 -1
- package/distribution/component/section/index.js +8 -4
- package/distribution/component/section/index.js.map +1 -1
- package/distribution/component/section/index.module.css +32 -3
- package/distribution/component/section/type.d.ts +5 -1
- package/distribution/component/section/type.d.ts.map +1 -1
- package/distribution/component/service-index/index.d.ts +4 -0
- package/distribution/component/service-index/index.d.ts.map +1 -0
- package/distribution/component/service-index/index.js +11 -0
- package/distribution/component/service-index/index.js.map +1 -0
- package/distribution/component/service-index/index.module.css +88 -0
- package/distribution/component/service-index/type.d.ts +5 -0
- package/distribution/component/service-index/type.d.ts.map +1 -0
- package/distribution/component/service-index/type.js +2 -0
- package/distribution/component/service-index/type.js.map +1 -0
- package/distribution/component/services/campaign-visual/index.d.ts +4 -0
- package/distribution/component/services/campaign-visual/index.d.ts.map +1 -0
- package/distribution/component/services/campaign-visual/index.js +18 -0
- package/distribution/component/services/campaign-visual/index.js.map +1 -0
- package/distribution/component/services/campaign-visual/index.module.css +128 -0
- package/distribution/component/services/campaign-visual/stage/index.d.ts +4 -0
- package/distribution/component/services/campaign-visual/stage/index.d.ts.map +1 -0
- package/distribution/component/services/campaign-visual/stage/index.js +11 -0
- package/distribution/component/services/campaign-visual/stage/index.js.map +1 -0
- package/distribution/component/services/campaign-visual/stage/type.d.ts +10 -0
- package/distribution/component/services/campaign-visual/stage/type.d.ts.map +1 -0
- package/distribution/component/services/campaign-visual/stage/type.js +2 -0
- package/distribution/component/services/campaign-visual/stage/type.js.map +1 -0
- package/distribution/component/services/campaign-visual/type.d.ts +5 -0
- package/distribution/component/services/campaign-visual/type.d.ts.map +1 -0
- package/distribution/component/services/campaign-visual/type.js +2 -0
- package/distribution/component/services/campaign-visual/type.js.map +1 -0
- package/distribution/component/services/cell/index.d.ts +7 -0
- package/distribution/component/services/cell/index.d.ts.map +1 -0
- package/distribution/component/services/cell/index.js +15 -0
- package/distribution/component/services/cell/index.js.map +1 -0
- package/distribution/component/services/cell/index.module.css +86 -0
- package/distribution/component/services/cell/type.d.ts +14 -0
- package/distribution/component/services/cell/type.d.ts.map +1 -0
- package/distribution/component/services/cell/type.js +2 -0
- package/distribution/component/services/cell/type.js.map +1 -0
- package/distribution/component/services/design-visual/index.d.ts +5 -0
- package/distribution/component/services/design-visual/index.d.ts.map +1 -0
- package/distribution/component/services/design-visual/index.js +20 -0
- package/distribution/component/services/design-visual/index.js.map +1 -0
- package/distribution/component/services/design-visual/index.module.css +130 -0
- package/distribution/component/services/index.d.ts +1 -1
- package/distribution/component/services/index.d.ts.map +1 -1
- package/distribution/component/services/index.js +16 -10
- package/distribution/component/services/index.js.map +1 -1
- package/distribution/component/services/index.module.css +73 -8
- package/distribution/component/services/mobile-visual/index.d.ts +4 -0
- package/distribution/component/services/mobile-visual/index.d.ts.map +1 -0
- package/distribution/component/services/{application-visual → mobile-visual}/index.js +1 -1
- package/distribution/component/services/mobile-visual/index.js.map +1 -0
- package/distribution/component/services/{application-visual → mobile-visual}/index.module.css +15 -6
- package/distribution/component/services/mobile-visual/type.d.ts +5 -0
- package/distribution/component/services/mobile-visual/type.d.ts.map +1 -0
- package/distribution/component/services/mobile-visual/type.js +2 -0
- package/distribution/component/services/mobile-visual/type.js.map +1 -0
- package/distribution/component/services/platform-visual/index.js +1 -1
- package/distribution/component/services/platform-visual/index.js.map +1 -1
- package/distribution/component/services/platform-visual/index.module.css +8 -8
- package/distribution/component/services/social-visual/index.d.ts +4 -0
- package/distribution/component/services/social-visual/index.d.ts.map +1 -0
- package/distribution/component/services/social-visual/index.js +17 -0
- package/distribution/component/services/social-visual/index.js.map +1 -0
- package/distribution/component/services/social-visual/index.module.css +131 -0
- package/distribution/component/services/social-visual/type.d.ts +5 -0
- package/distribution/component/services/social-visual/type.d.ts.map +1 -0
- package/distribution/component/services/social-visual/type.js +2 -0
- package/distribution/component/services/social-visual/type.js.map +1 -0
- package/distribution/component/services/web-visual/index.module.css +19 -11
- package/distribution/component/statement/index.d.ts.map +1 -1
- package/distribution/component/statement/index.js +2 -1
- package/distribution/component/statement/index.js.map +1 -1
- package/distribution/component/statement/index.module.css +1 -3
- package/distribution/component/structured-data/index.d.ts +1 -1
- package/distribution/component/structured-data/index.d.ts.map +1 -1
- package/distribution/component/structured-data/index.js +28 -2
- package/distribution/component/structured-data/index.js.map +1 -1
- package/distribution/component/style-switch/index.d.ts +7 -0
- package/distribution/component/style-switch/index.d.ts.map +1 -0
- package/distribution/component/style-switch/index.js +24 -0
- package/distribution/component/style-switch/index.js.map +1 -0
- package/distribution/component/style-switch/index.module.css +45 -0
- package/distribution/component/style-switch/type.d.ts +6 -0
- package/distribution/component/style-switch/type.d.ts.map +1 -0
- package/distribution/component/style-switch/type.js +2 -0
- package/distribution/component/style-switch/type.js.map +1 -0
- package/distribution/component/touchpoint/index.d.ts +7 -0
- package/distribution/component/touchpoint/index.d.ts.map +1 -0
- package/distribution/component/touchpoint/index.js +25 -0
- package/distribution/component/touchpoint/index.js.map +1 -0
- package/distribution/component/touchpoint/index.module.css +86 -0
- package/distribution/component/touchpoint/plate/index.d.ts +4 -0
- package/distribution/component/touchpoint/plate/index.d.ts.map +1 -0
- package/distribution/component/touchpoint/plate/index.js +9 -0
- package/distribution/component/touchpoint/plate/index.js.map +1 -0
- package/distribution/component/touchpoint/plate/index.module.css +136 -0
- package/distribution/component/touchpoint/plate/type.d.ts +8 -0
- package/distribution/component/touchpoint/plate/type.d.ts.map +1 -0
- package/distribution/component/touchpoint/plate/type.js +2 -0
- package/distribution/component/touchpoint/plate/type.js.map +1 -0
- package/distribution/component/touchpoint/type.d.ts +5 -0
- package/distribution/component/touchpoint/type.d.ts.map +1 -0
- package/distribution/component/touchpoint/type.js +2 -0
- package/distribution/component/touchpoint/type.js.map +1 -0
- package/distribution/component/wordmark/index.module.css +2 -2
- package/distribution/content/capability/index.d.ts +12 -0
- package/distribution/content/capability/index.d.ts.map +1 -0
- package/distribution/content/capability/index.js +6 -0
- package/distribution/content/capability/index.js.map +1 -0
- package/distribution/content/contact/index.d.ts +10 -4
- package/distribution/content/contact/index.d.ts.map +1 -1
- package/distribution/content/contact/index.js +6 -3
- package/distribution/content/contact/index.js.map +1 -1
- package/distribution/content/footer/index.d.ts +12 -0
- package/distribution/content/footer/index.d.ts.map +1 -1
- package/distribution/content/footer/index.js +3 -0
- package/distribution/content/footer/index.js.map +1 -1
- package/distribution/content/hero/index.d.ts +4 -4
- package/distribution/content/hero/index.js +3 -3
- package/distribution/content/hero/index.js.map +1 -1
- package/distribution/content/navigation/index.d.ts +8 -0
- package/distribution/content/navigation/index.d.ts.map +1 -1
- package/distribution/content/navigation/index.js +2 -0
- package/distribution/content/navigation/index.js.map +1 -1
- package/distribution/content/process/index.d.ts +7 -7
- package/distribution/content/process/index.d.ts.map +1 -1
- package/distribution/content/process/index.js +8 -5
- package/distribution/content/process/index.js.map +1 -1
- package/distribution/content/separator/index.d.ts +2 -5
- package/distribution/content/separator/index.d.ts.map +1 -1
- package/distribution/content/separator/index.js +2 -5
- package/distribution/content/separator/index.js.map +1 -1
- package/distribution/content/services/index.d.ts +120 -29
- package/distribution/content/services/index.d.ts.map +1 -1
- package/distribution/content/services/index.js +146 -21
- package/distribution/content/services/index.js.map +1 -1
- package/distribution/content/site/index.d.ts.map +1 -1
- package/distribution/content/site/index.js +28 -4
- package/distribution/content/site/index.js.map +1 -1
- package/distribution/content/stack/index.d.ts +2 -2
- package/distribution/content/stack/index.d.ts.map +1 -1
- package/distribution/content/stack/index.js +8 -1
- package/distribution/content/stack/index.js.map +1 -1
- package/distribution/content/statement/index.d.ts +2 -2
- package/distribution/content/statement/index.js +2 -2
- package/distribution/content/statement/index.js.map +1 -1
- package/distribution/content/style/index.d.ts +59 -0
- package/distribution/content/style/index.d.ts.map +1 -0
- package/distribution/content/style/index.js +48 -0
- package/distribution/content/style/index.js.map +1 -0
- package/distribution/content/touchpoint/index.d.ts +37 -0
- package/distribution/content/touchpoint/index.d.ts.map +1 -0
- package/distribution/content/touchpoint/index.js +17 -0
- package/distribution/content/touchpoint/index.js.map +1 -0
- package/distribution/style/token/index.scss +33 -2
- package/distribution/utility/hex-channel/index.d.ts +3 -0
- package/distribution/utility/hex-channel/index.d.ts.map +1 -0
- package/distribution/utility/hex-channel/index.js +8 -0
- package/distribution/utility/hex-channel/index.js.map +1 -0
- package/distribution/utility/parse-contact/index.d.ts.map +1 -1
- package/distribution/utility/parse-contact/index.js +4 -0
- package/distribution/utility/parse-contact/index.js.map +1 -1
- package/distribution/utility/parse-contact/type.d.ts +3 -0
- package/distribution/utility/parse-contact/type.d.ts.map +1 -1
- package/package.json +2 -2
- package/distribution/component/services/application-visual/index.d.ts +0 -4
- package/distribution/component/services/application-visual/index.d.ts.map +0 -1
- package/distribution/component/services/application-visual/index.js.map +0 -1
- package/distribution/component/services/application-visual/type.d.ts.map +0 -1
- package/distribution/component/services/application-visual/type.js.map +0 -1
- package/distribution/component/services/card/index.d.ts +0 -4
- package/distribution/component/services/card/index.d.ts.map +0 -1
- package/distribution/component/services/card/index.js +0 -10
- package/distribution/component/services/card/index.js.map +0 -1
- package/distribution/component/services/card/index.module.css +0 -92
- package/distribution/component/services/card/type.d.ts +0 -12
- package/distribution/component/services/card/type.d.ts.map +0 -1
- package/distribution/component/services/card/type.js.map +0 -1
- /package/distribution/component/{services/application-visual → capability}/type.js +0 -0
- /package/distribution/component/{services/card → cross}/type.js +0 -0
|
@@ -7,35 +7,57 @@
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.scrolled {
|
|
10
|
-
background:
|
|
10
|
+
background: color-mix(in srgb, var(--background) 65%, transparent);
|
|
11
11
|
backdrop-filter: blur(16px) saturate(1.6);
|
|
12
12
|
border-color: var(--line);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
.inner {
|
|
16
|
-
|
|
16
|
+
width: min(100% - 2 * var(--gutter), var(--maximum-width));
|
|
17
17
|
margin: 0 auto;
|
|
18
18
|
height: 64px;
|
|
19
19
|
padding: 0 var(--padding);
|
|
20
20
|
display: flex;
|
|
21
21
|
align-items: center;
|
|
22
22
|
justify-content: space-between;
|
|
23
|
-
gap:
|
|
23
|
+
gap: 16px;
|
|
24
|
+
}
|
|
25
|
+
@media (max-width: 520px) {
|
|
26
|
+
.inner {
|
|
27
|
+
padding: 0 12px;
|
|
28
|
+
}
|
|
24
29
|
}
|
|
25
30
|
|
|
26
31
|
.links {
|
|
27
32
|
display: flex;
|
|
28
|
-
gap:
|
|
33
|
+
gap: 28px;
|
|
29
34
|
font-size: 14px;
|
|
30
35
|
color: var(--foreground-2);
|
|
31
36
|
}
|
|
32
37
|
.links a {
|
|
38
|
+
position: relative;
|
|
33
39
|
transition: color 0.2s;
|
|
34
40
|
}
|
|
41
|
+
.links a::after {
|
|
42
|
+
content: "";
|
|
43
|
+
position: absolute;
|
|
44
|
+
left: 0;
|
|
45
|
+
right: 0;
|
|
46
|
+
bottom: -4px;
|
|
47
|
+
height: 1px;
|
|
48
|
+
background: var(--foreground);
|
|
49
|
+
transform: scaleX(0);
|
|
50
|
+
transform-origin: right;
|
|
51
|
+
transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
|
|
52
|
+
}
|
|
35
53
|
.links a:hover {
|
|
36
54
|
color: var(--foreground);
|
|
37
55
|
}
|
|
38
|
-
|
|
56
|
+
.links a:hover::after {
|
|
57
|
+
transform: scaleX(1);
|
|
58
|
+
transform-origin: left;
|
|
59
|
+
}
|
|
60
|
+
@media (max-width: 960px) {
|
|
39
61
|
.links {
|
|
40
62
|
display: none;
|
|
41
63
|
}
|
|
@@ -44,9 +66,12 @@
|
|
|
44
66
|
.end {
|
|
45
67
|
display: flex;
|
|
46
68
|
align-items: center;
|
|
47
|
-
gap:
|
|
69
|
+
gap: 10px;
|
|
48
70
|
}
|
|
49
|
-
@media (max-width:
|
|
71
|
+
@media (max-width: 520px) {
|
|
72
|
+
.end {
|
|
73
|
+
gap: 6px;
|
|
74
|
+
}
|
|
50
75
|
.end .callToAction {
|
|
51
76
|
display: none;
|
|
52
77
|
}
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
right: 0;
|
|
20
20
|
top: 6px;
|
|
21
21
|
height: 1px;
|
|
22
|
-
background: var(--line);
|
|
22
|
+
background: linear-gradient(90deg, var(--line-2) 50%, transparent 0) 0 0/8px 1px repeat-x;
|
|
23
23
|
}
|
|
24
24
|
.line span {
|
|
25
25
|
display: block;
|
|
26
26
|
height: 100%;
|
|
27
|
-
background: linear-gradient(90deg,
|
|
28
|
-
box-shadow: 0 0 12px
|
|
27
|
+
background: linear-gradient(90deg, color-mix(in srgb, var(--foreground) 20%, transparent), var(--foreground));
|
|
28
|
+
box-shadow: 0 0 12px color-mix(in srgb, var(--foreground) 60%, transparent);
|
|
29
29
|
}
|
|
30
30
|
@media (max-width: 860px) {
|
|
31
31
|
.line {
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
width: 11px;
|
|
18
18
|
height: 11px;
|
|
19
19
|
border-radius: 50%;
|
|
20
|
-
background:
|
|
21
|
-
box-shadow: 0 0 14px 2px
|
|
20
|
+
background: var(--foreground);
|
|
21
|
+
box-shadow: 0 0 14px 2px color-mix(in srgb, var(--foreground) 70%, transparent);
|
|
22
22
|
}
|
|
23
23
|
@media (max-width: 860px) {
|
|
24
24
|
.dot {
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import type { SectionProperties } from "@sharadox/sharadox-web-library/component/section/type";
|
|
2
|
-
/**
|
|
3
|
-
|
|
2
|
+
/**
|
|
3
|
+
* A page section inside the grid frame: the side rails every section shares, a line on top that draws itself in,
|
|
4
|
+
* and "+" marks where they meet.
|
|
5
|
+
*/
|
|
6
|
+
export declare function Section({ id, className, padded, crosses, children }: SectionProperties): import("react").JSX.Element;
|
|
4
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/section/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/section/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uDAAuD,CAAC;AAE/F;;;GAGG;AACH,wBAAgB,OAAO,CAAC,EAAE,EAAE,EAAE,SAAS,EAAE,MAAa,EAAE,OAAc,EAAE,QAAQ,EAAE,EAAE,iBAAiB,+BAapG"}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Cross } from "@sharadox/sharadox-web-library/component/cross";
|
|
2
3
|
import styles from "./index.module.css";
|
|
3
|
-
/**
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
/**
|
|
5
|
+
* A page section inside the grid frame: the side rails every section shares, a line on top that draws itself in,
|
|
6
|
+
* and "+" marks where they meet.
|
|
7
|
+
*/
|
|
8
|
+
export function Section({ id, className, padded = true, crosses = true, children }) {
|
|
9
|
+
return (_jsxs("section", { id: id, className: [styles.section, padded && styles.padded, className].filter(Boolean).join(" "), children: [_jsx("span", { className: styles.line, "aria-hidden": true }), crosses && (_jsxs(_Fragment, { children: [_jsx(Cross, { corner: "top-left" }), _jsx(Cross, { corner: "top-right" })] })), children] }));
|
|
6
10
|
}
|
|
7
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/section/index.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/section/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,gDAAgD,CAAC;AACvE,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC;;;GAGG;AACH,MAAM,UAAU,OAAO,CAAC,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,OAAO,GAAG,IAAI,EAAE,QAAQ,EAAqB;IACnG,OAAO,CACL,mBAAS,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,aACxG,eAAM,SAAS,EAAE,MAAM,CAAC,IAAI,wBAAgB,EAC3C,OAAO,IAAI,CACV,8BACE,KAAC,KAAK,IAAC,MAAM,EAAC,UAAU,GAAG,EAC3B,KAAC,KAAK,IAAC,MAAM,EAAC,WAAW,GAAG,IAC3B,CACJ,EACA,QAAQ,IACD,CACX,CAAC;AACJ,CAAC"}
|
|
@@ -1,6 +1,35 @@
|
|
|
1
1
|
.section {
|
|
2
2
|
position: relative;
|
|
3
|
-
|
|
4
|
-
margin:
|
|
5
|
-
|
|
3
|
+
width: min(100% - 2 * var(--gutter), var(--maximum-width));
|
|
4
|
+
margin-inline: auto;
|
|
5
|
+
border-inline: 1px solid var(--line);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.padded {
|
|
9
|
+
padding: clamp(72px, 10vw, 128px) var(--padding);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.line {
|
|
13
|
+
position: absolute;
|
|
14
|
+
left: calc(-1 * var(--gutter));
|
|
15
|
+
right: calc(-1 * var(--gutter));
|
|
16
|
+
top: -0.5px;
|
|
17
|
+
height: 1px;
|
|
18
|
+
background: linear-gradient(90deg, transparent, var(--line) var(--gutter), var(--line) calc(100% - var(--gutter)), transparent);
|
|
19
|
+
transform-origin: left;
|
|
20
|
+
}
|
|
21
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
22
|
+
@supports (animation-timeline: view()) {
|
|
23
|
+
.line {
|
|
24
|
+
animation: draw linear both;
|
|
25
|
+
animation-timeline: view();
|
|
26
|
+
animation-range: entry 0% entry 60%;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@keyframes draw {
|
|
32
|
+
from {
|
|
33
|
+
transform: scaleX(0);
|
|
34
|
+
}
|
|
6
35
|
}
|
|
@@ -2,6 +2,10 @@ import type { ReactNode } from "react";
|
|
|
2
2
|
export interface SectionProperties {
|
|
3
3
|
id?: string;
|
|
4
4
|
className?: string;
|
|
5
|
-
|
|
5
|
+
/** Inner padding; off for sections whose cells run edge to edge. */
|
|
6
|
+
padded?: boolean;
|
|
7
|
+
/** "+" marks on the top corners, where the section's line meets the side rails. */
|
|
8
|
+
crosses?: boolean;
|
|
9
|
+
children?: ReactNode;
|
|
6
10
|
}
|
|
7
11
|
//# sourceMappingURL=type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../source/component/section/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,iBAAiB;IAChC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../source/component/section/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,iBAAiB;IAChC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oEAAoE;IACpE,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,mFAAmF;IACnF,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ServiceIndexProperties } from "@sharadox/sharadox-web-library/component/service-index/type";
|
|
2
|
+
/** The five disciplines in a row of grid cells under the hero, each a shortcut to its section. */
|
|
3
|
+
export declare function ServiceIndex({ locale }: ServiceIndexProperties): import("react").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/service-index/index.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6DAA6D,CAAC;AAE1G,kGAAkG;AAClG,wBAAgB,YAAY,CAAC,EAAE,MAAM,EAAE,EAAE,sBAAsB,+BAsB9D"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { separate } from "@sharadox/sharadox-web-library/utility/separate";
|
|
3
|
+
import { Cross } from "@sharadox/sharadox-web-library/component/cross";
|
|
4
|
+
import { SERVICES } from "@sharadox/sharadox-web-library/content/services";
|
|
5
|
+
import { translate } from "@sharadox/web-library/internationalization/translate";
|
|
6
|
+
import styles from "./index.module.css";
|
|
7
|
+
/** The five disciplines in a row of grid cells under the hero, each a shortcut to its section. */
|
|
8
|
+
export function ServiceIndex({ locale }) {
|
|
9
|
+
return (_jsxs("nav", { className: styles.index, "aria-label": translate(SERVICES.eyebrow, locale), children: [SERVICES.items.map((service, index) => (_jsxs("a", { href: `#${service.key}`, className: styles.cell, style: { animationDelay: `${0.9 + index * 0.08}s` }, children: [_jsx("span", { className: `${styles.number} monospace`, children: service.number }), _jsx("span", { className: styles.title, children: translate(service.title, locale) }), _jsx("span", { className: `${styles.kinds} monospace`, children: separate(...service.kinds[locale]) }), _jsx("span", { className: styles.arrow, "aria-hidden": true, children: "\u2198" })] }, service.key))), _jsx(Cross, { corner: "bottom-left" }), _jsx(Cross, { corner: "bottom-right" })] }));
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/service-index/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAC3E,OAAO,EAAE,KAAK,EAAE,MAAM,gDAAgD,CAAC;AACvE,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAC3E,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC,kGAAkG;AAClG,MAAM,UAAU,YAAY,CAAC,EAAE,MAAM,EAA0B;IAC7D,OAAO,CACL,eAAK,SAAS,EAAE,MAAM,CAAC,KAAK,gBAAc,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC,aAC1E,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE,CAAC,CACtC,aAEE,IAAI,EAAE,IAAI,OAAO,CAAC,GAAG,EAAE,EACvB,SAAS,EAAE,MAAM,CAAC,IAAI,EACtB,KAAK,EAAE,EAAE,cAAc,EAAE,GAAG,GAAG,GAAG,KAAK,GAAG,IAAI,GAAG,EAAE,aAEnD,eAAM,SAAS,EAAE,GAAG,MAAM,CAAC,MAAM,YAAY,YAAG,OAAO,CAAC,MAAM,GAAQ,EACtE,eAAM,SAAS,EAAE,MAAM,CAAC,KAAK,YAAG,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,GAAQ,EACxE,eAAM,SAAS,EAAE,GAAG,MAAM,CAAC,KAAK,YAAY,YAAG,QAAQ,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,GAAQ,EACzF,eAAM,SAAS,EAAE,MAAM,CAAC,KAAK,4CAEtB,KAVF,OAAO,CAAC,GAAG,CAWd,CACL,CAAC,EACF,KAAC,KAAK,IAAC,MAAM,EAAC,aAAa,GAAG,EAC9B,KAAC,KAAK,IAAC,MAAM,EAAC,cAAc,GAAG,IAC3B,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
.index {
|
|
2
|
+
position: relative;
|
|
3
|
+
width: min(100% - 2 * var(--gutter), var(--maximum-width));
|
|
4
|
+
margin: 0 auto;
|
|
5
|
+
display: grid;
|
|
6
|
+
grid-template-columns: repeat(5, 1fr);
|
|
7
|
+
border: 1px solid var(--line);
|
|
8
|
+
border-top: 0;
|
|
9
|
+
}
|
|
10
|
+
@media (max-width: 960px) {
|
|
11
|
+
.index {
|
|
12
|
+
grid-template-columns: repeat(2, 1fr);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.cell {
|
|
17
|
+
position: relative;
|
|
18
|
+
display: grid;
|
|
19
|
+
gap: 6px;
|
|
20
|
+
padding: 22px 22px 24px;
|
|
21
|
+
overflow: hidden;
|
|
22
|
+
animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
|
|
23
|
+
}
|
|
24
|
+
.cell:not(:last-of-type) {
|
|
25
|
+
border-right: 1px solid var(--line);
|
|
26
|
+
}
|
|
27
|
+
.cell::before {
|
|
28
|
+
content: "";
|
|
29
|
+
position: absolute;
|
|
30
|
+
inset: 0;
|
|
31
|
+
z-index: -1;
|
|
32
|
+
background: linear-gradient(180deg, color-mix(in srgb, var(--foreground) 7%, transparent), transparent);
|
|
33
|
+
opacity: 0;
|
|
34
|
+
transition: opacity 0.4s;
|
|
35
|
+
}
|
|
36
|
+
.cell:hover::before {
|
|
37
|
+
opacity: 1;
|
|
38
|
+
}
|
|
39
|
+
.cell:hover .arrow {
|
|
40
|
+
opacity: 1;
|
|
41
|
+
transform: none;
|
|
42
|
+
}
|
|
43
|
+
@media (max-width: 960px) {
|
|
44
|
+
.cell {
|
|
45
|
+
border-right: 0 !important;
|
|
46
|
+
border-bottom: 1px solid var(--line);
|
|
47
|
+
}
|
|
48
|
+
.cell:nth-of-type(odd) {
|
|
49
|
+
border-right: 1px solid var(--line) !important;
|
|
50
|
+
}
|
|
51
|
+
.cell:last-of-type {
|
|
52
|
+
grid-column: span 2;
|
|
53
|
+
border-bottom: 0;
|
|
54
|
+
border-right: 0 !important;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@keyframes rise {
|
|
59
|
+
from {
|
|
60
|
+
opacity: 0;
|
|
61
|
+
transform: translateY(10px);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
.number {
|
|
65
|
+
font-size: 11.5px;
|
|
66
|
+
color: var(--foreground-3);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.title {
|
|
70
|
+
font-weight: 600;
|
|
71
|
+
letter-spacing: -0.02em;
|
|
72
|
+
font-size: 15.5px;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.kinds {
|
|
76
|
+
font-size: 11.5px;
|
|
77
|
+
color: var(--foreground-2);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.arrow {
|
|
81
|
+
position: absolute;
|
|
82
|
+
top: 18px;
|
|
83
|
+
right: 18px;
|
|
84
|
+
font-size: 14px;
|
|
85
|
+
opacity: 0;
|
|
86
|
+
transform: translate(-4px, -4px);
|
|
87
|
+
transition: opacity 0.3s, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
|
|
88
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../source/component/service-index/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oDAAoD,CAAC;AAEjF,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../source/component/service-index/type.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { CampaignVisualProperties } from "@sharadox/sharadox-web-library/component/services/campaign-visual/type";
|
|
2
|
+
/** A campaign funnel as stacked 3D plates, narrowing from reach to customers, with live counters. */
|
|
3
|
+
export declare function CampaignVisual({ locale }: CampaignVisualProperties): import("react").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/services/campaign-visual/index.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wEAAwE,CAAC;AAQvH,qGAAqG;AACrG,wBAAgB,cAAc,CAAC,EAAE,MAAM,EAAE,EAAE,wBAAwB,+BAwBlE"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useInView } from "@sharadox/web-library/animation/in-view";
|
|
4
|
+
import { translate } from "@sharadox/web-library/internationalization/translate";
|
|
5
|
+
import { Stage } from "@sharadox/sharadox-web-library/component/services/campaign-visual/stage";
|
|
6
|
+
import { SERVICES } from "@sharadox/sharadox-web-library/content/services";
|
|
7
|
+
import styles from "./index.module.css";
|
|
8
|
+
const STAGES = [
|
|
9
|
+
{ key: "reach", value: 48200 },
|
|
10
|
+
{ key: "clicks", value: 3140 },
|
|
11
|
+
{ key: "customers", value: 214 },
|
|
12
|
+
];
|
|
13
|
+
/** A campaign funnel as stacked 3D plates, narrowing from reach to customers, with live counters. */
|
|
14
|
+
export function CampaignVisual({ locale }) {
|
|
15
|
+
const [container, on] = useInView();
|
|
16
|
+
return (_jsxs("div", { ref: container, className: [styles.visual, on && styles.on].filter(Boolean).join(" "), "aria-hidden": true, children: [_jsxs("div", { className: styles.scene, children: [STAGES.map((stage, index) => (_jsx("span", { className: `${styles.plate} ${styles[`plate${index}`]}` }, stage.key))), _jsx("span", { className: styles.ring })] }), _jsx("dl", { className: styles.legend, children: STAGES.map((stage, index) => (_jsx(Stage, { start: on, value: stage.value, durationMilliseconds: 1800 + index * 300, locale: locale, label: translate(SERVICES.visual[stage.key], locale) }, stage.key))) })] }));
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/services/campaign-visual/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,EAAE,KAAK,EAAE,MAAM,yEAAyE,CAAC;AAChG,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAC3E,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC,MAAM,MAAM,GAAG;IACb,EAAE,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE;IAC9B,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE;IAC9B,EAAE,GAAG,EAAE,WAAW,EAAE,KAAK,EAAE,GAAG,EAAE;CACxB,CAAC;AAEX,qGAAqG;AACrG,MAAM,UAAU,cAAc,CAAC,EAAE,MAAM,EAA4B;IACjE,MAAM,CAAC,SAAS,EAAE,EAAE,CAAC,GAAG,SAAS,EAAkB,CAAC;IACpD,OAAO,CACL,eAAK,GAAG,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,IAAI,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,kCACxF,eAAK,SAAS,EAAE,MAAM,CAAC,KAAK,aACzB,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,CAC5B,eAAsB,SAAS,EAAE,GAAG,MAAM,CAAC,KAAK,IAAI,MAAM,CAAC,QAAQ,KAAK,EAAE,CAAC,EAAE,IAAlE,KAAK,CAAC,GAAG,CAA6D,CAClF,CAAC,EACF,eAAM,SAAS,EAAE,MAAM,CAAC,IAAI,GAAI,IAC5B,EACN,aAAI,SAAS,EAAE,MAAM,CAAC,MAAM,YACzB,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,CAC5B,KAAC,KAAK,IAEJ,KAAK,EAAE,EAAE,EACT,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,oBAAoB,EAAE,IAAI,GAAG,KAAK,GAAG,GAAG,EACxC,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,SAAS,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,IAL/C,KAAK,CAAC,GAAG,CAMd,CACH,CAAC,GACC,IACD,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
.visual {
|
|
2
|
+
position: absolute;
|
|
3
|
+
inset: 0;
|
|
4
|
+
display: grid;
|
|
5
|
+
grid-template-columns: 1.2fr 1fr;
|
|
6
|
+
align-items: center;
|
|
7
|
+
perspective: 1000px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.scene {
|
|
11
|
+
position: relative;
|
|
12
|
+
justify-self: center;
|
|
13
|
+
width: 150px;
|
|
14
|
+
height: 150px;
|
|
15
|
+
transform-style: preserve-3d;
|
|
16
|
+
transform: rotateX(62deg) rotateZ(-38deg);
|
|
17
|
+
animation: turn 16s linear infinite;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@keyframes turn {
|
|
21
|
+
to {
|
|
22
|
+
transform: rotateX(62deg) rotateZ(322deg);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
.plate {
|
|
26
|
+
position: absolute;
|
|
27
|
+
inset: 0;
|
|
28
|
+
margin: auto;
|
|
29
|
+
border-radius: 16px;
|
|
30
|
+
border: 1px solid var(--foreground-3);
|
|
31
|
+
background: color-mix(in srgb, var(--foreground) 6%, transparent);
|
|
32
|
+
box-shadow: 0 0 40px -10px color-mix(in srgb, var(--foreground) 30%, transparent);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.plate0 {
|
|
36
|
+
width: 150px;
|
|
37
|
+
height: 150px;
|
|
38
|
+
transform: translateZ(0);
|
|
39
|
+
}
|
|
40
|
+
.on .plate0 {
|
|
41
|
+
animation: lift-0 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.plate1 {
|
|
45
|
+
width: 104px;
|
|
46
|
+
height: 104px;
|
|
47
|
+
transform: translateZ(34px);
|
|
48
|
+
background: color-mix(in srgb, var(--foreground) 12%, transparent);
|
|
49
|
+
}
|
|
50
|
+
.on .plate1 {
|
|
51
|
+
animation: lift-1 1.4s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.plate2 {
|
|
55
|
+
width: 58px;
|
|
56
|
+
height: 58px;
|
|
57
|
+
transform: translateZ(68px);
|
|
58
|
+
background: var(--foreground);
|
|
59
|
+
border-color: var(--foreground);
|
|
60
|
+
}
|
|
61
|
+
.on .plate2 {
|
|
62
|
+
animation: lift-2 1.4s 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@keyframes lift-0 {
|
|
66
|
+
from {
|
|
67
|
+
transform: translateZ(0);
|
|
68
|
+
opacity: 0;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
@keyframes lift-1 {
|
|
72
|
+
from {
|
|
73
|
+
transform: translateZ(0);
|
|
74
|
+
opacity: 0;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
@keyframes lift-2 {
|
|
78
|
+
from {
|
|
79
|
+
transform: translateZ(0);
|
|
80
|
+
opacity: 0;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
.ring {
|
|
84
|
+
position: absolute;
|
|
85
|
+
inset: 0;
|
|
86
|
+
margin: auto;
|
|
87
|
+
width: 58px;
|
|
88
|
+
height: 58px;
|
|
89
|
+
border-radius: 16px;
|
|
90
|
+
border: 1px solid var(--foreground);
|
|
91
|
+
transform: translateZ(68px);
|
|
92
|
+
animation: ripple 2.6s ease-out infinite;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
@keyframes ripple {
|
|
96
|
+
from {
|
|
97
|
+
transform: translateZ(68px) scale(1);
|
|
98
|
+
opacity: 0.8;
|
|
99
|
+
}
|
|
100
|
+
to {
|
|
101
|
+
transform: translateZ(68px) scale(3.2);
|
|
102
|
+
opacity: 0;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
.legend {
|
|
106
|
+
margin: 0;
|
|
107
|
+
display: grid;
|
|
108
|
+
gap: 14px;
|
|
109
|
+
padding-right: 22px;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.stage {
|
|
113
|
+
padding-left: 12px;
|
|
114
|
+
border-left: 1px dashed var(--line-2);
|
|
115
|
+
}
|
|
116
|
+
.stage dt {
|
|
117
|
+
font-size: 10.5px;
|
|
118
|
+
text-transform: uppercase;
|
|
119
|
+
letter-spacing: 0.05em;
|
|
120
|
+
color: var(--foreground-3);
|
|
121
|
+
}
|
|
122
|
+
.stage dd {
|
|
123
|
+
margin: 0;
|
|
124
|
+
font-size: 22px;
|
|
125
|
+
font-weight: 600;
|
|
126
|
+
letter-spacing: -0.03em;
|
|
127
|
+
font-variant-numeric: tabular-nums;
|
|
128
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { StageProperties } from "@sharadox/sharadox-web-library/component/services/campaign-visual/stage/type";
|
|
2
|
+
/** One funnel stage in the legend: its label and a number counting up. */
|
|
3
|
+
export declare function Stage({ label, value, start, durationMilliseconds, locale }: StageProperties): import("react").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../source/component/services/campaign-visual/stage/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8EAA8E,CAAC;AAEpH,0EAA0E;AAC1E,wBAAgB,KAAK,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,oBAAoB,EAAE,MAAM,EAAE,EAAE,eAAe,+BAQ3F"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useCountUp } from "@sharadox/web-library/animation/count-up";
|
|
4
|
+
import { languageTag } from "@sharadox/web-library/internationalization/locale";
|
|
5
|
+
import styles from "../index.module.css";
|
|
6
|
+
/** One funnel stage in the legend: its label and a number counting up. */
|
|
7
|
+
export function Stage({ label, value, start, durationMilliseconds, locale }) {
|
|
8
|
+
const count = useCountUp(value, start, durationMilliseconds);
|
|
9
|
+
return (_jsxs("div", { className: styles.stage, children: [_jsx("dt", { className: "monospace", children: label }), _jsx("dd", { children: count.toLocaleString(languageTag(locale)) })] }));
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../source/component/services/campaign-visual/stage/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,UAAU,EAAE,MAAM,0CAA0C,CAAC;AACtE,OAAO,EAAE,WAAW,EAAE,MAAM,mDAAmD,CAAC;AAChF,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAG1C,0EAA0E;AAC1E,MAAM,UAAU,KAAK,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,oBAAoB,EAAE,MAAM,EAAmB;IAC1F,MAAM,KAAK,GAAG,UAAU,CAAC,KAAK,EAAE,KAAK,EAAE,oBAAoB,CAAC,CAAC;IAC7D,OAAO,CACL,eAAK,SAAS,EAAE,MAAM,CAAC,KAAK,aAC1B,aAAI,SAAS,EAAC,WAAW,YAAE,KAAK,GAAM,EACtC,uBAAK,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,GAAM,IAChD,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Locale } from "@sharadox/sharadox-web-library/utility/locale/type";
|
|
2
|
+
export interface StageProperties {
|
|
3
|
+
label: string;
|
|
4
|
+
value: number;
|
|
5
|
+
/** Starts counting up when true. */
|
|
6
|
+
start: boolean;
|
|
7
|
+
durationMilliseconds: number;
|
|
8
|
+
locale: Locale;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../../source/component/services/campaign-visual/stage/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oDAAoD,CAAC;AAEjF,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,oCAAoC;IACpC,KAAK,EAAE,OAAO,CAAC;IACf,oBAAoB,EAAE,MAAM,CAAC;IAC7B,MAAM,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../../source/component/services/campaign-visual/stage/type.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../source/component/services/campaign-visual/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oDAAoD,CAAC;AAEjF,MAAM,WAAW,wBAAwB;IACvC,MAAM,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../source/component/services/campaign-visual/type.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { CellProperties } from "@sharadox/sharadox-web-library/component/services/cell/type";
|
|
2
|
+
/**
|
|
3
|
+
* One discipline in the services grid: its live visual (which tilts in 3D towards the pointer), number, kinds and
|
|
4
|
+
* copy, with a light that follows the pointer.
|
|
5
|
+
*/
|
|
6
|
+
export declare function Cell({ id, visual, number, kinds, title, lead, text, className }: CellProperties): import("react").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/services/cell/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6DAA6D,CAAC;AAElG;;;GAGG;AACH,wBAAgB,IAAI,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,cAAc,+BAyB/F"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useSpotlight } from "@sharadox/web-library/pointer/spotlight";
|
|
4
|
+
import { useTilt } from "@sharadox/web-library/pointer/tilt";
|
|
5
|
+
import styles from "./index.module.css";
|
|
6
|
+
/**
|
|
7
|
+
* One discipline in the services grid: its live visual (which tilts in 3D towards the pointer), number, kinds and
|
|
8
|
+
* copy, with a light that follows the pointer.
|
|
9
|
+
*/
|
|
10
|
+
export function Cell({ id, visual, number, kinds, title, lead, text, className }) {
|
|
11
|
+
const spotlight = useSpotlight();
|
|
12
|
+
const tilt = useTilt(5);
|
|
13
|
+
return (_jsxs("article", { id: id, ref: spotlight, className: [styles.cell, className].filter(Boolean).join(" "), children: [_jsx("div", { ref: tilt, className: styles.visual, children: _jsx("div", { className: styles.stage, children: visual }) }), _jsxs("div", { className: styles.copy, children: [_jsxs("div", { className: styles.meta, children: [_jsx("span", { className: `monospace ${styles.number}`, children: number }), _jsx("ul", { className: styles.kinds, children: kinds.map((kind) => (_jsx("li", { className: "monospace", children: kind }, kind))) })] }), _jsx("h3", { children: title }), _jsx("p", { className: styles.lead, children: lead }), _jsx("p", { children: text })] })] }));
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/services/cell/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAC;AAC7D,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC;;;GAGG;AACH,MAAM,UAAU,IAAI,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAkB;IAC9F,MAAM,SAAS,GAAG,YAAY,EAAe,CAAC;IAC9C,MAAM,IAAI,GAAG,OAAO,CAAiB,CAAC,CAAC,CAAC;IACxC,OAAO,CACL,mBAAS,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,aAC5F,cAAK,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,CAAC,MAAM,YACtC,cAAK,SAAS,EAAE,MAAM,CAAC,KAAK,YAAG,MAAM,GAAO,GACxC,EACN,eAAK,SAAS,EAAE,MAAM,CAAC,IAAI,aACzB,eAAK,SAAS,EAAE,MAAM,CAAC,IAAI,aACzB,eAAM,SAAS,EAAE,aAAa,MAAM,CAAC,MAAM,EAAE,YAAG,MAAM,GAAQ,EAC9D,aAAI,SAAS,EAAE,MAAM,CAAC,KAAK,YACxB,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CACnB,aAAe,SAAS,EAAC,WAAW,YACjC,IAAI,IADE,IAAI,CAER,CACN,CAAC,GACC,IACD,EACN,uBAAK,KAAK,GAAM,EAChB,YAAG,SAAS,EAAE,MAAM,CAAC,IAAI,YAAG,IAAI,GAAK,EACrC,sBAAI,IAAI,GAAK,IACT,IACE,CACX,CAAC;AACJ,CAAC"}
|