@sharadox/sharadox-web-library 0.19.0 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -4
- package/distribution/action/send-contact/index.d.ts +3 -1
- package/distribution/action/send-contact/index.d.ts.map +1 -1
- package/distribution/action/send-contact/index.js +7 -1
- package/distribution/action/send-contact/index.js.map +1 -1
- 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 +5 -1
- package/distribution/component/contact/form/index.d.ts.map +1 -1
- package/distribution/component/contact/form/index.js +40 -5
- 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 +35 -60
- package/distribution/component/footer/index.d.ts +2 -3
- package/distribution/component/footer/index.d.ts.map +1 -1
- 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 -1
- package/distribution/component/footer/index.module.scss +75 -89
- 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 +11 -0
- package/distribution/component/service-card/index.d.ts.map +1 -0
- package/distribution/component/service-card/index.js +24 -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 +113 -0
- package/distribution/component/service-card/type.d.ts +10 -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/application-programming-interface/index.d.ts +6 -0
- package/distribution/component/service-object/application-programming-interface/index.d.ts.map +1 -0
- package/distribution/component/service-object/application-programming-interface/index.js +11 -0
- package/distribution/component/service-object/application-programming-interface/index.js.map +1 -0
- package/distribution/component/service-object/application-programming-interface/index.module.css +1 -0
- package/distribution/component/service-object/application-programming-interface/index.module.scss +154 -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/content-management-system/index.d.ts +6 -0
- package/distribution/component/service-object/content-management-system/index.d.ts.map +1 -0
- package/distribution/component/service-object/content-management-system/index.js +10 -0
- package/distribution/component/service-object/content-management-system/index.js.map +1 -0
- package/distribution/component/service-object/content-management-system/index.module.css +1 -0
- package/distribution/component/service-object/content-management-system/index.module.scss +181 -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/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 +6 -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 +25 -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 +179 -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 +6 -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 +14 -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 +201 -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/service-unlisted/index.d.ts +10 -0
- package/distribution/component/service-unlisted/index.d.ts.map +1 -0
- package/distribution/component/service-unlisted/index.js +20 -0
- package/distribution/component/service-unlisted/index.js.map +1 -0
- package/distribution/component/service-unlisted/index.module.css +1 -0
- package/distribution/component/service-unlisted/index.module.scss +28 -0
- package/distribution/component/{services/social-visual → service-unlisted}/type.d.ts +1 -1
- package/distribution/component/service-unlisted/type.d.ts.map +1 -0
- package/distribution/component/service-unlisted/type.js.map +1 -0
- package/distribution/component/services/index.d.ts +5 -1
- package/distribution/component/services/index.d.ts.map +1 -1
- package/distribution/component/services/index.js +8 -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 +53 -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 +17 -12
- package/distribution/component/structured-data/index.js.map +1 -1
- package/distribution/content/contact/index.d.ts +140 -34
- package/distribution/content/contact/index.d.ts.map +1 -1
- package/distribution/content/contact/index.js +42 -10
- package/distribution/content/contact/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 +330 -133
- package/distribution/content/services/index.d.ts.map +1 -1
- package/distribution/content/services/index.js +219 -117
- 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 +18 -10
- package/distribution/content/site/index.js.map +1 -1
- package/distribution/style/object/index.scss +28 -0
- package/distribution/style/token/index.scss +3 -1
- package/distribution/utility/contact-problem/index.d.ts +13 -0
- package/distribution/utility/contact-problem/index.d.ts.map +1 -0
- package/distribution/utility/contact-problem/index.js +23 -0
- package/distribution/utility/contact-problem/index.js.map +1 -0
- package/distribution/utility/llms-text/index.js +1 -1
- package/distribution/utility/llms-text/index.js.map +1 -1
- package/llms.txt +6 -3
- package/package.json +2 -2
- 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.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.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
- /package/distribution/component/{services/mobile-visual → service-unlisted}/type.js +0 -0
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
@use "style/token" as *;
|
|
2
|
+
@use "style/object" as *;
|
|
3
|
+
|
|
4
|
+
.object {
|
|
5
|
+
@include centered(0px, 0px);
|
|
6
|
+
@include loop(launch-turn 20s linear infinite);
|
|
7
|
+
transform: translateY(40px) rotateX(-20deg) rotateY(30deg);
|
|
8
|
+
}
|
|
9
|
+
@keyframes launch-turn {
|
|
10
|
+
to {
|
|
11
|
+
transform: translateY(40px) rotateX(-20deg) rotateY(390deg);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
.pad {
|
|
15
|
+
@include centered(150px, 150px);
|
|
16
|
+
@include face(4%, 35%);
|
|
17
|
+
border-radius: 50%;
|
|
18
|
+
transform: translateY(26px) rotateX(90deg);
|
|
19
|
+
background: radial-gradient(circle, tint(22%) 1px, transparent 1.5px) 0 0 / 12px 12px;
|
|
20
|
+
i {
|
|
21
|
+
position: absolute;
|
|
22
|
+
inset: 40%;
|
|
23
|
+
border-radius: 50%;
|
|
24
|
+
border: 1.5px solid tint(70%);
|
|
25
|
+
opacity: 0;
|
|
26
|
+
@include loop(launch-ring 3.4s ease-out infinite);
|
|
27
|
+
&:nth-child(2) {
|
|
28
|
+
animation-delay: 0.3s;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
@keyframes launch-ring {
|
|
33
|
+
0%,
|
|
34
|
+
8% {
|
|
35
|
+
inset: 40%;
|
|
36
|
+
opacity: 0;
|
|
37
|
+
}
|
|
38
|
+
12% {
|
|
39
|
+
opacity: 1;
|
|
40
|
+
}
|
|
41
|
+
60%,
|
|
42
|
+
100% {
|
|
43
|
+
inset: -4%;
|
|
44
|
+
opacity: 0;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
.flight {
|
|
48
|
+
@include centered(0px, 0px);
|
|
49
|
+
@include loop(launch-flight 3.4s cubic-bezier(0.55, 0, 0.8, 0.4) infinite);
|
|
50
|
+
}
|
|
51
|
+
@keyframes launch-flight {
|
|
52
|
+
0%,
|
|
53
|
+
10% {
|
|
54
|
+
transform: translateY(0) scale(1);
|
|
55
|
+
}
|
|
56
|
+
70% {
|
|
57
|
+
transform: translateY(-190px) scale(1);
|
|
58
|
+
}
|
|
59
|
+
71% {
|
|
60
|
+
transform: translateY(-190px) scale(0);
|
|
61
|
+
}
|
|
62
|
+
72% {
|
|
63
|
+
transform: translateY(60px) scale(0);
|
|
64
|
+
}
|
|
65
|
+
80% {
|
|
66
|
+
transform: translateY(60px) scale(1);
|
|
67
|
+
}
|
|
68
|
+
100% {
|
|
69
|
+
transform: translateY(0) scale(1);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
.body {
|
|
73
|
+
--width: 26px;
|
|
74
|
+
--height: 54px;
|
|
75
|
+
--depth: 26px;
|
|
76
|
+
--fill-amount: 10%;
|
|
77
|
+
--edge-amount: 70%;
|
|
78
|
+
transform: translateY(-2px);
|
|
79
|
+
}
|
|
80
|
+
.nose {
|
|
81
|
+
--width: 14px;
|
|
82
|
+
--height: 14px;
|
|
83
|
+
--depth: 14px;
|
|
84
|
+
--fill-amount: 30%;
|
|
85
|
+
--edge-amount: 80%;
|
|
86
|
+
transform: translateY(-38px);
|
|
87
|
+
}
|
|
88
|
+
.trail {
|
|
89
|
+
@include centered(3px, 90px);
|
|
90
|
+
transform: translateY(70px);
|
|
91
|
+
background: linear-gradient(180deg, tint(70%), transparent);
|
|
92
|
+
box-shadow: 0 0 12px tint(40%);
|
|
93
|
+
opacity: 0;
|
|
94
|
+
@include loop(launch-trail 3.4s linear infinite);
|
|
95
|
+
}
|
|
96
|
+
/* The trail only shows in flight, not standing on the pad. */
|
|
97
|
+
@keyframes launch-trail {
|
|
98
|
+
0%,
|
|
99
|
+
10% {
|
|
100
|
+
opacity: 0;
|
|
101
|
+
}
|
|
102
|
+
20%,
|
|
103
|
+
66% {
|
|
104
|
+
opacity: 1;
|
|
105
|
+
}
|
|
106
|
+
70%,
|
|
107
|
+
100% {
|
|
108
|
+
opacity: 0;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Progressive web applications: one codebase in the middle sends the same app to a computer, a tablet and a phone at
|
|
3
|
+
* once, and every screen lights up together. Built once, it runs everywhere.
|
|
4
|
+
*/
|
|
5
|
+
export declare function ProgressiveWebApplication(): import("react").JSX.Element;
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/service-object/progressive-web-application/index.tsx"],"names":[],"mappings":"AAuBA;;;GAGG;AACH,wBAAgB,yBAAyB,gCAwCxC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Cuboid } from "@sharadox/sharadox-web-library/component/service-object/cuboid";
|
|
3
|
+
import styles from "./index.module.css";
|
|
4
|
+
/** The same app on every screen: a header, a picture and two tiles. */
|
|
5
|
+
function Screen() {
|
|
6
|
+
return (_jsxs("span", { className: styles.app, children: [_jsx("i", { className: styles.header }), _jsx("i", { className: styles.picture }), _jsx("i", { className: styles.tile }), _jsx("i", { className: styles.tile })] }));
|
|
7
|
+
}
|
|
8
|
+
/** Where each device sits around the codebase, as the packet that reaches it flies there. */
|
|
9
|
+
const DEVICES = [
|
|
10
|
+
{ kind: "computer", x: 0, y: -50, z: -110 },
|
|
11
|
+
{ kind: "tablet", x: -148, y: 14, z: -6 },
|
|
12
|
+
{ kind: "phone", x: 148, y: 26, z: 4 },
|
|
13
|
+
];
|
|
14
|
+
/**
|
|
15
|
+
* Progressive web applications: one codebase in the middle sends the same app to a computer, a tablet and a phone at
|
|
16
|
+
* once, and every screen lights up together. Built once, it runs everywhere.
|
|
17
|
+
*/
|
|
18
|
+
export function ProgressiveWebApplication() {
|
|
19
|
+
return (_jsxs("div", { className: styles.object, children: [_jsx(Cuboid, { className: styles.codebase, front: _jsxs("span", { className: styles.code, children: [_jsx("i", {}), _jsx("i", {}), _jsx("i", {})] }) }), DEVICES.map((device) => (_jsxs("div", { className: styles.place, style: { transform: `translate3d(${device.x}px, ${device.y}px, ${device.z}px)` }, children: [_jsx("div", { className: styles.device, "data-kind": device.kind, children: _jsx(Screen, {}) }), device.kind === "computer" && _jsx("span", { className: styles.stand })] }, device.kind))), DEVICES.map((device) => (_jsx("span", { className: styles.packet, style: {
|
|
20
|
+
"--to-x": `${device.x}px`,
|
|
21
|
+
"--to-y": `${device.y}px`,
|
|
22
|
+
"--to-z": `${device.z}px`,
|
|
23
|
+
} }, device.kind)))] }));
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/service-object/progressive-web-application/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,gEAAgE,CAAC;AACxF,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,uEAAuE;AACvE,SAAS,MAAM;IACb,OAAO,CACL,gBAAM,SAAS,EAAE,MAAM,CAAC,GAAG,aACzB,YAAG,SAAS,EAAE,MAAM,CAAC,MAAM,GAAI,EAC/B,YAAG,SAAS,EAAE,MAAM,CAAC,OAAO,GAAI,EAChC,YAAG,SAAS,EAAE,MAAM,CAAC,IAAI,GAAI,EAC7B,YAAG,SAAS,EAAE,MAAM,CAAC,IAAI,GAAI,IACxB,CACR,CAAC;AACJ,CAAC;AAED,6FAA6F;AAC7F,MAAM,OAAO,GAAG;IACd,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,GAAG,EAAE;IAC3C,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE;IACzC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE;CAC9B,CAAC;AAEX;;;GAGG;AACH,MAAM,UAAU,yBAAyB;IACvC,OAAO,CACL,eAAK,SAAS,EAAE,MAAM,CAAC,MAAM,aAC3B,KAAC,MAAM,IACL,SAAS,EAAE,MAAM,CAAC,QAAQ,EAC1B,KAAK,EACH,gBAAM,SAAS,EAAE,MAAM,CAAC,IAAI,aAC1B,aAAK,EACL,aAAK,EACL,aAAK,IACA,GAET,EACD,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CACvB,eAEE,SAAS,EAAE,MAAM,CAAC,KAAK,EACvB,KAAK,EAAE,EAAE,SAAS,EAAE,eAAe,MAAM,CAAC,CAAC,OAAO,MAAM,CAAC,CAAC,OAAO,MAAM,CAAC,CAAC,KAAK,EAAE,aAEhF,cAAK,SAAS,EAAE,MAAM,CAAC,MAAM,eAAa,MAAM,CAAC,IAAI,YACnD,KAAC,MAAM,KAAG,GACN,EACL,MAAM,CAAC,IAAI,KAAK,UAAU,IAAI,eAAM,SAAS,EAAE,MAAM,CAAC,KAAK,GAAI,KAP3D,MAAM,CAAC,IAAI,CAQZ,CACP,CAAC,EACD,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CACvB,eAEE,SAAS,EAAE,MAAM,CAAC,MAAM,EACxB,KAAK,EACH;oBACE,QAAQ,EAAE,GAAG,MAAM,CAAC,CAAC,IAAI;oBACzB,QAAQ,EAAE,GAAG,MAAM,CAAC,CAAC,IAAI;oBACzB,QAAQ,EAAE,GAAG,MAAM,CAAC,CAAC,IAAI;iBACT,IAPf,MAAM,CAAC,IAAI,CAShB,CACH,CAAC,IACE,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.object{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d;animation:pwa-sway 12s ease-in-out infinite}@media(prefers-reduced-motion: reduce){.object{animation:none}}.object{transform:rotateX(-14deg) rotateY(18deg)}@media(max-width: 480px){.object{scale:.8}}@keyframes pwa-sway{0%,100%{transform:rotateX(-14deg) rotateY(22deg)}50%{transform:rotateX(-10deg) rotateY(-22deg)}}.codebase{--width: 46px;--height: 46px;--depth: 46px;--radius: 6px;--front-amount: 14%;--top-amount: 22%;--edge-amount: 70%;transform:translateY(34px);animation:pwa-pulse 4s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.codebase{animation:none}}@keyframes pwa-pulse{0%,100%{transform:translateY(34px) scale3d(1, 1, 1)}8%{transform:translateY(34px) scale3d(1.12, 1.12, 1.12)}20%{transform:translateY(34px) scale3d(1, 1, 1)}}.code{position:absolute;inset:0}.code i{position:absolute;top:50%;width:8px;height:8px;margin-top:-4px;border:solid var(--foreground);border-width:0 0 2px 2px}.code i:nth-child(1){left:9px;transform:rotate(45deg)}.code i:nth-child(2){left:50%;width:2px;height:16px;margin:-8px 0 0 -1px;border:0;background:var(--foreground);transform:rotate(20deg)}.code i:nth-child(3){right:9px;transform:rotate(-135deg)}.place{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d}.device{box-sizing:border-box;background:color-mix(in srgb, var(--foreground) 4%, transparent);border:1px solid color-mix(in srgb, var(--foreground) 50%, transparent);position:absolute;padding:7px;border-radius:6px}.device[data-kind=computer]{width:156px;height:98px;left:-78px;top:-49px}.device[data-kind=tablet]{width:78px;height:104px;left:-39px;top:-52px;border-radius:9px;transform:rotateY(28deg)}.device[data-kind=phone]{width:46px;height:90px;left:-23px;top:-45px;padding:9px 5px;border-radius:9px;transform:rotateY(-28deg)}.stand{position:absolute;left:-22px;top:49px;width:44px;height:14px;border:1px solid color-mix(in srgb, var(--foreground) 40%, transparent);border-top:0;border-radius:0 0 6px 6px;background:color-mix(in srgb, var(--foreground) 6%, transparent)}.app{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:6px 1fr .7fr;gap:4px;height:100%}.app i{border-radius:2px;background:color-mix(in srgb, var(--foreground) 14%, transparent);animation:pwa-light 4s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.app i{animation:none}}.header{grid-column:1/-1}.picture{grid-column:1/-1}@keyframes pwa-light{0%,30%,100%{background:color-mix(in srgb, var(--foreground) 14%, transparent)}44%,64%{background:color-mix(in srgb, var(--foreground) 45%, transparent)}}.packet{position:absolute;left:50%;top:50%;width:10px;height:10px;margin:-5px 0 0 -5px;transform-style:preserve-3d;border-radius:3px;background:var(--foreground);opacity:0;animation:pwa-send 4s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.packet{animation:none}}@keyframes pwa-send{0%,6%{opacity:0;transform:translate3d(0, 34px, 0) scale(0.6)}12%{opacity:1}38%{opacity:1;transform:translate3d(var(--to-x), var(--to-y), var(--to-z)) scale(1)}46%,100%{opacity:0;transform:translate3d(var(--to-x), var(--to-y), var(--to-z)) scale(1.6)}}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
@use "style/token" as *;
|
|
2
|
+
@use "style/object" as *;
|
|
3
|
+
|
|
4
|
+
$period: 4s;
|
|
5
|
+
|
|
6
|
+
.object {
|
|
7
|
+
@include centered(0px, 0px);
|
|
8
|
+
@include loop(pwa-sway 12s ease-in-out infinite);
|
|
9
|
+
transform: rotateX(-14deg) rotateY(18deg);
|
|
10
|
+
// The widest scene: smaller on phones, so every device stays in view.
|
|
11
|
+
@include below(480px) {
|
|
12
|
+
scale: 0.8;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
@keyframes pwa-sway {
|
|
16
|
+
0%,
|
|
17
|
+
100% {
|
|
18
|
+
transform: rotateX(-14deg) rotateY(22deg);
|
|
19
|
+
}
|
|
20
|
+
50% {
|
|
21
|
+
transform: rotateX(-10deg) rotateY(-22deg);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
/* The one codebase: a block with code brackets, pulsing as it sends the app out. */
|
|
25
|
+
.codebase {
|
|
26
|
+
--width: 46px;
|
|
27
|
+
--height: 46px;
|
|
28
|
+
--depth: 46px;
|
|
29
|
+
--radius: 6px;
|
|
30
|
+
--front-amount: 14%;
|
|
31
|
+
--top-amount: 22%;
|
|
32
|
+
--edge-amount: 70%;
|
|
33
|
+
transform: translateY(34px);
|
|
34
|
+
@include loop(pwa-pulse $period $ease infinite);
|
|
35
|
+
}
|
|
36
|
+
@keyframes pwa-pulse {
|
|
37
|
+
0%,
|
|
38
|
+
100% {
|
|
39
|
+
transform: translateY(34px) scale3d(1, 1, 1);
|
|
40
|
+
}
|
|
41
|
+
8% {
|
|
42
|
+
transform: translateY(34px) scale3d(1.12, 1.12, 1.12);
|
|
43
|
+
}
|
|
44
|
+
20% {
|
|
45
|
+
transform: translateY(34px) scale3d(1, 1, 1);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
/* "< / >" drawn with lines: two chevrons and a slash. */
|
|
49
|
+
.code {
|
|
50
|
+
position: absolute;
|
|
51
|
+
inset: 0;
|
|
52
|
+
i {
|
|
53
|
+
position: absolute;
|
|
54
|
+
top: 50%;
|
|
55
|
+
width: 8px;
|
|
56
|
+
height: 8px;
|
|
57
|
+
margin-top: -4px;
|
|
58
|
+
border: solid var(--foreground);
|
|
59
|
+
border-width: 0 0 2px 2px;
|
|
60
|
+
&:nth-child(1) {
|
|
61
|
+
left: 9px;
|
|
62
|
+
transform: rotate(45deg);
|
|
63
|
+
}
|
|
64
|
+
&:nth-child(2) {
|
|
65
|
+
left: 50%;
|
|
66
|
+
width: 2px;
|
|
67
|
+
height: 16px;
|
|
68
|
+
margin: -8px 0 0 -1px;
|
|
69
|
+
border: 0;
|
|
70
|
+
background: var(--foreground);
|
|
71
|
+
transform: rotate(20deg);
|
|
72
|
+
}
|
|
73
|
+
&:nth-child(3) {
|
|
74
|
+
right: 9px;
|
|
75
|
+
transform: rotate(-135deg);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
.place {
|
|
80
|
+
@include centered(0px, 0px);
|
|
81
|
+
}
|
|
82
|
+
/* Each device faces the codebase a little. */
|
|
83
|
+
.device {
|
|
84
|
+
@include face(4%, 50%);
|
|
85
|
+
position: absolute;
|
|
86
|
+
padding: 7px;
|
|
87
|
+
border-radius: 6px;
|
|
88
|
+
&[data-kind="computer"] {
|
|
89
|
+
width: 156px;
|
|
90
|
+
height: 98px;
|
|
91
|
+
left: -78px;
|
|
92
|
+
top: -49px;
|
|
93
|
+
}
|
|
94
|
+
&[data-kind="tablet"] {
|
|
95
|
+
width: 78px;
|
|
96
|
+
height: 104px;
|
|
97
|
+
left: -39px;
|
|
98
|
+
top: -52px;
|
|
99
|
+
border-radius: 9px;
|
|
100
|
+
transform: rotateY(28deg);
|
|
101
|
+
}
|
|
102
|
+
&[data-kind="phone"] {
|
|
103
|
+
width: 46px;
|
|
104
|
+
height: 90px;
|
|
105
|
+
left: -23px;
|
|
106
|
+
top: -45px;
|
|
107
|
+
padding: 9px 5px;
|
|
108
|
+
border-radius: 9px;
|
|
109
|
+
transform: rotateY(-28deg);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
.stand {
|
|
113
|
+
position: absolute;
|
|
114
|
+
left: -22px;
|
|
115
|
+
top: 49px;
|
|
116
|
+
width: 44px;
|
|
117
|
+
height: 14px;
|
|
118
|
+
border: 1px solid tint(40%);
|
|
119
|
+
border-top: 0;
|
|
120
|
+
border-radius: 0 0 6px 6px;
|
|
121
|
+
background: tint(6%);
|
|
122
|
+
}
|
|
123
|
+
/* The same app on every screen; all of them light up when the packets land. */
|
|
124
|
+
.app {
|
|
125
|
+
display: grid;
|
|
126
|
+
grid-template-columns: 1fr 1fr;
|
|
127
|
+
grid-template-rows: 6px 1fr 0.7fr;
|
|
128
|
+
gap: 4px;
|
|
129
|
+
height: 100%;
|
|
130
|
+
i {
|
|
131
|
+
border-radius: 2px;
|
|
132
|
+
background: tint(14%);
|
|
133
|
+
@include loop(pwa-light $period $ease infinite);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
.header {
|
|
137
|
+
grid-column: 1 / -1;
|
|
138
|
+
}
|
|
139
|
+
.picture {
|
|
140
|
+
grid-column: 1 / -1;
|
|
141
|
+
}
|
|
142
|
+
@keyframes pwa-light {
|
|
143
|
+
0%,
|
|
144
|
+
30%,
|
|
145
|
+
100% {
|
|
146
|
+
background: tint(14%);
|
|
147
|
+
}
|
|
148
|
+
44%,
|
|
149
|
+
64% {
|
|
150
|
+
background: tint(45%);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
/* The app flying from the codebase to each device, all at the same moment. */
|
|
154
|
+
.packet {
|
|
155
|
+
@include centered(10px, 10px);
|
|
156
|
+
border-radius: 3px;
|
|
157
|
+
background: var(--foreground);
|
|
158
|
+
opacity: 0;
|
|
159
|
+
@include loop(pwa-send $period $ease infinite);
|
|
160
|
+
}
|
|
161
|
+
@keyframes pwa-send {
|
|
162
|
+
0%,
|
|
163
|
+
6% {
|
|
164
|
+
opacity: 0;
|
|
165
|
+
transform: translate3d(0, 34px, 0) scale(0.6);
|
|
166
|
+
}
|
|
167
|
+
12% {
|
|
168
|
+
opacity: 1;
|
|
169
|
+
}
|
|
170
|
+
38% {
|
|
171
|
+
opacity: 1;
|
|
172
|
+
transform: translate3d(var(--to-x), var(--to-y), var(--to-z)) scale(1);
|
|
173
|
+
}
|
|
174
|
+
46%,
|
|
175
|
+
100% {
|
|
176
|
+
opacity: 0;
|
|
177
|
+
transform: translate3d(var(--to-x), var(--to-y), var(--to-z)) scale(1.6);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/service-object/rebranding/index.tsx"],"names":[],"mappings":"AAGA,0GAA0G;AAC1G,wBAAgB,UAAU,gCAUzB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Cuboid } from "@sharadox/sharadox-web-library/component/service-object/cuboid";
|
|
3
|
+
import styles from "./index.module.css";
|
|
4
|
+
/** Rebranding: a tile that turns over from the old mark to the new one and back, over the old outline. */
|
|
5
|
+
export function Rebranding() {
|
|
6
|
+
return (_jsxs("div", { className: styles.object, children: [_jsx("div", { className: styles.outline }), _jsxs("div", { className: styles.turn, children: [_jsx(Cuboid, { className: styles.tile, front: _jsx("span", { className: styles.before }) }), _jsx("span", { className: styles.after })] })] }));
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/service-object/rebranding/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gEAAgE,CAAC;AACxF,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,0GAA0G;AAC1G,MAAM,UAAU,UAAU;IACxB,OAAO,CACL,eAAK,SAAS,EAAE,MAAM,CAAC,MAAM,aAC3B,cAAK,SAAS,EAAE,MAAM,CAAC,OAAO,GAAI,EAClC,eAAK,SAAS,EAAE,MAAM,CAAC,IAAI,aACzB,KAAC,MAAM,IAAC,SAAS,EAAE,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,eAAM,SAAS,EAAE,MAAM,CAAC,MAAM,GAAI,GAAI,EAC7E,eAAM,SAAS,EAAE,MAAM,CAAC,KAAK,GAAI,IAC7B,IACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.object{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d;animation:rebranding-sway 10s ease-in-out infinite}@media(prefers-reduced-motion: reduce){.object{animation:none}}.object{transform:rotateX(-14deg) rotateY(-18deg)}@keyframes rebranding-sway{0%,100%{transform:rotateX(-14deg) rotateY(-22deg)}50%{transform:rotateX(-8deg) rotateY(12deg)}}.outline{position:absolute;left:50%;top:50%;width:118px;height:118px;margin:-59px 0 0 -59px;transform-style:preserve-3d;border:1px dashed color-mix(in srgb, var(--foreground) 30%, transparent);border-radius:14px;transform:translateZ(-46px)}.turn{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d;animation:rebranding-flip 6s cubic-bezier(0.7, 0, 0.3, 1) infinite}@media(prefers-reduced-motion: reduce){.turn{animation:none}}@keyframes rebranding-flip{0%,30%{transform:rotateY(0deg)}50%,80%{transform:rotateY(180deg)}100%{transform:rotateY(360deg)}}.tile{--width: 118px;--height: 118px;--depth: 16px;--radius: 14px;--front-amount: 6%;--edge-amount: 55%}.before{position:absolute;inset:32px;border-radius:50%;border:1.5px solid color-mix(in srgb, var(--foreground) 45%, transparent)}.after{position:absolute;left:50%;top:50%;width:118px;height:118px;margin:-59px 0 0 -59px;transform-style:preserve-3d;transform:rotateY(180deg) translateZ(8.5px);border-radius:14px;background:radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--foreground) 30%, transparent), color-mix(in srgb, var(--foreground) 8%, transparent) 70%)}.after::before{content:"";position:absolute;inset:30px;border-radius:18px 50% 50% 50%;background:var(--foreground)}.after::after{content:"";position:absolute;inset:48px;border-radius:50%;background:var(--background)}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
@use "style/token" as *;
|
|
2
|
+
@use "style/object" as *;
|
|
3
|
+
|
|
4
|
+
.object {
|
|
5
|
+
@include centered(0px, 0px);
|
|
6
|
+
@include loop(rebranding-sway 10s ease-in-out infinite);
|
|
7
|
+
transform: rotateX(-14deg) rotateY(-18deg);
|
|
8
|
+
}
|
|
9
|
+
@keyframes rebranding-sway {
|
|
10
|
+
0%,
|
|
11
|
+
100% {
|
|
12
|
+
transform: rotateX(-14deg) rotateY(-22deg);
|
|
13
|
+
}
|
|
14
|
+
50% {
|
|
15
|
+
transform: rotateX(-8deg) rotateY(12deg);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
.outline {
|
|
19
|
+
@include centered(118px, 118px);
|
|
20
|
+
border: 1px dashed tint(30%);
|
|
21
|
+
border-radius: 14px;
|
|
22
|
+
transform: translateZ(-46px);
|
|
23
|
+
}
|
|
24
|
+
.turn {
|
|
25
|
+
@include centered(0px, 0px);
|
|
26
|
+
@include loop(rebranding-flip 6s cubic-bezier(0.7, 0, 0.3, 1) infinite);
|
|
27
|
+
}
|
|
28
|
+
@keyframes rebranding-flip {
|
|
29
|
+
0%,
|
|
30
|
+
30% {
|
|
31
|
+
transform: rotateY(0deg);
|
|
32
|
+
}
|
|
33
|
+
50%,
|
|
34
|
+
80% {
|
|
35
|
+
transform: rotateY(180deg);
|
|
36
|
+
}
|
|
37
|
+
100% {
|
|
38
|
+
transform: rotateY(360deg);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
.tile {
|
|
42
|
+
--width: 118px;
|
|
43
|
+
--height: 118px;
|
|
44
|
+
--depth: 16px;
|
|
45
|
+
--radius: 14px;
|
|
46
|
+
--front-amount: 6%;
|
|
47
|
+
--edge-amount: 55%;
|
|
48
|
+
}
|
|
49
|
+
/* The old mark: a plain outlined circle. */
|
|
50
|
+
.before {
|
|
51
|
+
position: absolute;
|
|
52
|
+
inset: 32px;
|
|
53
|
+
border-radius: 50%;
|
|
54
|
+
border: 1.5px solid tint(45%);
|
|
55
|
+
}
|
|
56
|
+
/* The new mark, on the back: bold and solid. */
|
|
57
|
+
.after {
|
|
58
|
+
@include centered(118px, 118px);
|
|
59
|
+
transform: rotateY(180deg) translateZ(8.5px);
|
|
60
|
+
border-radius: 14px;
|
|
61
|
+
background: radial-gradient(circle at 30% 25%, tint(30%), tint(8%) 70%);
|
|
62
|
+
&::before {
|
|
63
|
+
content: "";
|
|
64
|
+
position: absolute;
|
|
65
|
+
inset: 30px;
|
|
66
|
+
border-radius: 18px 50% 50% 50%;
|
|
67
|
+
background: var(--foreground);
|
|
68
|
+
}
|
|
69
|
+
&::after {
|
|
70
|
+
content: "";
|
|
71
|
+
position: absolute;
|
|
72
|
+
inset: 48px;
|
|
73
|
+
border-radius: 50%;
|
|
74
|
+
background: var(--background);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/service-object/sales-generation/index.tsx"],"names":[],"mappings":"AAGA,sGAAsG;AACtG,wBAAgB,eAAe,gCAW9B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Cuboid } from "@sharadox/sharadox-web-library/component/service-object/cuboid";
|
|
3
|
+
import styles from "./index.module.css";
|
|
4
|
+
/** Sales generation: a bar chart in 3D, its bars climbing one after another, the last the tallest. */
|
|
5
|
+
export function SalesGeneration() {
|
|
6
|
+
return (_jsxs("div", { className: styles.object, children: [_jsx("div", { className: styles.base }), [0, 1, 2, 3, 4].map((bar) => (_jsx("div", { className: styles.column, "data-bar": bar, children: _jsx(Cuboid, { className: styles.bar }) }, bar)))] }));
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/service-object/sales-generation/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gEAAgE,CAAC;AACxF,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,sGAAsG;AACtG,MAAM,UAAU,eAAe;IAC7B,OAAO,CACL,eAAK,SAAS,EAAE,MAAM,CAAC,MAAM,aAC3B,cAAK,SAAS,EAAE,MAAM,CAAC,IAAI,GAAI,EAC9B,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAC5B,cAAe,SAAS,EAAE,MAAM,CAAC,MAAM,cAAY,GAAG,YACpD,KAAC,MAAM,IAAC,SAAS,EAAE,MAAM,CAAC,GAAG,GAAI,IADzB,GAAG,CAEP,CACP,CAAC,IACE,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.object{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d;animation:sales-sway 10s ease-in-out infinite}@media(prefers-reduced-motion: reduce){.object{animation:none}}.object{transform:translateY(46px) rotateX(-24deg) rotateY(-36deg)}@keyframes sales-sway{0%,100%{transform:translateY(46px) rotateX(-24deg) rotateY(-40deg)}50%{transform:translateY(46px) rotateX(-20deg) rotateY(-12deg)}}.base{position:absolute;left:50%;top:50%;width:170px;height:60px;margin:-30px 0 0 -85px;transform-style:preserve-3d;box-sizing:border-box;background:color-mix(in srgb, var(--foreground) 4%, transparent);border:1px solid color-mix(in srgb, var(--foreground) 35%, transparent);border-radius:4px;transform:rotateX(90deg);background:radial-gradient(circle, color-mix(in srgb, var(--foreground) 22%, transparent) 1px, transparent 1.5px) 0 0/10px 10px}.column{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d;transform-origin:0 0;animation:sales-grow 4.5s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.column{animation:none}}.column[data-bar="0"]{left:calc(50% + -64px);--target: 0.32;animation-delay:0s}.column[data-bar="1"]{left:calc(50% + -32px);--target: 0.5;animation-delay:0.12s}.column[data-bar="2"]{left:calc(50% + 0px);--target: 0.42;animation-delay:0.24s}.column[data-bar="3"]{left:calc(50% + 32px);--target: 0.72;animation-delay:0.36s}.column[data-bar="4"]{left:calc(50% + 64px);--target: 1;animation-delay:0.48s}@keyframes sales-grow{0%,8%{transform:scaleY(0.08)}45%,85%{transform:scaleY(var(--target))}100%{transform:scaleY(0.08)}}.bar{--width: 20px;--height: 130px;--depth: 20px;--fill-amount: 10%;--edge-amount: 60%;--top-amount: 45%;transform:translateY(-65px)}.column[data-bar="4"] .bar{--fill-amount: 22%;--edge-amount: 85%;--top-amount: 90%}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
@use "sass:list";
|
|
2
|
+
@use "style/token" as *;
|
|
3
|
+
@use "style/object" as *;
|
|
4
|
+
|
|
5
|
+
.object {
|
|
6
|
+
@include centered(0px, 0px);
|
|
7
|
+
@include loop(sales-sway 10s ease-in-out infinite);
|
|
8
|
+
transform: translateY(46px) rotateX(-24deg) rotateY(-36deg);
|
|
9
|
+
}
|
|
10
|
+
@keyframes sales-sway {
|
|
11
|
+
0%,
|
|
12
|
+
100% {
|
|
13
|
+
transform: translateY(46px) rotateX(-24deg) rotateY(-40deg);
|
|
14
|
+
}
|
|
15
|
+
50% {
|
|
16
|
+
transform: translateY(46px) rotateX(-20deg) rotateY(-12deg);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
.base {
|
|
20
|
+
@include centered(170px, 60px);
|
|
21
|
+
@include face(4%, 35%);
|
|
22
|
+
border-radius: 4px;
|
|
23
|
+
transform: rotateX(90deg);
|
|
24
|
+
background: radial-gradient(circle, tint(22%) 1px, transparent 1.5px) 0 0 / 10px 10px;
|
|
25
|
+
}
|
|
26
|
+
$heights: 0.32, 0.5, 0.42, 0.72, 1;
|
|
27
|
+
.column {
|
|
28
|
+
@include centered(0px, 0px);
|
|
29
|
+
transform-origin: 0 0;
|
|
30
|
+
@include loop(sales-grow 4.5s $ease infinite);
|
|
31
|
+
@for $index from 0 through 4 {
|
|
32
|
+
&[data-bar="#{$index}"] {
|
|
33
|
+
left: calc(50% + #{($index - 2) * 32px});
|
|
34
|
+
--target: #{list.nth($heights, $index + 1)};
|
|
35
|
+
animation-delay: #{$index * 0.12}s;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
@keyframes sales-grow {
|
|
40
|
+
0%,
|
|
41
|
+
8% {
|
|
42
|
+
transform: scaleY(0.08);
|
|
43
|
+
}
|
|
44
|
+
45%,
|
|
45
|
+
85% {
|
|
46
|
+
transform: scaleY(var(--target));
|
|
47
|
+
}
|
|
48
|
+
100% {
|
|
49
|
+
transform: scaleY(0.08);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
.bar {
|
|
53
|
+
--width: 20px;
|
|
54
|
+
--height: 130px;
|
|
55
|
+
--depth: 20px;
|
|
56
|
+
--fill-amount: 10%;
|
|
57
|
+
--edge-amount: 60%;
|
|
58
|
+
--top-amount: 45%;
|
|
59
|
+
transform: translateY(-65px);
|
|
60
|
+
}
|
|
61
|
+
.column[data-bar="4"] .bar {
|
|
62
|
+
--fill-amount: 22%;
|
|
63
|
+
--edge-amount: 85%;
|
|
64
|
+
--top-amount: 90%;
|
|
65
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Social media growth strategy: a feed of posts with likes floating off the newest one, the planned posting calendar
|
|
3
|
+
* ticking off beside it, and the followers chart climbing.
|
|
4
|
+
*/
|
|
5
|
+
export declare function SocialMediaStrategy(): import("react").JSX.Element;
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/service-object/social-media-strategy/index.tsx"],"names":[],"mappings":"AAoBA;;;GAGG;AACH,wBAAgB,mBAAmB,gCAwBlC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import styles from "./index.module.css";
|
|
3
|
+
/** A post in the feed: who posted it, its picture, and the like, comment and share buttons. */
|
|
4
|
+
function Post({ className }) {
|
|
5
|
+
return (_jsxs("div", { className: `${styles.post} ${className}`, children: [_jsxs("span", { className: styles.author, children: [_jsx("i", {}), _jsx("i", {})] }), _jsx("span", { className: styles.picture }), _jsxs("span", { className: styles.actions, children: [_jsx("i", { className: styles.like }), _jsx("i", { className: styles.comment }), _jsx("i", { className: styles.share })] })] }));
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Social media growth strategy: a feed of posts with likes floating off the newest one, the planned posting calendar
|
|
9
|
+
* ticking off beside it, and the followers chart climbing.
|
|
10
|
+
*/
|
|
11
|
+
export function SocialMediaStrategy() {
|
|
12
|
+
return (_jsxs("div", { className: styles.object, children: [_jsx("div", { className: styles.calendar, children: Array.from({ length: 12 }, (_, day) => (_jsx("i", { style: { animationDelay: `${day * 0.35}s` } }, day))) }), _jsx(Post, { className: styles.older }), _jsx(Post, { className: styles.newest }), Array.from({ length: 5 }, (_, heart) => (_jsx("span", { className: styles.heart, style: { animationDelay: `${heart * 0.7}s`, left: `${[-6, 10, -14, 4, 16][heart]}px` } }, heart))), _jsx("div", { className: styles.growth, children: [0, 1, 2, 3].map((bar) => (_jsx("i", { style: { animationDelay: `${bar * 0.25}s` } }, bar))) })] }));
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/service-object/social-media-strategy/index.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,+FAA+F;AAC/F,SAAS,IAAI,CAAC,EAAE,SAAS,EAAqC;IAC5D,OAAO,CACL,eAAK,SAAS,EAAE,GAAG,MAAM,CAAC,IAAI,IAAI,SAAS,EAAE,aAC3C,gBAAM,SAAS,EAAE,MAAM,CAAC,MAAM,aAC5B,aAAK,EACL,aAAK,IACA,EACP,eAAM,SAAS,EAAE,MAAM,CAAC,OAAO,GAAI,EACnC,gBAAM,SAAS,EAAE,MAAM,CAAC,OAAO,aAC7B,YAAG,SAAS,EAAE,MAAM,CAAC,IAAI,GAAI,EAC7B,YAAG,SAAS,EAAE,MAAM,CAAC,OAAO,GAAI,EAChC,YAAG,SAAS,EAAE,MAAM,CAAC,KAAK,GAAI,IACzB,IACH,CACP,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,mBAAmB;IACjC,OAAO,CACL,eAAK,SAAS,EAAE,MAAM,CAAC,MAAM,aAC3B,cAAK,SAAS,EAAE,MAAM,CAAC,QAAQ,YAC5B,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,CACtC,YAAa,KAAK,EAAE,EAAE,cAAc,EAAE,GAAG,GAAG,GAAG,IAAI,GAAG,EAAE,IAAhD,GAAG,CAAiD,CAC7D,CAAC,GACE,EACN,KAAC,IAAI,IAAC,SAAS,EAAE,MAAM,CAAC,KAAK,GAAI,EACjC,KAAC,IAAI,IAAC,SAAS,EAAE,MAAM,CAAC,MAAM,GAAI,EACjC,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,CACvC,eAEE,SAAS,EAAE,MAAM,CAAC,KAAK,EACvB,KAAK,EAAE,EAAE,cAAc,EAAE,GAAG,KAAK,GAAG,GAAG,GAAG,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,EAAE,IAFjF,KAAK,CAGV,CACH,CAAC,EACF,cAAK,SAAS,EAAE,MAAM,CAAC,MAAM,YAC1B,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CACzB,YAAa,KAAK,EAAE,EAAE,cAAc,EAAE,GAAG,GAAG,GAAG,IAAI,GAAG,EAAE,IAAhD,GAAG,CAAiD,CAC7D,CAAC,GACE,IACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.object{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d;animation:social-sway 12s ease-in-out infinite}@media(prefers-reduced-motion: reduce){.object{animation:none}}.object{transform:rotateX(-10deg) rotateY(-20deg)}@keyframes social-sway{0%,100%{transform:rotateX(-10deg) rotateY(-24deg)}50%{transform:rotateX(-6deg) rotateY(20deg)}}.post{position:absolute;left:50%;top:50%;width:112px;height:148px;margin:-74px 0 0 -56px;transform-style:preserve-3d;box-sizing:border-box;background:color-mix(in srgb, var(--foreground) 5%, transparent);border:1px solid color-mix(in srgb, var(--foreground) 46%, transparent);display:grid;grid-template-rows:auto 1fr auto;gap:7px;padding:8px;border-radius:10px}.older{transform:translate3d(-24px, -18px, -46px);opacity:.55}.newest{transform:translate3d(0, 6px, 0)}.author{display:flex;align-items:center;gap:6px}.author i:first-child{width:14px;height:14px;border-radius:50%;border:1px solid color-mix(in srgb, var(--foreground) 55%, transparent);background:color-mix(in srgb, var(--foreground) 22%, transparent)}.author i:last-child{width:44px;height:4px;border-radius:2px;background:color-mix(in srgb, var(--foreground) 30%, transparent)}.picture{border-radius:5px;background:linear-gradient(145deg, color-mix(in srgb, var(--foreground) 30%, transparent), color-mix(in srgb, var(--foreground) 6%, transparent));border:1px solid color-mix(in srgb, var(--foreground) 25%, transparent)}.actions{display:flex;align-items:center;gap:9px}.actions i{position:relative;width:10px;height:10px}.like{width:7px;height:7px;background:var(--foreground);transform:rotate(-45deg)}.like::before,.like::after{content:"";position:absolute;width:7px;height:7px;border-radius:50%;background:var(--foreground)}.like::before{top:-3.5px;left:0}.like::after{left:3.5px;top:0}.like{width:7px !important;height:7px !important;margin:2px 0 0 1px;animation:social-beat 1.4s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.like{animation:none}}@keyframes social-beat{0%,100%{transform:rotate(-45deg) scale(1)}15%{transform:rotate(-45deg) scale(1.3)}}.comment{border:1.5px solid color-mix(in srgb, var(--foreground) 60%, transparent);border-radius:50% 50% 50% 0}.share{border:solid color-mix(in srgb, var(--foreground) 60%, transparent);border-width:1.5px 1.5px 0 0;transform:rotate(45deg) scale(0.8)}.heart{position:absolute;top:40px;width:10px;height:10px;background:var(--foreground);transform:rotate(-45deg)}.heart::before,.heart::after{content:"";position:absolute;width:10px;height:10px;border-radius:50%;background:var(--foreground)}.heart::before{top:-5px;left:0}.heart::after{left:5px;top:0}.heart{opacity:0;animation:social-float 3.5s ease-out infinite}@media(prefers-reduced-motion: reduce){.heart{animation:none}}@keyframes social-float{0%{opacity:0;transform:translate3d(0, 0, 10px) rotate(-45deg) scale(0.5)}15%{opacity:1}100%{opacity:0;transform:translate3d(0, -110px, 70px) rotate(-45deg) scale(1.1)}}.calendar{position:absolute;left:50%;top:50%;width:70px;height:54px;margin:-27px 0 0 -35px;transform-style:preserve-3d;box-sizing:border-box;background:color-mix(in srgb, var(--foreground) 4%, transparent);border:1px solid color-mix(in srgb, var(--foreground) 40%, transparent);display:grid;grid-template-columns:repeat(4, 1fr);gap:4px;padding:7px;border-radius:7px;transform:translate3d(-118px, 30px, 14px) rotateY(24deg)}.calendar i{border-radius:2px;border:1px solid color-mix(in srgb, var(--foreground) 30%, transparent);animation:social-plan 4.2s steps(1, end) infinite}@media(prefers-reduced-motion: reduce){.calendar i{animation:none}}@keyframes social-plan{0%,8%{background:rgba(0,0,0,0)}9%,100%{background:color-mix(in srgb, var(--foreground) 45%, transparent)}}.growth{position:absolute;left:50%;top:50%;width:58px;height:60px;margin:-30px 0 0 -29px;transform-style:preserve-3d;box-sizing:border-box;background:color-mix(in srgb, var(--foreground) 4%, transparent);border:1px solid color-mix(in srgb, var(--foreground) 40%, transparent);display:flex;align-items:flex-end;gap:5px;padding:8px;border-radius:7px;transform:translate3d(112px, -34px, 26px) rotateY(-22deg)}.growth i{flex:1;border-radius:2px;background:color-mix(in srgb, var(--foreground) 50%, transparent);transform-origin:bottom;animation:social-grow 3.2s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.growth i{animation:none}}.growth i:nth-child(1){height:30%}.growth i:nth-child(2){height:48%}.growth i:nth-child(3){height:70%}.growth i:nth-child(4){height:100%}@keyframes social-grow{0%{transform:scaleY(0.2)}50%,100%{transform:scaleY(1)}}
|