@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
package/README.md
CHANGED
|
@@ -34,7 +34,7 @@ Everything generic comes from the open-source Sharadox libraries, configured her
|
|
|
34
34
|
- **One source for shared copy:** text used in more than one place lives in its own content module and is imported, never retyped.
|
|
35
35
|
- **`component/`:** the page's branded parts:
|
|
36
36
|
- grid frame, `Cross` marks, navigation (below 1100px its links open in a menu under the bar, in the bar's frosted background, scrolling when it doesn't fit, as on a phone held sideways) and footer
|
|
37
|
-
- hero and its guides, service index, statement, and Services: four groups of cards (Web
|
|
37
|
+
- hero and its guides, service index, statement, and Services: four groups of cards (Web, Desktop & Mobile, Creative, Marketing), each card with its own animated 3D object (`service-object`, in CSS 3D, turning towards the pointer), a description and a button that starts that project; a card alone in its group lies wide, with its numbered `points`; then `ServiceUnlisted`, the invitation for ideas none of them name
|
|
38
38
|
- the 3D touchpoint stack, capabilities sheet, process, contact, section indicator, style switch
|
|
39
39
|
- `Consent`, the Sharadox cookie panel (reopened by the footer's Cookie Preferences), and the footer's legal parts: Portugal's complaints book and the Algarve's consumer dispute notice (CIMAAL)
|
|
40
40
|
- the Sharadox wrapper around the shared globe, structured data, share image, `llmsText()` for `/llms.txt`
|
|
@@ -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,3 +1,6 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* Branding: defining the brand. Its pieces settle onto a board one by one (who it speaks to, its voice, its colors
|
|
3
|
+
* and its type), and once they are all in place the brand's mark rises from the middle.
|
|
4
|
+
*/
|
|
2
5
|
export declare function Branding(): import("react").JSX.Element;
|
|
3
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -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,7 +1,11 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
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
|
+
/**
|
|
5
|
+
* Branding: defining the brand. Its pieces settle onto a board one by one (who it speaks to, its voice, its colors
|
|
6
|
+
* and its type), and once they are all in place the brand's mark rises from the middle.
|
|
7
|
+
*/
|
|
4
8
|
export function Branding() {
|
|
5
|
-
return (
|
|
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 })] }));
|
|
6
10
|
}
|
|
7
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
|
|
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;
|
|
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)}}
|
|
@@ -3,61 +3,128 @@
|
|
|
3
3
|
|
|
4
4
|
.object {
|
|
5
5
|
@include centered(0px, 0px);
|
|
6
|
-
|
|
6
|
+
@include loop(branding-sway 10s ease-in-out infinite);
|
|
7
|
+
transform: rotateX(38deg) rotateZ(-14deg);
|
|
7
8
|
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
@keyframes branding-sway {
|
|
10
|
+
0%,
|
|
11
|
+
100% {
|
|
12
|
+
transform: rotateX(38deg) rotateZ(-14deg);
|
|
13
|
+
}
|
|
14
|
+
50% {
|
|
15
|
+
transform: rotateX(30deg) rotateZ(-4deg);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
/* The board the brand is defined on: four places, two by two. */
|
|
19
|
+
.board {
|
|
20
|
+
@include centered(176px, 136px);
|
|
21
|
+
@include face(4%, 36%);
|
|
22
|
+
display: grid;
|
|
23
|
+
grid-template-columns: 1fr 1fr;
|
|
24
|
+
gap: 10px;
|
|
25
|
+
padding: 10px;
|
|
26
|
+
border-radius: 8px;
|
|
12
27
|
}
|
|
13
|
-
|
|
28
|
+
/* Each piece drops onto its place, stays while the mark shows, then lifts away for the next round. */
|
|
29
|
+
.piece {
|
|
30
|
+
@include face(9%, 48%);
|
|
31
|
+
display: grid;
|
|
32
|
+
place-items: center;
|
|
33
|
+
border-radius: 5px;
|
|
34
|
+
transform-style: preserve-3d;
|
|
35
|
+
@include loop(branding-place 8s $ease infinite backwards);
|
|
36
|
+
}
|
|
37
|
+
@keyframes branding-place {
|
|
14
38
|
0% {
|
|
15
|
-
|
|
39
|
+
opacity: 0;
|
|
40
|
+
transform: translateZ(70px);
|
|
16
41
|
}
|
|
17
|
-
|
|
18
|
-
|
|
42
|
+
10%,
|
|
43
|
+
78% {
|
|
44
|
+
opacity: 1;
|
|
45
|
+
transform: translateZ(0);
|
|
19
46
|
}
|
|
47
|
+
90%,
|
|
20
48
|
100% {
|
|
21
|
-
|
|
49
|
+
opacity: 0;
|
|
50
|
+
transform: translateZ(40px);
|
|
22
51
|
}
|
|
23
52
|
}
|
|
24
|
-
.
|
|
25
|
-
|
|
53
|
+
/* Who it speaks to: a target. */
|
|
54
|
+
.audience {
|
|
55
|
+
width: 30px;
|
|
56
|
+
height: 30px;
|
|
26
57
|
border-radius: 50%;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
58
|
+
background: radial-gradient(
|
|
59
|
+
circle,
|
|
60
|
+
var(--foreground) 0 3px,
|
|
61
|
+
transparent 4px 7px,
|
|
62
|
+
tint(60%) 8px 9px,
|
|
63
|
+
transparent 10px 13px,
|
|
64
|
+
tint(40%) 14px
|
|
65
|
+
);
|
|
34
66
|
}
|
|
35
|
-
.
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
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
|
-
}
|
|
67
|
+
/* Its voice: a speech bubble. */
|
|
68
|
+
.voice {
|
|
69
|
+
position: relative;
|
|
70
|
+
width: 36px;
|
|
71
|
+
height: 22px;
|
|
72
|
+
border-radius: 6px;
|
|
73
|
+
border: 1.5px solid tint(70%);
|
|
74
|
+
background: repeating-linear-gradient(180deg, transparent 0 5px, tint(40%) 5px 7px) 6px 2px / 22px 14px no-repeat;
|
|
52
75
|
&::after {
|
|
53
76
|
content: "";
|
|
54
77
|
position: absolute;
|
|
55
|
-
left:
|
|
56
|
-
|
|
57
|
-
width:
|
|
58
|
-
height:
|
|
59
|
-
|
|
78
|
+
left: 6px;
|
|
79
|
+
bottom: -6px;
|
|
80
|
+
width: 8px;
|
|
81
|
+
height: 8px;
|
|
82
|
+
border-right: 1.5px solid tint(70%);
|
|
83
|
+
border-bottom: 1.5px solid tint(70%);
|
|
60
84
|
background: var(--background);
|
|
61
|
-
|
|
85
|
+
transform: skewX(30deg) rotate(45deg) scale(0.7);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
/* Its colors: three swatches. */
|
|
89
|
+
.colors {
|
|
90
|
+
display: block;
|
|
91
|
+
width: 44px;
|
|
92
|
+
height: 14px;
|
|
93
|
+
background:
|
|
94
|
+
radial-gradient(circle, var(--foreground) 6px, transparent 7px) 0 0 / 15px 14px,
|
|
95
|
+
radial-gradient(circle, tint(55%) 6px, transparent 7px) 15px 0 / 15px 14px,
|
|
96
|
+
radial-gradient(circle, tint(25%) 6px, transparent 7px) 30px 0 / 15px 14px;
|
|
97
|
+
background-repeat: no-repeat;
|
|
98
|
+
}
|
|
99
|
+
/* Its type. */
|
|
100
|
+
.type {
|
|
101
|
+
font-family: var(--font-display, inherit);
|
|
102
|
+
font-size: 22px;
|
|
103
|
+
font-style: normal;
|
|
104
|
+
font-weight: 600;
|
|
105
|
+
color: var(--foreground);
|
|
106
|
+
}
|
|
107
|
+
/* Once every piece is in place, the brand's mark rises over the middle of the board. */
|
|
108
|
+
.mark {
|
|
109
|
+
--size: 36px;
|
|
110
|
+
@include loop(branding-mark 8s $ease infinite);
|
|
111
|
+
box-shadow: 0 0 28px -4px tint(40%);
|
|
112
|
+
transform: translateZ(46px);
|
|
113
|
+
}
|
|
114
|
+
@keyframes branding-mark {
|
|
115
|
+
0%,
|
|
116
|
+
34% {
|
|
117
|
+
opacity: 0;
|
|
118
|
+
transform: translateZ(0) scale(0.4);
|
|
119
|
+
}
|
|
120
|
+
44%,
|
|
121
|
+
78% {
|
|
122
|
+
opacity: 1;
|
|
123
|
+
transform: translateZ(46px) scale(1);
|
|
124
|
+
}
|
|
125
|
+
90%,
|
|
126
|
+
100% {
|
|
127
|
+
opacity: 0;
|
|
128
|
+
transform: translateZ(70px) scale(0.8);
|
|
62
129
|
}
|
|
63
130
|
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* Branding design: designing the logo itself. On an artboard, a pointer grabs an anchor of a vector curve and drags
|
|
3
|
+
* it, its handles following and the curve reshaping, as in a design tool.
|
|
4
|
+
*/
|
|
2
5
|
export declare function BrandingDesign(): import("react").JSX.Element;
|
|
3
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/service-object/branding-design/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/service-object/branding-design/index.tsx"],"names":[],"mappings":"AAwFA;;;GAGG;AACH,wBAAgB,cAAc,gCAS7B"}
|
|
@@ -1,7 +1,41 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import styles from "./index.module.css";
|
|
3
|
-
/**
|
|
3
|
+
/** One full round of the drag, in seconds; every part of the drawing moves on the same clock. */
|
|
4
|
+
const DURATION = "7s";
|
|
5
|
+
/** When each pose is reached, as a share of the round; the moves between them ease in and out. */
|
|
6
|
+
const KEY_TIMES = "0;0.18;0.42;0.56;0.8;1";
|
|
7
|
+
const KEY_SPLINES = Array(5).fill("0.65 0 0.35 1").join(";");
|
|
8
|
+
/** The middle anchor's place at each pose: where it starts, and where the pointer drags it. */
|
|
9
|
+
const ANCHOR_X = [100, 100, 116, 116, 100, 100];
|
|
10
|
+
const ANCHOR_Y = [86, 86, 40, 40, 86, 86];
|
|
11
|
+
/** How far its two handles reach out on either side. */
|
|
12
|
+
const HANDLE = 34;
|
|
13
|
+
const poses = (place) => ANCHOR_X.map((_, index) => place(index)).join(";");
|
|
14
|
+
/** Animates one attribute through the poses, in step with everything else. */
|
|
15
|
+
function Move({ attribute, values }) {
|
|
16
|
+
return (_jsx("animate", { attributeName: attribute, values: values, dur: DURATION, keyTimes: KEY_TIMES, calcMode: "spline", keySplines: KEY_SPLINES, repeatCount: "indefinite" }));
|
|
17
|
+
}
|
|
18
|
+
/** The curve through the three anchors, with the middle one at pose `index`. */
|
|
19
|
+
const curve = (index) => {
|
|
20
|
+
const x = ANCHOR_X[index];
|
|
21
|
+
const y = ANCHOR_Y[index];
|
|
22
|
+
return `M36 112 C52 70 ${x - HANDLE} ${y} ${x} ${y} S152 74 164 112`;
|
|
23
|
+
};
|
|
24
|
+
/** The vector drawing, still (for visitors who ask for less motion) or moving. */
|
|
25
|
+
function Drawing({ moving }) {
|
|
26
|
+
const x = ANCHOR_X[0];
|
|
27
|
+
const y = ANCHOR_Y[0];
|
|
28
|
+
return (_jsxs("svg", { className: moving ? styles.moving : styles.still, viewBox: "0 0 200 150", children: [_jsx("path", { className: styles.curve, d: curve(0), children: moving && _jsx(Move, { attribute: "d", values: poses(curve) }) }), _jsxs("line", { className: styles.handle, x1: x - HANDLE, y1: y, x2: x + HANDLE, y2: y, children: [moving && _jsx(Move, { attribute: "x1", values: poses((index) => String(ANCHOR_X[index] - HANDLE)) }), moving && _jsx(Move, { attribute: "x2", values: poses((index) => String(ANCHOR_X[index] + HANDLE)) }), moving && _jsx(Move, { attribute: "y1", values: ANCHOR_Y.join(";") }), moving && _jsx(Move, { attribute: "y2", values: ANCHOR_Y.join(";") })] }), [-HANDLE, HANDLE].map((reach) => (_jsxs("circle", { className: styles.knob, cx: x + reach, cy: y, r: "3.5", children: [moving && _jsx(Move, { attribute: "cx", values: poses((index) => String(ANCHOR_X[index] + reach)) }), moving && _jsx(Move, { attribute: "cy", values: ANCHOR_Y.join(";") })] }, reach))), _jsx("rect", { className: styles.anchor, x: "32", y: "108", width: "8", height: "8" }), _jsx("rect", { className: styles.anchor, x: "160", y: "108", width: "8", height: "8" }), _jsxs("rect", { className: styles.selected, x: x - 5, y: y - 5, width: "10", height: "10", children: [moving && _jsx(Move, { attribute: "x", values: poses((index) => String(ANCHOR_X[index] - 5)) }), moving && _jsx(Move, { attribute: "y", values: poses((index) => String(ANCHOR_Y[index] - 5)) })] }), _jsx("path", { className: styles.pointer, d: "M0 0 L0 17 L4.5 13 L8 20.5 L11 19 L7.5 11.8 L13 11.5 Z", children: moving ? (_jsx("animateTransform", { attributeName: "transform", type: "translate", values: [
|
|
29
|
+
"176 146",
|
|
30
|
+
...ANCHOR_X.slice(1, -1).map((ax, index) => `${ax} ${ANCHOR_Y[index + 1]}`),
|
|
31
|
+
"176 146",
|
|
32
|
+
].join(";"), dur: DURATION, keyTimes: KEY_TIMES, calcMode: "spline", keySplines: KEY_SPLINES, repeatCount: "indefinite" })) : null })] }));
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Branding design: designing the logo itself. On an artboard, a pointer grabs an anchor of a vector curve and drags
|
|
36
|
+
* it, its handles following and the curve reshaping, as in a design tool.
|
|
37
|
+
*/
|
|
4
38
|
export function BrandingDesign() {
|
|
5
|
-
return (_jsx("div", { className: styles.object, children:
|
|
39
|
+
return (_jsx("div", { className: styles.object, children: _jsxs("div", { className: styles.artboard, children: [_jsx(Drawing, { moving: true }), _jsx(Drawing, { moving: false })] }) }));
|
|
6
40
|
}
|
|
7
41
|
//# sourceMappingURL=index.js.map
|