@sharadox/sharadox-web-library 0.25.0 → 0.27.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 +1 -1
- package/distribution/component/service-object/brand-awareness/index.d.ts +5 -1
- package/distribution/component/service-object/brand-awareness/index.d.ts.map +1 -1
- package/distribution/component/service-object/brand-awareness/index.js +25 -3
- package/distribution/component/service-object/brand-awareness/index.js.map +1 -1
- package/distribution/component/service-object/brand-awareness/index.module.css +1 -1
- package/distribution/component/service-object/brand-awareness/index.module.scss +147 -68
- package/distribution/component/service-object/branding/index.d.ts +4 -1
- package/distribution/component/service-object/branding/index.d.ts.map +1 -1
- package/distribution/component/service-object/branding/index.js +7 -3
- package/distribution/component/service-object/branding/index.js.map +1 -1
- package/distribution/component/service-object/branding/index.module.css +1 -1
- package/distribution/component/service-object/branding/index.module.scss +109 -42
- package/distribution/component/service-object/branding-design/index.d.ts +4 -1
- package/distribution/component/service-object/branding-design/index.d.ts.map +1 -1
- package/distribution/component/service-object/branding-design/index.js +36 -2
- package/distribution/component/service-object/branding-design/index.js.map +1 -1
- package/distribution/component/service-object/branding-design/index.module.css +1 -1
- package/distribution/component/service-object/branding-design/index.module.scss +64 -47
- package/distribution/component/service-object/index.js +4 -4
- package/distribution/component/service-object/index.js.map +1 -1
- package/distribution/component/service-object/mark/index.d.ts +10 -0
- package/distribution/component/service-object/mark/index.d.ts.map +1 -0
- package/distribution/component/service-object/mark/index.js +14 -0
- package/distribution/component/service-object/mark/index.js.map +1 -0
- package/distribution/component/service-object/mark/index.module.css +1 -0
- package/distribution/component/service-object/mark/index.module.scss +23 -0
- package/distribution/component/service-object/mark/type.d.ts +5 -0
- package/distribution/component/service-object/mark/type.d.ts.map +1 -0
- package/distribution/component/service-object/mark/type.js +2 -0
- package/distribution/component/service-object/mark/type.js.map +1 -0
- package/distribution/component/service-object/merchandise/index.d.ts +6 -0
- package/distribution/component/service-object/merchandise/index.d.ts.map +1 -0
- package/distribution/component/service-object/merchandise/index.js +13 -0
- package/distribution/component/service-object/merchandise/index.js.map +1 -0
- package/distribution/component/service-object/merchandise/index.module.css +1 -0
- package/distribution/component/service-object/merchandise/index.module.scss +91 -0
- package/distribution/component/service-object/person/index.d.ts +10 -0
- package/distribution/component/service-object/person/index.d.ts.map +1 -0
- package/distribution/component/service-object/person/index.js +14 -0
- package/distribution/component/service-object/person/index.js.map +1 -0
- package/distribution/component/service-object/person/index.module.css +1 -0
- package/distribution/component/service-object/person/index.module.scss +38 -0
- package/distribution/component/service-object/person/type.d.ts +5 -0
- package/distribution/component/service-object/person/type.d.ts.map +1 -0
- package/distribution/component/service-object/person/type.js +2 -0
- package/distribution/component/service-object/person/type.js.map +1 -0
- package/distribution/component/service-object/platform/index.d.ts +5 -1
- package/distribution/component/service-object/platform/index.d.ts.map +1 -1
- package/distribution/component/service-object/platform/index.js +36 -3
- package/distribution/component/service-object/platform/index.js.map +1 -1
- package/distribution/component/service-object/platform/index.module.css +1 -1
- package/distribution/component/service-object/platform/index.module.scss +139 -35
- package/distribution/component/service-object/product-launch/index.d.ts +5 -1
- package/distribution/component/service-object/product-launch/index.d.ts.map +1 -1
- package/distribution/component/service-object/product-launch/index.js +10 -2
- package/distribution/component/service-object/product-launch/index.js.map +1 -1
- package/distribution/component/service-object/product-launch/index.module.css +1 -1
- package/distribution/component/service-object/product-launch/index.module.scss +145 -74
- package/distribution/component/service-object/professional-email/index.d.ts +6 -0
- package/distribution/component/service-object/professional-email/index.d.ts.map +1 -0
- package/distribution/component/service-object/professional-email/index.js +12 -0
- package/distribution/component/service-object/professional-email/index.js.map +1 -0
- package/distribution/component/service-object/professional-email/index.module.css +1 -0
- package/distribution/component/service-object/professional-email/index.module.scss +153 -0
- package/distribution/component/service-object/rebranding/index.d.ts +4 -1
- package/distribution/component/service-object/rebranding/index.d.ts.map +1 -1
- package/distribution/component/service-object/rebranding/index.js +5 -3
- package/distribution/component/service-object/rebranding/index.js.map +1 -1
- package/distribution/component/service-object/rebranding/index.module.css +1 -1
- package/distribution/component/service-object/rebranding/index.module.scss +88 -44
- package/distribution/component/services/index.d.ts +1 -2
- package/distribution/component/services/index.d.ts.map +1 -1
- package/distribution/component/services/index.js +1 -2
- package/distribution/component/services/index.js.map +1 -1
- package/distribution/component/structured-data/index.d.ts.map +1 -1
- package/distribution/component/structured-data/index.js +3 -2
- package/distribution/component/structured-data/index.js.map +1 -1
- package/distribution/content/contact/index.d.ts +28 -28
- package/distribution/content/services/index.d.ts +67 -67
- package/distribution/content/services/index.js +49 -49
- 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 +8 -6
- package/distribution/content/site/index.js.map +1 -1
- package/llms.txt +3 -1
- package/package.json +2 -2
- package/distribution/component/service-object/application-programming-interface/index.d.ts +0 -6
- package/distribution/component/service-object/application-programming-interface/index.d.ts.map +0 -1
- package/distribution/component/service-object/application-programming-interface/index.js +0 -11
- package/distribution/component/service-object/application-programming-interface/index.js.map +0 -1
- package/distribution/component/service-object/application-programming-interface/index.module.css +0 -1
- package/distribution/component/service-object/application-programming-interface/index.module.scss +0 -154
- package/distribution/component/service-object/content-management-system/index.d.ts +0 -6
- package/distribution/component/service-object/content-management-system/index.d.ts.map +0 -1
- package/distribution/component/service-object/content-management-system/index.js +0 -10
- package/distribution/component/service-object/content-management-system/index.js.map +0 -1
- package/distribution/component/service-object/content-management-system/index.module.css +0 -1
- package/distribution/component/service-object/content-management-system/index.module.scss +0 -181
|
@@ -1 +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,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/service-object/branding-design/index.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,qBAA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GAAG,CAAC,CAAC,CAAC,GAAI,EACxF,MAAM,IAAI,KAAC,IAAI,IAAC,SAAS,EAAC,GAAG,EAAC,MAAM,EAAE,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAE,GAAG,CAAC,CAAC,CAAC,GAAI,IACpF,EAEP,eAAM,SAAS,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC,EAAC,wDAAwD,YACxF,MAAM,CAAC,CAAC,CAAC,CACR,2BACE,aAAa,EAAC,WAAW,EACzB,IAAI,EAAC,WAAW,EAChB,MAAM,EAAE;wBACN,SAAS;wBACT,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,KAAK,EAAE,EAAE,CAAC,GAAG,EAAE,IAAI,QAAQ,CAAC,KAAK,GAAG,CAAC,CAAC,EAAE,CAAC;wBAC3E,SAAS;qBACV,CAAC,IAAI,CAAC,GAAG,CAAC,EACX,GAAG,EAAE,QAAQ,EACb,QAAQ,EAAE,SAAS,EACnB,QAAQ,EAAC,QAAQ,EACjB,UAAU,EAAE,WAAW,EACvB,WAAW,EAAC,YAAY,GACxB,CACH,CAAC,CAAC,CAAC,IAAI,GACH,IACH,CACP,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,cAAc;IAC5B,OAAO,CACL,cAAK,SAAS,EAAE,MAAM,CAAC,MAAM,YAC3B,eAAK,SAAS,EAAE,MAAM,CAAC,QAAQ,aAC7B,KAAC,OAAO,IAAC,MAAM,SAAG,EAClB,KAAC,OAAO,IAAC,MAAM,EAAE,KAAK,GAAI,IACtB,GACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
.object{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d;animation:branding-design-sway 10s ease-in-out infinite}@media(prefers-reduced-motion: reduce){.object{animation:none}}.object{transform:rotateX(14deg) rotateY(-16deg)}@keyframes branding-design-sway{0%,100%{transform:rotateX(14deg) rotateY(-18deg)}50%{transform:rotateX(8deg) rotateY(-4deg)}}.artboard{position:absolute;left:50%;top:50%;width:200px;height:150px;margin:-75px 0 0 -100px;transform-style:preserve-3d;box-sizing:border-box;background:color-mix(in srgb, var(--foreground) 4%, transparent);border:1px solid color-mix(in srgb, var(--foreground) 40%, transparent);border-radius:8px;background:linear-gradient(color-mix(in srgb, var(--foreground) 7%, transparent) 1px, transparent 1px) 0 0/20px 20px,linear-gradient(90deg, color-mix(in srgb, var(--foreground) 7%, transparent) 1px, transparent 1px) 0 0/20px 20px,color-mix(in srgb, var(--foreground) 3%, transparent);box-shadow:0 24px 50px -26px color-mix(in srgb, var(--foreground) 35%, transparent)}.artboard svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}.still{display:none}@media(prefers-reduced-motion: reduce){.moving{display:none}.still{display:block}}.curve{fill:none;stroke:var(--foreground);stroke-width:4;stroke-linecap:round}.handle{stroke:color-mix(in srgb, var(--foreground) 55%, transparent);stroke-width:1}.knob{fill:var(--background);stroke:color-mix(in srgb, var(--foreground) 70%, transparent);stroke-width:1.2}.anchor{fill:var(--background);stroke:color-mix(in srgb, var(--foreground) 70%, transparent);stroke-width:1.2}.selected{fill:var(--foreground);stroke:var(--background);stroke-width:1}.pointer{fill:var(--foreground);stroke:var(--background);stroke-width:1.2;stroke-linejoin:round}
|
|
@@ -1,61 +1,78 @@
|
|
|
1
|
-
@use "sass:list";
|
|
2
1
|
@use "style/token" as *;
|
|
3
2
|
@use "style/object" as *;
|
|
4
3
|
|
|
5
|
-
@property --swatch-fan {
|
|
6
|
-
syntax: "<angle>";
|
|
7
|
-
inherits: true;
|
|
8
|
-
initial-value: 12deg;
|
|
9
|
-
}
|
|
10
4
|
.object {
|
|
11
5
|
@include centered(0px, 0px);
|
|
12
|
-
@include loop(
|
|
13
|
-
transform:
|
|
6
|
+
@include loop(branding-design-sway 10s ease-in-out infinite);
|
|
7
|
+
transform: rotateX(14deg) rotateY(-16deg);
|
|
14
8
|
}
|
|
15
|
-
@keyframes
|
|
9
|
+
@keyframes branding-design-sway {
|
|
16
10
|
0%,
|
|
17
11
|
100% {
|
|
18
|
-
|
|
12
|
+
transform: rotateX(14deg) rotateY(-18deg);
|
|
13
|
+
}
|
|
14
|
+
50% {
|
|
15
|
+
transform: rotateX(8deg) rotateY(-4deg);
|
|
19
16
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
}
|
|
18
|
+
/* The artboard: a sheet with a faint grid, the drawing on it. */
|
|
19
|
+
.artboard {
|
|
20
|
+
@include centered(200px, 150px);
|
|
21
|
+
@include face(4%, 40%);
|
|
22
|
+
border-radius: 8px;
|
|
23
|
+
background:
|
|
24
|
+
linear-gradient(tint(7%) 1px, transparent 1px) 0 0 / 20px 20px,
|
|
25
|
+
linear-gradient(90deg, tint(7%) 1px, transparent 1px) 0 0 / 20px 20px,
|
|
26
|
+
tint(3%);
|
|
27
|
+
box-shadow: 0 24px 50px -26px tint(35%);
|
|
28
|
+
svg {
|
|
29
|
+
position: absolute;
|
|
30
|
+
inset: 0;
|
|
31
|
+
width: 100%;
|
|
32
|
+
height: 100%;
|
|
33
|
+
overflow: visible;
|
|
23
34
|
}
|
|
24
35
|
}
|
|
25
|
-
|
|
26
|
-
.
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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
|
-
}
|
|
36
|
+
/* The moving drawing, or the still one for visitors who ask for less motion (SVG animations ignore that setting). */
|
|
37
|
+
.still {
|
|
38
|
+
display: none;
|
|
39
|
+
}
|
|
40
|
+
@media (prefers-reduced-motion: reduce) {
|
|
41
|
+
.moving {
|
|
42
|
+
display: none;
|
|
43
|
+
}
|
|
44
|
+
.still {
|
|
45
|
+
display: block;
|
|
40
46
|
}
|
|
41
47
|
}
|
|
42
|
-
.
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
48
|
+
.curve {
|
|
49
|
+
fill: none;
|
|
50
|
+
stroke: var(--foreground);
|
|
51
|
+
stroke-width: 4;
|
|
52
|
+
stroke-linecap: round;
|
|
53
|
+
}
|
|
54
|
+
.handle {
|
|
55
|
+
stroke: tint(55%);
|
|
56
|
+
stroke-width: 1;
|
|
57
|
+
}
|
|
58
|
+
.knob {
|
|
59
|
+
fill: var(--background);
|
|
60
|
+
stroke: tint(70%);
|
|
61
|
+
stroke-width: 1.2;
|
|
62
|
+
}
|
|
63
|
+
.anchor {
|
|
64
|
+
fill: var(--background);
|
|
65
|
+
stroke: tint(70%);
|
|
66
|
+
stroke-width: 1.2;
|
|
67
|
+
}
|
|
68
|
+
.selected {
|
|
69
|
+
fill: var(--foreground);
|
|
70
|
+
stroke: var(--background);
|
|
71
|
+
stroke-width: 1;
|
|
72
|
+
}
|
|
73
|
+
.pointer {
|
|
74
|
+
fill: var(--foreground);
|
|
75
|
+
stroke: var(--background);
|
|
76
|
+
stroke-width: 1.2;
|
|
77
|
+
stroke-linejoin: round;
|
|
61
78
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { ApplicationProgrammingInterface } from "@sharadox/sharadox-web-library/component/service-object/application-programming-interface";
|
|
3
2
|
import { BrandAwareness } from "@sharadox/sharadox-web-library/component/service-object/brand-awareness";
|
|
4
3
|
import { Branding } from "@sharadox/sharadox-web-library/component/service-object/branding";
|
|
5
4
|
import { BrandingDesign } from "@sharadox/sharadox-web-library/component/service-object/branding-design";
|
|
6
|
-
import { ContentManagementSystem } from "@sharadox/sharadox-web-library/component/service-object/content-management-system";
|
|
7
5
|
import { ECommerce } from "@sharadox/sharadox-web-library/component/service-object/e-commerce";
|
|
6
|
+
import { Merchandise } from "@sharadox/sharadox-web-library/component/service-object/merchandise";
|
|
8
7
|
import { LeadGeneration } from "@sharadox/sharadox-web-library/component/service-object/lead-generation";
|
|
9
8
|
import { Platform } from "@sharadox/sharadox-web-library/component/service-object/platform";
|
|
10
9
|
import { PrintDesign } from "@sharadox/sharadox-web-library/component/service-object/print-design";
|
|
10
|
+
import { ProfessionalEmail } from "@sharadox/sharadox-web-library/component/service-object/professional-email";
|
|
11
11
|
import { ProductLaunch } from "@sharadox/sharadox-web-library/component/service-object/product-launch";
|
|
12
12
|
import { ProgressiveWebApplication } from "@sharadox/sharadox-web-library/component/service-object/progressive-web-application";
|
|
13
13
|
import { Rebranding } from "@sharadox/sharadox-web-library/component/service-object/rebranding";
|
|
@@ -20,13 +20,13 @@ const OBJECTS = {
|
|
|
20
20
|
website: Website,
|
|
21
21
|
platform: Platform,
|
|
22
22
|
"e-commerce": ECommerce,
|
|
23
|
-
"
|
|
24
|
-
"application-programming-interface": ApplicationProgrammingInterface,
|
|
23
|
+
"professional-email": ProfessionalEmail,
|
|
25
24
|
"progressive-web-application": ProgressiveWebApplication,
|
|
26
25
|
branding: Branding,
|
|
27
26
|
rebranding: Rebranding,
|
|
28
27
|
"branding-design": BrandingDesign,
|
|
29
28
|
"print-design": PrintDesign,
|
|
29
|
+
merchandise: Merchandise,
|
|
30
30
|
"product-launch": ProductLaunch,
|
|
31
31
|
"lead-generation": LeadGeneration,
|
|
32
32
|
"sales-generation": SalesGeneration,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/service-object/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/service-object/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,cAAc,EAAE,MAAM,yEAAyE,CAAC;AACzG,OAAO,EAAE,QAAQ,EAAE,MAAM,kEAAkE,CAAC;AAC5F,OAAO,EAAE,cAAc,EAAE,MAAM,yEAAyE,CAAC;AACzG,OAAO,EAAE,SAAS,EAAE,MAAM,oEAAoE,CAAC;AAC/F,OAAO,EAAE,WAAW,EAAE,MAAM,qEAAqE,CAAC;AAClG,OAAO,EAAE,cAAc,EAAE,MAAM,yEAAyE,CAAC;AACzG,OAAO,EAAE,QAAQ,EAAE,MAAM,kEAAkE,CAAC;AAC5F,OAAO,EAAE,WAAW,EAAE,MAAM,sEAAsE,CAAC;AACnG,OAAO,EAAE,iBAAiB,EAAE,MAAM,4EAA4E,CAAC;AAC/G,OAAO,EAAE,aAAa,EAAE,MAAM,wEAAwE,CAAC;AACvG,OAAO,EAAE,yBAAyB,EAAE,MAAM,qFAAqF,CAAC;AAChI,OAAO,EAAE,UAAU,EAAE,MAAM,oEAAoE,CAAC;AAChG,OAAO,EAAE,eAAe,EAAE,MAAM,0EAA0E,CAAC;AAC3G,OAAO,EAAE,mBAAmB,EAAE,MAAM,+EAA+E,CAAC;AACpH,OAAO,EAAE,OAAO,EAAE,MAAM,iEAAiE,CAAC;AAE1F,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC,sCAAsC;AACtC,MAAM,OAAO,GAA0C;IACrD,OAAO,EAAE,OAAO;IAChB,QAAQ,EAAE,QAAQ;IAClB,YAAY,EAAE,SAAS;IACvB,oBAAoB,EAAE,iBAAiB;IACvC,6BAA6B,EAAE,yBAAyB;IACxD,QAAQ,EAAE,QAAQ;IAClB,UAAU,EAAE,UAAU;IACtB,iBAAiB,EAAE,cAAc;IACjC,cAAc,EAAE,WAAW;IAC3B,WAAW,EAAE,WAAW;IACxB,gBAAgB,EAAE,aAAa;IAC/B,iBAAiB,EAAE,cAAc;IACjC,kBAAkB,EAAE,eAAe;IACnC,iBAAiB,EAAE,cAAc;IACjC,uBAAuB,EAAE,mBAAmB;CAC7C,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,UAAU,aAAa,CAAC,EAAE,IAAI,EAA2B;IAC7D,MAAM,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5B,OAAO,CACL,cAAK,SAAS,EAAE,MAAM,CAAC,KAAK,iCAC1B,cAAK,SAAS,EAAE,MAAM,CAAC,IAAI,YACzB,KAAC,KAAK,KAAG,GACL,GACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { MarkProperties } from "@sharadox/sharadox-web-library/component/service-object/mark/type";
|
|
2
|
+
/**
|
|
3
|
+
* A client's brand mark as the services draw it: a solid diamond in a ring, centered where it is placed. Size it with
|
|
4
|
+
* `--size` in `className`, which can also move and animate it.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* <Mark className={styles.mark} />
|
|
8
|
+
*/
|
|
9
|
+
export declare function Mark({ className }: MarkProperties): 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/mark/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mEAAmE,CAAC;AAExG;;;;;;GAMG;AACH,wBAAgB,IAAI,CAAC,EAAE,SAAS,EAAE,EAAE,cAAc,+BAEjD"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { classNames } from "@sharadox/web-library/class-name";
|
|
3
|
+
import styles from "./index.module.css";
|
|
4
|
+
/**
|
|
5
|
+
* A client's brand mark as the services draw it: a solid diamond in a ring, centered where it is placed. Size it with
|
|
6
|
+
* `--size` in `className`, which can also move and animate it.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* <Mark className={styles.mark} />
|
|
10
|
+
*/
|
|
11
|
+
export function Mark({ className }) {
|
|
12
|
+
return _jsx("span", { className: classNames(styles.mark, className) });
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/service-object/mark/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC;;;;;;GAMG;AACH,MAAM,UAAU,IAAI,CAAC,EAAE,SAAS,EAAkB;IAChD,OAAO,eAAM,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI,EAAE,SAAS,CAAC,GAAI,CAAC;AACjE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.mark{--size: 36px;position:absolute;left:50%;top:50%;width:var(--size);height:var(--size);margin:calc(var(--size)/-2) 0 0 calc(var(--size)/-2);transform-style:preserve-3d;border-radius:50%;background:var(--background);border:1px solid color-mix(in srgb, var(--foreground) 70%, transparent)}.mark::before{content:"";position:absolute;inset:28%;border:calc(var(--size)/9) solid var(--foreground);border-radius:2px;transform:rotate(45deg)}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
@use "style/token" as *;
|
|
2
|
+
|
|
3
|
+
.mark {
|
|
4
|
+
--size: 36px;
|
|
5
|
+
position: absolute;
|
|
6
|
+
left: 50%;
|
|
7
|
+
top: 50%;
|
|
8
|
+
width: var(--size);
|
|
9
|
+
height: var(--size);
|
|
10
|
+
margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2);
|
|
11
|
+
transform-style: preserve-3d;
|
|
12
|
+
border-radius: 50%;
|
|
13
|
+
background: var(--background);
|
|
14
|
+
border: 1px solid tint(70%);
|
|
15
|
+
&::before {
|
|
16
|
+
content: "";
|
|
17
|
+
position: absolute;
|
|
18
|
+
inset: 28%;
|
|
19
|
+
border: calc(var(--size) / 9) solid var(--foreground);
|
|
20
|
+
border-radius: 2px;
|
|
21
|
+
transform: rotate(45deg);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../source/component/service-object/mark/type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,sDAAsD;IACtD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../source/component/service-object/mark/type.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Merchandise: a T-shirt with the brand's mark on its chest, swaying beside a branded bottle turning on the spot, so
|
|
3
|
+
* the label comes round again and again.
|
|
4
|
+
*/
|
|
5
|
+
export declare function Merchandise(): 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/merchandise/index.tsx"],"names":[],"mappings":"AAMA;;;GAGG;AACH,wBAAgB,WAAW,gCA0B1B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import styles from "./index.module.css";
|
|
3
|
+
/** Faces around the bottle; the label shows on these. */
|
|
4
|
+
const SIDES = 14;
|
|
5
|
+
const LABEL = [0, 1, 2, 3];
|
|
6
|
+
/**
|
|
7
|
+
* Merchandise: a T-shirt with the brand's mark on its chest, swaying beside a branded bottle turning on the spot, so
|
|
8
|
+
* the label comes round again and again.
|
|
9
|
+
*/
|
|
10
|
+
export function Merchandise() {
|
|
11
|
+
return (_jsxs("div", { className: styles.object, children: [_jsxs("div", { className: styles.shirt, children: [_jsx("i", { className: styles.collar }), _jsx("i", { className: styles.mark })] }), _jsxs("div", { className: styles.bottle, children: [Array.from({ length: SIDES }, (_, side) => (_jsx("span", { className: styles.side, "data-label": LABEL.includes(side) || undefined, style: { transform: `rotateY(${(side * 360) / SIDES}deg) translateZ(23px)` } }, side))), Array.from({ length: 8 }, (_, side) => (_jsx("span", { className: styles.cap, style: { transform: `translateY(-66px) rotateY(${side * 45}deg) translateZ(13px)` } }, side)))] })] }));
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/service-object/merchandise/index.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,yDAAyD;AACzD,MAAM,KAAK,GAAG,EAAE,CAAC;AACjB,MAAM,KAAK,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AAE3B;;;GAGG;AACH,MAAM,UAAU,WAAW;IACzB,OAAO,CACL,eAAK,SAAS,EAAE,MAAM,CAAC,MAAM,aAC3B,eAAK,SAAS,EAAE,MAAM,CAAC,KAAK,aAC1B,YAAG,SAAS,EAAE,MAAM,CAAC,MAAM,GAAI,EAC/B,YAAG,SAAS,EAAE,MAAM,CAAC,IAAI,GAAI,IACzB,EACN,eAAK,SAAS,EAAE,MAAM,CAAC,MAAM,aAC1B,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,CAC1C,eAEE,SAAS,EAAE,MAAM,CAAC,IAAI,gBACV,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,SAAS,EAC7C,KAAK,EAAE,EAAE,SAAS,EAAE,WAAW,CAAC,IAAI,GAAG,GAAG,CAAC,GAAG,KAAK,uBAAuB,EAAE,IAHvE,IAAI,CAIT,CACH,CAAC,EACD,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,CACtC,eAEE,SAAS,EAAE,MAAM,CAAC,GAAG,EACrB,KAAK,EAAE,EAAE,SAAS,EAAE,6BAA6B,IAAI,GAAG,EAAE,uBAAuB,EAAE,IAF9E,IAAI,CAGT,CACH,CAAC,IACE,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;transform:rotateX(-12deg)}.shirt{position:absolute;left:50%;top:50%;width:150px;height:150px;margin:-75px 0 0 -75px;transform-style:preserve-3d;animation:merch-sway 8s ease-in-out infinite}@media(prefers-reduced-motion: reduce){.shirt{animation:none}}.shirt{transform:translate3d(-58px, 4px, -20px) rotateY(18deg);background:color-mix(in srgb, var(--foreground) 16%, transparent);clip-path:polygon(30% 6%, 41% 6%, 50% 13%, 59% 6%, 70% 6%, 97% 24%, 86% 42%, 75% 36%, 75% 96%, 25% 96%, 25% 36%, 14% 42%, 3% 24%)}@keyframes merch-sway{0%,100%{transform:translate3d(-58px, 4px, -20px) rotateY(24deg) rotateZ(-2deg)}50%{transform:translate3d(-58px, 0px, -20px) rotateY(-10deg) rotateZ(2deg)}}.collar{position:absolute;left:41%;top:6%;width:18%;height:9%;border-radius:0 0 50% 50%;background:color-mix(in srgb, var(--foreground) 34%, transparent)}.mark{position:absolute;left:50%;top:38%;width:22px;height:22px;margin-left:-11px;border-radius:3px;border:5px solid var(--foreground);transform:rotate(45deg)}.bottle{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d;animation:merch-turn 7s linear infinite}@media(prefers-reduced-motion: reduce){.bottle{animation:none}}.bottle{transform:translate3d(76px, 12px, 30px)}@keyframes merch-turn{from{transform:translate3d(76px, 12px, 30px) rotateY(0deg)}to{transform:translate3d(76px, 12px, 30px) rotateY(360deg)}}.side{position:absolute;left:50%;top:50%;width:11px;height:112px;margin:-56px 0 0 -5.5px;transform-style:preserve-3d;border-top:1px solid color-mix(in srgb, var(--foreground) 45%, transparent);border-bottom:1px solid color-mix(in srgb, var(--foreground) 45%, transparent);border-radius:2px;background:color-mix(in srgb, var(--foreground) 10%, transparent);box-shadow:inset 1px 0 0 color-mix(in srgb, var(--foreground) 18%, transparent);backface-visibility:hidden}.side[data-label]{background:linear-gradient(transparent 30%, color-mix(in srgb, var(--foreground) 55%, transparent) 30%, color-mix(in srgb, var(--foreground) 55%, transparent) 66%, transparent 66%),color-mix(in srgb, var(--foreground) 10%, transparent)}.cap{position:absolute;left:50%;top:50%;width:11px;height:20px;margin:-10px 0 0 -5.5px;transform-style:preserve-3d;border-radius:2px;background:color-mix(in srgb, var(--foreground) 30%, transparent);border-top:1px solid color-mix(in srgb, var(--foreground) 60%, transparent);backface-visibility:hidden}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
@use "style/token" as *;
|
|
2
|
+
@use "style/object" as *;
|
|
3
|
+
|
|
4
|
+
.object {
|
|
5
|
+
@include centered(0px, 0px);
|
|
6
|
+
transform: rotateX(-12deg);
|
|
7
|
+
}
|
|
8
|
+
/* A T-shirt, cut from a flat face. */
|
|
9
|
+
.shirt {
|
|
10
|
+
@include centered(150px, 150px);
|
|
11
|
+
@include loop(merch-sway 8s ease-in-out infinite);
|
|
12
|
+
transform: translate3d(-58px, 4px, -20px) rotateY(18deg);
|
|
13
|
+
background: tint(16%);
|
|
14
|
+
clip-path: polygon(
|
|
15
|
+
30% 6%,
|
|
16
|
+
41% 6%,
|
|
17
|
+
50% 13%,
|
|
18
|
+
59% 6%,
|
|
19
|
+
70% 6%,
|
|
20
|
+
97% 24%,
|
|
21
|
+
86% 42%,
|
|
22
|
+
75% 36%,
|
|
23
|
+
75% 96%,
|
|
24
|
+
25% 96%,
|
|
25
|
+
25% 36%,
|
|
26
|
+
14% 42%,
|
|
27
|
+
3% 24%
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
@keyframes merch-sway {
|
|
31
|
+
0%,
|
|
32
|
+
100% {
|
|
33
|
+
transform: translate3d(-58px, 4px, -20px) rotateY(24deg) rotateZ(-2deg);
|
|
34
|
+
}
|
|
35
|
+
50% {
|
|
36
|
+
transform: translate3d(-58px, 0px, -20px) rotateY(-10deg) rotateZ(2deg);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
.collar {
|
|
40
|
+
position: absolute;
|
|
41
|
+
left: 41%;
|
|
42
|
+
top: 6%;
|
|
43
|
+
width: 18%;
|
|
44
|
+
height: 9%;
|
|
45
|
+
border-radius: 0 0 50% 50%;
|
|
46
|
+
background: tint(34%);
|
|
47
|
+
}
|
|
48
|
+
.mark {
|
|
49
|
+
position: absolute;
|
|
50
|
+
left: 50%;
|
|
51
|
+
top: 38%;
|
|
52
|
+
width: 22px;
|
|
53
|
+
height: 22px;
|
|
54
|
+
margin-left: -11px;
|
|
55
|
+
border-radius: 3px;
|
|
56
|
+
border: 5px solid var(--foreground);
|
|
57
|
+
transform: rotate(45deg);
|
|
58
|
+
}
|
|
59
|
+
/* A bottle: a ring of faces around its axis, turning. */
|
|
60
|
+
.bottle {
|
|
61
|
+
@include centered(0px, 0px);
|
|
62
|
+
@include loop(merch-turn 7s linear infinite);
|
|
63
|
+
transform: translate3d(76px, 12px, 30px);
|
|
64
|
+
}
|
|
65
|
+
@keyframes merch-turn {
|
|
66
|
+
from {
|
|
67
|
+
transform: translate3d(76px, 12px, 30px) rotateY(0deg);
|
|
68
|
+
}
|
|
69
|
+
to {
|
|
70
|
+
transform: translate3d(76px, 12px, 30px) rotateY(360deg);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
.side {
|
|
74
|
+
@include centered(11px, 112px);
|
|
75
|
+
border-top: 1px solid tint(45%);
|
|
76
|
+
border-bottom: 1px solid tint(45%);
|
|
77
|
+
border-radius: 2px;
|
|
78
|
+
background: tint(10%);
|
|
79
|
+
box-shadow: inset 1px 0 0 tint(18%);
|
|
80
|
+
backface-visibility: hidden;
|
|
81
|
+
&[data-label] {
|
|
82
|
+
background: linear-gradient(transparent 30%, tint(55%) 30%, tint(55%) 66%, transparent 66%), tint(10%);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
.cap {
|
|
86
|
+
@include centered(11px, 20px);
|
|
87
|
+
border-radius: 2px;
|
|
88
|
+
background: tint(30%);
|
|
89
|
+
border-top: 1px solid tint(60%);
|
|
90
|
+
backface-visibility: hidden;
|
|
91
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { PersonProperties } from "@sharadox/sharadox-web-library/component/service-object/person/type";
|
|
2
|
+
/**
|
|
3
|
+
* A person, flat and facing out: a head over a pair of shoulders, centered where it is placed, in the style's colors.
|
|
4
|
+
* Size it with `--size` (its width) and tint it with `--person` (a color) in `className`.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* <Person className={styles.client} />
|
|
8
|
+
*/
|
|
9
|
+
export declare function Person({ className }: PersonProperties): 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/person/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qEAAqE,CAAC;AAE5G;;;;;;GAMG;AACH,wBAAgB,MAAM,CAAC,EAAE,SAAS,EAAE,EAAE,gBAAgB,+BAErD"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { classNames } from "@sharadox/web-library/class-name";
|
|
3
|
+
import styles from "./index.module.css";
|
|
4
|
+
/**
|
|
5
|
+
* A person, flat and facing out: a head over a pair of shoulders, centered where it is placed, in the style's colors.
|
|
6
|
+
* Size it with `--size` (its width) and tint it with `--person` (a color) in `className`.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* <Person className={styles.client} />
|
|
10
|
+
*/
|
|
11
|
+
export function Person({ className }) {
|
|
12
|
+
return _jsx("span", { className: classNames(styles.person, className) });
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/service-object/person/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC;;;;;;GAMG;AACH,MAAM,UAAU,MAAM,CAAC,EAAE,SAAS,EAAoB;IACpD,OAAO,eAAM,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAI,CAAC;AACnE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.person{--size: 22px;--person: color-mix(in srgb, var(--foreground) 55%, transparent);position:absolute;width:var(--size);height:var(--size);margin:calc(var(--size)/-2) 0 0 calc(var(--size)/-2)}.person::before{content:"";position:absolute;left:30%;top:0;width:40%;height:40%;border-radius:50%;background:var(--person)}.person::after{content:"";position:absolute;left:6%;bottom:0;width:88%;height:50%;border-radius:50% 50% 18% 18%/70% 70% 18% 18%;background:var(--person)}@property --person{syntax:"<color>";inherits:true;initial-value:rgba(0,0,0,0)}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
@use "style/token" as *;
|
|
2
|
+
|
|
3
|
+
.person {
|
|
4
|
+
--size: 22px;
|
|
5
|
+
--person: #{tint(55%)};
|
|
6
|
+
position: absolute;
|
|
7
|
+
width: var(--size);
|
|
8
|
+
height: var(--size);
|
|
9
|
+
margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2);
|
|
10
|
+
// The head.
|
|
11
|
+
&::before {
|
|
12
|
+
content: "";
|
|
13
|
+
position: absolute;
|
|
14
|
+
left: 30%;
|
|
15
|
+
top: 0;
|
|
16
|
+
width: 40%;
|
|
17
|
+
height: 40%;
|
|
18
|
+
border-radius: 50%;
|
|
19
|
+
background: var(--person);
|
|
20
|
+
}
|
|
21
|
+
// The shoulders.
|
|
22
|
+
&::after {
|
|
23
|
+
content: "";
|
|
24
|
+
position: absolute;
|
|
25
|
+
left: 6%;
|
|
26
|
+
bottom: 0;
|
|
27
|
+
width: 88%;
|
|
28
|
+
height: 50%;
|
|
29
|
+
border-radius: 50% 50% 18% 18% / 70% 70% 18% 18%;
|
|
30
|
+
background: var(--person);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
/* Registered, so a change of color can be animated smoothly. */
|
|
34
|
+
@property --person {
|
|
35
|
+
syntax: "<color>";
|
|
36
|
+
inherits: true;
|
|
37
|
+
initial-value: transparent;
|
|
38
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../source/component/service-object/person/type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,wDAAwD;IACxD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../source/component/service-object/person/type.ts"],"names":[],"mappings":""}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* Platforms: a company's way of working, made digital. Its people sit around one system, joined to it by lines; a
|
|
3
|
+
* message leaves one person, goes through the system (whose gear keeps turning and whose tasks tick themselves off)
|
|
4
|
+
* and reaches the next person, who lights up, then that person sends the next one.
|
|
5
|
+
*/
|
|
2
6
|
export declare function Platform(): import("react").JSX.Element;
|
|
3
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/service-object/platform/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/service-object/platform/index.tsx"],"names":[],"mappings":"AAgCA;;;;GAIG;AACH,wBAAgB,QAAQ,gCAqCvB"}
|
|
@@ -1,8 +1,41 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Person } from "@sharadox/sharadox-web-library/component/service-object/person";
|
|
3
3
|
import styles from "./index.module.css";
|
|
4
|
-
/**
|
|
4
|
+
/** The system's screen sits in the middle of the board; its row is where every line meets. */
|
|
5
|
+
const HUB = { x: 100, y: 75 };
|
|
6
|
+
/** The people around it: the team and the clients, one at each corner of the board. */
|
|
7
|
+
const PEOPLE = [
|
|
8
|
+
{ x: 28, y: 26 },
|
|
9
|
+
{ x: 172, y: 26 },
|
|
10
|
+
{ x: 172, y: 124 },
|
|
11
|
+
{ x: 28, y: 124 },
|
|
12
|
+
];
|
|
13
|
+
/** Who sends to whom, in turn: each message goes through the system, which passes it on by itself. */
|
|
14
|
+
const ROUTES = [
|
|
15
|
+
[0, 2],
|
|
16
|
+
[2, 1],
|
|
17
|
+
[1, 3],
|
|
18
|
+
[3, 0],
|
|
19
|
+
];
|
|
20
|
+
/** Seconds each message takes; the routes follow one another, so a round lasts four of them. */
|
|
21
|
+
const TRIP = 2;
|
|
22
|
+
/** The line from a person into the system: down (or up) from them, then across into the screen's side. */
|
|
23
|
+
const line = ({ x, y }) => `M${x} ${y} Q${x} ${HUB.y} ${HUB.x} ${HUB.y}`;
|
|
24
|
+
/** A message's way: from the sender into the system, then out along the receiver's line. */
|
|
25
|
+
const route = (from, to) => {
|
|
26
|
+
const sender = PEOPLE[from];
|
|
27
|
+
const receiver = PEOPLE[to];
|
|
28
|
+
return `path("${line(sender)} Q${receiver.x} ${HUB.y} ${receiver.x} ${receiver.y}")`;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Platforms: a company's way of working, made digital. Its people sit around one system, joined to it by lines; a
|
|
32
|
+
* message leaves one person, goes through the system (whose gear keeps turning and whose tasks tick themselves off)
|
|
33
|
+
* and reaches the next person, who lights up, then that person sends the next one.
|
|
34
|
+
*/
|
|
5
35
|
export function Platform() {
|
|
6
|
-
return (
|
|
36
|
+
return (_jsx("div", { className: styles.object, children: _jsxs("div", { className: styles.board, children: [_jsx("svg", { className: styles.lines, viewBox: "0 0 200 150", children: PEOPLE.map((person, index) => (_jsx("path", { d: line(person) }, index))) }), ROUTES.map(([from, to], index) => (_jsx("i", { className: styles.message, style: { offsetPath: route(from, to), animationDelay: `${index * TRIP}s` } }, index))), PEOPLE.map(({ x, y }, index) => {
|
|
37
|
+
const received = ROUTES.findIndex(([, to]) => to === index);
|
|
38
|
+
return (_jsx("span", { className: styles.seat, style: { left: x, top: y, "--received": `${received * TRIP + TRIP * 0.86}s` }, children: _jsx(Person, { className: styles.person }) }, index));
|
|
39
|
+
}), _jsxs("div", { className: styles.system, children: [_jsx("span", { className: styles.gear }), [0, 1, 2].map((task) => (_jsx("span", { className: styles.task, style: { animationDelay: `${task * TRIP + TRIP / 2}s` } }, task)))] })] }) }));
|
|
7
40
|
}
|
|
8
41
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/service-object/platform/index.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/service-object/platform/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,gEAAgE,CAAC;AACxF,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,8FA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AI,GAAI,EAC/B,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CACvB,eAAiB,SAAS,EAAE,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,cAAc,EAAE,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,CAAC,GAAG,EAAE,IAArF,IAAI,CAAqF,CACrG,CAAC,IACE,IACF,GACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.object{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d;animation:platform-
|
|
1
|
+
.object{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d;animation:platform-sway 12s ease-in-out infinite}@media(prefers-reduced-motion: reduce){.object{animation:none}}.object{transform:scale(1.18) rotateX(34deg) rotateZ(-10deg)}@keyframes platform-sway{0%,100%{transform:scale(1.18) rotateX(34deg) rotateZ(-10deg)}50%{transform:scale(1.18) rotateX(26deg) rotateZ(4deg)}}.board{position:absolute;left:50%;top:50%;width:200px;height:150px;margin:-75px 0 0 -100px;transform-style:preserve-3d;box-sizing:border-box;background:color-mix(in srgb, var(--foreground) 3%, transparent);border:1px solid color-mix(in srgb, var(--foreground) 30%, transparent);border-radius:10px;background:radial-gradient(circle, color-mix(in srgb, var(--foreground) 12%, transparent) 1px, transparent 1.5px) 0 0/12px 12px;box-shadow:0 24px 50px -26px color-mix(in srgb, var(--foreground) 35%, transparent)}.lines{position:absolute;inset:0;width:100%;height:100%;overflow:visible}.lines path{fill:none;stroke:color-mix(in srgb, var(--foreground) 30%, transparent);stroke-width:1.2;stroke-dasharray:3 4}.message{position:absolute;left:0;top:0;width:12px;height:9px;border-radius:2px;background:var(--foreground);box-shadow:0 0 10px color-mix(in srgb, var(--foreground) 60%, transparent);offset-rotate:0deg;opacity:0;animation:platform-message 8s linear infinite backwards}@media(prefers-reduced-motion: reduce){.message{animation:none}}@keyframes platform-message{0%{offset-distance:0%;opacity:0;animation-timing-function:cubic-bezier(0.5, 0, 0.5, 1)}3%{opacity:1}22%{opacity:1}25%{offset-distance:100%;opacity:0}100%{offset-distance:100%;opacity:0}}.seat{position:absolute;width:0;height:0}.seat::before{content:"";position:absolute;left:-17px;top:-17px;width:34px;height:34px;border-radius:50%;box-sizing:border-box;background:color-mix(in srgb, var(--foreground) 6%, transparent);border:1px solid color-mix(in srgb, var(--foreground) 30%, transparent);animation:platform-received 8s ease-out infinite backwards}@media(prefers-reduced-motion: reduce){.seat::before{animation:none}}.seat::before{animation-delay:var(--received)}@keyframes platform-received{0%{background:color-mix(in srgb, var(--foreground) 30%, transparent);border-color:var(--foreground);box-shadow:0 0 18px color-mix(in srgb, var(--foreground) 55%, transparent)}14%,100%{background:color-mix(in srgb, var(--foreground) 6%, transparent);border-color:color-mix(in srgb, var(--foreground) 30%, transparent);box-shadow:none}}.person{--size: 20px;--person: color-mix(in srgb, var(--foreground) 80%, transparent)}.system{position:absolute;left:50%;top:50%;width:64px;height:46px;margin:-23px 0 0 -32px;transform-style:preserve-3d;box-sizing:border-box;background:color-mix(in srgb, var(--foreground) 6%, transparent);border:1px solid color-mix(in srgb, var(--foreground) 55%, transparent);display:grid;align-content:end;gap:5px;padding:8px;border-radius:6px;background:var(--background);box-shadow:0 0 22px -6px color-mix(in srgb, var(--foreground) 40%, transparent)}.gear{position:absolute;right:6px;top:5px;width:11px;height:11px;border-radius:50%;border:3px dotted var(--foreground);animation:platform-gear 4s linear infinite}@media(prefers-reduced-motion: reduce){.gear{animation:none}}@keyframes platform-gear{to{transform:rotate(360deg)}}.task{height:4px;border-radius:2px;background:linear-gradient(90deg, var(--foreground) 0 var(--done, 100%), color-mix(in srgb, var(--foreground) 18%, transparent) var(--done, 100%));animation:platform-task 8s ease-in-out infinite backwards}@media(prefers-reduced-motion: reduce){.task{animation:none}}@keyframes platform-task{0%{--done: 0%}12%,100%{--done: 100%}}@property --done{syntax:"<percentage>";inherits:false;initial-value:100%}
|