@sharadox/sharadox-web-library 0.6.6 → 0.7.1
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.d.ts.map +1 -1
- package/distribution/component/cross/index.js +2 -1
- package/distribution/component/cross/index.js.map +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.d.ts.map +1 -1
- package/distribution/component/eyebrow/index.js +2 -1
- package/distribution/component/eyebrow/index.js.map +1 -1
- 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.d.ts.map +1 -1
- package/distribution/component/navigation/index.js +3 -2
- package/distribution/component/navigation/index.js.map +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.d.ts.map +1 -1
- package/distribution/component/section/index.js +2 -1
- package/distribution/component/section/index.js.map +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.d.ts.map +1 -1
- package/distribution/component/services/campaign-visual/index.js +4 -3
- package/distribution/component/services/campaign-visual/index.js.map +1 -1
- 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.d.ts.map +1 -1
- package/distribution/component/services/cell/index.js +4 -3
- package/distribution/component/services/cell/index.js.map +1 -1
- 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.d.ts.map +1 -1
- package/distribution/component/services/design-visual/index.js +3 -2
- package/distribution/component/services/design-visual/index.js.map +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.d.ts.map +1 -1
- package/distribution/component/services/social-visual/index.js +6 -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.d.ts.map +1 -1
- package/distribution/component/services/web-visual/index.js +3 -2
- package/distribution/component/services/web-visual/index.js.map +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 +37 -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
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
@use "style/token" as *;
|
|
2
|
+
|
|
3
|
+
.visual {
|
|
4
|
+
@include fill-center;
|
|
5
|
+
perspective: 900px;
|
|
6
|
+
}
|
|
7
|
+
.feed {
|
|
8
|
+
position: absolute;
|
|
9
|
+
right: 6%;
|
|
10
|
+
top: 50%;
|
|
11
|
+
width: 132px;
|
|
12
|
+
display: grid;
|
|
13
|
+
grid-template-columns: repeat(3, 1fr);
|
|
14
|
+
gap: 5px;
|
|
15
|
+
transform: translateY(-56%) rotateY(-28deg) rotateX(10deg) translateZ(-40px);
|
|
16
|
+
span {
|
|
17
|
+
aspect-ratio: 1;
|
|
18
|
+
border-radius: 5px;
|
|
19
|
+
border: 1px solid var(--line-2);
|
|
20
|
+
background: linear-gradient(135deg, tint(14%), tint(3%));
|
|
21
|
+
.on & {
|
|
22
|
+
animation: pop 0.6s $ease both;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
span:nth-child(3n + 2) {
|
|
26
|
+
background: linear-gradient(135deg, tint(28%), tint(8%));
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
@keyframes pop {
|
|
30
|
+
from {
|
|
31
|
+
opacity: 0;
|
|
32
|
+
transform: scale(0.6);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
.panel {
|
|
36
|
+
position: relative;
|
|
37
|
+
width: min(72%, 290px);
|
|
38
|
+
margin-right: 22%;
|
|
39
|
+
padding: 16px 16px 10px;
|
|
40
|
+
border-radius: 14px;
|
|
41
|
+
border: 1px solid var(--line-2);
|
|
42
|
+
background: shade(80%);
|
|
43
|
+
backdrop-filter: blur(8px);
|
|
44
|
+
box-shadow: 0 30px 60px -24px shade(90%);
|
|
45
|
+
transform: rotateY(10deg) rotateX(6deg) translateZ(30px);
|
|
46
|
+
}
|
|
47
|
+
.header {
|
|
48
|
+
display: flex;
|
|
49
|
+
justify-content: space-between;
|
|
50
|
+
align-items: center;
|
|
51
|
+
}
|
|
52
|
+
.label {
|
|
53
|
+
font-size: 10.5px;
|
|
54
|
+
text-transform: uppercase;
|
|
55
|
+
letter-spacing: 0.05em;
|
|
56
|
+
color: var(--foreground-3);
|
|
57
|
+
}
|
|
58
|
+
.growth {
|
|
59
|
+
font-size: 10.5px;
|
|
60
|
+
padding: 2px 7px;
|
|
61
|
+
border-radius: 99px;
|
|
62
|
+
background: tint(10%);
|
|
63
|
+
}
|
|
64
|
+
.count {
|
|
65
|
+
display: block;
|
|
66
|
+
margin: 2px 0 6px;
|
|
67
|
+
font-size: 30px;
|
|
68
|
+
font-weight: 600;
|
|
69
|
+
letter-spacing: -0.04em;
|
|
70
|
+
font-variant-numeric: tabular-nums;
|
|
71
|
+
}
|
|
72
|
+
.chart {
|
|
73
|
+
display: block;
|
|
74
|
+
width: 100%;
|
|
75
|
+
height: auto;
|
|
76
|
+
overflow: visible;
|
|
77
|
+
}
|
|
78
|
+
.gridLine {
|
|
79
|
+
stroke: var(--line);
|
|
80
|
+
stroke-dasharray: 3 3;
|
|
81
|
+
}
|
|
82
|
+
.line {
|
|
83
|
+
fill: none;
|
|
84
|
+
stroke: var(--foreground);
|
|
85
|
+
stroke-width: 1.8;
|
|
86
|
+
stroke-linecap: round;
|
|
87
|
+
stroke-dasharray: 1;
|
|
88
|
+
.on & {
|
|
89
|
+
animation: draw-line 2.2s $ease both;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
.area {
|
|
93
|
+
.on & {
|
|
94
|
+
animation: fade 2.2s ease both;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
@keyframes draw-line {
|
|
98
|
+
from {
|
|
99
|
+
stroke-dashoffset: 1;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
@keyframes fade {
|
|
103
|
+
from {
|
|
104
|
+
opacity: 0;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
.dot {
|
|
108
|
+
fill: var(--foreground);
|
|
109
|
+
.on & {
|
|
110
|
+
animation: pulse 2s 2.2s ease-out infinite;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
@keyframes pulse {
|
|
114
|
+
0% {
|
|
115
|
+
filter: drop-shadow(0 0 0 var(--foreground));
|
|
116
|
+
}
|
|
117
|
+
50% {
|
|
118
|
+
filter: drop-shadow(0 0 6px var(--foreground));
|
|
119
|
+
}
|
|
120
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/services/web-visual/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/services/web-visual/index.tsx"],"names":[],"mappings":"AAQA,yFAAyF;AACzF,wBAAgB,SAAS,gCA+CxB"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { classNames } from "@sharadox/web-library/class-name";
|
|
3
4
|
import { useEffect, useState } from "react";
|
|
4
|
-
import { useInView } from "@sharadox/web-library/
|
|
5
|
+
import { useInView } from "@sharadox/animation-web-library/in-view";
|
|
5
6
|
import styles from "./index.module.css";
|
|
6
7
|
const CIRCUMFERENCE = 2 * Math.PI * 22;
|
|
7
8
|
/** A browser whose layout assembles itself, with a performance score counting to 100. */
|
|
@@ -20,6 +21,6 @@ export function WebVisual() {
|
|
|
20
21
|
}, 22);
|
|
21
22
|
return () => clearInterval(timer);
|
|
22
23
|
}, [on]);
|
|
23
|
-
return (_jsxs("div", { ref: container, className:
|
|
24
|
+
return (_jsxs("div", { ref: container, className: classNames(styles.visual, on && styles.on), "aria-hidden": true, children: [_jsxs("div", { className: styles.browser, children: [_jsxs("div", { className: styles.bar, children: [_jsx("i", {}), _jsx("i", {}), _jsx("i", {}), _jsx("span", { className: `${styles.url} monospace`, children: "yourbusiness.com" })] }), _jsxs("div", { className: styles.body, children: [_jsx("div", { className: `${styles.skeleton} ${styles.navigation}` }), _jsx("div", { className: `${styles.skeleton} ${styles.hero}` }), _jsxs("div", { className: styles.row, children: [_jsx("div", { className: `${styles.skeleton} ${styles.card}` }), _jsx("div", { className: `${styles.skeleton} ${styles.card}` }), _jsx("div", { className: `${styles.skeleton} ${styles.card}` })] })] })] }), _jsxs("div", { className: styles.score, children: [_jsxs("svg", { viewBox: "0 0 52 52", children: [_jsx("circle", { cx: "26", cy: "26", r: "22", className: styles.track }), _jsx("circle", { cx: "26", cy: "26", r: "22", className: styles.progress, style: { strokeDasharray: CIRCUMFERENCE, strokeDashoffset: CIRCUMFERENCE * (1 - score / 100) } })] }), _jsx("span", { className: "monospace", children: score })] })] }));
|
|
24
25
|
}
|
|
25
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/services/web-visual/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,MAAM,aAAa,GAAG,CAAC,GAAG,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;AAEvC,yFAAyF;AACzF,MAAM,UAAU,SAAS;IACvB,MAAM,CAAC,SAAS,EAAE,EAAE,CAAC,GAAG,SAAS,EAAkB,CAAC;IACpD,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IACtC,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,EAAE;YAAE,OAAO;QAChB,IAAI,KAAK,GAAG,CAAC,CAAC;QACd,MAAM,KAAK,GAAG,WAAW,CAAC,GAAG,EAAE;YAC7B,KAAK,IAAI,CAAC,CAAC;YACX,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC;YAC/B,IAAI,KAAK,IAAI,GAAG;gBAAE,aAAa,CAAC,KAAK,CAAC,CAAC;QACzC,CAAC,EAAE,EAAE,CAAC,CAAC;QACP,OAAO,GAAG,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IACpC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IACT,OAAO,CACL,eAAK,GAAG,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,IAAI,MAAM,CAAC,EAAE,CAAC,
|
|
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ute;
|
|
3
|
-
inset: 0;
|
|
4
|
-
display: grid;
|
|
5
|
-
place-items: center;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.browser {
|
|
9
|
-
width: min(78%, 520px);
|
|
10
|
-
border-radius: 12px;
|
|
11
|
-
border: 1px solid var(--line-2);
|
|
12
|
-
background: var(--card);
|
|
13
|
-
overflow: hidden;
|
|
14
|
-
box-shadow: 0 30px 80px -20px color-mix(in srgb, var(--background) 90%, transparent), 0 0 0 1px color-mix(in srgb, var(--foreground) 2%, transparent);
|
|
15
|
-
transform: perspective(900px) rotateX(10deg) rotateY(-8deg) translateZ(20px);
|
|
16
|
-
animation: float 7s ease-in-out infinite;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.bar {
|
|
20
|
-
display: flex;
|
|
21
|
-
align-items: center;
|
|
22
|
-
gap: 6px;
|
|
23
|
-
height: 32px;
|
|
24
|
-
padding: 0 12px;
|
|
25
|
-
border-bottom: 1px solid var(--line);
|
|
26
|
-
}
|
|
27
|
-
.bar i {
|
|
28
|
-
width: 8px;
|
|
29
|
-
height: 8px;
|
|
30
|
-
border-radius: 50%;
|
|
31
|
-
background: var(--line-2);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.url {
|
|
35
|
-
margin-left: 12px;
|
|
36
|
-
font-size: 11px;
|
|
37
|
-
color: var(--foreground-3);
|
|
38
|
-
padding: 3px 10px;
|
|
39
|
-
border-radius: 6px;
|
|
40
|
-
background: var(--surface);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.body {
|
|
44
|
-
padding: 16px;
|
|
45
|
-
display: grid;
|
|
46
|
-
gap: 10px;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.skeleton {
|
|
50
|
-
border-radius: 6px;
|
|
51
|
-
background: linear-gradient(90deg, var(--surface), color-mix(in srgb, var(--foreground) 14%, transparent), var(--surface));
|
|
52
|
-
background-size: 200% 100%;
|
|
53
|
-
opacity: 0;
|
|
54
|
-
transform: translateY(8px);
|
|
55
|
-
}
|
|
56
|
-
.on .skeleton {
|
|
57
|
-
animation: skin 0.7s var(--ease) forwards, shimmer 2.4s linear infinite;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.navigation {
|
|
61
|
-
height: 12px;
|
|
62
|
-
width: 40%;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.hero {
|
|
66
|
-
height: 70px;
|
|
67
|
-
animation-delay: 0.15s !important;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.row {
|
|
71
|
-
display: grid;
|
|
72
|
-
grid-template-columns: repeat(3, 1fr);
|
|
73
|
-
gap: 10px;
|
|
74
|
-
}
|
|
75
|
-
.row .skeleton:nth-child(1) {
|
|
76
|
-
animation-delay: 0.3s, 0s !important;
|
|
77
|
-
}
|
|
78
|
-
.row .skeleton:nth-child(2) {
|
|
79
|
-
animation-delay: 0.42s, 0s !important;
|
|
80
|
-
}
|
|
81
|
-
.row .skeleton:nth-child(3) {
|
|
82
|
-
animation-delay: 0.54s, 0s !important;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.card {
|
|
86
|
-
height: 44px;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
@keyframes skin {
|
|
90
|
-
to {
|
|
91
|
-
opacity: 1;
|
|
92
|
-
transform: none;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
@keyframes shimmer {
|
|
96
|
-
to {
|
|
97
|
-
background-position: -200% 0;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
.score {
|
|
101
|
-
position: absolute;
|
|
102
|
-
right: 7%;
|
|
103
|
-
bottom: 10%;
|
|
104
|
-
transform: translateZ(60px);
|
|
105
|
-
width: 74px;
|
|
106
|
-
height: 74px;
|
|
107
|
-
display: grid;
|
|
108
|
-
place-items: center;
|
|
109
|
-
border-radius: 50%;
|
|
110
|
-
background: color-mix(in srgb, var(--background) 90%, transparent);
|
|
111
|
-
border: 1px solid var(--line-2);
|
|
112
|
-
backdrop-filter: blur(8px);
|
|
113
|
-
}
|
|
114
|
-
.score svg {
|
|
115
|
-
position: absolute;
|
|
116
|
-
inset: 8px;
|
|
117
|
-
transform: rotate(-90deg);
|
|
118
|
-
}
|
|
119
|
-
.score span {
|
|
120
|
-
font-size: 17px;
|
|
121
|
-
font-weight: 500;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.track {
|
|
125
|
-
fill: none;
|
|
126
|
-
stroke: var(--line-2);
|
|
127
|
-
stroke-width: 3;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.progress {
|
|
131
|
-
fill: none;
|
|
132
|
-
stroke: var(--foreground);
|
|
133
|
-
stroke-width: 3;
|
|
134
|
-
stroke-linecap: round;
|
|
135
|
-
transition: stroke-dashoffset 0.1s linear;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
@keyframes float {
|
|
139
|
-
50% {
|
|
140
|
-
transform: perspective(900px) rotateX(6deg) rotateY(-4deg) translateZ(20px) translateY(-6px);
|
|
141
|
-
}
|
|
142
|
-
}
|
|
1
|
+
.visual{position:absolute;inset:0;display:grid;place-items:center}.browser{width:min(78%,520px);border-radius:12px;border:1px solid var(--line-2);background:var(--card);overflow:hidden;box-shadow:0 30px 80px -20px color-mix(in srgb, var(--background) 90%, transparent),0 0 0 1px color-mix(in srgb, var(--foreground) 2%, transparent);transform:perspective(900px) rotateX(10deg) rotateY(-8deg) translateZ(20px);animation:float 7s ease-in-out infinite}.bar{display:flex;align-items:center;gap:6px;height:32px;padding:0 12px;border-bottom:1px solid var(--line)}.bar i{width:8px;height:8px;border-radius:50%;background:var(--line-2)}.url{margin-left:12px;font-size:11px;color:var(--foreground-3);padding:3px 10px;border-radius:6px;background:var(--surface)}.body{padding:16px;display:grid;gap:10px}.skeleton{border-radius:6px;background:linear-gradient(90deg, var(--surface), color-mix(in srgb, var(--foreground) 14%, transparent), var(--surface));background-size:200% 100%;opacity:0;transform:translateY(8px)}.on .skeleton{animation:skin .7s var(--ease) forwards,shimmer 2.4s linear infinite}.navigation{height:12px;width:40%}.hero{height:70px;animation-delay:.15s !important}.row{display:grid;grid-template-columns:repeat(3, 1fr);gap:10px}.row .skeleton:nth-child(1){animation-delay:.3s,0s !important}.row .skeleton:nth-child(2){animation-delay:.42s,0s !important}.row .skeleton:nth-child(3){animation-delay:.54s,0s !important}.card{height:44px}@keyframes skin{to{opacity:1;transform:none}}@keyframes shimmer{to{background-position:-200% 0}}.score{position:absolute;right:7%;bottom:10%;transform:translateZ(60px);width:74px;height:74px;display:grid;place-items:center;border-radius:50%;background:color-mix(in srgb, var(--background) 90%, transparent);border:1px solid var(--line-2);backdrop-filter:blur(8px)}.score svg{position:absolute;inset:8px;transform:rotate(-90deg)}.score span{font-size:17px;font-weight:500}.track{fill:none;stroke:var(--line-2);stroke-width:3}.progress{fill:none;stroke:var(--foreground);stroke-width:3;stroke-linecap:round;transition:stroke-dashoffset .1s linear}@keyframes float{50%{transform:perspective(900px) rotateX(6deg) rotateY(-4deg) translateZ(20px) translateY(-6px)}}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
@use "style/token" as *;
|
|
2
|
+
|
|
3
|
+
.visual {
|
|
4
|
+
@include fill-center;
|
|
5
|
+
}
|
|
6
|
+
.browser {
|
|
7
|
+
width: min(78%, 520px);
|
|
8
|
+
border-radius: 12px;
|
|
9
|
+
border: 1px solid var(--line-2);
|
|
10
|
+
background: var(--card);
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
box-shadow:
|
|
13
|
+
0 30px 80px -20px shade(90%),
|
|
14
|
+
0 0 0 1px tint(2%);
|
|
15
|
+
transform: perspective(900px) rotateX(10deg) rotateY(-8deg) translateZ(20px);
|
|
16
|
+
animation: float 7s ease-in-out infinite;
|
|
17
|
+
}
|
|
18
|
+
.bar {
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
gap: 6px;
|
|
22
|
+
height: 32px;
|
|
23
|
+
padding: 0 12px;
|
|
24
|
+
border-bottom: 1px solid var(--line);
|
|
25
|
+
i {
|
|
26
|
+
width: 8px;
|
|
27
|
+
height: 8px;
|
|
28
|
+
border-radius: 50%;
|
|
29
|
+
background: var(--line-2);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
.url {
|
|
33
|
+
margin-left: 12px;
|
|
34
|
+
font-size: 11px;
|
|
35
|
+
color: var(--foreground-3);
|
|
36
|
+
padding: 3px 10px;
|
|
37
|
+
border-radius: 6px;
|
|
38
|
+
background: var(--surface);
|
|
39
|
+
}
|
|
40
|
+
.body {
|
|
41
|
+
padding: 16px;
|
|
42
|
+
display: grid;
|
|
43
|
+
gap: 10px;
|
|
44
|
+
}
|
|
45
|
+
.skeleton {
|
|
46
|
+
border-radius: 6px;
|
|
47
|
+
background: linear-gradient(90deg, var(--surface), tint(14%), var(--surface));
|
|
48
|
+
background-size: 200% 100%;
|
|
49
|
+
opacity: 0;
|
|
50
|
+
transform: translateY(8px);
|
|
51
|
+
.on & {
|
|
52
|
+
animation:
|
|
53
|
+
skin 0.7s var(--ease) forwards,
|
|
54
|
+
shimmer 2.4s linear infinite;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
.navigation {
|
|
58
|
+
height: 12px;
|
|
59
|
+
width: 40%;
|
|
60
|
+
}
|
|
61
|
+
.hero {
|
|
62
|
+
height: 70px;
|
|
63
|
+
animation-delay: 0.15s !important;
|
|
64
|
+
}
|
|
65
|
+
.row {
|
|
66
|
+
display: grid;
|
|
67
|
+
grid-template-columns: repeat(3, 1fr);
|
|
68
|
+
gap: 10px;
|
|
69
|
+
.skeleton:nth-child(1) {
|
|
70
|
+
animation-delay: 0.3s, 0s !important;
|
|
71
|
+
}
|
|
72
|
+
.skeleton:nth-child(2) {
|
|
73
|
+
animation-delay: 0.42s, 0s !important;
|
|
74
|
+
}
|
|
75
|
+
.skeleton:nth-child(3) {
|
|
76
|
+
animation-delay: 0.54s, 0s !important;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
.card {
|
|
80
|
+
height: 44px;
|
|
81
|
+
}
|
|
82
|
+
@keyframes skin {
|
|
83
|
+
to {
|
|
84
|
+
opacity: 1;
|
|
85
|
+
transform: none;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
@keyframes shimmer {
|
|
89
|
+
to {
|
|
90
|
+
background-position: -200% 0;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
.score {
|
|
94
|
+
position: absolute;
|
|
95
|
+
right: 7%;
|
|
96
|
+
bottom: 10%;
|
|
97
|
+
transform: translateZ(60px);
|
|
98
|
+
width: 74px;
|
|
99
|
+
height: 74px;
|
|
100
|
+
display: grid;
|
|
101
|
+
place-items: center;
|
|
102
|
+
border-radius: 50%;
|
|
103
|
+
background: shade(90%);
|
|
104
|
+
border: 1px solid var(--line-2);
|
|
105
|
+
backdrop-filter: blur(8px);
|
|
106
|
+
svg {
|
|
107
|
+
position: absolute;
|
|
108
|
+
inset: 8px;
|
|
109
|
+
transform: rotate(-90deg);
|
|
110
|
+
}
|
|
111
|
+
span {
|
|
112
|
+
font-size: 17px;
|
|
113
|
+
font-weight: 500;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
.track {
|
|
117
|
+
fill: none;
|
|
118
|
+
stroke: var(--line-2);
|
|
119
|
+
stroke-width: 3;
|
|
120
|
+
}
|
|
121
|
+
.progress {
|
|
122
|
+
fill: none;
|
|
123
|
+
stroke: var(--foreground);
|
|
124
|
+
stroke-width: 3;
|
|
125
|
+
stroke-linecap: round;
|
|
126
|
+
transition: stroke-dashoffset 0.1s linear;
|
|
127
|
+
}
|
|
128
|
+
@keyframes float {
|
|
129
|
+
50% {
|
|
130
|
+
transform: perspective(900px) rotateX(6deg) rotateY(-4deg) translateZ(20px) translateY(-6px);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { ImageResponse } from "next/og";
|
|
2
1
|
import type { ShareImageOptions } from "@sharadox/sharadox-web-library/component/share-image/type";
|
|
3
2
|
/** Share card (Open Graph and Twitter): black canvas, a dotted planet rising from the bottom, the slogan in Geist. */
|
|
4
|
-
export declare function renderShareImage({ locale, width, height }: ShareImageOptions): Promise<ImageResponse>;
|
|
3
|
+
export declare function renderShareImage({ locale, width, height }: ShareImageOptions): Promise<import("next/og").ImageResponse>;
|
|
5
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/share-image/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/share-image/index.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2DAA2D,CAAC;AAKnG,sHAAsH;AACtH,wBAAsB,gBAAgB,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,iBAAiB,4CAoFlF"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { shareImage } from "@sharadox/metadata-web-library/share-image";
|
|
3
3
|
import { readFile } from "node:fs/promises";
|
|
4
4
|
import { SITE } from "@sharadox/sharadox-web-library/content/site";
|
|
5
5
|
import { horizonDots } from "@sharadox/sharadox-web-library/utility/horizon-dots";
|
|
6
|
-
import { translate } from "@sharadox/web-library/
|
|
6
|
+
import { translate } from "@sharadox/internationalization-web-library/translate";
|
|
7
7
|
/** Fonts ship with the library (distribution/asset/font), found relative to this compiled file. */
|
|
8
8
|
const font = (file) => readFile(new URL(`../../asset/font/${file}`, import.meta.url));
|
|
9
9
|
/** Share card (Open Graph and Twitter): black canvas, a dotted planet rising from the bottom, the slogan in Geist. */
|
|
10
10
|
export async function renderShareImage({ locale, width, height }) {
|
|
11
11
|
const [semiBold, monospace] = await Promise.all([font("Geist-SemiBold.ttf"), font("GeistMono-Regular.ttf")]);
|
|
12
|
-
return
|
|
12
|
+
return shareImage(_jsxs("div", { style: {
|
|
13
13
|
width: "100%",
|
|
14
14
|
height: "100%",
|
|
15
15
|
display: "flex",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/share-image/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/share-image/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,4CAA4C,CAAC;AACxE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,6CAA6C,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,qDAAqD,CAAC;AAClF,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AAGjF,mGAAmG;AACnG,MAAM,IAAI,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,GAAG,CAAC,oBAAoB,IAAI,EAAE,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAE9F,sHAAsH;AACtH,MAAM,CAAC,KAAK,UAAU,gBAAgB,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAqB;IACjF,MAAM,CAAC,QAAQ,EAAE,SAAS,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,oBAAoB,CAAC,EAAE,IAAI,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC;IAC7G,OAAO,UAAU,CACf,eACE,KAAK,EAAE;YACL,KAAK,EAAE,MAAM;YACb,MAAM,EAAE,MAAM;YACd,OAAO,EAAE,MAAM;YACf,aAAa,EAAE,QAAQ;YACvB,UAAU,EAAE,MAAM;YAClB,KAAK,EAAE,MAAM;YACb,O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ACZ,UAAU,EAAE,IAAI;oBAChB,aAAa,EAAE,CAAC,GAAG;oBACnB,QAAQ,EAAE,GAAG;iBACd,aAEA,SAAS,CAAC,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,SAC3B,EACN,cAAK,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,EAAE,UAAU,EAAE,WAAW,EAAE,QAAQ,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,6BAEjG,IACF,EACN;QACE,KAAK;QACL,MAAM;QACN,KAAK,EAAE;YACL,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE;YAC9C,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE;SACpD;KACF,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { ScrollWords } from "@sharadox/web-library/
|
|
3
|
+
import { ScrollWords } from "@sharadox/animation-web-library/scroll-word";
|
|
4
4
|
import { Section } from "@sharadox/sharadox-web-library/component/section";
|
|
5
5
|
import styles from "./index.module.css";
|
|
6
6
|
/** A large sentence that lights up word by word as it scrolls through the viewport. */
|
|
@@ -1,11 +1 @@
|
|
|
1
|
-
.wrapper
|
|
2
|
-
padding-block: clamp(100px, 18vh, 200px);
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.statement {
|
|
6
|
-
font-size: clamp(1.9rem, 4.2vw, 3.8rem);
|
|
7
|
-
font-weight: 500;
|
|
8
|
-
letter-spacing: -0.045em;
|
|
9
|
-
line-height: 1.08;
|
|
10
|
-
max-width: 22ch;
|
|
11
|
-
}
|
|
1
|
+
.wrapper{padding-block:clamp(100px,18vh,200px)}.statement{font-size:clamp(1.9rem,4.2vw,3.8rem);font-weight:500;letter-spacing:-0.045em;line-height:1.08;max-width:22ch}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/structured-data/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/structured-data/index.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,+DAA+D,CAAC;AAE9G,qGAAqG;AACrG,wBAAgB,cAAc,CAAC,EAAE,MAAM,EAAE,EAAE,wBAAwB,+BAkDlE"}
|
|
@@ -1,62 +1,57 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { SERVICES } from "@sharadox/sharadox-web-library/content/services";
|
|
3
3
|
import { SITE } from "@sharadox/sharadox-web-library/content/site";
|
|
4
|
-
import {
|
|
5
|
-
import { StructuredData as JsonLinkedData } from "@sharadox/web-library/
|
|
6
|
-
import {
|
|
4
|
+
import { LOCALES } from "@sharadox/sharadox-web-library/content/locale";
|
|
5
|
+
import { StructuredData as JsonLinkedData } from "@sharadox/metadata-web-library/structured-data";
|
|
6
|
+
import { structuredDataGraph } from "@sharadox/metadata-web-library/structured-data-graph";
|
|
7
|
+
import { translate } from "@sharadox/internationalization-web-library/translate";
|
|
7
8
|
/** JSON-LD for search engines: the Sharadox organization with its five services, and the website. */
|
|
8
9
|
export function StructuredData({ locale }) {
|
|
9
|
-
const data = {
|
|
10
|
-
"@
|
|
11
|
-
"@
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"Mobile applications",
|
|
30
|
-
"Social media management",
|
|
31
|
-
"Digital marketing",
|
|
32
|
-
],
|
|
33
|
-
hasOfferCatalog: {
|
|
34
|
-
"@type": "OfferCatalog",
|
|
35
|
-
name: translate(SERVICES.eyebrow, locale),
|
|
36
|
-
itemListElement: SERVICES.items.map((service) => ({
|
|
37
|
-
"@type": "Offer",
|
|
38
|
-
itemOffered: {
|
|
39
|
-
"@type": "Service",
|
|
40
|
-
"@id": `${SITE.url}/${locale}#${service.key}`,
|
|
41
|
-
name: translate(service.title, locale),
|
|
42
|
-
description: translate(service.text, locale),
|
|
43
|
-
serviceType: service.kinds[locale].join(", "),
|
|
44
|
-
provider: { "@id": `${SITE.url}/#organization` },
|
|
45
|
-
areaServed: "Worldwide",
|
|
46
|
-
},
|
|
47
|
-
})),
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
"@type": "WebSite",
|
|
52
|
-
"@id": `${SITE.url}/#website`,
|
|
53
|
-
url: `${SITE.url}/${locale}`,
|
|
54
|
-
name: SITE.name,
|
|
55
|
-
inLanguage: languageTag(locale),
|
|
56
|
-
publisher: { "@id": `${SITE.url}/#organization` },
|
|
57
|
-
},
|
|
10
|
+
const data = structuredDataGraph({
|
|
11
|
+
"@type": "Organization",
|
|
12
|
+
"@id": `${SITE.url}/#organization`,
|
|
13
|
+
name: SITE.name,
|
|
14
|
+
url: SITE.url,
|
|
15
|
+
email: SITE.email,
|
|
16
|
+
slogan: translate(SITE.slogan, locale),
|
|
17
|
+
description: translate(SITE.description, locale),
|
|
18
|
+
logo: `${SITE.url}/icon.svg`,
|
|
19
|
+
address: { "@type": "PostalAddress", addressRegion: "Algarve", addressCountry: "PT" },
|
|
20
|
+
areaServed: "Worldwide",
|
|
21
|
+
knowsAbout: [
|
|
22
|
+
"Brand management",
|
|
23
|
+
"Graphic design",
|
|
24
|
+
"Web development",
|
|
25
|
+
"Web design",
|
|
26
|
+
"Software platforms",
|
|
27
|
+
"Mobile applications",
|
|
28
|
+
"Social media management",
|
|
29
|
+
"Digital marketing",
|
|
58
30
|
],
|
|
59
|
-
|
|
31
|
+
hasOfferCatalog: {
|
|
32
|
+
"@type": "OfferCatalog",
|
|
33
|
+
name: translate(SERVICES.eyebrow, locale),
|
|
34
|
+
itemListElement: SERVICES.items.map((service) => ({
|
|
35
|
+
"@type": "Offer",
|
|
36
|
+
itemOffered: {
|
|
37
|
+
"@type": "Service",
|
|
38
|
+
"@id": `${SITE.url}/${locale}#${service.key}`,
|
|
39
|
+
name: translate(service.title, locale),
|
|
40
|
+
description: translate(service.text, locale),
|
|
41
|
+
serviceType: service.kinds[locale].join(", "),
|
|
42
|
+
provider: { "@id": `${SITE.url}/#organization` },
|
|
43
|
+
areaServed: "Worldwide",
|
|
44
|
+
},
|
|
45
|
+
})),
|
|
46
|
+
},
|
|
47
|
+
}, {
|
|
48
|
+
"@type": "WebSite",
|
|
49
|
+
"@id": `${SITE.url}/#website`,
|
|
50
|
+
url: `${SITE.url}/${locale}`,
|
|
51
|
+
name: SITE.name,
|
|
52
|
+
inLanguage: LOCALES.languageTag(locale),
|
|
53
|
+
publisher: { "@id": `${SITE.url}/#organization` },
|
|
54
|
+
});
|
|
60
55
|
return _jsx(JsonLinkedData, { data: data });
|
|
61
56
|
}
|
|
62
57
|
//# sourceMappingURL=index.js.map
|