@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
package/distribution/component/service-object/application-programming-interface/index.module.scss
ADDED
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
@use "style/token" as *;
|
|
2
|
+
@use "style/object" as *;
|
|
3
|
+
|
|
4
|
+
$period: 3.2s;
|
|
5
|
+
|
|
6
|
+
.object {
|
|
7
|
+
@include centered(0px, 0px);
|
|
8
|
+
@include loop(api-sway 10s ease-in-out infinite);
|
|
9
|
+
transform: rotateX(-18deg) rotateY(-20deg);
|
|
10
|
+
}
|
|
11
|
+
@keyframes api-sway {
|
|
12
|
+
0%,
|
|
13
|
+
100% {
|
|
14
|
+
transform: rotateX(-18deg) rotateY(-24deg);
|
|
15
|
+
}
|
|
16
|
+
50% {
|
|
17
|
+
transform: rotateX(-12deg) rotateY(14deg);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
/* A database: three stacked cylinders, each a few rings. */
|
|
21
|
+
.database {
|
|
22
|
+
@include centered(0px, 0px);
|
|
23
|
+
transform: translateX(-118px);
|
|
24
|
+
}
|
|
25
|
+
.disc {
|
|
26
|
+
@include centered(0px, 0px);
|
|
27
|
+
i {
|
|
28
|
+
@include centered(64px, 64px);
|
|
29
|
+
border-radius: 50%;
|
|
30
|
+
border: 1px solid tint(34%);
|
|
31
|
+
&:first-child,
|
|
32
|
+
&:last-child {
|
|
33
|
+
@include face(8%, 55%);
|
|
34
|
+
border-radius: 50%;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
/* The line every message travels along. */
|
|
39
|
+
.line {
|
|
40
|
+
@include centered(236px, 0px);
|
|
41
|
+
border-top: 1px dashed tint(40%);
|
|
42
|
+
}
|
|
43
|
+
/* The gateway: the API itself, with braces on its face. */
|
|
44
|
+
.gateway {
|
|
45
|
+
--width: 50px;
|
|
46
|
+
--height: 50px;
|
|
47
|
+
--depth: 50px;
|
|
48
|
+
--radius: 6px;
|
|
49
|
+
--front-amount: 14%;
|
|
50
|
+
--top-amount: 24%;
|
|
51
|
+
--edge-amount: 72%;
|
|
52
|
+
}
|
|
53
|
+
.braces {
|
|
54
|
+
position: absolute;
|
|
55
|
+
inset: 13px 12px;
|
|
56
|
+
&::before,
|
|
57
|
+
&::after {
|
|
58
|
+
content: "";
|
|
59
|
+
position: absolute;
|
|
60
|
+
top: 0;
|
|
61
|
+
bottom: 0;
|
|
62
|
+
width: 7px;
|
|
63
|
+
border: 2px solid var(--foreground);
|
|
64
|
+
}
|
|
65
|
+
&::before {
|
|
66
|
+
left: 0;
|
|
67
|
+
border-right: 0;
|
|
68
|
+
border-radius: 6px 0 0 6px;
|
|
69
|
+
}
|
|
70
|
+
&::after {
|
|
71
|
+
right: 0;
|
|
72
|
+
border-left: 0;
|
|
73
|
+
border-radius: 0 6px 6px 0;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
/* An app window on the other side. */
|
|
77
|
+
.application {
|
|
78
|
+
@include centered(74px, 96px);
|
|
79
|
+
@include face(4%, 48%);
|
|
80
|
+
display: grid;
|
|
81
|
+
align-content: start;
|
|
82
|
+
gap: 8px;
|
|
83
|
+
padding: 14px 10px;
|
|
84
|
+
border-radius: 8px;
|
|
85
|
+
transform: translateX(118px) rotateY(-14deg);
|
|
86
|
+
}
|
|
87
|
+
.row {
|
|
88
|
+
height: 12px;
|
|
89
|
+
border-radius: 3px;
|
|
90
|
+
background: tint(14%);
|
|
91
|
+
@include loop(api-row $period $ease infinite);
|
|
92
|
+
&:nth-child(2) {
|
|
93
|
+
animation-delay: 0.12s;
|
|
94
|
+
}
|
|
95
|
+
&:nth-child(3) {
|
|
96
|
+
animation-delay: 0.24s;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
@keyframes api-row {
|
|
100
|
+
0%,
|
|
101
|
+
86%,
|
|
102
|
+
100% {
|
|
103
|
+
background: tint(14%);
|
|
104
|
+
}
|
|
105
|
+
92% {
|
|
106
|
+
background: tint(45%);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
.packet {
|
|
110
|
+
@include centered(12px, 12px);
|
|
111
|
+
border-radius: 3px;
|
|
112
|
+
opacity: 0;
|
|
113
|
+
}
|
|
114
|
+
/* The app asks... */
|
|
115
|
+
.request {
|
|
116
|
+
background: var(--foreground);
|
|
117
|
+
@include loop(api-request $period $ease infinite);
|
|
118
|
+
}
|
|
119
|
+
@keyframes api-request {
|
|
120
|
+
0% {
|
|
121
|
+
opacity: 0;
|
|
122
|
+
transform: translateX(84px);
|
|
123
|
+
}
|
|
124
|
+
8%,
|
|
125
|
+
40% {
|
|
126
|
+
opacity: 1;
|
|
127
|
+
}
|
|
128
|
+
48%,
|
|
129
|
+
100% {
|
|
130
|
+
opacity: 0;
|
|
131
|
+
transform: translateX(-84px);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
/* ...and the database answers. */
|
|
135
|
+
.answer {
|
|
136
|
+
border: 2px solid var(--foreground);
|
|
137
|
+
@include loop(api-answer $period $ease infinite);
|
|
138
|
+
}
|
|
139
|
+
@keyframes api-answer {
|
|
140
|
+
0%,
|
|
141
|
+
44% {
|
|
142
|
+
opacity: 0;
|
|
143
|
+
transform: translateX(-84px);
|
|
144
|
+
}
|
|
145
|
+
52%,
|
|
146
|
+
84% {
|
|
147
|
+
opacity: 1;
|
|
148
|
+
}
|
|
149
|
+
92%,
|
|
150
|
+
100% {
|
|
151
|
+
opacity: 0;
|
|
152
|
+
transform: translateX(84px);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/service-object/brand-awareness/index.tsx"],"names":[],"mappings":"AAGA,8GAA8G;AAC9G,wBAAgB,cAAc,gCAc7B"}
|
|
@@ -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
|
+
/** Brand awareness: a beacon sending waves across a crowd, each person lighting up as a wave reaches them. */
|
|
5
|
+
export function BrandAwareness() {
|
|
6
|
+
return (_jsxs("div", { className: styles.object, children: [_jsxs("div", { className: styles.floor, children: [_jsx("i", {}), _jsx("i", {}), _jsx("i", {}), [0, 1, 2, 3, 4, 5, 6, 7].map((person) => (_jsx("b", { "data-person": person }, person)))] }), _jsx(Cuboid, { className: styles.beacon, top: _jsx("span", { className: styles.light }) })] }));
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/service-object/brand-awareness/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gEAAgE,CAAC;AACxF,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,8GAA8G;AAC9G,MAAM,UAAU,cAAc;IAC5B,OAAO,CACL,eAAK,SAAS,EAAE,MAAM,CAAC,MAAM,aAC3B,eAAK,SAAS,EAAE,MAAM,CAAC,KAAK,aAC1B,aAAK,EACL,aAAK,EACL,aAAK,EACJ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CACxC,2BAA6B,MAAM,IAA3B,MAAM,CAAyB,CACxC,CAAC,IACE,EACN,KAAC,MAAM,IAAC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,EAAE,eAAM,SAAS,EAAE,MAAM,CAAC,KAAK,GAAI,GAAI,IACxE,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:awareness-turn 30s linear infinite}@media(prefers-reduced-motion: reduce){.object{animation:none}}.object{transform:translateY(20px) rotateX(-30deg) rotateY(20deg)}@keyframes awareness-turn{to{transform:translateY(20px) rotateX(-30deg) rotateY(380deg)}}.floor{position:absolute;left:50%;top:50%;width:180px;height:180px;margin:-90px 0 0 -90px;transform-style:preserve-3d;border-radius:50%;transform:translateY(30px) rotateX(90deg);background:radial-gradient(circle, color-mix(in srgb, var(--foreground) 20%, transparent) 1px, transparent 1.5px) 0 0/12px 12px;mask:radial-gradient(circle, #000 55%, transparent 71%)}.floor i{position:absolute;inset:46%;border-radius:50%;border:1.5px solid color-mix(in srgb, var(--foreground) 70%, transparent);opacity:0;animation:awareness-wave 3.6s ease-out infinite}@media(prefers-reduced-motion: reduce){.floor i{animation:none}}.floor i:nth-child(2){animation-delay:1.2s}.floor i:nth-child(3){animation-delay:2.4s}.floor b{position:absolute;width:9px;height:9px;margin:-4.5px 0 0 -4.5px;border-radius:50%;background:color-mix(in srgb, var(--foreground) 25%, transparent);animation:awareness-reach 1.2s ease-out infinite}@media(prefers-reduced-motion: reduce){.floor b{animation:none}}.floor b[data-person="0"]{left:calc(50% + 0.9396926208*30%);top:calc(50% + 0.3420201433*30%);animation-delay:.35s}.floor b[data-person="1"]{left:calc(50% + 0.4226182617*40%);top:calc(50% + 0.906307787*40%);animation-delay:.6s}.floor b[data-person="2"]{left:calc(50% + -0.3420201433*30%);top:calc(50% + 0.9396926208*30%);animation-delay:.35s}.floor b[data-person="3"]{left:calc(50% + -0.906307787*40%);top:calc(50% + 0.4226182617*40%);animation-delay:.6s}.floor b[data-person="4"]{left:calc(50% + -0.9396926208*30%);top:calc(50% + -0.3420201433*30%);animation-delay:.35s}.floor b[data-person="5"]{left:calc(50% + -0.4226182617*40%);top:calc(50% + -0.906307787*40%);animation-delay:.6s}.floor b[data-person="6"]{left:calc(50% + 0.3420201433*30%);top:calc(50% + -0.9396926208*30%);animation-delay:.35s}.floor b[data-person="7"]{left:calc(50% + 0.906307787*40%);top:calc(50% + -0.4226182617*40%);animation-delay:.6s}@keyframes awareness-wave{0%{inset:46%;opacity:1}100%{inset:0%;opacity:0}}@keyframes awareness-reach{0%,100%{background:color-mix(in srgb, var(--foreground) 25%, transparent);box-shadow:none}12%{background:var(--foreground);box-shadow:0 0 10px color-mix(in srgb, var(--foreground) 70%, transparent)}}.beacon{--width: 22px;--height: 64px;--depth: 22px;--fill-amount: 10%;--edge-amount: 70%;transform:translateY(-2px)}.light{position:absolute;inset:4px;border-radius:50%;background:var(--foreground);box-shadow:0 0 16px 4px color-mix(in srgb, var(--foreground) 60%, transparent)}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
@use "sass:math";
|
|
2
|
+
@use "style/token" as *;
|
|
3
|
+
@use "style/object" as *;
|
|
4
|
+
|
|
5
|
+
.object {
|
|
6
|
+
@include centered(0px, 0px);
|
|
7
|
+
@include loop(awareness-turn 30s linear infinite);
|
|
8
|
+
transform: translateY(20px) rotateX(-30deg) rotateY(20deg);
|
|
9
|
+
}
|
|
10
|
+
@keyframes awareness-turn {
|
|
11
|
+
to {
|
|
12
|
+
transform: translateY(20px) rotateX(-30deg) rotateY(380deg);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
.floor {
|
|
16
|
+
@include centered(180px, 180px);
|
|
17
|
+
border-radius: 50%;
|
|
18
|
+
transform: translateY(30px) rotateX(90deg);
|
|
19
|
+
background: radial-gradient(circle, tint(20%) 1px, transparent 1.5px) 0 0 / 12px 12px;
|
|
20
|
+
mask: radial-gradient(circle, #000 55%, transparent 71%);
|
|
21
|
+
i {
|
|
22
|
+
position: absolute;
|
|
23
|
+
inset: 46%;
|
|
24
|
+
border-radius: 50%;
|
|
25
|
+
border: 1.5px solid tint(70%);
|
|
26
|
+
opacity: 0;
|
|
27
|
+
@include loop(awareness-wave 3.6s ease-out infinite);
|
|
28
|
+
&:nth-child(2) {
|
|
29
|
+
animation-delay: 1.2s;
|
|
30
|
+
}
|
|
31
|
+
&:nth-child(3) {
|
|
32
|
+
animation-delay: 2.4s;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
b {
|
|
36
|
+
position: absolute;
|
|
37
|
+
width: 9px;
|
|
38
|
+
height: 9px;
|
|
39
|
+
margin: -4.5px 0 0 -4.5px;
|
|
40
|
+
border-radius: 50%;
|
|
41
|
+
background: tint(25%);
|
|
42
|
+
@include loop(awareness-reach 1.2s ease-out infinite);
|
|
43
|
+
@for $index from 0 through 7 {
|
|
44
|
+
&[data-person="#{$index}"] {
|
|
45
|
+
$angle: $index * 45deg + 20deg;
|
|
46
|
+
$radius: 30% + ($index % 2) * 10%;
|
|
47
|
+
left: calc(50% + #{math.cos($angle)} * #{$radius});
|
|
48
|
+
top: calc(50% + #{math.sin($angle)} * #{$radius});
|
|
49
|
+
animation-delay: 0.35s + ($index % 2) * 0.25s;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
@keyframes awareness-wave {
|
|
55
|
+
0% {
|
|
56
|
+
inset: 46%;
|
|
57
|
+
opacity: 1;
|
|
58
|
+
}
|
|
59
|
+
100% {
|
|
60
|
+
inset: 0%;
|
|
61
|
+
opacity: 0;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
@keyframes awareness-reach {
|
|
65
|
+
0%,
|
|
66
|
+
100% {
|
|
67
|
+
background: tint(25%);
|
|
68
|
+
box-shadow: none;
|
|
69
|
+
}
|
|
70
|
+
12% {
|
|
71
|
+
background: var(--foreground);
|
|
72
|
+
box-shadow: 0 0 10px tint(70%);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
.beacon {
|
|
76
|
+
--width: 22px;
|
|
77
|
+
--height: 64px;
|
|
78
|
+
--depth: 22px;
|
|
79
|
+
--fill-amount: 10%;
|
|
80
|
+
--edge-amount: 70%;
|
|
81
|
+
transform: translateY(-2px);
|
|
82
|
+
}
|
|
83
|
+
.light {
|
|
84
|
+
position: absolute;
|
|
85
|
+
inset: 4px;
|
|
86
|
+
border-radius: 50%;
|
|
87
|
+
background: var(--foreground);
|
|
88
|
+
box-shadow: 0 0 16px 4px tint(60%);
|
|
89
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/service-object/branding/index.tsx"],"names":[],"mappings":"AAEA,0EAA0E;AAC1E,wBAAgB,QAAQ,gCAYvB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import styles from "./index.module.css";
|
|
3
|
+
/** Branding: a solid seal with the brand's mark, spinning like a coin. */
|
|
4
|
+
export function Branding() {
|
|
5
|
+
return (_jsx("div", { className: styles.object, children: _jsx("div", { className: styles.seal, children: Array.from({ length: 12 }, (_, layer) => (_jsx("span", { className: styles.layer, style: { transform: `translateZ(${layer - 5.5}px)` }, children: (layer === 0 || layer === 11) && _jsx("i", { className: styles.mark }) }, layer))) }) }));
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/service-object/branding/index.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,0EAA0E;AAC1E,MAAM,UAAU,QAAQ;IACtB,OAAO,CACL,cAAK,SAAS,EAAE,MAAM,CAAC,MAAM,YAC3B,cAAK,SAAS,EAAE,MAAM,CAAC,IAAI,YACxB,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,CACxC,eAAkB,SAAS,EAAE,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,cAAc,KAAK,GAAG,GAAG,KAAK,EAAE,YAC5F,CAAC,KAAK,KAAK,CAAC,IAAI,KAAK,KAAK,EAAE,CAAC,IAAI,YAAG,SAAS,EAAE,MAAM,CAAC,IAAI,GAAI,IADtD,KAAK,CAET,CACR,CAAC,GACE,GACF,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;transform:rotateX(-10deg)}.seal{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d;animation:branding-spin 9s cubic-bezier(0.65, 0, 0.35, 1) infinite}@media(prefers-reduced-motion: reduce){.seal{animation:none}}.seal{transform:rotateY(-30deg)}@keyframes branding-spin{0%{transform:rotateY(-30deg)}50%{transform:rotateY(150deg)}100%{transform:rotateY(330deg)}}.layer{position:absolute;left:50%;top:50%;width:128px;height:128px;margin:-64px 0 0 -64px;transform-style:preserve-3d;border-radius:50%;border:1px solid color-mix(in srgb, var(--foreground) 30%, transparent)}.layer:first-child,.layer:last-child{box-sizing:border-box;background:color-mix(in srgb, var(--foreground) 9%, transparent);border:1px solid color-mix(in srgb, var(--foreground) 60%, transparent);border-radius:50%;background:radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--foreground) 22%, transparent), color-mix(in srgb, var(--foreground) 4%, transparent) 70%)}.mark{position:absolute;inset:22px;border-radius:50%;border:1px solid color-mix(in srgb, var(--foreground) 50%, transparent)}.mark::before{content:"";position:absolute;left:50%;top:50%;width:34px;height:34px;margin:-17px 0 0 -17px;background:var(--foreground);transform:rotate(45deg);border-radius:4px}.mark::after{content:"";position:absolute;left:50%;top:50%;width:14px;height:14px;margin:-7px 0 0 -7px;background:var(--background);border-radius:50%}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
@use "style/token" as *;
|
|
2
|
+
@use "style/object" as *;
|
|
3
|
+
|
|
4
|
+
.object {
|
|
5
|
+
@include centered(0px, 0px);
|
|
6
|
+
transform: rotateX(-10deg);
|
|
7
|
+
}
|
|
8
|
+
.seal {
|
|
9
|
+
@include centered(0px, 0px);
|
|
10
|
+
@include loop(branding-spin 9s cubic-bezier(0.65, 0, 0.35, 1) infinite);
|
|
11
|
+
transform: rotateY(-30deg);
|
|
12
|
+
}
|
|
13
|
+
@keyframes branding-spin {
|
|
14
|
+
0% {
|
|
15
|
+
transform: rotateY(-30deg);
|
|
16
|
+
}
|
|
17
|
+
50% {
|
|
18
|
+
transform: rotateY(150deg);
|
|
19
|
+
}
|
|
20
|
+
100% {
|
|
21
|
+
transform: rotateY(330deg);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
.layer {
|
|
25
|
+
@include centered(128px, 128px);
|
|
26
|
+
border-radius: 50%;
|
|
27
|
+
border: 1px solid tint(30%);
|
|
28
|
+
&:first-child,
|
|
29
|
+
&:last-child {
|
|
30
|
+
@include face(9%, 60%);
|
|
31
|
+
border-radius: 50%;
|
|
32
|
+
background: radial-gradient(circle at 35% 30%, tint(22%), tint(4%) 70%);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
.mark {
|
|
36
|
+
position: absolute;
|
|
37
|
+
inset: 22px;
|
|
38
|
+
border-radius: 50%;
|
|
39
|
+
border: 1px solid tint(50%);
|
|
40
|
+
&::before {
|
|
41
|
+
content: "";
|
|
42
|
+
position: absolute;
|
|
43
|
+
left: 50%;
|
|
44
|
+
top: 50%;
|
|
45
|
+
width: 34px;
|
|
46
|
+
height: 34px;
|
|
47
|
+
margin: -17px 0 0 -17px;
|
|
48
|
+
background: var(--foreground);
|
|
49
|
+
transform: rotate(45deg);
|
|
50
|
+
border-radius: 4px;
|
|
51
|
+
}
|
|
52
|
+
&::after {
|
|
53
|
+
content: "";
|
|
54
|
+
position: absolute;
|
|
55
|
+
left: 50%;
|
|
56
|
+
top: 50%;
|
|
57
|
+
width: 14px;
|
|
58
|
+
height: 14px;
|
|
59
|
+
margin: -7px 0 0 -7px;
|
|
60
|
+
background: var(--background);
|
|
61
|
+
border-radius: 50%;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/service-object/branding-design/index.tsx"],"names":[],"mappings":"AAEA,+FAA+F;AAC/F,wBAAgB,cAAc,gCAY7B"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import styles from "./index.module.css";
|
|
3
|
+
/** Branding design: a swatch book of the brand's colors and type, fanning open and closing. */
|
|
4
|
+
export function BrandingDesign() {
|
|
5
|
+
return (_jsx("div", { className: styles.object, children: [0, 1, 2, 3, 4, 5].map((swatch) => (_jsxs("div", { className: styles.swatch, "data-swatch": swatch, children: [_jsx("span", { className: styles.color }), _jsx("span", { className: styles.type, children: "Aa" }), _jsx("span", { className: styles.line })] }, swatch))) }));
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/service-object/branding-design/index.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,+FAA+F;AAC/F,MAAM,UAAU,cAAc;IAC5B,OAAO,CACL,cAAK,SAAS,EAAE,MAAM,CAAC,MAAM,YAC1B,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAClC,eAAkB,SAAS,EAAE,MAAM,CAAC,MAAM,iBAAe,MAAM,aAC7D,eAAM,SAAS,EAAE,MAAM,CAAC,KAAK,GAAI,EACjC,eAAM,SAAS,EAAE,MAAM,CAAC,IAAI,mBAAW,EACvC,eAAM,SAAS,EAAE,MAAM,CAAC,IAAI,GAAI,KAHxB,MAAM,CAIV,CACP,CAAC,GACE,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@property --swatch-fan{syntax:"<angle>";inherits:true;initial-value:12deg}.object{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d;animation:swatch-fan 6s cubic-bezier(0.65, 0, 0.35, 1) infinite}@media(prefers-reduced-motion: reduce){.object{animation:none}}.object{transform:translateY(14px) rotateX(-12deg) rotateY(-18deg)}@keyframes swatch-fan{0%,100%{--swatch-fan: 2deg}45%,60%{--swatch-fan: 15deg}}.swatch{position:absolute;left:50%;top:50%;width:56px;height:150px;margin:-75px 0 0 -28px;transform-style:preserve-3d;box-sizing:border-box;background:color-mix(in srgb, var(--foreground) 2%, transparent);border:1px solid color-mix(in srgb, var(--foreground) 45%, transparent);background:var(--background);border-radius:6px;transform-origin:50% 86%;overflow:hidden}.swatch[data-swatch="0"]{transform:translateZ(-12px) rotateZ(calc(var(--swatch-fan) * -2.5))}.swatch[data-swatch="0"] .color{background:color-mix(in srgb, var(--foreground) 100%, transparent)}.swatch[data-swatch="1"]{transform:translateZ(-7px) rotateZ(calc(var(--swatch-fan) * -1.5))}.swatch[data-swatch="1"] .color{background:color-mix(in srgb, var(--foreground) 72%, transparent)}.swatch[data-swatch="2"]{transform:translateZ(-2px) rotateZ(calc(var(--swatch-fan) * -0.5))}.swatch[data-swatch="2"] .color{background:color-mix(in srgb, var(--foreground) 50%, transparent)}.swatch[data-swatch="3"]{transform:translateZ(3px) rotateZ(calc(var(--swatch-fan) * 0.5))}.swatch[data-swatch="3"] .color{background:color-mix(in srgb, var(--foreground) 32%, transparent)}.swatch[data-swatch="4"]{transform:translateZ(8px) rotateZ(calc(var(--swatch-fan) * 1.5))}.swatch[data-swatch="4"] .color{background:color-mix(in srgb, var(--foreground) 18%, transparent)}.swatch[data-swatch="5"]{transform:translateZ(13px) rotateZ(calc(var(--swatch-fan) * 2.5))}.swatch[data-swatch="5"] .color{background:color-mix(in srgb, var(--foreground) 8%, transparent)}.color{display:block;height:86px}.type{display:block;padding:8px 8px 4px;font-size:15px;font-weight:600;letter-spacing:-0.03em;color:var(--foreground)}.line{display:block;height:3px;margin:0 8px;width:60%;border-radius:2px;background:color-mix(in srgb, var(--foreground) 30%, transparent)}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
@use "sass:list";
|
|
2
|
+
@use "style/token" as *;
|
|
3
|
+
@use "style/object" as *;
|
|
4
|
+
|
|
5
|
+
@property --swatch-fan {
|
|
6
|
+
syntax: "<angle>";
|
|
7
|
+
inherits: true;
|
|
8
|
+
initial-value: 12deg;
|
|
9
|
+
}
|
|
10
|
+
.object {
|
|
11
|
+
@include centered(0px, 0px);
|
|
12
|
+
@include loop(swatch-fan 6s cubic-bezier(0.65, 0, 0.35, 1) infinite);
|
|
13
|
+
transform: translateY(14px) rotateX(-12deg) rotateY(-18deg);
|
|
14
|
+
}
|
|
15
|
+
@keyframes swatch-fan {
|
|
16
|
+
0%,
|
|
17
|
+
100% {
|
|
18
|
+
--swatch-fan: 2deg;
|
|
19
|
+
}
|
|
20
|
+
45%,
|
|
21
|
+
60% {
|
|
22
|
+
--swatch-fan: 15deg;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
$amounts: 100%, 72%, 50%, 32%, 18%, 8%;
|
|
26
|
+
.swatch {
|
|
27
|
+
@include centered(56px, 150px);
|
|
28
|
+
@include face(2%, 45%);
|
|
29
|
+
background: var(--background);
|
|
30
|
+
border-radius: 6px;
|
|
31
|
+
transform-origin: 50% 86%;
|
|
32
|
+
overflow: hidden;
|
|
33
|
+
@for $index from 0 through 5 {
|
|
34
|
+
&[data-swatch="#{$index}"] {
|
|
35
|
+
transform: translateZ(#{$index * 5 - 12}px) rotateZ(calc(var(--swatch-fan) * #{$index - 2.5}));
|
|
36
|
+
.color {
|
|
37
|
+
background: tint(list.nth($amounts, $index + 1));
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
.color {
|
|
43
|
+
display: block;
|
|
44
|
+
height: 86px;
|
|
45
|
+
}
|
|
46
|
+
.type {
|
|
47
|
+
display: block;
|
|
48
|
+
padding: 8px 8px 4px;
|
|
49
|
+
font-size: 15px;
|
|
50
|
+
font-weight: 600;
|
|
51
|
+
letter-spacing: -0.03em;
|
|
52
|
+
color: var(--foreground);
|
|
53
|
+
}
|
|
54
|
+
.line {
|
|
55
|
+
display: block;
|
|
56
|
+
height: 3px;
|
|
57
|
+
margin: 0 8px;
|
|
58
|
+
width: 60%;
|
|
59
|
+
border-radius: 2px;
|
|
60
|
+
background: tint(30%);
|
|
61
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Content management systems: a web page with an editing panel floating in front of it. As a field is typed in the
|
|
3
|
+
* panel, the same words appear on the page and its picture changes, with no code in sight.
|
|
4
|
+
*/
|
|
5
|
+
export declare function ContentManagementSystem(): 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/content-management-system/index.tsx"],"names":[],"mappings":"AAEA;;;GAGG;AACH,wBAAgB,uBAAuB,gCAgCtC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import styles from "./index.module.css";
|
|
3
|
+
/**
|
|
4
|
+
* Content management systems: a web page with an editing panel floating in front of it. As a field is typed in the
|
|
5
|
+
* panel, the same words appear on the page and its picture changes, with no code in sight.
|
|
6
|
+
*/
|
|
7
|
+
export function ContentManagementSystem() {
|
|
8
|
+
return (_jsxs("div", { className: styles.object, children: [_jsxs("div", { className: styles.page, children: [_jsxs("span", { className: styles.bar, children: [_jsx("i", {}), _jsx("i", {}), _jsx("i", {})] }), _jsx("span", { className: styles.title }), _jsx("span", { className: styles.picture }), _jsxs("span", { className: styles.lines, children: [_jsx("i", {}), _jsx("i", {})] })] }), _jsxs("div", { className: styles.panel, children: [_jsx("span", { className: styles.label }), _jsxs("span", { className: styles.field, children: [_jsx("i", { className: styles.typed }), _jsx("i", { className: styles.caret })] }), _jsx("span", { className: styles.label }), _jsxs("span", { className: styles.swatches, children: [_jsx("i", {}), _jsx("i", {}), _jsx("i", {})] }), _jsx("span", { className: styles.save })] })] }));
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/service-object/content-management-system/index.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC;;;GAGG;AACH,MAAM,UAAU,uBAAuB;IACrC,OAAO,CACL,eAAK,SAAS,EAAE,MAAM,CAAC,MAAM,aAC3B,eAAK,SAAS,EAAE,MAAM,CAAC,IAAI,aACzB,gBAAM,SAAS,EAAE,MAAM,CAAC,GAAG,aACzB,aAAK,EACL,aAAK,EACL,aAAK,IACA,EACP,eAAM,SAAS,EAAE,MAAM,CAAC,KAAK,GAAI,EACjC,eAAM,SAAS,EAAE,MAAM,CAAC,OAAO,GAAI,EACnC,gBAAM,SAAS,EAAE,MAAM,CAAC,KAAK,aAC3B,aAAK,EACL,aAAK,IACA,IACH,EACN,eAAK,SAAS,EAAE,MAAM,CAAC,KAAK,aAC1B,eAAM,SAAS,EAAE,MAAM,CAAC,KAAK,GAAI,EACjC,gBAAM,SAAS,EAAE,MAAM,CAAC,KAAK,aAC3B,YAAG,SAAS,EAAE,MAAM,CAAC,KAAK,GAAI,EAC9B,YAAG,SAAS,EAAE,MAAM,CAAC,KAAK,GAAI,IACzB,EACP,eAAM,SAAS,EAAE,MAAM,CAAC,KAAK,GAAI,EACjC,gBAAM,SAAS,EAAE,MAAM,CAAC,QAAQ,aAC9B,aAAK,EACL,aAAK,EACL,aAAK,IACA,EACP,eAAM,SAAS,EAAE,MAAM,CAAC,IAAI,GAAI,IAC5B,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:cms-sway 11s ease-in-out infinite}@media(prefers-reduced-motion: reduce){.object{animation:none}}.object{transform:rotateX(-12deg) rotateY(24deg)}@keyframes cms-sway{0%,100%{transform:rotateX(-12deg) rotateY(26deg)}50%{transform:rotateX(-8deg) rotateY(6deg)}}.page{position:absolute;left:50%;top:50%;width:176px;height:128px;margin:-64px 0 0 -88px;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) 42%, transparent);display:grid;grid-template-rows:auto 8px 1fr auto;gap:8px;padding:0 0 10px;border-radius:8px;transform:translate3d(-26px, 0, -30px)}.bar{display:flex;gap:4px;padding:6px 8px;border-bottom:1px solid color-mix(in srgb, var(--foreground) 18%, transparent)}.bar i{width:5px;height:5px;border-radius:50%;background:color-mix(in srgb, var(--foreground) 30%, transparent)}.title{justify-self:start;margin:0 10px;width:62%;border-radius:3px;background:color-mix(in srgb, var(--foreground) 55%, transparent);transform-origin:left;animation:cms-title 5s steps(8, end) infinite}@media(prefers-reduced-motion: reduce){.title{animation:none}}@keyframes cms-title{0%,12%{transform:scaleX(0.05)}52%,100%{transform:scaleX(1)}}.picture{margin:0 10px;border-radius:4px;border:1px solid color-mix(in srgb, var(--foreground) 30%, transparent);animation:cms-picture 5s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.picture{animation:none}}@keyframes cms-picture{0%,60%{background:linear-gradient(135deg, color-mix(in srgb, var(--foreground) 10%, transparent), color-mix(in srgb, var(--foreground) 4%, transparent))}70%,100%{background:linear-gradient(135deg, color-mix(in srgb, var(--foreground) 40%, transparent), color-mix(in srgb, var(--foreground) 12%, transparent))}}.lines{display:grid;gap:5px;margin:0 10px}.lines i{height:4px;border-radius:2px;background:color-mix(in srgb, var(--foreground) 20%, transparent)}.lines i:last-child{width:70%}.panel{position:absolute;left:50%;top:50%;width:92px;height:112px;margin:-56px 0 0 -46px;transform-style:preserve-3d;box-sizing:border-box;background:color-mix(in srgb, var(--foreground) 10%, transparent);border:1px solid color-mix(in srgb, var(--foreground) 60%, transparent);display:grid;align-content:start;gap:6px;padding:10px;border-radius:8px;transform:translate3d(74px, 14px, 40px)}.label{width:44%;height:4px;border-radius:2px;background:color-mix(in srgb, var(--foreground) 35%, transparent)}.field{position:relative;display:flex;align-items:center;gap:2px;height:16px;padding:0 4px;border-radius:4px;border:1px solid color-mix(in srgb, var(--foreground) 45%, transparent);background:var(--background)}.typed{height:4px;width:54px;border-radius:2px;background:color-mix(in srgb, var(--foreground) 55%, transparent);transform-origin:left;animation:cms-title 5s steps(8, end) infinite}@media(prefers-reduced-motion: reduce){.typed{animation:none}}.caret{width:1.5px;height:9px;background:var(--foreground);animation:cms-blink .9s steps(1, end) infinite}@media(prefers-reduced-motion: reduce){.caret{animation:none}}@keyframes cms-blink{50%{opacity:0}}.swatches{display:flex;gap:5px}.swatches i{width:14px;height:14px;border-radius:4px;border:1px solid color-mix(in srgb, var(--foreground) 40%, transparent);background:color-mix(in srgb, var(--foreground) 10%, transparent)}.swatches i:nth-child(2){animation:cms-pick 5s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.swatches i:nth-child(2){animation:none}}@keyframes cms-pick{0%,58%{background:color-mix(in srgb, var(--foreground) 10%, transparent);box-shadow:none}64%,100%{background:color-mix(in srgb, var(--foreground) 45%, transparent);box-shadow:0 0 0 2px color-mix(in srgb, var(--foreground) 25%, transparent)}}.save{margin-top:4px;height:14px;border-radius:7px;background:var(--foreground);animation:cms-save 5s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.save{animation:none}}@keyframes cms-save{0%,74%,90%,100%{transform:scale(1)}82%{transform:scale(0.92)}}
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
@use "style/token" as *;
|
|
2
|
+
@use "style/object" as *;
|
|
3
|
+
|
|
4
|
+
$period: 5s;
|
|
5
|
+
|
|
6
|
+
.object {
|
|
7
|
+
@include centered(0px, 0px);
|
|
8
|
+
@include loop(cms-sway 11s ease-in-out infinite);
|
|
9
|
+
transform: rotateX(-12deg) rotateY(24deg);
|
|
10
|
+
}
|
|
11
|
+
@keyframes cms-sway {
|
|
12
|
+
0%,
|
|
13
|
+
100% {
|
|
14
|
+
transform: rotateX(-12deg) rotateY(26deg);
|
|
15
|
+
}
|
|
16
|
+
50% {
|
|
17
|
+
transform: rotateX(-8deg) rotateY(6deg);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
.page {
|
|
21
|
+
@include centered(176px, 128px);
|
|
22
|
+
@include face(4%, 42%);
|
|
23
|
+
display: grid;
|
|
24
|
+
grid-template-rows: auto 8px 1fr auto;
|
|
25
|
+
gap: 8px;
|
|
26
|
+
padding: 0 0 10px;
|
|
27
|
+
border-radius: 8px;
|
|
28
|
+
transform: translate3d(-26px, 0, -30px);
|
|
29
|
+
}
|
|
30
|
+
.bar {
|
|
31
|
+
display: flex;
|
|
32
|
+
gap: 4px;
|
|
33
|
+
padding: 6px 8px;
|
|
34
|
+
border-bottom: 1px solid tint(18%);
|
|
35
|
+
i {
|
|
36
|
+
width: 5px;
|
|
37
|
+
height: 5px;
|
|
38
|
+
border-radius: 50%;
|
|
39
|
+
background: tint(30%);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
/* The page's title grows as the field in the panel is typed. */
|
|
43
|
+
.title {
|
|
44
|
+
justify-self: start;
|
|
45
|
+
margin: 0 10px;
|
|
46
|
+
width: 62%;
|
|
47
|
+
border-radius: 3px;
|
|
48
|
+
background: tint(55%);
|
|
49
|
+
transform-origin: left;
|
|
50
|
+
@include loop(cms-title $period steps(8, end) infinite);
|
|
51
|
+
}
|
|
52
|
+
@keyframes cms-title {
|
|
53
|
+
0%,
|
|
54
|
+
12% {
|
|
55
|
+
transform: scaleX(0.05);
|
|
56
|
+
}
|
|
57
|
+
52%,
|
|
58
|
+
100% {
|
|
59
|
+
transform: scaleX(1);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
.picture {
|
|
63
|
+
margin: 0 10px;
|
|
64
|
+
border-radius: 4px;
|
|
65
|
+
border: 1px solid tint(30%);
|
|
66
|
+
@include loop(cms-picture $period $ease infinite);
|
|
67
|
+
}
|
|
68
|
+
@keyframes cms-picture {
|
|
69
|
+
0%,
|
|
70
|
+
60% {
|
|
71
|
+
background: linear-gradient(135deg, tint(10%), tint(4%));
|
|
72
|
+
}
|
|
73
|
+
70%,
|
|
74
|
+
100% {
|
|
75
|
+
background: linear-gradient(135deg, tint(40%), tint(12%));
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
.lines {
|
|
79
|
+
display: grid;
|
|
80
|
+
gap: 5px;
|
|
81
|
+
margin: 0 10px;
|
|
82
|
+
i {
|
|
83
|
+
height: 4px;
|
|
84
|
+
border-radius: 2px;
|
|
85
|
+
background: tint(20%);
|
|
86
|
+
&:last-child {
|
|
87
|
+
width: 70%;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
/* The editing panel, closer to the visitor. */
|
|
92
|
+
.panel {
|
|
93
|
+
@include centered(92px, 112px);
|
|
94
|
+
@include face(10%, 60%);
|
|
95
|
+
display: grid;
|
|
96
|
+
align-content: start;
|
|
97
|
+
gap: 6px;
|
|
98
|
+
padding: 10px;
|
|
99
|
+
border-radius: 8px;
|
|
100
|
+
transform: translate3d(74px, 14px, 40px);
|
|
101
|
+
}
|
|
102
|
+
.label {
|
|
103
|
+
width: 44%;
|
|
104
|
+
height: 4px;
|
|
105
|
+
border-radius: 2px;
|
|
106
|
+
background: tint(35%);
|
|
107
|
+
}
|
|
108
|
+
.field {
|
|
109
|
+
position: relative;
|
|
110
|
+
display: flex;
|
|
111
|
+
align-items: center;
|
|
112
|
+
gap: 2px;
|
|
113
|
+
height: 16px;
|
|
114
|
+
padding: 0 4px;
|
|
115
|
+
border-radius: 4px;
|
|
116
|
+
border: 1px solid tint(45%);
|
|
117
|
+
background: var(--background);
|
|
118
|
+
}
|
|
119
|
+
.typed {
|
|
120
|
+
height: 4px;
|
|
121
|
+
width: 54px;
|
|
122
|
+
border-radius: 2px;
|
|
123
|
+
background: tint(55%);
|
|
124
|
+
transform-origin: left;
|
|
125
|
+
@include loop(cms-title $period steps(8, end) infinite);
|
|
126
|
+
}
|
|
127
|
+
.caret {
|
|
128
|
+
width: 1.5px;
|
|
129
|
+
height: 9px;
|
|
130
|
+
background: var(--foreground);
|
|
131
|
+
@include loop(cms-blink 0.9s steps(1, end) infinite);
|
|
132
|
+
}
|
|
133
|
+
@keyframes cms-blink {
|
|
134
|
+
50% {
|
|
135
|
+
opacity: 0;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
.swatches {
|
|
139
|
+
display: flex;
|
|
140
|
+
gap: 5px;
|
|
141
|
+
i {
|
|
142
|
+
width: 14px;
|
|
143
|
+
height: 14px;
|
|
144
|
+
border-radius: 4px;
|
|
145
|
+
border: 1px solid tint(40%);
|
|
146
|
+
background: tint(10%);
|
|
147
|
+
&:nth-child(2) {
|
|
148
|
+
@include loop(cms-pick $period $ease infinite);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
@keyframes cms-pick {
|
|
153
|
+
0%,
|
|
154
|
+
58% {
|
|
155
|
+
background: tint(10%);
|
|
156
|
+
box-shadow: none;
|
|
157
|
+
}
|
|
158
|
+
64%,
|
|
159
|
+
100% {
|
|
160
|
+
background: tint(45%);
|
|
161
|
+
box-shadow: 0 0 0 2px tint(25%);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
.save {
|
|
165
|
+
margin-top: 4px;
|
|
166
|
+
height: 14px;
|
|
167
|
+
border-radius: 7px;
|
|
168
|
+
background: var(--foreground);
|
|
169
|
+
@include loop(cms-save $period $ease infinite);
|
|
170
|
+
}
|
|
171
|
+
@keyframes cms-save {
|
|
172
|
+
0%,
|
|
173
|
+
74%,
|
|
174
|
+
90%,
|
|
175
|
+
100% {
|
|
176
|
+
transform: scale(1);
|
|
177
|
+
}
|
|
178
|
+
82% {
|
|
179
|
+
transform: scale(0.92);
|
|
180
|
+
}
|
|
181
|
+
}
|