@sharadox/sharadox-web-library 0.18.0 → 0.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -2
- package/distribution/component/capability/index.d.ts +1 -1
- package/distribution/component/capability/index.d.ts.map +1 -1
- package/distribution/component/capability/index.js +1 -1
- package/distribution/component/capability/index.js.map +1 -1
- package/distribution/component/capability/index.module.css +1 -1
- package/distribution/component/capability/index.module.scss +1 -1
- package/distribution/component/contact/form/chip/index.d.ts +4 -0
- package/distribution/component/contact/form/chip/index.d.ts.map +1 -0
- package/distribution/component/contact/form/chip/index.js +7 -0
- package/distribution/component/contact/form/chip/index.js.map +1 -0
- package/distribution/component/contact/form/chip/index.module.css +1 -0
- package/distribution/component/contact/form/chip/index.module.scss +59 -0
- package/distribution/component/contact/form/chip/type.d.ts +7 -0
- package/distribution/component/contact/form/chip/type.d.ts.map +1 -0
- package/distribution/component/contact/form/chip/type.js.map +1 -0
- package/distribution/component/contact/form/index.d.ts.map +1 -1
- package/distribution/component/contact/form/index.js +2 -1
- package/distribution/component/contact/form/index.js.map +1 -1
- package/distribution/component/contact/form/index.module.css +1 -1
- package/distribution/component/contact/form/index.module.scss +17 -60
- package/distribution/component/footer/index.d.ts +3 -3
- package/distribution/component/footer/index.d.ts.map +1 -1
- package/distribution/component/footer/index.js +6 -4
- package/distribution/component/footer/index.js.map +1 -1
- package/distribution/component/footer/index.module.css +1 -1
- package/distribution/component/footer/index.module.scss +128 -35
- package/distribution/component/globe/index.module.css +1 -1
- package/distribution/component/globe/index.module.scss +22 -1
- package/distribution/component/navigation/index.d.ts +1 -1
- package/distribution/component/navigation/index.d.ts.map +1 -1
- package/distribution/component/navigation/index.js +4 -19
- package/distribution/component/navigation/index.js.map +1 -1
- package/distribution/component/process/index.d.ts.map +1 -1
- package/distribution/component/process/index.js +3 -2
- package/distribution/component/process/index.js.map +1 -1
- package/distribution/component/process/index.module.css +1 -1
- package/distribution/component/process/index.module.scss +4 -2
- package/distribution/component/service-card/index.d.ts +10 -0
- package/distribution/component/service-card/index.d.ts.map +1 -0
- package/distribution/component/service-card/index.js +23 -0
- package/distribution/component/service-card/index.js.map +1 -0
- package/distribution/component/service-card/index.module.css +1 -0
- package/distribution/component/service-card/index.module.scss +59 -0
- package/distribution/component/service-card/type.d.ts +8 -0
- package/distribution/component/service-card/type.d.ts.map +1 -0
- package/distribution/component/service-card/type.js.map +1 -0
- package/distribution/component/service-index/index.d.ts +1 -1
- package/distribution/component/service-index/index.d.ts.map +1 -1
- package/distribution/component/service-index/index.js +3 -2
- package/distribution/component/service-index/index.js.map +1 -1
- package/distribution/component/service-index/index.module.css +1 -1
- package/distribution/component/service-index/index.module.scss +4 -5
- package/distribution/component/service-object/android-application/index.d.ts +3 -0
- package/distribution/component/service-object/android-application/index.d.ts.map +1 -0
- package/distribution/component/service-object/android-application/index.js +8 -0
- package/distribution/component/service-object/android-application/index.js.map +1 -0
- package/distribution/component/service-object/android-application/index.module.css +1 -0
- package/distribution/component/service-object/android-application/index.module.scss +90 -0
- package/distribution/component/service-object/brand-awareness/index.d.ts +3 -0
- package/distribution/component/service-object/brand-awareness/index.d.ts.map +1 -0
- package/distribution/component/service-object/brand-awareness/index.js +8 -0
- package/distribution/component/service-object/brand-awareness/index.js.map +1 -0
- package/distribution/component/service-object/brand-awareness/index.module.css +1 -0
- package/distribution/component/service-object/brand-awareness/index.module.scss +89 -0
- package/distribution/component/service-object/branding/index.d.ts +3 -0
- package/distribution/component/service-object/branding/index.d.ts.map +1 -0
- package/distribution/component/service-object/branding/index.js +7 -0
- package/distribution/component/service-object/branding/index.js.map +1 -0
- package/distribution/component/service-object/branding/index.module.css +1 -0
- package/distribution/component/service-object/branding/index.module.scss +63 -0
- package/distribution/component/service-object/branding-design/index.d.ts +3 -0
- package/distribution/component/service-object/branding-design/index.d.ts.map +1 -0
- package/distribution/component/service-object/branding-design/index.js +7 -0
- package/distribution/component/service-object/branding-design/index.js.map +1 -0
- package/distribution/component/service-object/branding-design/index.module.css +1 -0
- package/distribution/component/service-object/branding-design/index.module.scss +61 -0
- package/distribution/component/service-object/cuboid/index.d.ts +11 -0
- package/distribution/component/service-object/cuboid/index.d.ts.map +1 -0
- package/distribution/component/service-object/cuboid/index.js +15 -0
- package/distribution/component/service-object/cuboid/index.js.map +1 -0
- package/distribution/component/service-object/cuboid/index.module.css +1 -0
- package/distribution/component/service-object/cuboid/index.module.scss +61 -0
- package/distribution/component/service-object/cuboid/type.d.ts +10 -0
- package/distribution/component/service-object/cuboid/type.d.ts.map +1 -0
- package/distribution/component/service-object/cuboid/type.js.map +1 -0
- package/distribution/component/service-object/e-commerce/index.d.ts +3 -0
- package/distribution/component/service-object/e-commerce/index.d.ts.map +1 -0
- package/distribution/component/service-object/e-commerce/index.js +8 -0
- package/distribution/component/service-object/e-commerce/index.js.map +1 -0
- package/distribution/component/service-object/e-commerce/index.module.css +1 -0
- package/distribution/component/service-object/e-commerce/index.module.scss +78 -0
- package/distribution/component/service-object/index.d.ts +10 -0
- package/distribution/component/service-object/index.d.ts.map +1 -0
- package/distribution/component/service-object/index.js +45 -0
- package/distribution/component/service-object/index.js.map +1 -0
- package/distribution/component/service-object/index.module.css +1 -0
- package/distribution/component/service-object/index.module.scss +16 -0
- package/distribution/component/service-object/ios-application/index.d.ts +3 -0
- package/distribution/component/service-object/ios-application/index.d.ts.map +1 -0
- package/distribution/component/service-object/ios-application/index.js +8 -0
- package/distribution/component/service-object/ios-application/index.js.map +1 -0
- package/distribution/component/service-object/ios-application/index.module.css +1 -0
- package/distribution/component/service-object/ios-application/index.module.scss +93 -0
- package/distribution/component/service-object/lead-generation/index.d.ts +3 -0
- package/distribution/component/service-object/lead-generation/index.d.ts.map +1 -0
- package/distribution/component/service-object/lead-generation/index.js +7 -0
- package/distribution/component/service-object/lead-generation/index.js.map +1 -0
- package/distribution/component/service-object/lead-generation/index.module.css +1 -0
- package/distribution/component/service-object/lead-generation/index.module.scss +82 -0
- package/distribution/component/service-object/platform/index.d.ts +3 -0
- package/distribution/component/service-object/platform/index.d.ts.map +1 -0
- package/distribution/component/service-object/platform/index.js +8 -0
- package/distribution/component/service-object/platform/index.js.map +1 -0
- package/distribution/component/service-object/platform/index.module.css +1 -0
- package/distribution/component/service-object/platform/index.module.scss +54 -0
- package/distribution/component/service-object/product-launch/index.d.ts +3 -0
- package/distribution/component/service-object/product-launch/index.d.ts.map +1 -0
- package/distribution/component/service-object/product-launch/index.js +8 -0
- package/distribution/component/service-object/product-launch/index.js.map +1 -0
- package/distribution/component/service-object/product-launch/index.module.css +1 -0
- package/distribution/component/service-object/product-launch/index.module.scss +110 -0
- package/distribution/component/service-object/progressive-web-application/index.d.ts +3 -0
- package/distribution/component/service-object/progressive-web-application/index.d.ts.map +1 -0
- package/distribution/component/service-object/progressive-web-application/index.js +8 -0
- package/distribution/component/service-object/progressive-web-application/index.js.map +1 -0
- package/distribution/component/service-object/progressive-web-application/index.module.css +1 -0
- package/distribution/component/service-object/progressive-web-application/index.module.scss +91 -0
- package/distribution/component/service-object/rebranding/index.d.ts +3 -0
- package/distribution/component/service-object/rebranding/index.d.ts.map +1 -0
- package/distribution/component/service-object/rebranding/index.js +8 -0
- package/distribution/component/service-object/rebranding/index.js.map +1 -0
- package/distribution/component/service-object/rebranding/index.module.css +1 -0
- package/distribution/component/service-object/rebranding/index.module.scss +76 -0
- package/distribution/component/service-object/sales-generation/index.d.ts +3 -0
- package/distribution/component/service-object/sales-generation/index.d.ts.map +1 -0
- package/distribution/component/service-object/sales-generation/index.js +8 -0
- package/distribution/component/service-object/sales-generation/index.js.map +1 -0
- package/distribution/component/service-object/sales-generation/index.module.css +1 -0
- package/distribution/component/service-object/sales-generation/index.module.scss +65 -0
- package/distribution/component/service-object/social-media-strategy/index.d.ts +3 -0
- package/distribution/component/service-object/social-media-strategy/index.d.ts.map +1 -0
- package/distribution/component/service-object/social-media-strategy/index.js +7 -0
- package/distribution/component/service-object/social-media-strategy/index.js.map +1 -0
- package/distribution/component/service-object/social-media-strategy/index.module.css +1 -0
- package/distribution/component/service-object/social-media-strategy/index.module.scss +77 -0
- package/distribution/component/service-object/type.d.ts +6 -0
- package/distribution/component/service-object/type.d.ts.map +1 -0
- package/distribution/component/service-object/type.js.map +1 -0
- package/distribution/component/service-object/website/index.d.ts +3 -0
- package/distribution/component/service-object/website/index.d.ts.map +1 -0
- package/distribution/component/service-object/website/index.js +7 -0
- package/distribution/component/service-object/website/index.js.map +1 -0
- package/distribution/component/service-object/website/index.module.css +1 -0
- package/distribution/component/service-object/website/index.module.scss +73 -0
- package/distribution/component/services/index.d.ts +4 -1
- package/distribution/component/services/index.d.ts.map +1 -1
- package/distribution/component/services/index.js +6 -17
- package/distribution/component/services/index.js.map +1 -1
- package/distribution/component/services/index.module.css +1 -1
- package/distribution/component/services/index.module.scss +49 -43
- package/distribution/component/structured-data/index.d.ts +1 -1
- package/distribution/component/structured-data/index.d.ts.map +1 -1
- package/distribution/component/structured-data/index.js +13 -10
- package/distribution/component/structured-data/index.js.map +1 -1
- package/distribution/content/contact/index.d.ts +85 -29
- package/distribution/content/contact/index.d.ts.map +1 -1
- package/distribution/content/contact/index.js +10 -7
- package/distribution/content/contact/index.js.map +1 -1
- package/distribution/content/footer/index.d.ts +5 -0
- package/distribution/content/footer/index.d.ts.map +1 -1
- package/distribution/content/footer/index.js +2 -0
- package/distribution/content/footer/index.js.map +1 -1
- package/distribution/content/hero/index.d.ts +1 -1
- package/distribution/content/hero/index.js +1 -1
- package/distribution/content/hero/index.js.map +1 -1
- package/distribution/content/services/index.d.ts +286 -132
- package/distribution/content/services/index.d.ts.map +1 -1
- package/distribution/content/services/index.js +172 -105
- package/distribution/content/services/index.js.map +1 -1
- package/distribution/content/site/index.d.ts.map +1 -1
- package/distribution/content/site/index.js +12 -8
- package/distribution/content/site/index.js.map +1 -1
- package/distribution/style/object/index.scss +28 -0
- package/distribution/utility/llms-text/index.js +1 -1
- package/distribution/utility/llms-text/index.js.map +1 -1
- package/llms.txt +5 -2
- package/package.json +2 -1
- package/distribution/component/service-action/index.d.ts +0 -10
- package/distribution/component/service-action/index.d.ts.map +0 -1
- package/distribution/component/service-action/index.js +0 -18
- package/distribution/component/service-action/index.js.map +0 -1
- package/distribution/component/service-action/index.module.css +0 -1
- package/distribution/component/service-action/index.module.scss +0 -6
- package/distribution/component/service-action/type.d.ts +0 -7
- package/distribution/component/service-action/type.d.ts.map +0 -1
- package/distribution/component/service-action/type.js.map +0 -1
- package/distribution/component/services/campaign-visual/index.d.ts +0 -4
- package/distribution/component/services/campaign-visual/index.d.ts.map +0 -1
- package/distribution/component/services/campaign-visual/index.js +0 -19
- package/distribution/component/services/campaign-visual/index.js.map +0 -1
- package/distribution/component/services/campaign-visual/index.module.css +0 -1
- package/distribution/component/services/campaign-visual/index.module.scss +0 -125
- package/distribution/component/services/campaign-visual/stage/index.d.ts +0 -4
- package/distribution/component/services/campaign-visual/stage/index.d.ts.map +0 -1
- package/distribution/component/services/campaign-visual/stage/index.js +0 -11
- package/distribution/component/services/campaign-visual/stage/index.js.map +0 -1
- package/distribution/component/services/campaign-visual/stage/type.d.ts +0 -10
- package/distribution/component/services/campaign-visual/stage/type.d.ts.map +0 -1
- package/distribution/component/services/campaign-visual/stage/type.js.map +0 -1
- package/distribution/component/services/campaign-visual/type.d.ts +0 -5
- package/distribution/component/services/campaign-visual/type.d.ts.map +0 -1
- package/distribution/component/services/campaign-visual/type.js.map +0 -1
- package/distribution/component/services/cell/index.d.ts +0 -7
- package/distribution/component/services/cell/index.d.ts.map +0 -1
- package/distribution/component/services/cell/index.js +0 -16
- package/distribution/component/services/cell/index.js.map +0 -1
- package/distribution/component/services/cell/index.module.css +0 -1
- package/distribution/component/services/cell/index.module.scss +0 -81
- package/distribution/component/services/cell/type.d.ts +0 -16
- package/distribution/component/services/cell/type.d.ts.map +0 -1
- package/distribution/component/services/cell/type.js.map +0 -1
- package/distribution/component/services/design-visual/index.d.ts +0 -5
- package/distribution/component/services/design-visual/index.d.ts.map +0 -1
- package/distribution/component/services/design-visual/index.js +0 -21
- package/distribution/component/services/design-visual/index.js.map +0 -1
- package/distribution/component/services/design-visual/index.module.css +0 -1
- package/distribution/component/services/design-visual/index.module.scss +0 -119
- package/distribution/component/services/mobile-visual/index.d.ts +0 -4
- package/distribution/component/services/mobile-visual/index.d.ts.map +0 -1
- package/distribution/component/services/mobile-visual/index.js +0 -18
- package/distribution/component/services/mobile-visual/index.js.map +0 -1
- package/distribution/component/services/mobile-visual/index.module.css +0 -1
- package/distribution/component/services/mobile-visual/index.module.scss +0 -93
- package/distribution/component/services/mobile-visual/type.d.ts +0 -5
- package/distribution/component/services/mobile-visual/type.d.ts.map +0 -1
- package/distribution/component/services/mobile-visual/type.js +0 -2
- package/distribution/component/services/mobile-visual/type.js.map +0 -1
- package/distribution/component/services/platform-visual/index.d.ts +0 -3
- package/distribution/component/services/platform-visual/index.d.ts.map +0 -1
- package/distribution/component/services/platform-visual/index.js +0 -16
- package/distribution/component/services/platform-visual/index.js.map +0 -1
- package/distribution/component/services/platform-visual/index.module.css +0 -1
- package/distribution/component/services/platform-visual/index.module.scss +0 -39
- package/distribution/component/services/social-visual/index.d.ts +0 -4
- package/distribution/component/services/social-visual/index.d.ts.map +0 -1
- package/distribution/component/services/social-visual/index.js +0 -18
- package/distribution/component/services/social-visual/index.js.map +0 -1
- package/distribution/component/services/social-visual/index.module.css +0 -1
- package/distribution/component/services/social-visual/index.module.scss +0 -123
- package/distribution/component/services/social-visual/type.d.ts +0 -5
- package/distribution/component/services/social-visual/type.d.ts.map +0 -1
- package/distribution/component/services/social-visual/type.js +0 -2
- package/distribution/component/services/social-visual/type.js.map +0 -1
- package/distribution/component/services/web-visual/index.d.ts +0 -3
- package/distribution/component/services/web-visual/index.d.ts.map +0 -1
- package/distribution/component/services/web-visual/index.js +0 -26
- package/distribution/component/services/web-visual/index.js.map +0 -1
- package/distribution/component/services/web-visual/index.module.css +0 -1
- package/distribution/component/services/web-visual/index.module.scss +0 -133
- package/distribution/content/services/type.d.ts +0 -8
- package/distribution/content/services/type.d.ts.map +0 -1
- package/distribution/content/services/type.js +0 -2
- package/distribution/content/services/type.js.map +0 -1
- /package/distribution/component/{service-action → contact/form/chip}/type.js +0 -0
- /package/distribution/component/{services/campaign-visual/stage → service-card}/type.js +0 -0
- /package/distribution/component/{services/campaign-visual → service-object/cuboid}/type.js +0 -0
- /package/distribution/component/{services/cell → service-object}/type.js +0 -0
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
@use "style/token" as *;
|
|
2
|
+
@use "style/object" as *;
|
|
3
|
+
|
|
4
|
+
.object {
|
|
5
|
+
@include centered(0px, 0px);
|
|
6
|
+
@include loop(android-turn 9s ease-in-out infinite);
|
|
7
|
+
transform: rotateX(10deg) rotateY(-28deg);
|
|
8
|
+
}
|
|
9
|
+
@keyframes android-turn {
|
|
10
|
+
0%,
|
|
11
|
+
100% {
|
|
12
|
+
transform: rotateX(10deg) rotateY(-32deg) rotateZ(-2deg);
|
|
13
|
+
}
|
|
14
|
+
50% {
|
|
15
|
+
transform: rotateX(6deg) rotateY(24deg) rotateZ(2deg);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
.phone {
|
|
19
|
+
--width: 88px;
|
|
20
|
+
--height: 172px;
|
|
21
|
+
--depth: 9px;
|
|
22
|
+
--radius: 12px;
|
|
23
|
+
--front-amount: 4%;
|
|
24
|
+
--edge-amount: 55%;
|
|
25
|
+
}
|
|
26
|
+
.camera {
|
|
27
|
+
position: absolute;
|
|
28
|
+
left: 50%;
|
|
29
|
+
top: 8px;
|
|
30
|
+
width: 6px;
|
|
31
|
+
height: 6px;
|
|
32
|
+
margin-left: -3px;
|
|
33
|
+
border-radius: 50%;
|
|
34
|
+
background: tint(55%);
|
|
35
|
+
}
|
|
36
|
+
.tiles {
|
|
37
|
+
position: absolute;
|
|
38
|
+
inset: 24px 11px 30px;
|
|
39
|
+
display: grid;
|
|
40
|
+
grid-template-columns: repeat(3, 1fr);
|
|
41
|
+
gap: 8px;
|
|
42
|
+
transform-style: preserve-3d;
|
|
43
|
+
i {
|
|
44
|
+
aspect-ratio: 1;
|
|
45
|
+
border-radius: 6px;
|
|
46
|
+
border: 1px solid tint(45%);
|
|
47
|
+
background: tint(14%);
|
|
48
|
+
@include loop(android-rise 2.8s $ease infinite);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
@keyframes android-rise {
|
|
52
|
+
0%,
|
|
53
|
+
45%,
|
|
54
|
+
100% {
|
|
55
|
+
transform: translateZ(0);
|
|
56
|
+
background: tint(14%);
|
|
57
|
+
}
|
|
58
|
+
20% {
|
|
59
|
+
transform: translateZ(16px);
|
|
60
|
+
background: tint(40%);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
.buttons {
|
|
64
|
+
position: absolute;
|
|
65
|
+
left: 18px;
|
|
66
|
+
right: 18px;
|
|
67
|
+
bottom: 9px;
|
|
68
|
+
display: flex;
|
|
69
|
+
align-items: center;
|
|
70
|
+
justify-content: space-between;
|
|
71
|
+
i {
|
|
72
|
+
width: 8px;
|
|
73
|
+
height: 8px;
|
|
74
|
+
border: 1.5px solid tint(55%);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
.back {
|
|
78
|
+
border: 0 !important;
|
|
79
|
+
width: 0 !important;
|
|
80
|
+
height: 0 !important;
|
|
81
|
+
border-top: 4.5px solid transparent !important;
|
|
82
|
+
border-bottom: 4.5px solid transparent !important;
|
|
83
|
+
border-right: 7px solid tint(55%) !important;
|
|
84
|
+
}
|
|
85
|
+
.home {
|
|
86
|
+
border-radius: 50%;
|
|
87
|
+
}
|
|
88
|
+
.recent {
|
|
89
|
+
border-radius: 2px;
|
|
90
|
+
}
|
|
@@ -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,11 @@
|
|
|
1
|
+
import type { CuboidProperties } from "@sharadox/sharadox-web-library/component/service-object/cuboid/type";
|
|
2
|
+
/**
|
|
3
|
+
* A solid box in CSS 3D, centered where it is placed: six faces in the style's colors. Size it with `--width`,
|
|
4
|
+
* `--height` and `--depth` (lengths) in `className`, which can also move it with `transform`. `front` and `top` are
|
|
5
|
+
* drawn on those faces.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* <Cuboid className={styles.slab} top={<span className={styles.glow} />} />
|
|
9
|
+
*/
|
|
10
|
+
export declare function Cuboid({ className, front, top }: CuboidProperties): import("react").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/service-object/cuboid/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qEAAqE,CAAC;AAE5G;;;;;;;GAOG;AACH,wBAAgB,MAAM,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,gBAAgB,+BAWjE"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { classNames } from "@sharadox/web-library/class-name";
|
|
3
|
+
import styles from "./index.module.css";
|
|
4
|
+
/**
|
|
5
|
+
* A solid box in CSS 3D, centered where it is placed: six faces in the style's colors. Size it with `--width`,
|
|
6
|
+
* `--height` and `--depth` (lengths) in `className`, which can also move it with `transform`. `front` and `top` are
|
|
7
|
+
* drawn on those faces.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* <Cuboid className={styles.slab} top={<span className={styles.glow} />} />
|
|
11
|
+
*/
|
|
12
|
+
export function Cuboid({ className, front, top }) {
|
|
13
|
+
return (_jsxs("div", { className: classNames(styles.cuboid, className), children: [_jsx("div", { className: classNames(styles.face, styles.front), children: front }), _jsx("div", { className: classNames(styles.face, styles.back) }), _jsx("div", { className: classNames(styles.face, styles.right) }), _jsx("div", { className: classNames(styles.face, styles.left) }), _jsx("div", { className: classNames(styles.face, styles.top), children: top }), _jsx("div", { className: classNames(styles.face, styles.bottom) })] }));
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/service-object/cuboid/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC;;;;;;;GAOG;AACH,MAAM,UAAU,MAAM,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,EAAoB;IAChE,OAAO,CACL,eAAK,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,aAClD,cAAK,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,YAAG,KAAK,GAAO,EACpE,cAAK,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,GAAI,EACxD,cAAK,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,GAAI,EACzD,cAAK,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,GAAI,EACxD,cAAK,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,GAAG,CAAC,YAAG,GAAG,GAAO,EAChE,cAAK,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,GAAI,IACtD,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.cuboid{--width: 40px;--height: 40px;--depth: 40px;position:absolute;left:50%;top:50%;width:var(--width);height:var(--height);margin:calc(var(--height)/-2) 0 0 calc(var(--width)/-2);transform-style:preserve-3d}.face{box-sizing:border-box;background:color-mix(in srgb, var(--foreground) var(--fill-amount, 6%), transparent);border:1px solid color-mix(in srgb, var(--foreground) var(--edge-amount, 40%), transparent);position:absolute;transform-style:preserve-3d}.front,.back{inset:0;border-radius:var(--radius, 0)}.front{transform:translateZ(calc(var(--depth) / 2));background:color-mix(in srgb, var(--foreground) var(--front-amount, 8%), transparent)}.back{transform:rotateY(180deg) translateZ(calc(var(--depth) / 2))}.right,.left{top:0;left:50%;width:var(--depth);height:100%;margin-left:calc(var(--depth)/-2)}.right{transform:rotateY(90deg) translateZ(calc(var(--width) / 2))}.left{transform:rotateY(-90deg) translateZ(calc(var(--width) / 2))}.top,.bottom{left:0;top:50%;width:100%;height:var(--depth);margin-top:calc(var(--depth)/-2)}.top{transform:rotateX(90deg) translateZ(calc(var(--height) / 2));background:color-mix(in srgb, var(--foreground) var(--top-amount, 12%), transparent)}.bottom{transform:rotateX(-90deg) translateZ(calc(var(--height) / 2))}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
@use "style/token" as *;
|
|
2
|
+
@use "style/object" as *;
|
|
3
|
+
|
|
4
|
+
.cuboid {
|
|
5
|
+
--width: 40px;
|
|
6
|
+
--height: 40px;
|
|
7
|
+
--depth: 40px;
|
|
8
|
+
position: absolute;
|
|
9
|
+
left: 50%;
|
|
10
|
+
top: 50%;
|
|
11
|
+
width: var(--width);
|
|
12
|
+
height: var(--height);
|
|
13
|
+
margin: calc(var(--height) / -2) 0 0 calc(var(--width) / -2);
|
|
14
|
+
transform-style: preserve-3d;
|
|
15
|
+
}
|
|
16
|
+
.face {
|
|
17
|
+
@include face(var(--fill-amount, 6%), var(--edge-amount, 40%));
|
|
18
|
+
position: absolute;
|
|
19
|
+
transform-style: preserve-3d;
|
|
20
|
+
}
|
|
21
|
+
.front,
|
|
22
|
+
.back {
|
|
23
|
+
inset: 0;
|
|
24
|
+
border-radius: var(--radius, 0);
|
|
25
|
+
}
|
|
26
|
+
.front {
|
|
27
|
+
transform: translateZ(calc(var(--depth) / 2));
|
|
28
|
+
background: tint(var(--front-amount, 8%));
|
|
29
|
+
}
|
|
30
|
+
.back {
|
|
31
|
+
transform: rotateY(180deg) translateZ(calc(var(--depth) / 2));
|
|
32
|
+
}
|
|
33
|
+
.right,
|
|
34
|
+
.left {
|
|
35
|
+
top: 0;
|
|
36
|
+
left: 50%;
|
|
37
|
+
width: var(--depth);
|
|
38
|
+
height: 100%;
|
|
39
|
+
margin-left: calc(var(--depth) / -2);
|
|
40
|
+
}
|
|
41
|
+
.right {
|
|
42
|
+
transform: rotateY(90deg) translateZ(calc(var(--width) / 2));
|
|
43
|
+
}
|
|
44
|
+
.left {
|
|
45
|
+
transform: rotateY(-90deg) translateZ(calc(var(--width) / 2));
|
|
46
|
+
}
|
|
47
|
+
.top,
|
|
48
|
+
.bottom {
|
|
49
|
+
left: 0;
|
|
50
|
+
top: 50%;
|
|
51
|
+
width: 100%;
|
|
52
|
+
height: var(--depth);
|
|
53
|
+
margin-top: calc(var(--depth) / -2);
|
|
54
|
+
}
|
|
55
|
+
.top {
|
|
56
|
+
transform: rotateX(90deg) translateZ(calc(var(--height) / 2));
|
|
57
|
+
background: tint(var(--top-amount, 12%));
|
|
58
|
+
}
|
|
59
|
+
.bottom {
|
|
60
|
+
transform: rotateX(-90deg) translateZ(calc(var(--height) / 2));
|
|
61
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export interface CuboidProperties {
|
|
3
|
+
/** Sets `--width`, `--height`, `--depth`, and may move it with `transform`. */
|
|
4
|
+
className?: string;
|
|
5
|
+
/** Drawn on the front face. */
|
|
6
|
+
front?: ReactNode;
|
|
7
|
+
/** Drawn on the top face. */
|
|
8
|
+
top?: ReactNode;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../source/component/service-object/cuboid/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,gBAAgB;IAC/B,+EAA+E;IAC/E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,+BAA+B;IAC/B,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,6BAA6B;IAC7B,GAAG,CAAC,EAAE,SAAS,CAAC;CACjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../source/component/service-object/cuboid/type.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/service-object/e-commerce/index.tsx"],"names":[],"mappings":"AAGA,6FAA6F;AAC7F,wBAAgB,SAAS,gCAYxB"}
|
|
@@ -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
|
+
/** E-commerce: a shopping bag, swaying, with products dropping into it one after another. */
|
|
5
|
+
export function ECommerce() {
|
|
6
|
+
return (_jsxs("div", { className: styles.object, children: [[0, 1, 2].map((item) => (_jsx("div", { className: styles.drop, style: { animationDelay: `${item * 1.1}s` }, children: _jsx(Cuboid, { className: styles.item }) }, item))), _jsx("div", { className: styles.handle }), _jsx(Cuboid, { className: styles.bag, front: _jsx("span", { className: styles.tag }) })] }));
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/service-object/e-commerce/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gEAAgE,CAAC;AACxF,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,6FAA6F;AAC7F,MAAM,UAAU,SAAS;IACvB,OAAO,CACL,eAAK,SAAS,EAAE,MAAM,CAAC,MAAM,aAC1B,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CACvB,cAAgB,SAAS,EAAE,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,cAAc,EAAE,GAAG,IAAI,GAAG,GAAG,GAAG,EAAE,YACjF,KAAC,MAAM,IAAC,SAAS,EAAE,MAAM,CAAC,IAAI,GAAI,IAD1B,IAAI,CAER,CACP,CAAC,EACF,cAAK,SAAS,EAAE,MAAM,CAAC,MAAM,GAAI,EACjC,KAAC,MAAM,IAAC,SAAS,EAAE,MAAM,CAAC,GAAG,EAAE,KAAK,EAAE,eAAM,SAAS,EAAE,MAAM,CAAC,GAAG,GAAI,GAAI,IACrE,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:commerce-sway 8s ease-in-out infinite}@media(prefers-reduced-motion: reduce){.object{animation:none}}.object{transform:translateY(18px) rotateX(-16deg) rotateY(-28deg)}@keyframes commerce-sway{0%,100%{transform:translateY(18px) rotateX(-16deg) rotateY(-34deg)}50%{transform:translateY(18px) rotateX(-12deg) rotateY(26deg)}}.bag{--width: 104px;--height: 112px;--depth: 52px;--front-amount: 10%;--top-amount: 2%}.tag{position:absolute;left:50%;top:30px;width:30px;height:30px;margin-left:-15px;border:1px solid color-mix(in srgb, var(--foreground) 60%, transparent);border-radius:50%}.tag::after{content:"";position:absolute;inset:8px;border-radius:50%;background:color-mix(in srgb, var(--foreground) 60%, transparent)}.handle{position:absolute;left:50%;top:50%;width:48px;height:34px;margin:-17px 0 0 -24px;transform-style:preserve-3d;transform:translate3d(0, -72px, 0);border:2px solid color-mix(in srgb, var(--foreground) 65%, transparent);border-bottom:0;border-radius:24px 24px 0 0}.drop{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d;transform:translateY(-170px) scale(0);animation:commerce-drop 3.3s cubic-bezier(0.5, 0, 0.75, 0) infinite}@media(prefers-reduced-motion: reduce){.drop{animation:none}}.drop:nth-child(2){left:calc(50% - 18px)}.drop:nth-child(3){left:calc(50% + 16px)}@keyframes commerce-drop{0%{transform:translateY(-170px) rotateY(0deg) scale(1)}55%{transform:translateY(-40px) rotateY(160deg) scale(1)}65%,100%{transform:translateY(-10px) rotateY(180deg) scale(0)}}.item{--width: 22px;--height: 22px;--depth: 22px;--fill-amount: 16%;--edge-amount: 70%}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
@use "style/token" as *;
|
|
2
|
+
@use "style/object" as *;
|
|
3
|
+
|
|
4
|
+
.object {
|
|
5
|
+
@include centered(0px, 0px);
|
|
6
|
+
@include loop(commerce-sway 8s ease-in-out infinite);
|
|
7
|
+
transform: translateY(18px) rotateX(-16deg) rotateY(-28deg);
|
|
8
|
+
}
|
|
9
|
+
@keyframes commerce-sway {
|
|
10
|
+
0%,
|
|
11
|
+
100% {
|
|
12
|
+
transform: translateY(18px) rotateX(-16deg) rotateY(-34deg);
|
|
13
|
+
}
|
|
14
|
+
50% {
|
|
15
|
+
transform: translateY(18px) rotateX(-12deg) rotateY(26deg);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
.bag {
|
|
19
|
+
--width: 104px;
|
|
20
|
+
--height: 112px;
|
|
21
|
+
--depth: 52px;
|
|
22
|
+
--front-amount: 10%;
|
|
23
|
+
--top-amount: 2%;
|
|
24
|
+
}
|
|
25
|
+
.tag {
|
|
26
|
+
position: absolute;
|
|
27
|
+
left: 50%;
|
|
28
|
+
top: 30px;
|
|
29
|
+
width: 30px;
|
|
30
|
+
height: 30px;
|
|
31
|
+
margin-left: -15px;
|
|
32
|
+
border: 1px solid tint(60%);
|
|
33
|
+
border-radius: 50%;
|
|
34
|
+
&::after {
|
|
35
|
+
content: "";
|
|
36
|
+
position: absolute;
|
|
37
|
+
inset: 8px;
|
|
38
|
+
border-radius: 50%;
|
|
39
|
+
background: tint(60%);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
.handle {
|
|
43
|
+
@include centered(48px, 34px);
|
|
44
|
+
transform: translate3d(0, -72px, 0);
|
|
45
|
+
border: 2px solid tint(65%);
|
|
46
|
+
border-bottom: 0;
|
|
47
|
+
border-radius: 24px 24px 0 0;
|
|
48
|
+
}
|
|
49
|
+
.drop {
|
|
50
|
+
@include centered(0px, 0px);
|
|
51
|
+
transform: translateY(-170px) scale(0);
|
|
52
|
+
@include loop(commerce-drop 3.3s cubic-bezier(0.5, 0, 0.75, 0) infinite);
|
|
53
|
+
&:nth-child(2) {
|
|
54
|
+
left: calc(50% - 18px);
|
|
55
|
+
}
|
|
56
|
+
&:nth-child(3) {
|
|
57
|
+
left: calc(50% + 16px);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
@keyframes commerce-drop {
|
|
61
|
+
0% {
|
|
62
|
+
transform: translateY(-170px) rotateY(0deg) scale(1);
|
|
63
|
+
}
|
|
64
|
+
55% {
|
|
65
|
+
transform: translateY(-40px) rotateY(160deg) scale(1);
|
|
66
|
+
}
|
|
67
|
+
65%,
|
|
68
|
+
100% {
|
|
69
|
+
transform: translateY(-10px) rotateY(180deg) scale(0);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
.item {
|
|
73
|
+
--width: 22px;
|
|
74
|
+
--height: 22px;
|
|
75
|
+
--depth: 22px;
|
|
76
|
+
--fill-amount: 16%;
|
|
77
|
+
--edge-amount: 70%;
|
|
78
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ServiceObjectProperties } from "@sharadox/sharadox-web-library/component/service-object/type";
|
|
2
|
+
/**
|
|
3
|
+
* A service card's animated 3D object, in CSS 3D and the style's colors. It turns towards the pointer through the
|
|
4
|
+
* `--tilt-x` and `--tilt-y` its card sets (`useTilt`), on top of its own animation, which holds still with reduced motion.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* <ServiceObject kind="website" />
|
|
8
|
+
*/
|
|
9
|
+
export declare function ServiceObject({ kind }: ServiceObjectProperties): import("react").JSX.Element;
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/service-object/index.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8DAA8D,CAAC;AAoB5G;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,EAAE,IAAI,EAAE,EAAE,uBAAuB,+BAS9D"}
|