@sharadox/sharadox-web-library 0.18.0 → 0.20.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 +3 -2
- package/distribution/component/capability/index.d.ts +1 -1
- package/distribution/component/capability/index.d.ts.map +1 -1
- package/distribution/component/capability/index.js +1 -1
- package/distribution/component/capability/index.js.map +1 -1
- package/distribution/component/capability/index.module.css +1 -1
- package/distribution/component/capability/index.module.scss +1 -1
- package/distribution/component/contact/form/chip/index.d.ts +4 -0
- package/distribution/component/contact/form/chip/index.d.ts.map +1 -0
- package/distribution/component/contact/form/chip/index.js +7 -0
- package/distribution/component/contact/form/chip/index.js.map +1 -0
- package/distribution/component/contact/form/chip/index.module.css +1 -0
- package/distribution/component/contact/form/chip/index.module.scss +59 -0
- package/distribution/component/contact/form/chip/type.d.ts +7 -0
- package/distribution/component/contact/form/chip/type.d.ts.map +1 -0
- package/distribution/component/contact/form/chip/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 +1 -1
- package/distribution/component/contact/form/index.module.scss +17 -60
- package/distribution/component/footer/index.d.ts +3 -3
- package/distribution/component/footer/index.d.ts.map +1 -1
- package/distribution/component/footer/index.js +6 -4
- package/distribution/component/footer/index.js.map +1 -1
- package/distribution/component/footer/index.module.css +1 -1
- package/distribution/component/footer/index.module.scss +128 -35
- package/distribution/component/globe/index.module.css +1 -1
- package/distribution/component/globe/index.module.scss +22 -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 -19
- package/distribution/component/navigation/index.js.map +1 -1
- package/distribution/component/process/index.d.ts.map +1 -1
- package/distribution/component/process/index.js +3 -2
- package/distribution/component/process/index.js.map +1 -1
- package/distribution/component/process/index.module.css +1 -1
- package/distribution/component/process/index.module.scss +4 -2
- package/distribution/component/service-card/index.d.ts +10 -0
- package/distribution/component/service-card/index.d.ts.map +1 -0
- package/distribution/component/service-card/index.js +23 -0
- package/distribution/component/service-card/index.js.map +1 -0
- package/distribution/component/service-card/index.module.css +1 -0
- package/distribution/component/service-card/index.module.scss +59 -0
- package/distribution/component/service-card/type.d.ts +8 -0
- package/distribution/component/service-card/type.d.ts.map +1 -0
- package/distribution/component/service-card/type.js.map +1 -0
- package/distribution/component/service-index/index.d.ts +1 -1
- package/distribution/component/service-index/index.d.ts.map +1 -1
- package/distribution/component/service-index/index.js +3 -2
- package/distribution/component/service-index/index.js.map +1 -1
- package/distribution/component/service-index/index.module.css +1 -1
- package/distribution/component/service-index/index.module.scss +4 -5
- package/distribution/component/service-object/android-application/index.d.ts +3 -0
- package/distribution/component/service-object/android-application/index.d.ts.map +1 -0
- package/distribution/component/service-object/android-application/index.js +8 -0
- package/distribution/component/service-object/android-application/index.js.map +1 -0
- package/distribution/component/service-object/android-application/index.module.css +1 -0
- package/distribution/component/service-object/android-application/index.module.scss +90 -0
- package/distribution/component/service-object/brand-awareness/index.d.ts +3 -0
- package/distribution/component/service-object/brand-awareness/index.d.ts.map +1 -0
- package/distribution/component/service-object/brand-awareness/index.js +8 -0
- package/distribution/component/service-object/brand-awareness/index.js.map +1 -0
- package/distribution/component/service-object/brand-awareness/index.module.css +1 -0
- package/distribution/component/service-object/brand-awareness/index.module.scss +89 -0
- package/distribution/component/service-object/branding/index.d.ts +3 -0
- package/distribution/component/service-object/branding/index.d.ts.map +1 -0
- package/distribution/component/service-object/branding/index.js +7 -0
- package/distribution/component/service-object/branding/index.js.map +1 -0
- package/distribution/component/service-object/branding/index.module.css +1 -0
- package/distribution/component/service-object/branding/index.module.scss +63 -0
- package/distribution/component/service-object/branding-design/index.d.ts +3 -0
- package/distribution/component/service-object/branding-design/index.d.ts.map +1 -0
- package/distribution/component/service-object/branding-design/index.js +7 -0
- package/distribution/component/service-object/branding-design/index.js.map +1 -0
- package/distribution/component/service-object/branding-design/index.module.css +1 -0
- package/distribution/component/service-object/branding-design/index.module.scss +61 -0
- package/distribution/component/service-object/cuboid/index.d.ts +11 -0
- package/distribution/component/service-object/cuboid/index.d.ts.map +1 -0
- package/distribution/component/service-object/cuboid/index.js +15 -0
- package/distribution/component/service-object/cuboid/index.js.map +1 -0
- package/distribution/component/service-object/cuboid/index.module.css +1 -0
- package/distribution/component/service-object/cuboid/index.module.scss +61 -0
- package/distribution/component/service-object/cuboid/type.d.ts +10 -0
- package/distribution/component/service-object/cuboid/type.d.ts.map +1 -0
- package/distribution/component/service-object/cuboid/type.js.map +1 -0
- package/distribution/component/service-object/e-commerce/index.d.ts +3 -0
- package/distribution/component/service-object/e-commerce/index.d.ts.map +1 -0
- package/distribution/component/service-object/e-commerce/index.js +8 -0
- package/distribution/component/service-object/e-commerce/index.js.map +1 -0
- package/distribution/component/service-object/e-commerce/index.module.css +1 -0
- package/distribution/component/service-object/e-commerce/index.module.scss +78 -0
- package/distribution/component/service-object/index.d.ts +10 -0
- package/distribution/component/service-object/index.d.ts.map +1 -0
- package/distribution/component/service-object/index.js +45 -0
- package/distribution/component/service-object/index.js.map +1 -0
- package/distribution/component/service-object/index.module.css +1 -0
- package/distribution/component/service-object/index.module.scss +16 -0
- package/distribution/component/service-object/ios-application/index.d.ts +3 -0
- package/distribution/component/service-object/ios-application/index.d.ts.map +1 -0
- package/distribution/component/service-object/ios-application/index.js +8 -0
- package/distribution/component/service-object/ios-application/index.js.map +1 -0
- package/distribution/component/service-object/ios-application/index.module.css +1 -0
- package/distribution/component/service-object/ios-application/index.module.scss +93 -0
- package/distribution/component/service-object/lead-generation/index.d.ts +3 -0
- package/distribution/component/service-object/lead-generation/index.d.ts.map +1 -0
- package/distribution/component/service-object/lead-generation/index.js +7 -0
- package/distribution/component/service-object/lead-generation/index.js.map +1 -0
- package/distribution/component/service-object/lead-generation/index.module.css +1 -0
- package/distribution/component/service-object/lead-generation/index.module.scss +82 -0
- package/distribution/component/service-object/platform/index.d.ts +3 -0
- package/distribution/component/service-object/platform/index.d.ts.map +1 -0
- package/distribution/component/service-object/platform/index.js +8 -0
- package/distribution/component/service-object/platform/index.js.map +1 -0
- package/distribution/component/service-object/platform/index.module.css +1 -0
- package/distribution/component/service-object/platform/index.module.scss +54 -0
- package/distribution/component/service-object/product-launch/index.d.ts +3 -0
- package/distribution/component/service-object/product-launch/index.d.ts.map +1 -0
- package/distribution/component/service-object/product-launch/index.js +8 -0
- package/distribution/component/service-object/product-launch/index.js.map +1 -0
- package/distribution/component/service-object/product-launch/index.module.css +1 -0
- package/distribution/component/service-object/product-launch/index.module.scss +110 -0
- package/distribution/component/service-object/progressive-web-application/index.d.ts +3 -0
- package/distribution/component/service-object/progressive-web-application/index.d.ts.map +1 -0
- package/distribution/component/service-object/progressive-web-application/index.js +8 -0
- package/distribution/component/service-object/progressive-web-application/index.js.map +1 -0
- package/distribution/component/service-object/progressive-web-application/index.module.css +1 -0
- package/distribution/component/service-object/progressive-web-application/index.module.scss +91 -0
- package/distribution/component/service-object/rebranding/index.d.ts +3 -0
- package/distribution/component/service-object/rebranding/index.d.ts.map +1 -0
- package/distribution/component/service-object/rebranding/index.js +8 -0
- package/distribution/component/service-object/rebranding/index.js.map +1 -0
- package/distribution/component/service-object/rebranding/index.module.css +1 -0
- package/distribution/component/service-object/rebranding/index.module.scss +76 -0
- package/distribution/component/service-object/sales-generation/index.d.ts +3 -0
- package/distribution/component/service-object/sales-generation/index.d.ts.map +1 -0
- package/distribution/component/service-object/sales-generation/index.js +8 -0
- package/distribution/component/service-object/sales-generation/index.js.map +1 -0
- package/distribution/component/service-object/sales-generation/index.module.css +1 -0
- package/distribution/component/service-object/sales-generation/index.module.scss +65 -0
- package/distribution/component/service-object/social-media-strategy/index.d.ts +3 -0
- package/distribution/component/service-object/social-media-strategy/index.d.ts.map +1 -0
- package/distribution/component/service-object/social-media-strategy/index.js +7 -0
- package/distribution/component/service-object/social-media-strategy/index.js.map +1 -0
- package/distribution/component/service-object/social-media-strategy/index.module.css +1 -0
- package/distribution/component/service-object/social-media-strategy/index.module.scss +77 -0
- package/distribution/component/service-object/type.d.ts +6 -0
- package/distribution/component/service-object/type.d.ts.map +1 -0
- package/distribution/component/service-object/type.js.map +1 -0
- package/distribution/component/service-object/website/index.d.ts +3 -0
- package/distribution/component/service-object/website/index.d.ts.map +1 -0
- package/distribution/component/service-object/website/index.js +7 -0
- package/distribution/component/service-object/website/index.js.map +1 -0
- package/distribution/component/service-object/website/index.module.css +1 -0
- package/distribution/component/service-object/website/index.module.scss +73 -0
- package/distribution/component/services/index.d.ts +4 -1
- package/distribution/component/services/index.d.ts.map +1 -1
- package/distribution/component/services/index.js +6 -17
- package/distribution/component/services/index.js.map +1 -1
- package/distribution/component/services/index.module.css +1 -1
- package/distribution/component/services/index.module.scss +49 -43
- 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 +13 -10
- package/distribution/component/structured-data/index.js.map +1 -1
- package/distribution/content/contact/index.d.ts +85 -29
- package/distribution/content/contact/index.d.ts.map +1 -1
- package/distribution/content/contact/index.js +10 -7
- package/distribution/content/contact/index.js.map +1 -1
- package/distribution/content/footer/index.d.ts +5 -0
- package/distribution/content/footer/index.d.ts.map +1 -1
- package/distribution/content/footer/index.js +2 -0
- package/distribution/content/footer/index.js.map +1 -1
- package/distribution/content/hero/index.d.ts +1 -1
- package/distribution/content/hero/index.js +1 -1
- package/distribution/content/hero/index.js.map +1 -1
- package/distribution/content/services/index.d.ts +286 -132
- package/distribution/content/services/index.d.ts.map +1 -1
- package/distribution/content/services/index.js +172 -105
- 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 +12 -8
- package/distribution/content/site/index.js.map +1 -1
- package/distribution/style/object/index.scss +28 -0
- package/distribution/utility/llms-text/index.js +1 -1
- package/distribution/utility/llms-text/index.js.map +1 -1
- package/llms.txt +5 -2
- package/package.json +2 -1
- package/distribution/component/service-action/index.d.ts +0 -10
- package/distribution/component/service-action/index.d.ts.map +0 -1
- package/distribution/component/service-action/index.js +0 -18
- package/distribution/component/service-action/index.js.map +0 -1
- package/distribution/component/service-action/index.module.css +0 -1
- package/distribution/component/service-action/index.module.scss +0 -6
- package/distribution/component/service-action/type.d.ts +0 -7
- package/distribution/component/service-action/type.d.ts.map +0 -1
- package/distribution/component/service-action/type.js.map +0 -1
- package/distribution/component/services/campaign-visual/index.d.ts +0 -4
- package/distribution/component/services/campaign-visual/index.d.ts.map +0 -1
- package/distribution/component/services/campaign-visual/index.js +0 -19
- package/distribution/component/services/campaign-visual/index.js.map +0 -1
- package/distribution/component/services/campaign-visual/index.module.css +0 -1
- package/distribution/component/services/campaign-visual/index.module.scss +0 -125
- package/distribution/component/services/campaign-visual/stage/index.d.ts +0 -4
- package/distribution/component/services/campaign-visual/stage/index.d.ts.map +0 -1
- package/distribution/component/services/campaign-visual/stage/index.js +0 -11
- package/distribution/component/services/campaign-visual/stage/index.js.map +0 -1
- package/distribution/component/services/campaign-visual/stage/type.d.ts +0 -10
- package/distribution/component/services/campaign-visual/stage/type.d.ts.map +0 -1
- package/distribution/component/services/campaign-visual/stage/type.js.map +0 -1
- package/distribution/component/services/campaign-visual/type.d.ts +0 -5
- package/distribution/component/services/campaign-visual/type.d.ts.map +0 -1
- package/distribution/component/services/campaign-visual/type.js.map +0 -1
- package/distribution/component/services/cell/index.d.ts +0 -7
- package/distribution/component/services/cell/index.d.ts.map +0 -1
- package/distribution/component/services/cell/index.js +0 -16
- package/distribution/component/services/cell/index.js.map +0 -1
- package/distribution/component/services/cell/index.module.css +0 -1
- package/distribution/component/services/cell/index.module.scss +0 -81
- package/distribution/component/services/cell/type.d.ts +0 -16
- package/distribution/component/services/cell/type.d.ts.map +0 -1
- package/distribution/component/services/cell/type.js.map +0 -1
- package/distribution/component/services/design-visual/index.d.ts +0 -5
- package/distribution/component/services/design-visual/index.d.ts.map +0 -1
- package/distribution/component/services/design-visual/index.js +0 -21
- package/distribution/component/services/design-visual/index.js.map +0 -1
- package/distribution/component/services/design-visual/index.module.css +0 -1
- package/distribution/component/services/design-visual/index.module.scss +0 -119
- package/distribution/component/services/mobile-visual/index.d.ts +0 -4
- package/distribution/component/services/mobile-visual/index.d.ts.map +0 -1
- package/distribution/component/services/mobile-visual/index.js +0 -18
- package/distribution/component/services/mobile-visual/index.js.map +0 -1
- package/distribution/component/services/mobile-visual/index.module.css +0 -1
- package/distribution/component/services/mobile-visual/index.module.scss +0 -93
- package/distribution/component/services/mobile-visual/type.d.ts +0 -5
- package/distribution/component/services/mobile-visual/type.d.ts.map +0 -1
- package/distribution/component/services/mobile-visual/type.js +0 -2
- package/distribution/component/services/mobile-visual/type.js.map +0 -1
- package/distribution/component/services/platform-visual/index.d.ts +0 -3
- package/distribution/component/services/platform-visual/index.d.ts.map +0 -1
- package/distribution/component/services/platform-visual/index.js +0 -16
- package/distribution/component/services/platform-visual/index.js.map +0 -1
- package/distribution/component/services/platform-visual/index.module.css +0 -1
- package/distribution/component/services/platform-visual/index.module.scss +0 -39
- package/distribution/component/services/social-visual/index.d.ts +0 -4
- package/distribution/component/services/social-visual/index.d.ts.map +0 -1
- package/distribution/component/services/social-visual/index.js +0 -18
- package/distribution/component/services/social-visual/index.js.map +0 -1
- package/distribution/component/services/social-visual/index.module.css +0 -1
- package/distribution/component/services/social-visual/index.module.scss +0 -123
- package/distribution/component/services/social-visual/type.d.ts +0 -5
- package/distribution/component/services/social-visual/type.d.ts.map +0 -1
- package/distribution/component/services/social-visual/type.js +0 -2
- package/distribution/component/services/social-visual/type.js.map +0 -1
- package/distribution/component/services/web-visual/index.d.ts +0 -3
- package/distribution/component/services/web-visual/index.d.ts.map +0 -1
- package/distribution/component/services/web-visual/index.js +0 -26
- package/distribution/component/services/web-visual/index.js.map +0 -1
- package/distribution/component/services/web-visual/index.module.css +0 -1
- package/distribution/component/services/web-visual/index.module.scss +0 -133
- package/distribution/content/services/type.d.ts +0 -8
- package/distribution/content/services/type.d.ts.map +0 -1
- package/distribution/content/services/type.js +0 -2
- package/distribution/content/services/type.js.map +0 -1
- /package/distribution/component/{service-action → contact/form/chip}/type.js +0 -0
- /package/distribution/component/{services/campaign-visual/stage → service-card}/type.js +0 -0
- /package/distribution/component/{services/campaign-visual → service-object/cuboid}/type.js +0 -0
- /package/distribution/component/{services/cell → service-object}/type.js +0 -0
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
@use "style/token" as *;
|
|
2
|
-
|
|
3
|
-
.visual {
|
|
4
|
-
@include fill-center;
|
|
5
|
-
}
|
|
6
|
-
.phone {
|
|
7
|
-
position: relative;
|
|
8
|
-
width: 168px;
|
|
9
|
-
height: 300px;
|
|
10
|
-
margin-top: 70px;
|
|
11
|
-
border-radius: 30px;
|
|
12
|
-
border: 1px solid var(--line-2);
|
|
13
|
-
background: linear-gradient(180deg, var(--surface), var(--card));
|
|
14
|
-
box-shadow: 0 40px 80px -20px shade(90%);
|
|
15
|
-
transform: rotateY(-14deg) rotateX(8deg) rotateZ(2deg);
|
|
16
|
-
transform-style: preserve-3d;
|
|
17
|
-
animation: hover 8s ease-in-out infinite;
|
|
18
|
-
padding: 34px 10px 0;
|
|
19
|
-
}
|
|
20
|
-
.notch {
|
|
21
|
-
position: absolute;
|
|
22
|
-
top: 9px;
|
|
23
|
-
left: 50%;
|
|
24
|
-
width: 56px;
|
|
25
|
-
height: 16px;
|
|
26
|
-
margin-left: -28px;
|
|
27
|
-
border-radius: 10px;
|
|
28
|
-
background: var(--background);
|
|
29
|
-
border: 1px solid var(--line-2);
|
|
30
|
-
}
|
|
31
|
-
.time {
|
|
32
|
-
text-align: center;
|
|
33
|
-
font-size: 26px;
|
|
34
|
-
font-weight: 500;
|
|
35
|
-
letter-spacing: -0.04em;
|
|
36
|
-
margin: 4px 0 12px;
|
|
37
|
-
}
|
|
38
|
-
.notes {
|
|
39
|
-
display: grid;
|
|
40
|
-
gap: 7px;
|
|
41
|
-
}
|
|
42
|
-
.note {
|
|
43
|
-
display: flex;
|
|
44
|
-
gap: 8px;
|
|
45
|
-
align-items: center;
|
|
46
|
-
padding: 8px 9px;
|
|
47
|
-
border-radius: 12px;
|
|
48
|
-
background: tint(7%);
|
|
49
|
-
backdrop-filter: blur(4px);
|
|
50
|
-
border: 1px solid var(--line);
|
|
51
|
-
animation: note-in 0.6s var(--ease) both;
|
|
52
|
-
}
|
|
53
|
-
.note1 {
|
|
54
|
-
opacity: 0.7;
|
|
55
|
-
}
|
|
56
|
-
.note2 {
|
|
57
|
-
opacity: 0.4;
|
|
58
|
-
}
|
|
59
|
-
.icon {
|
|
60
|
-
width: 20px;
|
|
61
|
-
height: 20px;
|
|
62
|
-
border-radius: 6px;
|
|
63
|
-
background: var(--foreground);
|
|
64
|
-
flex: none;
|
|
65
|
-
}
|
|
66
|
-
.text {
|
|
67
|
-
display: grid;
|
|
68
|
-
line-height: 1.25;
|
|
69
|
-
min-width: 0;
|
|
70
|
-
b {
|
|
71
|
-
font-size: 10.5px;
|
|
72
|
-
font-weight: 600;
|
|
73
|
-
}
|
|
74
|
-
em {
|
|
75
|
-
font-style: normal;
|
|
76
|
-
font-size: 9.5px;
|
|
77
|
-
color: var(--foreground-2);
|
|
78
|
-
white-space: nowrap;
|
|
79
|
-
overflow: hidden;
|
|
80
|
-
text-overflow: ellipsis;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
@keyframes note-in {
|
|
84
|
-
from {
|
|
85
|
-
opacity: 0;
|
|
86
|
-
transform: translateY(-12px) scale(0.96);
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
@keyframes hover {
|
|
90
|
-
50% {
|
|
91
|
-
transform: rotateY(-8deg) rotateX(4deg) rotateZ(1deg) translateY(-8px);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../source/component/services/mobile-visual/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oDAAoD,CAAC;AAEjF,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../source/component/services/mobile-visual/type.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/services/platform-visual/index.tsx"],"names":[],"mappings":"AAYA,6EAA6E;AAC7E,wBAAgB,cAAc,gCA+C7B"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import styles from "./index.module.css";
|
|
3
|
-
const NODES = [
|
|
4
|
-
{ x: 60, y: 46, label: "bookings" },
|
|
5
|
-
{ x: 260, y: 40, label: "payments" },
|
|
6
|
-
{ x: 292, y: 150, label: "inventory" },
|
|
7
|
-
{ x: 196, y: 228, label: "customers" },
|
|
8
|
-
{ x: 48, y: 186, label: "analytics" },
|
|
9
|
-
];
|
|
10
|
-
const CENTER_X = 170;
|
|
11
|
-
const CENTER_Y = 132;
|
|
12
|
-
/** Systems connected to one core, with data packets flowing between them. */
|
|
13
|
-
export function PlatformVisual() {
|
|
14
|
-
return (_jsx("div", { className: styles.visual, "aria-hidden": true, children: _jsxs("svg", { viewBox: "0 0 340 270", children: [_jsx("defs", { children: _jsxs("radialGradient", { id: "platform-core-glow", children: [_jsx("stop", { offset: "0", stopColor: "var(--foreground)", stopOpacity: ".3" }), _jsx("stop", { offset: "1", stopColor: "var(--foreground)", stopOpacity: "0" })] }) }), _jsx("circle", { cx: CENTER_X, cy: CENTER_Y, r: "70", fill: "url(#platform-core-glow)" }), NODES.map((node, index) => (_jsx("path", { id: `platform-edge-${index}`, d: `M${node.x},${node.y} Q${(node.x + CENTER_X) / 2 + (index % 2 ? 26 : -26)},${(node.y + CENTER_Y) / 2} ${CENTER_X},${CENTER_Y}`, className: styles.edge }, `path${index}`))), NODES.map((_, index) => (_jsx("circle", { r: "2.6", className: styles.packet, children: _jsx("animateMotion", { dur: `${2.2 + index * 0.35}s`, repeatCount: "indefinite", keyPoints: index % 2 ? "0;1" : "1;0", keyTimes: "0;1", calcMode: "linear", children: _jsx("mpath", { href: `#platform-edge-${index}` }) }) }, `packet${index}`))), _jsx("rect", { x: CENTER_X - 30, y: CENTER_Y - 16, width: "60", height: "32", rx: "9", className: styles.core }), _jsx("text", { x: CENTER_X, y: CENTER_Y + 4, className: styles.coreLabel, children: "core" }), NODES.map((node, index) => (_jsxs("g", { children: [_jsx("circle", { cx: node.x, cy: node.y, r: "5", className: styles.node }), _jsx("text", { x: node.x, y: node.y - 12, className: styles.nodeLabel, children: node.label })] }, `node${index}`)))] }) }));
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/services/platform-visual/index.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,MAAM,KAAK,GAAG;IACZ,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE;IACnC,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE;IACpC,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,WAAW,EAAE;IACtC,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,WAAW,EAAE;IACtC,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,WAAW,EAAE;CACtC,CAAC;AACF,MAAM,QAAQ,GA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AAG,EAC7B,WAAW,EAAC,YAAY,EACxB,SAAS,EAAE,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,EACpC,QAAQ,EAAC,KAAK,EACd,QAAQ,EAAC,QAAQ,YAEjB,gBAAO,IAAI,EAAE,kBAAkB,KAAK,EAAE,GAAI,GAC5B,IATL,SAAS,KAAK,EAAE,CAUpB,CACV,CAAC,EACF,eAAM,CAAC,EAAE,QAAQ,GAAG,EAAE,EAAE,CAAC,EAAE,QAAQ,GAAG,EAAE,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,EAAE,EAAC,GAAG,EAAC,SAAS,EAAE,MAAM,CAAC,IAAI,GAAI,EAClG,eAAM,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,QAAQ,GAAG,CAAC,EAAE,SAAS,EAAE,MAAM,CAAC,SAAS,qBAExD,EACN,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CAC1B,wBACE,iBAAQ,EAAE,EAAE,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC,EAAE,CAAC,EAAC,GAAG,EAAC,SAAS,EAAE,MAAM,CAAC,IAAI,GAAI,EAChE,eAAM,CAAC,EAAE,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,SAAS,EAAE,MAAM,CAAC,SAAS,YACzD,IAAI,CAAC,KAAK,GACN,KAJD,OAAO,KAAK,EAAE,CAKlB,CACL,CAAC,IACE,GACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.visual{position:absolute;inset:0;display:grid;place-items:center}.visual svg{width:min(92%,420px);height:auto;overflow:visible}.edge{fill:none;stroke:var(--line-2);stroke-width:1;stroke-dasharray:3 4}.packet{fill:var(--foreground);filter:drop-shadow(0 0 4px var(--foreground))}.core{fill:var(--surface);stroke:var(--foreground-3)}.coreLabel{fill:var(--foreground);font:500 11px var(--monospace);text-anchor:middle}.node{fill:var(--background);stroke:var(--foreground);stroke-width:1.4}.nodeLabel{fill:var(--foreground-2);font:400 10.5px var(--monospace);text-anchor:middle}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
@use "style/token" as *;
|
|
2
|
-
|
|
3
|
-
.visual {
|
|
4
|
-
@include fill-center;
|
|
5
|
-
svg {
|
|
6
|
-
width: min(92%, 420px);
|
|
7
|
-
height: auto;
|
|
8
|
-
overflow: visible;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
.edge {
|
|
12
|
-
fill: none;
|
|
13
|
-
stroke: var(--line-2);
|
|
14
|
-
stroke-width: 1;
|
|
15
|
-
stroke-dasharray: 3 4;
|
|
16
|
-
}
|
|
17
|
-
.packet {
|
|
18
|
-
fill: var(--foreground);
|
|
19
|
-
filter: drop-shadow(0 0 4px var(--foreground));
|
|
20
|
-
}
|
|
21
|
-
.core {
|
|
22
|
-
fill: var(--surface);
|
|
23
|
-
stroke: var(--foreground-3);
|
|
24
|
-
}
|
|
25
|
-
.coreLabel {
|
|
26
|
-
fill: var(--foreground);
|
|
27
|
-
font: 500 11px var(--monospace);
|
|
28
|
-
text-anchor: middle;
|
|
29
|
-
}
|
|
30
|
-
.node {
|
|
31
|
-
fill: var(--background);
|
|
32
|
-
stroke: var(--foreground);
|
|
33
|
-
stroke-width: 1.4;
|
|
34
|
-
}
|
|
35
|
-
.nodeLabel {
|
|
36
|
-
fill: var(--foreground-2);
|
|
37
|
-
font: 400 10.5px var(--monospace);
|
|
38
|
-
text-anchor: middle;
|
|
39
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { SocialVisualProperties } from "@sharadox/sharadox-web-library/component/services/social-visual/type";
|
|
2
|
-
/** A growth chart drawing itself as the follower count climbs, beside a feed of posts filling in, in 3D. */
|
|
3
|
-
export declare function SocialVisual({ locale }: SocialVisualProperties): import("react").JSX.Element;
|
|
4
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/services/social-visual/index.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sEAAsE,CAAC;AAKnH,4GAA4G;AAC5G,wBAAgB,YAAY,CAAC,EAAE,MAAM,EAAE,EAAE,sBAAsB,+BAiC9D"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { classNames } from "@sharadox/web-library/class-name";
|
|
4
|
-
import { useCountUp } from "@sharadox/animation-web-library/count-up";
|
|
5
|
-
import { useInView } from "@sharadox/animation-web-library/in-view";
|
|
6
|
-
import { LOCALES } from "@sharadox/sharadox-web-library/content/locale";
|
|
7
|
-
import { translate } from "@sharadox/internationalization-web-library/translate";
|
|
8
|
-
import { SERVICES } from "@sharadox/sharadox-web-library/content/services";
|
|
9
|
-
import styles from "./index.module.css";
|
|
10
|
-
const LINE = "M0 86 C 30 84, 46 74, 70 70 S 112 66, 132 52 S 170 40, 196 30 S 232 14, 260 8";
|
|
11
|
-
const POSTS = Array.from({ length: 9 }, (_, index) => index);
|
|
12
|
-
/** A growth chart drawing itself as the follower count climbs, beside a feed of posts filling in, in 3D. */
|
|
13
|
-
export function SocialVisual({ locale }) {
|
|
14
|
-
const [container, on] = useInView();
|
|
15
|
-
const followers = useCountUp(12480, on, 2200);
|
|
16
|
-
return (_jsxs("div", { ref: container, className: classNames(styles.visual, on && styles.on), "aria-hidden": true, children: [_jsx("div", { className: styles.feed, children: POSTS.map((post) => (_jsx("span", { style: { animationDelay: `${0.2 + post * 0.09}s` } }, post))) }), _jsxs("div", { className: styles.panel, children: [_jsxs("div", { className: styles.header, children: [_jsx("span", { className: `${styles.label} monospace`, children: translate(SERVICES.visual.followers, locale) }), _jsx("span", { className: `${styles.growth} monospace`, children: "+38%" })] }), _jsx("span", { className: styles.count, children: followers.toLocaleString(LOCALES.languageTag(locale)) }), _jsxs("svg", { viewBox: "0 0 260 96", className: styles.chart, children: [_jsx("defs", { children: _jsxs("linearGradient", { id: "social-area", x1: "0", x2: "0", y1: "0", y2: "1", children: [_jsx("stop", { offset: "0", stopColor: "var(--foreground)", stopOpacity: "0.22" }), _jsx("stop", { offset: "1", stopColor: "var(--foreground)", stopOpacity: "0" })] }) }), [24, 48, 72].map((y) => (_jsx("line", { x1: "0", x2: "260", y1: y, y2: y, className: styles.gridLine }, y))), _jsx("path", { d: `${LINE} L 260 96 L 0 96 Z`, className: styles.area, fill: "url(#social-area)" }), _jsx("path", { d: LINE, className: styles.line, pathLength: 1 }), _jsx("circle", { cx: "260", cy: "8", r: "3.5", className: styles.dot })] })] })] }));
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/services/social-visual/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,0CAA0C,CAAC;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,OAAO,EAAE,MAAM,+CAA+C,CAAC;AACxE,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAC3E,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC,MAAM,IAAI,GAAG,+EAA+E,CAAC;AAC7F,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAA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G,EAAC,SAAS,EAAC,mBAAmB,EAAC,WAAW,EAAC,MAAM,GAAG,EACpE,eAAM,MAAM,EAAC,GAAG,EAAC,SAAS,EAAC,mBAAmB,EAAC,WAAW,EAAC,GAAG,GAAG,IAClD,GACZ,EACN,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CACvB,eAAc,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,KAAK,EAAC,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,SAAS,EAAE,MAAM,CAAC,QAAQ,IAA3D,CAAC,CAA8D,CAC3E,CAAC,EACF,eAAM,CAAC,EAAE,GAAG,IAAI,oBAAoB,EAAE,SAAS,EAAE,MAAM,CAAC,IAAI,EAAE,IAAI,EAAC,mBAAmB,GAAG,EACzF,eAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,CAAC,IAAI,EAAE,UAAU,EAAE,CAAC,GAAI,EACxD,iBAAQ,EAAE,EAAC,KAAK,EAAC,EAAE,EAAC,GAAG,EAAC,CAAC,EAAC,KAAK,EAAC,SAAS,EAAE,MAAM,CAAC,GAAG,GAAI,IACrD,IACF,IACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.visual{position:absolute;inset:0;display:grid;place-items:center;perspective:900px}.feed{position:absolute;right:6%;top:50%;width:132px;display:grid;grid-template-columns:repeat(3, 1fr);gap:5px;transform:translateY(-56%) rotateY(-28deg) rotateX(10deg) translateZ(-40px)}.feed span{aspect-ratio:1;border-radius:5px;border:1px solid var(--line-2);background:linear-gradient(135deg, color-mix(in srgb, var(--foreground) 14%, transparent), color-mix(in srgb, var(--foreground) 3%, transparent))}.on .feed span{animation:pop .6s cubic-bezier(0.22, 1, 0.36, 1) both}:global(:root[data-soft-navigation]) .on .feed span{animation-duration:0s !important;animation-delay:0s !important}.feed span:nth-child(3n+2){background:linear-gradient(135deg, color-mix(in srgb, var(--foreground) 28%, transparent), color-mix(in srgb, var(--foreground) 8%, transparent))}@keyframes pop{from{opacity:0;transform:scale(0.6)}}.panel{position:relative;width:min(72%,290px);margin-right:22%;padding:16px 16px 10px;border-radius:14px;border:1px solid var(--line-2);background:color-mix(in srgb, var(--background) 80%, transparent);backdrop-filter:blur(8px);box-shadow:0 30px 60px -24px color-mix(in srgb, var(--background) 90%, transparent);transform:rotateY(10deg) rotateX(6deg) translateZ(30px)}.header{display:flex;justify-content:space-between;align-items:center}.label{font-size:10.5px;text-transform:uppercase;letter-spacing:.05em;color:var(--foreground-3)}.growth{font-size:10.5px;padding:2px 7px;border-radius:99px;background:color-mix(in srgb, var(--foreground) 10%, transparent)}.count{display:block;margin:2px 0 6px;font-size:30px;font-weight:600;letter-spacing:-0.04em;font-variant-numeric:tabular-nums}.chart{display:block;width:100%;height:auto;overflow:visible}.gridLine{stroke:var(--line);stroke-dasharray:3 3}.line{fill:none;stroke:var(--foreground);stroke-width:1.8;stroke-linecap:round;stroke-dasharray:1}.on .line{animation:draw-line 2.2s cubic-bezier(0.22, 1, 0.36, 1) both}:global(:root[data-soft-navigation]) .on .line{animation-duration:0s !important;animation-delay:0s !important}.on .area{animation:fade 2.2s ease both}:global(:root[data-soft-navigation]) .on .area{animation-duration:0s !important;animation-delay:0s !important}@keyframes draw-line{from{stroke-dashoffset:1}}@keyframes fade{from{opacity:0}}.dot{fill:var(--foreground)}.on .dot{animation:pulse 2s 2.2s ease-out infinite}@keyframes pulse{0%{filter:drop-shadow(0 0 0 var(--foreground))}50%{filter:drop-shadow(0 0 6px var(--foreground))}}
|
|
@@ -1,123 +0,0 @@
|
|
|
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
|
-
@include skip-entrance;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
span:nth-child(3n + 2) {
|
|
27
|
-
background: linear-gradient(135deg, tint(28%), tint(8%));
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
@keyframes pop {
|
|
31
|
-
from {
|
|
32
|
-
opacity: 0;
|
|
33
|
-
transform: scale(0.6);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
.panel {
|
|
37
|
-
position: relative;
|
|
38
|
-
width: min(72%, 290px);
|
|
39
|
-
margin-right: 22%;
|
|
40
|
-
padding: 16px 16px 10px;
|
|
41
|
-
border-radius: 14px;
|
|
42
|
-
border: 1px solid var(--line-2);
|
|
43
|
-
background: shade(80%);
|
|
44
|
-
backdrop-filter: blur(8px);
|
|
45
|
-
box-shadow: 0 30px 60px -24px shade(90%);
|
|
46
|
-
transform: rotateY(10deg) rotateX(6deg) translateZ(30px);
|
|
47
|
-
}
|
|
48
|
-
.header {
|
|
49
|
-
display: flex;
|
|
50
|
-
justify-content: space-between;
|
|
51
|
-
align-items: center;
|
|
52
|
-
}
|
|
53
|
-
.label {
|
|
54
|
-
font-size: 10.5px;
|
|
55
|
-
text-transform: uppercase;
|
|
56
|
-
letter-spacing: 0.05em;
|
|
57
|
-
color: var(--foreground-3);
|
|
58
|
-
}
|
|
59
|
-
.growth {
|
|
60
|
-
font-size: 10.5px;
|
|
61
|
-
padding: 2px 7px;
|
|
62
|
-
border-radius: 99px;
|
|
63
|
-
background: tint(10%);
|
|
64
|
-
}
|
|
65
|
-
.count {
|
|
66
|
-
display: block;
|
|
67
|
-
margin: 2px 0 6px;
|
|
68
|
-
font-size: 30px;
|
|
69
|
-
font-weight: 600;
|
|
70
|
-
letter-spacing: -0.04em;
|
|
71
|
-
font-variant-numeric: tabular-nums;
|
|
72
|
-
}
|
|
73
|
-
.chart {
|
|
74
|
-
display: block;
|
|
75
|
-
width: 100%;
|
|
76
|
-
height: auto;
|
|
77
|
-
overflow: visible;
|
|
78
|
-
}
|
|
79
|
-
.gridLine {
|
|
80
|
-
stroke: var(--line);
|
|
81
|
-
stroke-dasharray: 3 3;
|
|
82
|
-
}
|
|
83
|
-
.line {
|
|
84
|
-
fill: none;
|
|
85
|
-
stroke: var(--foreground);
|
|
86
|
-
stroke-width: 1.8;
|
|
87
|
-
stroke-linecap: round;
|
|
88
|
-
stroke-dasharray: 1;
|
|
89
|
-
.on & {
|
|
90
|
-
animation: draw-line 2.2s $ease both;
|
|
91
|
-
@include skip-entrance;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
.area {
|
|
95
|
-
.on & {
|
|
96
|
-
animation: fade 2.2s ease both;
|
|
97
|
-
@include skip-entrance;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
@keyframes draw-line {
|
|
101
|
-
from {
|
|
102
|
-
stroke-dashoffset: 1;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
@keyframes fade {
|
|
106
|
-
from {
|
|
107
|
-
opacity: 0;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
.dot {
|
|
111
|
-
fill: var(--foreground);
|
|
112
|
-
.on & {
|
|
113
|
-
animation: pulse 2s 2.2s ease-out infinite;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
@keyframes pulse {
|
|
117
|
-
0% {
|
|
118
|
-
filter: drop-shadow(0 0 0 var(--foreground));
|
|
119
|
-
}
|
|
120
|
-
50% {
|
|
121
|
-
filter: drop-shadow(0 0 6px var(--foreground));
|
|
122
|
-
}
|
|
123
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../source/component/services/social-visual/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oDAAoD,CAAC;AAEjF,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../source/component/services/social-visual/type.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
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,26 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { classNames } from "@sharadox/web-library/class-name";
|
|
4
|
-
import { useEffect, useState } from "react";
|
|
5
|
-
import { useInView } from "@sharadox/animation-web-library/in-view";
|
|
6
|
-
import styles from "./index.module.css";
|
|
7
|
-
const CIRCUMFERENCE = 2 * Math.PI * 22;
|
|
8
|
-
/** A browser whose layout assembles itself, with a performance score counting to 100. */
|
|
9
|
-
export function WebVisual() {
|
|
10
|
-
const [container, on] = useInView();
|
|
11
|
-
const [score, setScore] = useState(0);
|
|
12
|
-
useEffect(() => {
|
|
13
|
-
if (!on)
|
|
14
|
-
return;
|
|
15
|
-
let value = 0;
|
|
16
|
-
const timer = setInterval(() => {
|
|
17
|
-
value += 3;
|
|
18
|
-
setScore(Math.min(100, value));
|
|
19
|
-
if (value >= 100)
|
|
20
|
-
clearInterval(timer);
|
|
21
|
-
}, 22);
|
|
22
|
-
return () => clearInterval(timer);
|
|
23
|
-
}, [on]);
|
|
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 })] })] }));
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/services/web-visual/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,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,E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,IAAI,EAAE,GAAI,EACvD,cAAK,SAAS,EAAE,GAAG,MAAM,CAAC,QAAQ,IAAI,MAAM,CAAC,IAAI,EAAE,GAAI,EACvD,cAAK,SAAS,EAAE,GAAG,MAAM,CAAC,QAAQ,IAAI,MAAM,CAAC,IAAI,EAAE,GAAI,IACnD,IACF,IACF,EACN,eAAK,SAAS,EAAE,MAAM,CAAC,KAAK,aAC1B,eAAK,OAAO,EAAC,WAAW,aACtB,iBAAQ,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,CAAC,EAAC,IAAI,EAAC,SAAS,EAAE,MAAM,CAAC,KAAK,GAAI,EAC1D,iBACE,EAAE,EAAC,IAAI,EACP,EAAE,EAAC,IAAI,EACP,CAAC,EAAC,IAAI,EACN,SAAS,EAAE,MAAM,CAAC,QAAQ,EAC1B,KAAK,EAAE,EAAE,eAAe,EAAE,aAAa,EAAE,gBAAgB,EAAE,aAAa,GAAG,CAAC,CAAC,GAAG,KAAK,GAAG,GAAG,CAAC,EAAE,GAC9F,IACE,EACN,eAAM,SAAS,EAAC,WAAW,YAAE,KAAK,GAAQ,IACtC,IACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
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}:global(:root[data-soft-navigation]) .on .skeleton{animation-duration:0s,2.4s !important;animation-delay:0s !important}.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)}}
|
|
@@ -1,133 +0,0 @@
|
|
|
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
|
-
@include skip-entrance(0s, 2.4s);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
.navigation {
|
|
59
|
-
height: 12px;
|
|
60
|
-
width: 40%;
|
|
61
|
-
}
|
|
62
|
-
.hero {
|
|
63
|
-
height: 70px;
|
|
64
|
-
animation-delay: 0.15s !important;
|
|
65
|
-
}
|
|
66
|
-
.row {
|
|
67
|
-
display: grid;
|
|
68
|
-
grid-template-columns: repeat(3, 1fr);
|
|
69
|
-
gap: 10px;
|
|
70
|
-
.skeleton:nth-child(1) {
|
|
71
|
-
animation-delay: 0.3s, 0s !important;
|
|
72
|
-
}
|
|
73
|
-
.skeleton:nth-child(2) {
|
|
74
|
-
animation-delay: 0.42s, 0s !important;
|
|
75
|
-
}
|
|
76
|
-
.skeleton:nth-child(3) {
|
|
77
|
-
animation-delay: 0.54s, 0s !important;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
.card {
|
|
81
|
-
height: 44px;
|
|
82
|
-
}
|
|
83
|
-
@keyframes skin {
|
|
84
|
-
to {
|
|
85
|
-
opacity: 1;
|
|
86
|
-
transform: none;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
@keyframes shimmer {
|
|
90
|
-
to {
|
|
91
|
-
background-position: -200% 0;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
.score {
|
|
95
|
-
position: absolute;
|
|
96
|
-
right: 7%;
|
|
97
|
-
bottom: 10%;
|
|
98
|
-
transform: translateZ(60px);
|
|
99
|
-
width: 74px;
|
|
100
|
-
height: 74px;
|
|
101
|
-
display: grid;
|
|
102
|
-
place-items: center;
|
|
103
|
-
border-radius: 50%;
|
|
104
|
-
background: shade(90%);
|
|
105
|
-
border: 1px solid var(--line-2);
|
|
106
|
-
backdrop-filter: blur(8px);
|
|
107
|
-
svg {
|
|
108
|
-
position: absolute;
|
|
109
|
-
inset: 8px;
|
|
110
|
-
transform: rotate(-90deg);
|
|
111
|
-
}
|
|
112
|
-
span {
|
|
113
|
-
font-size: 17px;
|
|
114
|
-
font-weight: 500;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
.track {
|
|
118
|
-
fill: none;
|
|
119
|
-
stroke: var(--line-2);
|
|
120
|
-
stroke-width: 3;
|
|
121
|
-
}
|
|
122
|
-
.progress {
|
|
123
|
-
fill: none;
|
|
124
|
-
stroke: var(--foreground);
|
|
125
|
-
stroke-width: 3;
|
|
126
|
-
stroke-linecap: round;
|
|
127
|
-
transition: stroke-dashoffset 0.1s linear;
|
|
128
|
-
}
|
|
129
|
-
@keyframes float {
|
|
130
|
-
50% {
|
|
131
|
-
transform: perspective(900px) rotateX(6deg) rotateY(-4deg) translateZ(20px) translateY(-6px);
|
|
132
|
-
}
|
|
133
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { NeedKey } from "@sharadox/sharadox-web-library/content/contact";
|
|
2
|
-
import type { Translated } from "@sharadox/sharadox-web-library/content/locale/type";
|
|
3
|
-
/** A call to action on a service card: its label, and the contact form choice it ticks. */
|
|
4
|
-
export interface ServiceAction {
|
|
5
|
-
need: NeedKey;
|
|
6
|
-
label: Translated;
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=type.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../source/content/services/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AAC9E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oDAAoD,CAAC;AAErF,2FAA2F;AAC3F,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,UAAU,CAAC;CACnB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../source/content/services/type.ts"],"names":[],"mappings":""}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|