@sharadox/sharadox-web-library 0.26.0 → 0.28.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-card/index.d.ts +2 -3
- package/distribution/component/service-card/index.d.ts.map +1 -1
- package/distribution/component/service-card/index.js +3 -4
- package/distribution/component/service-card/index.js.map +1 -1
- package/distribution/component/service-card/index.module.css +1 -1
- package/distribution/component/service-card/index.module.scss +0 -54
- package/distribution/component/service-card/type.d.ts +0 -2
- package/distribution/component/service-card/type.d.ts.map +1 -1
- package/distribution/component/service-object/android-application/index.d.ts +3 -0
- package/distribution/component/service-object/android-application/index.d.ts.map +1 -0
- package/distribution/component/service-object/android-application/index.js +8 -0
- package/distribution/component/service-object/android-application/index.js.map +1 -0
- package/distribution/component/service-object/android-application/index.module.css +1 -0
- package/distribution/component/service-object/android-application/index.module.scss +90 -0
- package/distribution/component/service-object/brand-awareness/index.d.ts +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/hosting/index.d.ts +7 -0
- package/distribution/component/service-object/hosting/index.d.ts.map +1 -0
- package/distribution/component/service-object/hosting/index.js +16 -0
- package/distribution/component/service-object/hosting/index.js.map +1 -0
- package/distribution/component/service-object/hosting/index.module.css +1 -0
- package/distribution/component/service-object/hosting/index.module.scss +162 -0
- package/distribution/component/service-object/index.d.ts.map +1 -1
- package/distribution/component/service-object/index.js +6 -0
- package/distribution/component/service-object/index.js.map +1 -1
- package/distribution/component/service-object/ios-application/index.d.ts +3 -0
- package/distribution/component/service-object/ios-application/index.d.ts.map +1 -0
- package/distribution/component/service-object/ios-application/index.js +8 -0
- package/distribution/component/service-object/ios-application/index.js.map +1 -0
- package/distribution/component/service-object/ios-application/index.module.css +1 -0
- package/distribution/component/service-object/ios-application/index.module.scss +93 -0
- package/distribution/component/service-object/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 +13 -3
- 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 +224 -78
- package/distribution/component/services/index.js +1 -1
- package/distribution/component/services/index.js.map +1 -1
- package/distribution/component/services/index.module.css +1 -1
- package/distribution/component/services/index.module.scss +1 -5
- package/distribution/content/contact/index.d.ts +27 -15
- package/distribution/content/contact/index.d.ts.map +1 -1
- package/distribution/content/services/index.d.ts +70 -44
- package/distribution/content/services/index.d.ts.map +1 -1
- package/distribution/content/services/index.js +43 -34
- 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 +6 -2
- package/distribution/content/site/index.js.map +1 -1
- package/llms.txt +4 -2
- package/package.json +2 -2
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, 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
|
|
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; rows of three, with a row of two (or two rows of two) when the count needs it; 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,11 +1,10 @@
|
|
|
1
1
|
import type { ServiceCardProperties } from "@sharadox/sharadox-web-library/component/service-card/type";
|
|
2
2
|
/**
|
|
3
3
|
* One service: its 3D object (which turns towards the pointer anywhere on the card), name, description, and a button
|
|
4
|
-
* that scrolls to the contact form with this service ticked
|
|
5
|
-
* the pointer. A `wide` card puts the object beside the words.
|
|
4
|
+
* that scrolls to the contact form with this service ticked. A soft light follows the pointer.
|
|
6
5
|
*
|
|
7
6
|
* @example
|
|
8
7
|
* <ServiceCard locale="en" card={SERVICES.items[0].cards[0]} />
|
|
9
8
|
*/
|
|
10
|
-
export declare function ServiceCard({ locale, card
|
|
9
|
+
export declare function ServiceCard({ locale, card }: ServiceCardProperties): import("react").JSX.Element;
|
|
11
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/service-card/index.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4DAA4D,CAAC;AAExG
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/service-card/index.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4DAA4D,CAAC;AAExG;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,qBAAqB,+BAyBlE"}
|
|
@@ -10,15 +10,14 @@ import { requestContactNeeds } from "@sharadox/sharadox-web-library/utility/cont
|
|
|
10
10
|
import styles from "./index.module.css";
|
|
11
11
|
/**
|
|
12
12
|
* One service: its 3D object (which turns towards the pointer anywhere on the card), name, description, and a button
|
|
13
|
-
* that scrolls to the contact form with this service ticked
|
|
14
|
-
* the pointer. A `wide` card puts the object beside the words.
|
|
13
|
+
* that scrolls to the contact form with this service ticked. A soft light follows the pointer.
|
|
15
14
|
*
|
|
16
15
|
* @example
|
|
17
16
|
* <ServiceCard locale="en" card={SERVICES.items[0].cards[0]} />
|
|
18
17
|
*/
|
|
19
|
-
export function ServiceCard({ locale, card
|
|
18
|
+
export function ServiceCard({ locale, card }) {
|
|
20
19
|
const spotlight = useSpotlight();
|
|
21
20
|
const tilt = useTilt(16);
|
|
22
|
-
return (_jsx("article", { ref: spotlight, className: styles.card,
|
|
21
|
+
return (_jsx("article", { ref: spotlight, className: styles.card, children: _jsxs("div", { ref: tilt, className: styles.inner, children: [_jsx("div", { className: styles.visual, children: _jsx(ServiceObject, { kind: card.key }) }), _jsxs("div", { className: styles.copy, children: [_jsx("h4", { children: translate(card.title, locale) }), _jsx("p", { children: translate(card.text, locale) }), _jsx(Button, { href: `#${SECTION.contact.id}`, size: "small", arrow: true, className: styles.action, onClick: () => requestContactNeeds([card.key]), children: translate(card.action, locale) })] })] }) }));
|
|
23
22
|
}
|
|
24
23
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/service-card/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAE,MAAM,iDAAiD,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,MAAM,yDAAyD,CAAC;AACxF,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AACzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,qDAAqD,CAAC;AAC1F,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/service-card/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,E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E7C,SAAS,CAAC,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,GACxB,IACL,IACF,GACE,CACX,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.card{--pointer-x: -500px;--pointer-y: -500px;position:relative;height:100%;background:var(--background);isolation:isolate}.card::before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(420px circle at var(--pointer-x) var(--pointer-y), color-mix(in srgb, var(--foreground) 7%, transparent), transparent 60%)}.inner{--tilt-x: 0deg;--tilt-y: 0deg;display:flex;flex-direction:column;height:100%}.visual{position:relative;height:270px;border-bottom:1px dashed var(--line-2);background:radial-gradient(90% 80% at 50% 45%, color-mix(in srgb, var(--foreground) 6%, transparent), transparent 70%),radial-gradient(circle, var(--line-2) 1px, transparent 1.4px) 0 0/18px 18px}@media(max-width: 640px){.visual{height:250px}}.copy{flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:24px 26px 28px}.copy h4{margin:0;font-size:1.3rem;font-weight:600;letter-spacing:-0.03em}.copy p{margin-bottom:14px;color:var(--foreground-2);max-width:44ch;text-wrap:pretty}.action{margin-top:auto}
|
|
1
|
+
.card{--pointer-x: -500px;--pointer-y: -500px;position:relative;height:100%;background:var(--background);isolation:isolate}.card::before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(420px circle at var(--pointer-x) var(--pointer-y), color-mix(in srgb, var(--foreground) 7%, transparent), transparent 60%)}.inner{--tilt-x: 0deg;--tilt-y: 0deg;display:flex;flex-direction:column;height:100%}.visual{position:relative;height:270px;border-bottom:1px dashed var(--line-2);background:radial-gradient(90% 80% at 50% 45%, color-mix(in srgb, var(--foreground) 6%, transparent), transparent 70%),radial-gradient(circle, var(--line-2) 1px, transparent 1.4px) 0 0/18px 18px}@media(max-width: 640px){.visual{height:250px}}.copy{flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:24px 26px 28px}.copy h4{margin:0;font-size:1.3rem;font-weight:600;letter-spacing:-0.03em}.copy p{margin-bottom:14px;color:var(--foreground-2);max-width:44ch;text-wrap:pretty}.action{margin-top:auto}
|
|
@@ -57,57 +57,3 @@
|
|
|
57
57
|
.action {
|
|
58
58
|
margin-top: auto;
|
|
59
59
|
}
|
|
60
|
-
/* The card's reasons, numbered. */
|
|
61
|
-
.points {
|
|
62
|
-
display: grid;
|
|
63
|
-
gap: 14px;
|
|
64
|
-
margin: 0 0 22px;
|
|
65
|
-
padding: 0;
|
|
66
|
-
list-style: none;
|
|
67
|
-
li {
|
|
68
|
-
display: grid;
|
|
69
|
-
grid-template-columns: auto 1fr;
|
|
70
|
-
gap: 2px 14px;
|
|
71
|
-
padding-top: 14px;
|
|
72
|
-
border-top: 1px dashed var(--line-2);
|
|
73
|
-
> span:first-child {
|
|
74
|
-
grid-row: span 2;
|
|
75
|
-
font-size: 12px;
|
|
76
|
-
color: var(--foreground-3);
|
|
77
|
-
line-height: 1.7;
|
|
78
|
-
}
|
|
79
|
-
strong {
|
|
80
|
-
font-weight: 600;
|
|
81
|
-
}
|
|
82
|
-
> span:last-child {
|
|
83
|
-
color: var(--foreground-2);
|
|
84
|
-
text-wrap: pretty;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
/* Alone in its row: the object on the left, the words on the right. */
|
|
89
|
-
.card[data-wide] {
|
|
90
|
-
@media (min-width: 961px) {
|
|
91
|
-
.inner {
|
|
92
|
-
display: grid;
|
|
93
|
-
grid-template-columns: 1fr 1fr;
|
|
94
|
-
}
|
|
95
|
-
.visual {
|
|
96
|
-
--object-scale: 1.5;
|
|
97
|
-
height: auto;
|
|
98
|
-
min-height: 440px;
|
|
99
|
-
border-bottom: 0;
|
|
100
|
-
border-right: 1px dashed var(--line-2);
|
|
101
|
-
}
|
|
102
|
-
.copy {
|
|
103
|
-
justify-content: center;
|
|
104
|
-
padding: 40px clamp(28px, 4vw, 56px);
|
|
105
|
-
p {
|
|
106
|
-
max-width: 56ch;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
.action {
|
|
110
|
-
margin-top: 0;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
}
|
|
@@ -4,7 +4,5 @@ export interface ServiceCardProperties {
|
|
|
4
4
|
locale: Locale;
|
|
5
5
|
/** One of the cards in `SERVICES`. */
|
|
6
6
|
card: (typeof SERVICES.items)[number]["cards"][number];
|
|
7
|
-
/** The object beside the words instead of above them, for a card alone in its row. */
|
|
8
|
-
wide?: boolean;
|
|
9
7
|
}
|
|
10
8
|
//# sourceMappingURL=type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../source/component/service-card/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oDAAoD,CAAC;AACjF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAEhF,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,sCAAsC;IACtC,IAAI,EAAE,CAAC,OAAO,QAAQ,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../source/component/service-card/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oDAAoD,CAAC;AACjF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAEhF,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,sCAAsC;IACtC,IAAI,EAAE,CAAC,OAAO,QAAQ,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC;CACxD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/service-object/android-application/index.tsx"],"names":[],"mappings":"AAGA,oIAAoI;AACpI,wBAAgB,kBAAkB,gCAuBjC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { Cuboid } from "@sharadox/sharadox-web-library/component/service-object/cuboid";
|
|
3
|
+
import styles from "./index.module.css";
|
|
4
|
+
/** Android applications: a phone turning in the hand, its app tiles rising off the screen in a wave, the three-button bar below. */
|
|
5
|
+
export function AndroidApplication() {
|
|
6
|
+
return (_jsx("div", { className: styles.object, children: _jsx(Cuboid, { className: styles.phone, front: _jsxs(_Fragment, { children: [_jsx("span", { className: styles.camera }), _jsx("span", { className: styles.tiles, children: Array.from({ length: 12 }, (_, tile) => (_jsx("i", { style: { animationDelay: `${(tile % 3) * 0.15 + Math.floor(tile / 3) * 0.2}s` } }, tile))) }), _jsxs("span", { className: styles.buttons, children: [_jsx("i", { className: styles.back }), _jsx("i", { className: styles.home }), _jsx("i", { className: styles.recent })] })] }) }) }));
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/service-object/android-application/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gEAAgE,CAAC;AACxF,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,oIAAoI;AACpI,MAAM,UAAU,kBAAkB;IAChC,OAAO,CACL,cAAK,SAAS,EAAE,MAAM,CAAC,MAAM,YAC3B,KAAC,MAAM,IACL,SAAS,EAAE,MAAM,CAAC,KAAK,EACvB,KAAK,EACH,8BACE,eAAM,SAAS,EAAE,MAAM,CAAC,MAAM,GAAI,EAClC,eAAM,SAAS,EAAE,MAAM,CAAC,KAAK,YAC1B,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,CACvC,YAAc,KAAK,EAAE,EAAE,cAAc,EAAE,GAAG,CAAC,IAAI,GAAG,CAAC,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,CAAC,CAAC,GAAG,GAAG,GAAG,EAAE,IAArF,IAAI,CAAqF,CAClG,CAAC,GACG,EACP,gBAAM,SAAS,EAAE,MAAM,CAAC,OAAO,aAC7B,YAAG,SAAS,EAAE,MAAM,CAAC,IAAI,GAAI,EAC7B,YAAG,SAAS,EAAE,MAAM,CAAC,IAAI,GAAI,EAC7B,YAAG,SAAS,EAAE,MAAM,CAAC,MAAM,GAAI,IAC1B,IACN,GAEL,GACE,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.object{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d;animation:android-turn 9s ease-in-out infinite}@media(prefers-reduced-motion: reduce){.object{animation:none}}.object{transform:rotateX(10deg) rotateY(-28deg)}@keyframes android-turn{0%,100%{transform:rotateX(10deg) rotateY(-32deg) rotateZ(-2deg)}50%{transform:rotateX(6deg) rotateY(24deg) rotateZ(2deg)}}.phone{--width: 88px;--height: 172px;--depth: 9px;--radius: 12px;--front-amount: 4%;--edge-amount: 55%}.camera{position:absolute;left:50%;top:8px;width:6px;height:6px;margin-left:-3px;border-radius:50%;background:color-mix(in srgb, var(--foreground) 55%, transparent)}.tiles{position:absolute;inset:24px 11px 30px;display:grid;grid-template-columns:repeat(3, 1fr);gap:8px;transform-style:preserve-3d}.tiles i{aspect-ratio:1;border-radius:6px;border:1px solid color-mix(in srgb, var(--foreground) 45%, transparent);background:color-mix(in srgb, var(--foreground) 14%, transparent);animation:android-rise 2.8s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.tiles i{animation:none}}@keyframes android-rise{0%,45%,100%{transform:translateZ(0);background:color-mix(in srgb, var(--foreground) 14%, transparent)}20%{transform:translateZ(16px);background:color-mix(in srgb, var(--foreground) 40%, transparent)}}.buttons{position:absolute;left:18px;right:18px;bottom:9px;display:flex;align-items:center;justify-content:space-between}.buttons i{width:8px;height:8px;border:1.5px solid color-mix(in srgb, var(--foreground) 55%, transparent)}.back{border:0 !important;width:0 !important;height:0 !important;border-top:4.5px solid rgba(0,0,0,0) !important;border-bottom:4.5px solid rgba(0,0,0,0) !important;border-right:7px solid color-mix(in srgb, var(--foreground) 55%, transparent) !important}.home{border-radius:50%}.recent{border-radius:2px}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
@use "style/token" as *;
|
|
2
|
+
@use "style/object" as *;
|
|
3
|
+
|
|
4
|
+
.object {
|
|
5
|
+
@include centered(0px, 0px);
|
|
6
|
+
@include loop(android-turn 9s ease-in-out infinite);
|
|
7
|
+
transform: rotateX(10deg) rotateY(-28deg);
|
|
8
|
+
}
|
|
9
|
+
@keyframes android-turn {
|
|
10
|
+
0%,
|
|
11
|
+
100% {
|
|
12
|
+
transform: rotateX(10deg) rotateY(-32deg) rotateZ(-2deg);
|
|
13
|
+
}
|
|
14
|
+
50% {
|
|
15
|
+
transform: rotateX(6deg) rotateY(24deg) rotateZ(2deg);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
.phone {
|
|
19
|
+
--width: 88px;
|
|
20
|
+
--height: 172px;
|
|
21
|
+
--depth: 9px;
|
|
22
|
+
--radius: 12px;
|
|
23
|
+
--front-amount: 4%;
|
|
24
|
+
--edge-amount: 55%;
|
|
25
|
+
}
|
|
26
|
+
.camera {
|
|
27
|
+
position: absolute;
|
|
28
|
+
left: 50%;
|
|
29
|
+
top: 8px;
|
|
30
|
+
width: 6px;
|
|
31
|
+
height: 6px;
|
|
32
|
+
margin-left: -3px;
|
|
33
|
+
border-radius: 50%;
|
|
34
|
+
background: tint(55%);
|
|
35
|
+
}
|
|
36
|
+
.tiles {
|
|
37
|
+
position: absolute;
|
|
38
|
+
inset: 24px 11px 30px;
|
|
39
|
+
display: grid;
|
|
40
|
+
grid-template-columns: repeat(3, 1fr);
|
|
41
|
+
gap: 8px;
|
|
42
|
+
transform-style: preserve-3d;
|
|
43
|
+
i {
|
|
44
|
+
aspect-ratio: 1;
|
|
45
|
+
border-radius: 6px;
|
|
46
|
+
border: 1px solid tint(45%);
|
|
47
|
+
background: tint(14%);
|
|
48
|
+
@include loop(android-rise 2.8s $ease infinite);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
@keyframes android-rise {
|
|
52
|
+
0%,
|
|
53
|
+
45%,
|
|
54
|
+
100% {
|
|
55
|
+
transform: translateZ(0);
|
|
56
|
+
background: tint(14%);
|
|
57
|
+
}
|
|
58
|
+
20% {
|
|
59
|
+
transform: translateZ(16px);
|
|
60
|
+
background: tint(40%);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
.buttons {
|
|
64
|
+
position: absolute;
|
|
65
|
+
left: 18px;
|
|
66
|
+
right: 18px;
|
|
67
|
+
bottom: 9px;
|
|
68
|
+
display: flex;
|
|
69
|
+
align-items: center;
|
|
70
|
+
justify-content: space-between;
|
|
71
|
+
i {
|
|
72
|
+
width: 8px;
|
|
73
|
+
height: 8px;
|
|
74
|
+
border: 1.5px solid tint(55%);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
.back {
|
|
78
|
+
border: 0 !important;
|
|
79
|
+
width: 0 !important;
|
|
80
|
+
height: 0 !important;
|
|
81
|
+
border-top: 4.5px solid transparent !important;
|
|
82
|
+
border-bottom: 4.5px solid transparent !important;
|
|
83
|
+
border-right: 7px solid tint(55%) !important;
|
|
84
|
+
}
|
|
85
|
+
.home {
|
|
86
|
+
border-radius: 50%;
|
|
87
|
+
}
|
|
88
|
+
.recent {
|
|
89
|
+
border-radius: 2px;
|
|
90
|
+
}
|
|
@@ -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,kHAAk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,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,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