@sharadox/sharadox-web-library 0.26.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/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.map +1 -1
- package/distribution/component/service-object/branding/index.js +2 -1
- 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 +1 -12
- 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/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/content/services/index.d.ts +2 -2
- package/distribution/content/services/index.js +2 -2
- package/distribution/content/services/index.js.map +1 -1
- package/llms.txt +3 -2
- package/package.json +2 -2
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* Brand awareness: being the name people think of first. The brand appears on a billboard, then in the minds of the
|
|
3
|
+
* people nearest, and spreads by word of mouth through the crowd until everyone has it in mind, all at once, before it
|
|
4
|
+
* starts again. With reduced motion, the whole crowd has it in mind.
|
|
5
|
+
*/
|
|
2
6
|
export declare function BrandAwareness(): 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/brand-awareness/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/service-object/brand-awareness/index.tsx"],"names":[],"mappings":"AA0BA;;;;GAIG;AACH,wBAAgB,cAAc,gCAuB7B"}
|
|
@@ -1,8 +1,30 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Mark } from "@sharadox/sharadox-web-library/component/service-object/mark";
|
|
3
|
+
import { Person } from "@sharadox/sharadox-web-library/component/service-object/person";
|
|
3
4
|
import styles from "./index.module.css";
|
|
4
|
-
/**
|
|
5
|
+
/** Where the brand is first seen: a billboard over the crowd. */
|
|
6
|
+
const BILLBOARD = { x: 110, y: 18 };
|
|
7
|
+
/** The crowd, in three rows (the front one lowest and largest), each row between the people of the one behind. */
|
|
8
|
+
const ROWS = [
|
|
9
|
+
{ y: 76, people: 3, spacing: 56, scale: 0.86 },
|
|
10
|
+
{ y: 120, people: 4, spacing: 56, scale: 0.93 },
|
|
11
|
+
{ y: 164, people: 3, spacing: 62, scale: 1 },
|
|
12
|
+
];
|
|
13
|
+
/** How many steps of word of mouth it takes to reach everyone: the nearest people first, the farthest last. */
|
|
14
|
+
const STEPS = 4;
|
|
15
|
+
/** Distance (on the stage) covered by one step. */
|
|
16
|
+
const STEP = 40;
|
|
17
|
+
const CROWD = ROWS.flatMap(({ y, people, spacing, scale }) => Array.from({ length: people }, (_, index) => {
|
|
18
|
+
const x = BILLBOARD.x + (index - (people - 1) / 2) * spacing;
|
|
19
|
+
const distance = Math.hypot(x - BILLBOARD.x, y - BILLBOARD.y - 40);
|
|
20
|
+
return { x, y, scale, step: Math.min(STEPS - 1, Math.floor(distance / STEP)) };
|
|
21
|
+
}));
|
|
22
|
+
/**
|
|
23
|
+
* Brand awareness: being the name people think of first. The brand appears on a billboard, then in the minds of the
|
|
24
|
+
* people nearest, and spreads by word of mouth through the crowd until everyone has it in mind, all at once, before it
|
|
25
|
+
* starts again. With reduced motion, the whole crowd has it in mind.
|
|
26
|
+
*/
|
|
5
27
|
export function BrandAwareness() {
|
|
6
|
-
return (
|
|
28
|
+
return (_jsx("div", { className: styles.object, children: _jsxs("div", { className: styles.scene, children: [_jsx("div", { className: styles.billboard, style: { left: BILLBOARD.x, top: BILLBOARD.y }, children: _jsx(Mark, { className: styles.advert }) }), CROWD.map(({ x, y, scale, step }, index) => (_jsxs("span", { className: styles.someone, "data-step": step, style: { left: x, top: y, "--scale": scale }, children: [_jsx("span", { className: styles.thought, children: _jsx(Mark, { className: styles.recall }) }), _jsx(Person, { className: styles.person })] }, index)))] }) }));
|
|
7
29
|
}
|
|
8
30
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/service-object/brand-awareness/index.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/service-object/brand-awareness/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,MAAM,8DAA8D,CAAC;AACpF,OAAO,EAAE,MAAM,EAAE,MAAM,gEAAgE,CAAC;AACxF,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,iEAAiE;AACjE,MAAM,SAAS,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;AACpC,kHAAkH;AAClH,MAAM,IAAI,GAAG;IACX,EAAE,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE;IAC9C,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE;IAC/C,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE;CAC7C,CAAC;AACF,+GAA+G;AAC/G,MAAM,KAAK,GAAG,CAAC,CAAC;AAChB,mDAAmD;AACnD,MAAM,IAAI,GAAG,EAAE,CAAC;AAEhB,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,CAC3D,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE;IAC1C,MAAM,CAAC,GAAG,SAAS,CAAC,CAAC,GAAG,CAAC,KAAK,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,OAAO,CAAC;IAC7D,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC;IACnE,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,KAAK,GAAG,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC;AACjF,CAAC,CAAC,CACH,CAAC;AAEF;;;;GAIG;AACH,MAAM,UAAU,cAAc;IAC5B,OAAO,CACL,cAAK,SAAS,EAAE,MAAM,CAAC,MAAM,YAC3B,eAAK,SAAS,EAAE,MAAM,CAAC,KAAK,aAC1B,cAAK,SAAS,EAAE,MAAM,CAAC,SAAS,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,SAAS,CAAC,CAAC,EAAE,GAAG,EAAE,SAAS,CAAC,CAAC,EAAE,YAC9E,KAAC,IAAI,IAAC,SAAS,EAAE,MAAM,CAAC,MAAM,GAAI,GAC9B,EACL,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,CAAC,CAC3C,gBAEE,SAAS,EAAE,MAAM,CAAC,OAAO,eACd,IAAI,EACf,KAAK,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,SAAS,EAAE,KAAK,EAAmB,aAE7D,eAAM,SAAS,EAAE,MAAM,CAAC,OAAO,YAC7B,KAAC,IAAI,IAAC,SAAS,EAAE,MAAM,CAAC,MAAM,GAAI,GAC7B,EACP,KAAC,MAAM,IAAC,SAAS,EAAE,MAAM,CAAC,MAAM,GAAI,KAR/B,KAAK,CASL,CACR,CAAC,IACE,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:awareness-
|
|
1
|
+
.object{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d;animation:awareness-sway 12s ease-in-out infinite}@media(prefers-reduced-motion: reduce){.object{animation:none}}.object{transform:scale(1.08) rotateX(16deg) rotateY(-12deg)}@keyframes awareness-sway{0%,100%{transform:scale(1.08) rotateX(16deg) rotateY(-12deg)}50%{transform:scale(1.08) rotateX(10deg) rotateY(10deg)}}.scene{position:absolute;left:50%;top:50%;width:220px;height:184px;margin:-92px 0 0 -110px;transform-style:preserve-3d;transform:translateY(-6px)}.billboard{position:absolute;width:70px;height:34px;margin:-17px 0 0 -35px;box-sizing:border-box;background:color-mix(in srgb, var(--foreground) 6%, transparent);border:1px solid color-mix(in srgb, var(--foreground) 55%, transparent);border-radius:4px;animation:awareness-billboard 8s ease-out infinite}@media(prefers-reduced-motion: reduce){.billboard{animation:none}}.billboard::before,.billboard::after{content:"";position:absolute;top:100%;width:1px;height:10px;background:color-mix(in srgb, var(--foreground) 40%, transparent)}.billboard::before{left:20%}.billboard::after{right:20%}@keyframes awareness-billboard{0%{box-shadow:none}4%{box-shadow:0 0 24px -2px color-mix(in srgb, var(--foreground) 55%, transparent)}54%{box-shadow:none}}.advert{--size: 24px}.someone{position:absolute;width:0;height:0;transform:scale(var(--scale))}.person{--size: 24px;--person: var(--foreground)}.thought{position:absolute;left:4px;top:-40px;width:26px;height:26px}.thought::before,.thought::after{content:"";position:absolute;border-radius:50%;background:color-mix(in srgb, var(--foreground) 55%, transparent)}.thought::before{left:-1px;bottom:-7px;width:4px;height:4px}.thought::after{left:-5px;bottom:-12px;width:3px;height:3px}.recall{--size: 24px;left:50%;top:50%}.someone[data-step="0"] .thought{animation:awareness-thought-0 8s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.someone[data-step="0"] .thought{animation:none}}.someone[data-step="0"] .person{animation:awareness-person-0 8s ease-out infinite}@media(prefers-reduced-motion: reduce){.someone[data-step="0"] .person{animation:none}}@keyframes awareness-thought-0{0%,14%{opacity:0;transform:translateY(6px) scale(0.3)}19%,64%{opacity:1;transform:translateY(0) scale(1);filter:none}68%{transform:translateY(-3px) scale(1.15);filter:drop-shadow(0 0 8px color-mix(in srgb, var(--foreground) 70%, transparent))}74%,88%{opacity:1;transform:translateY(0) scale(1);filter:none}94%,100%{opacity:0;transform:translateY(-6px) scale(0.6)}}@keyframes awareness-person-0{0%,14%{--person: color-mix(in srgb, var(--foreground) 35%, transparent)}19%,88%{--person: var(--foreground)}94%,100%{--person: color-mix(in srgb, var(--foreground) 35%, transparent)}}.someone[data-step="1"] .thought{animation:awareness-thought-1 8s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.someone[data-step="1"] .thought{animation:none}}.someone[data-step="1"] .person{animation:awareness-person-1 8s ease-out infinite}@media(prefers-reduced-motion: reduce){.someone[data-step="1"] .person{animation:none}}@keyframes awareness-thought-1{0%,25%{opacity:0;transform:translateY(6px) scale(0.3)}30%,64%{opacity:1;transform:translateY(0) scale(1);filter:none}68%{transform:translateY(-3px) scale(1.15);filter:drop-shadow(0 0 8px color-mix(in srgb, var(--foreground) 70%, transparent))}74%,88%{opacity:1;transform:translateY(0) scale(1);filter:none}94%,100%{opacity:0;transform:translateY(-6px) scale(0.6)}}@keyframes awareness-person-1{0%,25%{--person: color-mix(in srgb, var(--foreground) 35%, transparent)}30%,88%{--person: var(--foreground)}94%,100%{--person: color-mix(in srgb, var(--foreground) 35%, transparent)}}.someone[data-step="2"] .thought{animation:awareness-thought-2 8s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.someone[data-step="2"] .thought{animation:none}}.someone[data-step="2"] .person{animation:awareness-person-2 8s ease-out infinite}@media(prefers-reduced-motion: reduce){.someone[data-step="2"] .person{animation:none}}@keyframes awareness-thought-2{0%,36%{opacity:0;transform:translateY(6px) scale(0.3)}41%,64%{opacity:1;transform:translateY(0) scale(1);filter:none}68%{transform:translateY(-3px) scale(1.15);filter:drop-shadow(0 0 8px color-mix(in srgb, var(--foreground) 70%, transparent))}74%,88%{opacity:1;transform:translateY(0) scale(1);filter:none}94%,100%{opacity:0;transform:translateY(-6px) scale(0.6)}}@keyframes awareness-person-2{0%,36%{--person: color-mix(in srgb, var(--foreground) 35%, transparent)}41%,88%{--person: var(--foreground)}94%,100%{--person: color-mix(in srgb, var(--foreground) 35%, transparent)}}.someone[data-step="3"] .thought{animation:awareness-thought-3 8s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.someone[data-step="3"] .thought{animation:none}}.someone[data-step="3"] .person{animation:awareness-person-3 8s ease-out infinite}@media(prefers-reduced-motion: reduce){.someone[data-step="3"] .person{animation:none}}@keyframes awareness-thought-3{0%,47%{opacity:0;transform:translateY(6px) scale(0.3)}52%,64%{opacity:1;transform:translateY(0) scale(1);filter:none}68%{transform:translateY(-3px) scale(1.15);filter:drop-shadow(0 0 8px color-mix(in srgb, var(--foreground) 70%, transparent))}74%,88%{opacity:1;transform:translateY(0) scale(1);filter:none}94%,100%{opacity:0;transform:translateY(-6px) scale(0.6)}}@keyframes awareness-person-3{0%,47%{--person: color-mix(in srgb, var(--foreground) 35%, transparent)}52%,88%{--person: var(--foreground)}94%,100%{--person: color-mix(in srgb, var(--foreground) 35%, transparent)}}
|
|
@@ -1,89 +1,168 @@
|
|
|
1
|
-
@use "sass:math";
|
|
2
1
|
@use "style/token" as *;
|
|
3
2
|
@use "style/object" as *;
|
|
4
3
|
|
|
4
|
+
/* One round: the billboard lights, the word spreads in four steps, everyone holds it in mind together, then it clears. */
|
|
5
|
+
$round: 8s;
|
|
6
|
+
/* When the billboard lights, and when each step of the crowd (data-step 0 to 3) starts thinking of the brand. */
|
|
7
|
+
$billboard: 4%;
|
|
8
|
+
$first-step: 14%;
|
|
9
|
+
$step: 11%;
|
|
10
|
+
/* When everyone glows together, and when the minds clear for the next round. */
|
|
11
|
+
$together: 64%;
|
|
12
|
+
$clear: 88%;
|
|
13
|
+
|
|
5
14
|
.object {
|
|
6
15
|
@include centered(0px, 0px);
|
|
7
|
-
@include loop(awareness-
|
|
8
|
-
transform:
|
|
16
|
+
@include loop(awareness-sway 12s ease-in-out infinite);
|
|
17
|
+
transform: scale(1.08) rotateX(16deg) rotateY(-12deg);
|
|
9
18
|
}
|
|
10
|
-
@keyframes awareness-
|
|
11
|
-
|
|
12
|
-
|
|
19
|
+
@keyframes awareness-sway {
|
|
20
|
+
0%,
|
|
21
|
+
100% {
|
|
22
|
+
transform: scale(1.08) rotateX(16deg) rotateY(-12deg);
|
|
13
23
|
}
|
|
24
|
+
50% {
|
|
25
|
+
transform: scale(1.08) rotateX(10deg) rotateY(10deg);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
.scene {
|
|
29
|
+
@include centered(220px, 184px);
|
|
30
|
+
transform: translateY(-6px);
|
|
14
31
|
}
|
|
15
|
-
.
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
32
|
+
/* The billboard, where the brand is first seen. */
|
|
33
|
+
.billboard {
|
|
34
|
+
position: absolute;
|
|
35
|
+
width: 70px;
|
|
36
|
+
height: 34px;
|
|
37
|
+
margin: -17px 0 0 -35px;
|
|
38
|
+
@include face(6%, 55%);
|
|
39
|
+
border-radius: 4px;
|
|
40
|
+
@include loop(awareness-billboard $round ease-out infinite);
|
|
41
|
+
// Its two legs.
|
|
42
|
+
&::before,
|
|
43
|
+
&::after {
|
|
44
|
+
content: "";
|
|
22
45
|
position: absolute;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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
|
-
}
|
|
46
|
+
top: 100%;
|
|
47
|
+
width: 1px;
|
|
48
|
+
height: 10px;
|
|
49
|
+
background: tint(40%);
|
|
34
50
|
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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
|
-
}
|
|
51
|
+
&::before {
|
|
52
|
+
left: 20%;
|
|
53
|
+
}
|
|
54
|
+
&::after {
|
|
55
|
+
right: 20%;
|
|
52
56
|
}
|
|
53
57
|
}
|
|
54
|
-
@keyframes awareness-
|
|
58
|
+
@keyframes awareness-billboard {
|
|
55
59
|
0% {
|
|
56
|
-
|
|
57
|
-
opacity: 1;
|
|
60
|
+
box-shadow: none;
|
|
58
61
|
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
opacity: 0;
|
|
62
|
+
#{$billboard} {
|
|
63
|
+
box-shadow: 0 0 24px -2px tint(55%);
|
|
62
64
|
}
|
|
63
|
-
}
|
|
64
|
-
@keyframes awareness-reach {
|
|
65
|
-
0%,
|
|
66
|
-
100% {
|
|
67
|
-
background: tint(25%);
|
|
65
|
+
#{$together - 10%} {
|
|
68
66
|
box-shadow: none;
|
|
69
67
|
}
|
|
70
|
-
12% {
|
|
71
|
-
background: var(--foreground);
|
|
72
|
-
box-shadow: 0 0 10px tint(70%);
|
|
73
|
-
}
|
|
74
68
|
}
|
|
75
|
-
.
|
|
76
|
-
--
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
69
|
+
.advert {
|
|
70
|
+
--size: 24px;
|
|
71
|
+
}
|
|
72
|
+
/* Someone in the crowd, with a thought over their head that fills with the brand when the word reaches them. */
|
|
73
|
+
.someone {
|
|
74
|
+
position: absolute;
|
|
75
|
+
width: 0;
|
|
76
|
+
height: 0;
|
|
77
|
+
transform: scale(var(--scale));
|
|
78
|
+
}
|
|
79
|
+
.person {
|
|
80
|
+
--size: 24px;
|
|
81
|
+
--person: var(--foreground);
|
|
82
82
|
}
|
|
83
|
-
.
|
|
83
|
+
.thought {
|
|
84
84
|
position: absolute;
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
85
|
+
left: 4px;
|
|
86
|
+
top: -40px;
|
|
87
|
+
width: 26px;
|
|
88
|
+
height: 26px;
|
|
89
|
+
// The two little bubbles between the head and the thought.
|
|
90
|
+
&::before,
|
|
91
|
+
&::after {
|
|
92
|
+
content: "";
|
|
93
|
+
position: absolute;
|
|
94
|
+
border-radius: 50%;
|
|
95
|
+
background: tint(55%);
|
|
96
|
+
}
|
|
97
|
+
&::before {
|
|
98
|
+
left: -1px;
|
|
99
|
+
bottom: -7px;
|
|
100
|
+
width: 4px;
|
|
101
|
+
height: 4px;
|
|
102
|
+
}
|
|
103
|
+
&::after {
|
|
104
|
+
left: -5px;
|
|
105
|
+
bottom: -12px;
|
|
106
|
+
width: 3px;
|
|
107
|
+
height: 3px;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
.recall {
|
|
111
|
+
--size: 24px;
|
|
112
|
+
left: 50%;
|
|
113
|
+
top: 50%;
|
|
114
|
+
}
|
|
115
|
+
/* Each step thinks of the brand a little later; everyone glows together, then the minds clear at once. */
|
|
116
|
+
@each $index in 0, 1, 2, 3 {
|
|
117
|
+
$at: $first-step + $index * $step;
|
|
118
|
+
.someone[data-step="#{$index}"] {
|
|
119
|
+
.thought {
|
|
120
|
+
@include loop(awareness-thought-#{$index} $round $ease infinite);
|
|
121
|
+
}
|
|
122
|
+
.person {
|
|
123
|
+
@include loop(awareness-person-#{$index} $round ease-out infinite);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
@keyframes awareness-thought-#{$index} {
|
|
127
|
+
0%,
|
|
128
|
+
#{$at} {
|
|
129
|
+
opacity: 0;
|
|
130
|
+
transform: translateY(6px) scale(0.3);
|
|
131
|
+
}
|
|
132
|
+
#{$at + 5%},
|
|
133
|
+
#{$together} {
|
|
134
|
+
opacity: 1;
|
|
135
|
+
transform: translateY(0) scale(1);
|
|
136
|
+
filter: none;
|
|
137
|
+
}
|
|
138
|
+
#{$together + 4%} {
|
|
139
|
+
transform: translateY(-3px) scale(1.15);
|
|
140
|
+
filter: drop-shadow(0 0 8px tint(70%));
|
|
141
|
+
}
|
|
142
|
+
#{$together + 10%},
|
|
143
|
+
#{$clear} {
|
|
144
|
+
opacity: 1;
|
|
145
|
+
transform: translateY(0) scale(1);
|
|
146
|
+
filter: none;
|
|
147
|
+
}
|
|
148
|
+
#{$clear + 6%},
|
|
149
|
+
100% {
|
|
150
|
+
opacity: 0;
|
|
151
|
+
transform: translateY(-6px) scale(0.6);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
@keyframes awareness-person-#{$index} {
|
|
155
|
+
0%,
|
|
156
|
+
#{$at} {
|
|
157
|
+
--person: #{tint(35%)};
|
|
158
|
+
}
|
|
159
|
+
#{$at + 5%},
|
|
160
|
+
#{$clear} {
|
|
161
|
+
--person: var(--foreground);
|
|
162
|
+
}
|
|
163
|
+
#{$clear + 6%},
|
|
164
|
+
100% {
|
|
165
|
+
--person: #{tint(35%)};
|
|
166
|
+
}
|
|
167
|
+
}
|
|
89
168
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/service-object/branding/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/service-object/branding/index.tsx"],"names":[],"mappings":"AAGA;;;GAGG;AACH,wBAAgB,QAAQ,gCAoBvB"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Mark } from "@sharadox/sharadox-web-library/component/service-object/mark";
|
|
2
3
|
import styles from "./index.module.css";
|
|
3
4
|
/**
|
|
4
5
|
* Branding: defining the brand. Its pieces settle onto a board one by one (who it speaks to, its voice, its colors
|
|
5
6
|
* and its type), and once they are all in place the brand's mark rises from the middle.
|
|
6
7
|
*/
|
|
7
8
|
export function Branding() {
|
|
8
|
-
return (_jsxs("div", { className: styles.object, children: [_jsxs("div", { className: styles.board, children: [_jsx("span", { className: styles.piece, style: { animationDelay: "0s" }, children: _jsx("i", { className: styles.audience }) }), _jsx("span", { className: styles.piece, style: { animationDelay: "0.5s" }, children: _jsx("i", { className: styles.voice }) }), _jsx("span", { className: styles.piece, style: { animationDelay: "1s" }, children: _jsx("i", { className: styles.colors }) }), _jsx("span", { className: styles.piece, style: { animationDelay: "1.5s" }, children: _jsx("i", { className: styles.type, children: "Aa" }) })] }), _jsx(
|
|
9
|
+
return (_jsxs("div", { className: styles.object, children: [_jsxs("div", { className: styles.board, children: [_jsx("span", { className: styles.piece, style: { animationDelay: "0s" }, children: _jsx("i", { className: styles.audience }) }), _jsx("span", { className: styles.piece, style: { animationDelay: "0.5s" }, children: _jsx("i", { className: styles.voice }) }), _jsx("span", { className: styles.piece, style: { animationDelay: "1s" }, children: _jsx("i", { className: styles.colors }) }), _jsx("span", { className: styles.piece, style: { animationDelay: "1.5s" }, children: _jsx("i", { className: styles.type, children: "Aa" }) })] }), _jsx(Mark, { className: styles.mark })] }));
|
|
9
10
|
}
|
|
10
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +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;;;GAGG;AACH,MAAM,UAAU,QAAQ;IACtB,OAAO,CACL,eAAK,SAAS,EAAE,MAAM,CAAC,MAAM,aAC3B,eAAK,SAAS,EAAE,MAAM,CAAC,KAAK,aAC1B,eAAM,SAAS,EAAE,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,cAAc,EAAE,IAAI,EAAE,YAC5D,YAAG,SAAS,EAAE,MAAM,CAAC,QAAQ,GAAI,GAC5B,EACP,eAAM,SAAS,EAAE,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,cAAc,EAAE,MAAM,EAAE,YAC9D,YAAG,SAAS,EAAE,MAAM,CAAC,KAAK,GAAI,GACzB,EACP,eAAM,SAAS,EAAE,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,cAAc,EAAE,IAAI,EAAE,YAC5D,YAAG,SAAS,EAAE,MAAM,CAAC,MAAM,GAAI,GAC1B,EACP,eAAM,SAAS,EAAE,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,cAAc,EAAE,MAAM,EAAE,YAC9D,YAAG,SAAS,EAAE,MAAM,CAAC,IAAI,mBAAQ,GAC5B,IACH,EACN,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/service-object/branding/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,8DAA8D,CAAC;AACpF,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC;;;GAGG;AACH,MAAM,UAAU,QAAQ;IACtB,OAAO,CACL,eAAK,SAAS,EAAE,MAAM,CAAC,MAAM,aAC3B,eAAK,SAAS,EAAE,MAAM,CAAC,KAAK,aAC1B,eAAM,SAAS,EAAE,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,cAAc,EAAE,IAAI,EAAE,YAC5D,YAAG,SAAS,EAAE,MAAM,CAAC,QAAQ,GAAI,GAC5B,EACP,eAAM,SAAS,EAAE,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,cAAc,EAAE,MAAM,EAAE,YAC9D,YAAG,SAAS,EAAE,MAAM,CAAC,KAAK,GAAI,GACzB,EACP,eAAM,SAAS,EAAE,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,cAAc,EAAE,IAAI,EAAE,YAC5D,YAAG,SAAS,EAAE,MAAM,CAAC,MAAM,GAAI,GAC1B,EACP,eAAM,SAAS,EAAE,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,cAAc,EAAE,MAAM,EAAE,YAC9D,YAAG,SAAS,EAAE,MAAM,CAAC,IAAI,mBAAQ,GAC5B,IACH,EACN,KAAC,IAAI,IAAC,SAAS,EAAE,MAAM,CAAC,IAAI,GAAI,IAC5B,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:branding-sway 10s ease-in-out infinite}@media(prefers-reduced-motion: reduce){.object{animation:none}}.object{transform:rotateX(38deg) rotateZ(-14deg)}@keyframes branding-sway{0%,100%{transform:rotateX(38deg) rotateZ(-14deg)}50%{transform:rotateX(30deg) rotateZ(-4deg)}}.board{position:absolute;left:50%;top:50%;width:176px;height:136px;margin:-68px 0 0 -88px;transform-style:preserve-3d;box-sizing:border-box;background:color-mix(in srgb, var(--foreground) 4%, transparent);border:1px solid color-mix(in srgb, var(--foreground) 36%, transparent);display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:10px;border-radius:8px}.piece{box-sizing:border-box;background:color-mix(in srgb, var(--foreground) 9%, transparent);border:1px solid color-mix(in srgb, var(--foreground) 48%, transparent);display:grid;place-items:center;border-radius:5px;transform-style:preserve-3d;animation:branding-place 8s cubic-bezier(0.22, 1, 0.36, 1) infinite backwards}@media(prefers-reduced-motion: reduce){.piece{animation:none}}@keyframes branding-place{0%{opacity:0;transform:translateZ(70px)}10%,78%{opacity:1;transform:translateZ(0)}90%,100%{opacity:0;transform:translateZ(40px)}}.audience{width:30px;height:30px;border-radius:50%;background:radial-gradient(circle, var(--foreground) 0 3px, transparent 4px 7px, color-mix(in srgb, var(--foreground) 60%, transparent) 8px 9px, transparent 10px 13px, color-mix(in srgb, var(--foreground) 40%, transparent) 14px)}.voice{position:relative;width:36px;height:22px;border-radius:6px;border:1.5px solid color-mix(in srgb, var(--foreground) 70%, transparent);background:repeating-linear-gradient(180deg, transparent 0 5px, color-mix(in srgb, var(--foreground) 40%, transparent) 5px 7px) 6px 2px/22px 14px no-repeat}.voice::after{content:"";position:absolute;left:6px;bottom:-6px;width:8px;height:8px;border-right:1.5px solid color-mix(in srgb, var(--foreground) 70%, transparent);border-bottom:1.5px solid color-mix(in srgb, var(--foreground) 70%, transparent);background:var(--background);transform:skewX(30deg) rotate(45deg) scale(0.7)}.colors{display:block;width:44px;height:14px;background:radial-gradient(circle, var(--foreground) 6px, transparent 7px) 0 0/15px 14px,radial-gradient(circle, color-mix(in srgb, var(--foreground) 55%, transparent) 6px, transparent 7px) 15px 0/15px 14px,radial-gradient(circle, color-mix(in srgb, var(--foreground) 25%, transparent) 6px, transparent 7px) 30px 0/15px 14px;background-repeat:no-repeat}.type{font-family:var(--font-display, inherit);font-size:22px;font-style:normal;font-weight:600;color:var(--foreground)}.mark{
|
|
1
|
+
.object{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d;animation:branding-sway 10s ease-in-out infinite}@media(prefers-reduced-motion: reduce){.object{animation:none}}.object{transform:rotateX(38deg) rotateZ(-14deg)}@keyframes branding-sway{0%,100%{transform:rotateX(38deg) rotateZ(-14deg)}50%{transform:rotateX(30deg) rotateZ(-4deg)}}.board{position:absolute;left:50%;top:50%;width:176px;height:136px;margin:-68px 0 0 -88px;transform-style:preserve-3d;box-sizing:border-box;background:color-mix(in srgb, var(--foreground) 4%, transparent);border:1px solid color-mix(in srgb, var(--foreground) 36%, transparent);display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:10px;border-radius:8px}.piece{box-sizing:border-box;background:color-mix(in srgb, var(--foreground) 9%, transparent);border:1px solid color-mix(in srgb, var(--foreground) 48%, transparent);display:grid;place-items:center;border-radius:5px;transform-style:preserve-3d;animation:branding-place 8s cubic-bezier(0.22, 1, 0.36, 1) infinite backwards}@media(prefers-reduced-motion: reduce){.piece{animation:none}}@keyframes branding-place{0%{opacity:0;transform:translateZ(70px)}10%,78%{opacity:1;transform:translateZ(0)}90%,100%{opacity:0;transform:translateZ(40px)}}.audience{width:30px;height:30px;border-radius:50%;background:radial-gradient(circle, var(--foreground) 0 3px, transparent 4px 7px, color-mix(in srgb, var(--foreground) 60%, transparent) 8px 9px, transparent 10px 13px, color-mix(in srgb, var(--foreground) 40%, transparent) 14px)}.voice{position:relative;width:36px;height:22px;border-radius:6px;border:1.5px solid color-mix(in srgb, var(--foreground) 70%, transparent);background:repeating-linear-gradient(180deg, transparent 0 5px, color-mix(in srgb, var(--foreground) 40%, transparent) 5px 7px) 6px 2px/22px 14px no-repeat}.voice::after{content:"";position:absolute;left:6px;bottom:-6px;width:8px;height:8px;border-right:1.5px solid color-mix(in srgb, var(--foreground) 70%, transparent);border-bottom:1.5px solid color-mix(in srgb, var(--foreground) 70%, transparent);background:var(--background);transform:skewX(30deg) rotate(45deg) scale(0.7)}.colors{display:block;width:44px;height:14px;background:radial-gradient(circle, var(--foreground) 6px, transparent 7px) 0 0/15px 14px,radial-gradient(circle, color-mix(in srgb, var(--foreground) 55%, transparent) 6px, transparent 7px) 15px 0/15px 14px,radial-gradient(circle, color-mix(in srgb, var(--foreground) 25%, transparent) 6px, transparent 7px) 30px 0/15px 14px;background-repeat:no-repeat}.type{font-family:var(--font-display, inherit);font-size:22px;font-style:normal;font-weight:600;color:var(--foreground)}.mark{--size: 36px;animation:branding-mark 8s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.mark{animation:none}}.mark{box-shadow:0 0 28px -4px color-mix(in srgb, var(--foreground) 40%, transparent);transform:translateZ(46px)}@keyframes branding-mark{0%,34%{opacity:0;transform:translateZ(0) scale(0.4)}44%,78%{opacity:1;transform:translateZ(46px) scale(1)}90%,100%{opacity:0;transform:translateZ(70px) scale(0.8)}}
|
|
@@ -106,21 +106,10 @@
|
|
|
106
106
|
}
|
|
107
107
|
/* Once every piece is in place, the brand's mark rises over the middle of the board. */
|
|
108
108
|
.mark {
|
|
109
|
-
|
|
109
|
+
--size: 36px;
|
|
110
110
|
@include loop(branding-mark 8s $ease infinite);
|
|
111
|
-
border-radius: 50%;
|
|
112
|
-
background: var(--background);
|
|
113
|
-
border: 1px solid tint(70%);
|
|
114
111
|
box-shadow: 0 0 28px -4px tint(40%);
|
|
115
112
|
transform: translateZ(46px);
|
|
116
|
-
&::before {
|
|
117
|
-
content: "";
|
|
118
|
-
position: absolute;
|
|
119
|
-
inset: 10px;
|
|
120
|
-
border: 4px solid var(--foreground);
|
|
121
|
-
border-radius: 2px;
|
|
122
|
-
transform: rotate(45deg);
|
|
123
|
-
}
|
|
124
113
|
}
|
|
125
114
|
@keyframes branding-mark {
|
|
126
115
|
0%,
|
|
@@ -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,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"}
|