@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,8 +1,41 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Person } from "@sharadox/sharadox-web-library/component/service-object/person";
|
|
3
3
|
import styles from "./index.module.css";
|
|
4
|
-
/**
|
|
4
|
+
/** The system's screen sits in the middle of the board; its row is where every line meets. */
|
|
5
|
+
const HUB = { x: 100, y: 75 };
|
|
6
|
+
/** The people around it: the team and the clients, one at each corner of the board. */
|
|
7
|
+
const PEOPLE = [
|
|
8
|
+
{ x: 28, y: 26 },
|
|
9
|
+
{ x: 172, y: 26 },
|
|
10
|
+
{ x: 172, y: 124 },
|
|
11
|
+
{ x: 28, y: 124 },
|
|
12
|
+
];
|
|
13
|
+
/** Who sends to whom, in turn: each message goes through the system, which passes it on by itself. */
|
|
14
|
+
const ROUTES = [
|
|
15
|
+
[0, 2],
|
|
16
|
+
[2, 1],
|
|
17
|
+
[1, 3],
|
|
18
|
+
[3, 0],
|
|
19
|
+
];
|
|
20
|
+
/** Seconds each message takes; the routes follow one another, so a round lasts four of them. */
|
|
21
|
+
const TRIP = 2;
|
|
22
|
+
/** The line from a person into the system: down (or up) from them, then across into the screen's side. */
|
|
23
|
+
const line = ({ x, y }) => `M${x} ${y} Q${x} ${HUB.y} ${HUB.x} ${HUB.y}`;
|
|
24
|
+
/** A message's way: from the sender into the system, then out along the receiver's line. */
|
|
25
|
+
const route = (from, to) => {
|
|
26
|
+
const sender = PEOPLE[from];
|
|
27
|
+
const receiver = PEOPLE[to];
|
|
28
|
+
return `path("${line(sender)} Q${receiver.x} ${HUB.y} ${receiver.x} ${receiver.y}")`;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Platforms: a company's way of working, made digital. Its people sit around one system, joined to it by lines; a
|
|
32
|
+
* message leaves one person, goes through the system (whose gear keeps turning and whose tasks tick themselves off)
|
|
33
|
+
* and reaches the next person, who lights up, then that person sends the next one.
|
|
34
|
+
*/
|
|
5
35
|
export function Platform() {
|
|
6
|
-
return (
|
|
36
|
+
return (_jsx("div", { className: styles.object, children: _jsxs("div", { className: styles.board, children: [_jsx("svg", { className: styles.lines, viewBox: "0 0 200 150", children: PEOPLE.map((person, index) => (_jsx("path", { d: line(person) }, index))) }), ROUTES.map(([from, to], index) => (_jsx("i", { className: styles.message, style: { offsetPath: route(from, to), animationDelay: `${index * TRIP}s` } }, index))), PEOPLE.map(({ x, y }, index) => {
|
|
37
|
+
const received = ROUTES.findIndex(([, to]) => to === index);
|
|
38
|
+
return (_jsx("span", { className: styles.seat, style: { left: x, top: y, "--received": `${received * TRIP + TRIP * 0.86}s` }, children: _jsx(Person, { className: styles.person }) }, index));
|
|
39
|
+
}), _jsxs("div", { className: styles.system, children: [_jsx("span", { className: styles.gear }), [0, 1, 2].map((task) => (_jsx("span", { className: styles.task, style: { animationDelay: `${task * TRIP + TRIP / 2}s` } }, task)))] })] }) }));
|
|
7
40
|
}
|
|
8
41
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/service-object/platform/index.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/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IAJ/B,KAAK,CAKL,CACR,CAAC;gBACJ,CAAC,CAAC,EACF,eAAK,SAAS,EAAE,MAAM,CAAC,MAAM,aAC3B,eAAM,SAAS,EAAE,MAAM,CAAC,IAAI,GAAI,EAC/B,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CACvB,eAAiB,SAAS,EAAE,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,cAAc,EAAE,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,CAAC,GAAG,EAAE,IAArF,IAAI,CAAqF,CACrG,CAAC,IACE,IACF,GACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.object{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d;animation:platform-
|
|
1
|
+
.object{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d;animation:platform-sway 12s ease-in-out infinite}@media(prefers-reduced-motion: reduce){.object{animation:none}}.object{transform:scale(1.18) rotateX(34deg) rotateZ(-10deg)}@keyframes platform-sway{0%,100%{transform:scale(1.18) rotateX(34deg) rotateZ(-10deg)}50%{transform:scale(1.18) rotateX(26deg) rotateZ(4deg)}}.board{position:absolute;left:50%;top:50%;width:200px;height:150px;margin:-75px 0 0 -100px;transform-style:preserve-3d;box-sizing:border-box;background:color-mix(in srgb, var(--foreground) 3%, transparent);border:1px solid color-mix(in srgb, var(--foreground) 30%, transparent);border-radius:10px;background:radial-gradient(circle, color-mix(in srgb, var(--foreground) 12%, transparent) 1px, transparent 1.5px) 0 0/12px 12px;box-shadow:0 24px 50px -26px color-mix(in srgb, var(--foreground) 35%, transparent)}.lines{position:absolute;inset:0;width:100%;height:100%;overflow:visible}.lines path{fill:none;stroke:color-mix(in srgb, var(--foreground) 30%, transparent);stroke-width:1.2;stroke-dasharray:3 4}.message{position:absolute;left:0;top:0;width:12px;height:9px;border-radius:2px;background:var(--foreground);box-shadow:0 0 10px color-mix(in srgb, var(--foreground) 60%, transparent);offset-rotate:0deg;opacity:0;animation:platform-message 8s linear infinite backwards}@media(prefers-reduced-motion: reduce){.message{animation:none}}@keyframes platform-message{0%{offset-distance:0%;opacity:0;animation-timing-function:cubic-bezier(0.5, 0, 0.5, 1)}3%{opacity:1}22%{opacity:1}25%{offset-distance:100%;opacity:0}100%{offset-distance:100%;opacity:0}}.seat{position:absolute;width:0;height:0}.seat::before{content:"";position:absolute;left:-17px;top:-17px;width:34px;height:34px;border-radius:50%;box-sizing:border-box;background:color-mix(in srgb, var(--foreground) 6%, transparent);border:1px solid color-mix(in srgb, var(--foreground) 30%, transparent);animation:platform-received 8s ease-out infinite backwards}@media(prefers-reduced-motion: reduce){.seat::before{animation:none}}.seat::before{animation-delay:var(--received)}@keyframes platform-received{0%{background:color-mix(in srgb, var(--foreground) 30%, transparent);border-color:var(--foreground);box-shadow:0 0 18px color-mix(in srgb, var(--foreground) 55%, transparent)}14%,100%{background:color-mix(in srgb, var(--foreground) 6%, transparent);border-color:color-mix(in srgb, var(--foreground) 30%, transparent);box-shadow:none}}.person{--size: 20px;--person: color-mix(in srgb, var(--foreground) 80%, transparent)}.system{position:absolute;left:50%;top:50%;width:64px;height:46px;margin:-23px 0 0 -32px;transform-style:preserve-3d;box-sizing:border-box;background:color-mix(in srgb, var(--foreground) 6%, transparent);border:1px solid color-mix(in srgb, var(--foreground) 55%, transparent);display:grid;align-content:end;gap:5px;padding:8px;border-radius:6px;background:var(--background);box-shadow:0 0 22px -6px color-mix(in srgb, var(--foreground) 40%, transparent)}.gear{position:absolute;right:6px;top:5px;width:11px;height:11px;border-radius:50%;border:3px dotted var(--foreground);animation:platform-gear 4s linear infinite}@media(prefers-reduced-motion: reduce){.gear{animation:none}}@keyframes platform-gear{to{transform:rotate(360deg)}}.task{height:4px;border-radius:2px;background:linear-gradient(90deg, var(--foreground) 0 var(--done, 100%), color-mix(in srgb, var(--foreground) 18%, transparent) var(--done, 100%));animation:platform-task 8s ease-in-out infinite backwards}@media(prefers-reduced-motion: reduce){.task{animation:none}}@keyframes platform-task{0%{--done: 0%}12%,100%{--done: 100%}}@property --done{syntax:"<percentage>";inherits:false;initial-value:100%}
|
|
@@ -1,54 +1,158 @@
|
|
|
1
1
|
@use "style/token" as *;
|
|
2
2
|
@use "style/object" as *;
|
|
3
3
|
|
|
4
|
+
/* One round: four messages, two seconds each (`TRIP` in the component). */
|
|
5
|
+
$round: 8s;
|
|
6
|
+
|
|
4
7
|
.object {
|
|
5
8
|
@include centered(0px, 0px);
|
|
6
|
-
@include loop(platform-
|
|
7
|
-
transform: rotateX(
|
|
9
|
+
@include loop(platform-sway 12s ease-in-out infinite);
|
|
10
|
+
transform: scale(1.18) rotateX(34deg) rotateZ(-10deg);
|
|
8
11
|
}
|
|
9
|
-
@keyframes platform-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
+
@keyframes platform-sway {
|
|
13
|
+
0%,
|
|
14
|
+
100% {
|
|
15
|
+
transform: scale(1.18) rotateX(34deg) rotateZ(-10deg);
|
|
16
|
+
}
|
|
17
|
+
50% {
|
|
18
|
+
transform: scale(1.18) rotateX(26deg) rotateZ(4deg);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
/* The company: a board with the system in the middle and its people around it. */
|
|
22
|
+
.board {
|
|
23
|
+
@include centered(200px, 150px);
|
|
24
|
+
@include face(3%, 30%);
|
|
25
|
+
border-radius: 10px;
|
|
26
|
+
background: radial-gradient(circle, tint(12%) 1px, transparent 1.5px) 0 0 / 12px 12px;
|
|
27
|
+
box-shadow: 0 24px 50px -26px tint(35%);
|
|
28
|
+
}
|
|
29
|
+
.lines {
|
|
30
|
+
position: absolute;
|
|
31
|
+
inset: 0;
|
|
32
|
+
width: 100%;
|
|
33
|
+
height: 100%;
|
|
34
|
+
overflow: visible;
|
|
35
|
+
path {
|
|
36
|
+
fill: none;
|
|
37
|
+
stroke: tint(30%);
|
|
38
|
+
stroke-width: 1.2;
|
|
39
|
+
stroke-dasharray: 3 4;
|
|
12
40
|
}
|
|
13
41
|
}
|
|
14
|
-
.
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
42
|
+
/* A message: a small card that travels along its route, out of sight while inside the system. */
|
|
43
|
+
.message {
|
|
44
|
+
position: absolute;
|
|
45
|
+
left: 0;
|
|
46
|
+
top: 0;
|
|
47
|
+
width: 12px;
|
|
48
|
+
height: 9px;
|
|
49
|
+
border-radius: 2px;
|
|
50
|
+
background: var(--foreground);
|
|
51
|
+
box-shadow: 0 0 10px tint(60%);
|
|
52
|
+
offset-rotate: 0deg;
|
|
53
|
+
opacity: 0;
|
|
54
|
+
@include loop(platform-message $round linear infinite backwards);
|
|
55
|
+
}
|
|
56
|
+
@keyframes platform-message {
|
|
57
|
+
0% {
|
|
58
|
+
offset-distance: 0%;
|
|
59
|
+
opacity: 0;
|
|
60
|
+
animation-timing-function: cubic-bezier(0.5, 0, 0.5, 1);
|
|
61
|
+
}
|
|
62
|
+
3% {
|
|
63
|
+
opacity: 1;
|
|
20
64
|
}
|
|
21
|
-
|
|
22
|
-
|
|
65
|
+
22% {
|
|
66
|
+
opacity: 1;
|
|
23
67
|
}
|
|
24
|
-
|
|
25
|
-
|
|
68
|
+
25% {
|
|
69
|
+
offset-distance: 100%;
|
|
70
|
+
opacity: 0;
|
|
26
71
|
}
|
|
27
|
-
|
|
28
|
-
|
|
72
|
+
100% {
|
|
73
|
+
offset-distance: 100%;
|
|
74
|
+
opacity: 0;
|
|
29
75
|
}
|
|
30
76
|
}
|
|
31
|
-
.
|
|
77
|
+
/* Where a person sits; it lights up as a message reaches them. */
|
|
78
|
+
.seat {
|
|
32
79
|
position: absolute;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
80
|
+
width: 0;
|
|
81
|
+
height: 0;
|
|
82
|
+
&::before {
|
|
83
|
+
content: "";
|
|
84
|
+
position: absolute;
|
|
85
|
+
left: -17px;
|
|
86
|
+
top: -17px;
|
|
87
|
+
width: 34px;
|
|
88
|
+
height: 34px;
|
|
89
|
+
border-radius: 50%;
|
|
90
|
+
@include face(6%, 30%);
|
|
91
|
+
@include loop(platform-received $round ease-out infinite backwards);
|
|
92
|
+
animation-delay: var(--received);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
@keyframes platform-received {
|
|
96
|
+
0% {
|
|
97
|
+
background: tint(30%);
|
|
98
|
+
border-color: var(--foreground);
|
|
99
|
+
box-shadow: 0 0 18px tint(55%);
|
|
100
|
+
}
|
|
101
|
+
14%,
|
|
43
102
|
100% {
|
|
44
|
-
|
|
103
|
+
background: tint(6%);
|
|
104
|
+
border-color: tint(30%);
|
|
105
|
+
box-shadow: none;
|
|
45
106
|
}
|
|
46
|
-
|
|
47
|
-
|
|
107
|
+
}
|
|
108
|
+
.person {
|
|
109
|
+
--size: 20px;
|
|
110
|
+
--person: #{tint(80%)};
|
|
111
|
+
}
|
|
112
|
+
/* The system: a screen whose gear keeps turning and whose tasks tick themselves off as messages pass. */
|
|
113
|
+
.system {
|
|
114
|
+
@include centered(64px, 46px);
|
|
115
|
+
@include face(6%, 55%);
|
|
116
|
+
display: grid;
|
|
117
|
+
align-content: end;
|
|
118
|
+
gap: 5px;
|
|
119
|
+
padding: 8px;
|
|
120
|
+
border-radius: 6px;
|
|
121
|
+
background: var(--background);
|
|
122
|
+
box-shadow: 0 0 22px -6px tint(40%);
|
|
123
|
+
}
|
|
124
|
+
.gear {
|
|
125
|
+
position: absolute;
|
|
126
|
+
right: 6px;
|
|
127
|
+
top: 5px;
|
|
128
|
+
width: 11px;
|
|
129
|
+
height: 11px;
|
|
130
|
+
border-radius: 50%;
|
|
131
|
+
border: 3px dotted var(--foreground);
|
|
132
|
+
@include loop(platform-gear 4s linear infinite);
|
|
133
|
+
}
|
|
134
|
+
@keyframes platform-gear {
|
|
135
|
+
to {
|
|
136
|
+
transform: rotate(360deg);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
.task {
|
|
140
|
+
height: 4px;
|
|
141
|
+
border-radius: 2px;
|
|
142
|
+
background: linear-gradient(90deg, var(--foreground) 0 var(--done, 100%), tint(18%) var(--done, 100%));
|
|
143
|
+
@include loop(platform-task $round ease-in-out infinite backwards);
|
|
144
|
+
}
|
|
145
|
+
@keyframes platform-task {
|
|
146
|
+
0% {
|
|
147
|
+
--done: 0%;
|
|
148
|
+
}
|
|
149
|
+
12%,
|
|
150
|
+
100% {
|
|
151
|
+
--done: 100%;
|
|
48
152
|
}
|
|
49
153
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
154
|
+
@property --done {
|
|
155
|
+
syntax: "<percentage>";
|
|
156
|
+
inherits: false;
|
|
157
|
+
initial-value: 100%;
|
|
54
158
|
}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* Product launches: the build-up and the big day. A countdown runs over a covered product on its stage; at zero the
|
|
3
|
+
* cover lifts away, the product rises into the light and sparks fly. With reduced motion, the product stands
|
|
4
|
+
* revealed.
|
|
5
|
+
*/
|
|
2
6
|
export declare function ProductLaunch(): 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/product-launch/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/service-object/product-launch/index.tsx"],"names":[],"mappings":"AASA;;;;GAIG;AACH,wBAAgB,aAAa,gCAqB5B"}
|
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Cuboid } from "@sharadox/sharadox-web-library/component/service-object/cuboid";
|
|
3
3
|
import styles from "./index.module.css";
|
|
4
|
-
/**
|
|
4
|
+
/** The countdown before the reveal. */
|
|
5
|
+
const COUNTDOWN = ["3", "2", "1"];
|
|
6
|
+
/** Sparks flying out as the product appears, evenly around it. */
|
|
7
|
+
const SPARKS = 10;
|
|
8
|
+
/**
|
|
9
|
+
* Product launches: the build-up and the big day. A countdown runs over a covered product on its stage; at zero the
|
|
10
|
+
* cover lifts away, the product rises into the light and sparks fly. With reduced motion, the product stands
|
|
11
|
+
* revealed.
|
|
12
|
+
*/
|
|
5
13
|
export function ProductLaunch() {
|
|
6
|
-
return (_jsxs("div", { className: styles.object, children: [
|
|
14
|
+
return (_jsxs("div", { className: styles.object, children: [_jsx("div", { className: styles.glow }), _jsx(Cuboid, { className: styles.stage }), _jsx(Cuboid, { className: styles.product, front: _jsx("span", { className: styles.screen }) }), _jsx(Cuboid, { className: styles.cover }), _jsx("div", { className: styles.sparks, children: Array.from({ length: SPARKS }, (_, spark) => (_jsx("i", { style: { "--angle": `${(360 / SPARKS) * spark}deg` } }, spark))) }), _jsx("div", { className: styles.countdown, children: COUNTDOWN.map((number, index) => (_jsx("span", { style: { animationDelay: `${index * 0.8}s` }, children: number }, number))) })] }));
|
|
7
15
|
}
|
|
8
16
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/service-object/product-launch/index.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/service-object/product-launch/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,gEAAgE,CAAC;AACxF,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,uCAAuC;AACvC,MAAM,SAAS,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;AAClC,kEAAkE;AAClE,MAAM,MAAM,GAAG,EAAE,CAAC;AAElB;;;;GAIG;AACH,MAAM,UAAU,aAAa;IAC3B,OAAO,CACL,eAAK,SAAS,EAAE,MAAM,CAAC,MAAM,aAC3B,cAAK,SAAS,EAAE,MAAM,CAAC,IAAI,GAAI,EAC/B,KAAC,MAAM,IAAC,SAAS,EAAE,MAAM,CAAC,KAAK,GAAI,EACnC,KAAC,MAAM,IAAC,SAAS,EAAE,MAAM,CAAC,OAAO,EAAE,KAAK,EAAE,eAAM,SAAS,EAAE,MAAM,CAAC,MAAM,GAAI,GAAI,EAChF,KAAC,MAAM,IAAC,SAAS,EAAE,MAAM,CAAC,KAAK,GAAI,EACnC,cAAK,SAAS,EAAE,MAAM,CAAC,MAAM,YAC1B,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,CAC5C,YAAe,KAAK,EAAE,EAAE,SAAS,EAAE,GAAG,CAAC,GAAG,GAAG,MAAM,CAAC,GAAG,KAAK,KAAK,EAAmB,IAA5E,KAAK,CAA2E,CACzF,CAAC,GACE,EACN,cAAK,SAAS,EAAE,MAAM,CAAC,SAAS,YAC7B,SAAS,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,CAChC,eAAmB,KAAK,EAAE,EAAE,cAAc,EAAE,GAAG,KAAK,GAAG,GAAG,GAAG,EAAE,YAC5D,MAAM,IADE,MAAM,CAEV,CACR,CAAC,GACE,IACF,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:launch-
|
|
1
|
+
.object{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d;animation:launch-sway 12s ease-in-out infinite}@media(prefers-reduced-motion: reduce){.object{animation:none}}.object{transform:translateY(30px) scale(1.25) rotateX(-16deg) rotateY(-26deg)}@keyframes launch-sway{0%,100%{transform:translateY(30px) scale(1.25) rotateX(-16deg) rotateY(-26deg)}50%{transform:translateY(30px) scale(1.25) rotateX(-12deg) rotateY(18deg)}}.stage{--width: 96px;--height: 14px;--depth: 96px;--radius: 3px;--fill-amount: 8%;--edge-amount: 55%;transform:translateY(30px)}.product{--width: 34px;--height: 52px;--depth: 10px;--fill-amount: 14%;--edge-amount: 80%;transform:translateY(-14px);animation:launch-product 6s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.product{animation:none}}@keyframes launch-product{0%,40%{transform:translateY(14px) scale(0)}58%,86%{transform:translateY(-14px) scale(1)}100%{transform:translateY(14px) scale(0)}}.screen{position:absolute;inset:4px 3px 8px;border-radius:2px;background:linear-gradient(160deg, var(--foreground), color-mix(in srgb, var(--foreground) 40%, transparent))}.cover{--width: 48px;--height: 62px;--depth: 48px;--fill-amount: 22%;--front-amount: 26%;--edge-amount: 60%;transform:translateY(-8px) scale(0);animation:launch-cover 6s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.cover{animation:none}}@keyframes launch-cover{0%,40%{transform:translateY(-8px) scale(1)}58%{transform:translateY(-260px) scale(1)}59%,90%{transform:translateY(-8px) scale(0)}100%{transform:translateY(-8px) scale(1)}}.glow{position:absolute;left:50%;top:50%;width:170px;height:170px;margin:-85px 0 0 -85px;transform-style:preserve-3d;border-radius:50%;background:radial-gradient(circle, color-mix(in srgb, var(--foreground) 26%, transparent), transparent 62%);transform:translateY(-14px) translateZ(-40px);animation:launch-glow 6s ease-out infinite}@media(prefers-reduced-motion: reduce){.glow{animation:none}}@keyframes launch-glow{0%,40%{opacity:0;transform:translateY(-14px) translateZ(-40px) scale(0.3)}56%,88%{opacity:1;transform:translateY(-14px) translateZ(-40px) scale(1)}100%{opacity:0;transform:translateY(-14px) translateZ(-40px) scale(1)}}.sparks{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d;transform:translateY(-14px)}.sparks i{position:absolute;left:-3px;top:-3px;width:6px;height:6px;border-radius:50%;background:var(--foreground);box-shadow:0 0 8px color-mix(in srgb, var(--foreground) 70%, transparent);opacity:0;animation:launch-spark 6s ease-out infinite}@media(prefers-reduced-motion: reduce){.sparks i{animation:none}}@keyframes launch-spark{0%,42%{opacity:0;transform:rotate(var(--angle)) translateX(10px) scale(1)}46%{opacity:1}66%,100%{opacity:0;transform:rotate(var(--angle)) translateX(84px) scale(0.3)}}.countdown{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d;transform:translateY(-82px)}.countdown span{position:absolute;left:-30px;top:-24px;width:60px;line-height:48px;text-align:center;font-family:var(--font-display, inherit);font-size:40px;font-weight:700;color:var(--foreground);opacity:0;animation:launch-count 6s cubic-bezier(0.22, 1, 0.36, 1) infinite backwards}@media(prefers-reduced-motion: reduce){.countdown span{animation:none}}@keyframes launch-count{0%{opacity:0;transform:scale(1.6)}3%{opacity:1}12%{opacity:1;transform:scale(1)}13.3%,100%{opacity:0;transform:scale(0.8)}}
|
|
@@ -1,110 +1,181 @@
|
|
|
1
1
|
@use "style/token" as *;
|
|
2
2
|
@use "style/object" as *;
|
|
3
3
|
|
|
4
|
+
/*
|
|
5
|
+
* One round: the countdown (three numbers, 0.8s each, so up to 2.4s), the reveal (from 2.4s), a hold, and the reset.
|
|
6
|
+
* Every part runs on the same clock. Without motion, what's left is the end of the reveal: the product on show.
|
|
7
|
+
*/
|
|
8
|
+
$round: 6s;
|
|
9
|
+
|
|
4
10
|
.object {
|
|
5
11
|
@include centered(0px, 0px);
|
|
6
|
-
@include loop(launch-
|
|
7
|
-
transform: translateY(
|
|
12
|
+
@include loop(launch-sway 12s ease-in-out infinite);
|
|
13
|
+
transform: translateY(30px) scale(1.25) rotateX(-16deg) rotateY(-26deg);
|
|
8
14
|
}
|
|
9
|
-
@keyframes launch-
|
|
10
|
-
|
|
11
|
-
|
|
15
|
+
@keyframes launch-sway {
|
|
16
|
+
0%,
|
|
17
|
+
100% {
|
|
18
|
+
transform: translateY(30px) scale(1.25) rotateX(-16deg) rotateY(-26deg);
|
|
12
19
|
}
|
|
13
|
-
|
|
14
|
-
.
|
|
15
|
-
@include centered(150px, 150px);
|
|
16
|
-
@include face(4%, 35%);
|
|
17
|
-
border-radius: 50%;
|
|
18
|
-
transform: translateY(26px) rotateX(90deg);
|
|
19
|
-
background: radial-gradient(circle, tint(22%) 1px, transparent 1.5px) 0 0 / 12px 12px;
|
|
20
|
-
i {
|
|
21
|
-
position: absolute;
|
|
22
|
-
inset: 40%;
|
|
23
|
-
border-radius: 50%;
|
|
24
|
-
border: 1.5px solid tint(70%);
|
|
25
|
-
opacity: 0;
|
|
26
|
-
@include loop(launch-ring 3.4s ease-out infinite);
|
|
27
|
-
&:nth-child(2) {
|
|
28
|
-
animation-delay: 0.3s;
|
|
29
|
-
}
|
|
20
|
+
50% {
|
|
21
|
+
transform: translateY(30px) scale(1.25) rotateX(-12deg) rotateY(18deg);
|
|
30
22
|
}
|
|
31
23
|
}
|
|
32
|
-
|
|
24
|
+
.stage {
|
|
25
|
+
--width: 96px;
|
|
26
|
+
--height: 14px;
|
|
27
|
+
--depth: 96px;
|
|
28
|
+
--radius: 3px;
|
|
29
|
+
--fill-amount: 8%;
|
|
30
|
+
--edge-amount: 55%;
|
|
31
|
+
transform: translateY(30px);
|
|
32
|
+
}
|
|
33
|
+
/* The product: a slim device, its screen lit, rising out of the stage. */
|
|
34
|
+
.product {
|
|
35
|
+
--width: 34px;
|
|
36
|
+
--height: 52px;
|
|
37
|
+
--depth: 10px;
|
|
38
|
+
--fill-amount: 14%;
|
|
39
|
+
--edge-amount: 80%;
|
|
40
|
+
transform: translateY(-14px);
|
|
41
|
+
@include loop(launch-product $round $ease infinite);
|
|
42
|
+
}
|
|
43
|
+
/* Boxes are shown and hidden by scale, not opacity, which would flatten them. */
|
|
44
|
+
@keyframes launch-product {
|
|
33
45
|
0%,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
opacity: 0;
|
|
46
|
+
40% {
|
|
47
|
+
transform: translateY(14px) scale(0);
|
|
37
48
|
}
|
|
38
|
-
|
|
39
|
-
|
|
49
|
+
58%,
|
|
50
|
+
86% {
|
|
51
|
+
transform: translateY(-14px) scale(1);
|
|
40
52
|
}
|
|
41
|
-
60%,
|
|
42
53
|
100% {
|
|
43
|
-
|
|
44
|
-
opacity: 0;
|
|
54
|
+
transform: translateY(14px) scale(0);
|
|
45
55
|
}
|
|
46
56
|
}
|
|
47
|
-
.
|
|
48
|
-
|
|
49
|
-
|
|
57
|
+
.screen {
|
|
58
|
+
position: absolute;
|
|
59
|
+
inset: 4px 3px 8px;
|
|
60
|
+
border-radius: 2px;
|
|
61
|
+
background: linear-gradient(160deg, var(--foreground), tint(40%));
|
|
62
|
+
}
|
|
63
|
+
/* The cover over the product during the countdown, lifted away at zero. */
|
|
64
|
+
.cover {
|
|
65
|
+
--width: 48px;
|
|
66
|
+
--height: 62px;
|
|
67
|
+
--depth: 48px;
|
|
68
|
+
--fill-amount: 22%;
|
|
69
|
+
--front-amount: 26%;
|
|
70
|
+
--edge-amount: 60%;
|
|
71
|
+
transform: translateY(-8px) scale(0);
|
|
72
|
+
@include loop(launch-cover $round $ease infinite);
|
|
50
73
|
}
|
|
51
|
-
@keyframes launch-
|
|
74
|
+
@keyframes launch-cover {
|
|
52
75
|
0%,
|
|
53
|
-
|
|
54
|
-
transform: translateY(
|
|
76
|
+
40% {
|
|
77
|
+
transform: translateY(-8px) scale(1);
|
|
55
78
|
}
|
|
56
|
-
|
|
57
|
-
transform: translateY(-
|
|
79
|
+
58% {
|
|
80
|
+
transform: translateY(-260px) scale(1);
|
|
58
81
|
}
|
|
59
|
-
|
|
60
|
-
|
|
82
|
+
59%,
|
|
83
|
+
90% {
|
|
84
|
+
transform: translateY(-8px) scale(0);
|
|
61
85
|
}
|
|
62
|
-
|
|
63
|
-
transform: translateY(
|
|
86
|
+
100% {
|
|
87
|
+
transform: translateY(-8px) scale(1);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
/* The light the product rises into. */
|
|
91
|
+
.glow {
|
|
92
|
+
@include centered(170px, 170px);
|
|
93
|
+
border-radius: 50%;
|
|
94
|
+
background: radial-gradient(circle, tint(26%), transparent 62%);
|
|
95
|
+
transform: translateY(-14px) translateZ(-40px);
|
|
96
|
+
@include loop(launch-glow $round ease-out infinite);
|
|
97
|
+
}
|
|
98
|
+
@keyframes launch-glow {
|
|
99
|
+
0%,
|
|
100
|
+
40% {
|
|
101
|
+
opacity: 0;
|
|
102
|
+
transform: translateY(-14px) translateZ(-40px) scale(0.3);
|
|
64
103
|
}
|
|
65
|
-
|
|
66
|
-
|
|
104
|
+
56%,
|
|
105
|
+
88% {
|
|
106
|
+
opacity: 1;
|
|
107
|
+
transform: translateY(-14px) translateZ(-40px) scale(1);
|
|
67
108
|
}
|
|
68
109
|
100% {
|
|
69
|
-
|
|
110
|
+
opacity: 0;
|
|
111
|
+
transform: translateY(-14px) translateZ(-40px) scale(1);
|
|
70
112
|
}
|
|
71
113
|
}
|
|
72
|
-
.
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
114
|
+
.sparks {
|
|
115
|
+
@include centered(0px, 0px);
|
|
116
|
+
transform: translateY(-14px);
|
|
117
|
+
i {
|
|
118
|
+
position: absolute;
|
|
119
|
+
left: -3px;
|
|
120
|
+
top: -3px;
|
|
121
|
+
width: 6px;
|
|
122
|
+
height: 6px;
|
|
123
|
+
border-radius: 50%;
|
|
124
|
+
background: var(--foreground);
|
|
125
|
+
box-shadow: 0 0 8px tint(70%);
|
|
126
|
+
opacity: 0;
|
|
127
|
+
@include loop(launch-spark $round ease-out infinite);
|
|
128
|
+
}
|
|
79
129
|
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
130
|
+
@keyframes launch-spark {
|
|
131
|
+
0%,
|
|
132
|
+
42% {
|
|
133
|
+
opacity: 0;
|
|
134
|
+
transform: rotate(var(--angle)) translateX(10px) scale(1);
|
|
135
|
+
}
|
|
136
|
+
46% {
|
|
137
|
+
opacity: 1;
|
|
138
|
+
}
|
|
139
|
+
66%,
|
|
140
|
+
100% {
|
|
141
|
+
opacity: 0;
|
|
142
|
+
transform: rotate(var(--angle)) translateX(84px) scale(0.3);
|
|
143
|
+
}
|
|
87
144
|
}
|
|
88
|
-
.
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
145
|
+
/* The numbers counting down above the covered product, each growing in and fading. */
|
|
146
|
+
.countdown {
|
|
147
|
+
@include centered(0px, 0px);
|
|
148
|
+
transform: translateY(-82px);
|
|
149
|
+
span {
|
|
150
|
+
position: absolute;
|
|
151
|
+
left: -30px;
|
|
152
|
+
top: -24px;
|
|
153
|
+
width: 60px;
|
|
154
|
+
line-height: 48px;
|
|
155
|
+
text-align: center;
|
|
156
|
+
font-family: var(--font-display, inherit);
|
|
157
|
+
font-size: 40px;
|
|
158
|
+
font-weight: 700;
|
|
159
|
+
color: var(--foreground);
|
|
160
|
+
opacity: 0;
|
|
161
|
+
@include loop(launch-count $round $ease infinite backwards);
|
|
162
|
+
}
|
|
95
163
|
}
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
0%,
|
|
99
|
-
10% {
|
|
164
|
+
@keyframes launch-count {
|
|
165
|
+
0% {
|
|
100
166
|
opacity: 0;
|
|
167
|
+
transform: scale(1.6);
|
|
101
168
|
}
|
|
102
|
-
|
|
103
|
-
|
|
169
|
+
3% {
|
|
170
|
+
opacity: 1;
|
|
171
|
+
}
|
|
172
|
+
12% {
|
|
104
173
|
opacity: 1;
|
|
174
|
+
transform: scale(1);
|
|
105
175
|
}
|
|
106
|
-
|
|
176
|
+
13.3%,
|
|
107
177
|
100% {
|
|
108
178
|
opacity: 0;
|
|
179
|
+
transform: scale(0.8);
|
|
109
180
|
}
|
|
110
181
|
}
|
|
@@ -52,8 +52,8 @@ export declare const SERVICES: {
|
|
|
52
52
|
readonly pt: "Plataformas";
|
|
53
53
|
};
|
|
54
54
|
readonly text: {
|
|
55
|
-
readonly en: "Your company's
|
|
56
|
-
readonly pt: "
|
|
55
|
+
readonly en: "Your company's way of working, made digital: one system where your team and clients work together, while bookings, orders, stock and invoicing run on their own.";
|
|
56
|
+
readonly pt: "A forma de trabalhar da sua empresa, em digital: um só sistema onde a equipa e os clientes trabalham juntos, enquanto reservas, encomendas, stock e faturação andam sozinhos.";
|
|
57
57
|
};
|
|
58
58
|
readonly action: {
|
|
59
59
|
readonly en: "Build a Platform";
|
|
@@ -34,8 +34,8 @@ export const SERVICES = {
|
|
|
34
34
|
key: "platform",
|
|
35
35
|
title: { en: "Platforms", pt: "Plataformas" },
|
|
36
36
|
text: {
|
|
37
|
-
en: "Your company's
|
|
38
|
-
pt: "
|
|
37
|
+
en: "Your company's way of working, made digital: one system where your team and clients work together, while bookings, orders, stock and invoicing run on their own.",
|
|
38
|
+
pt: "A forma de trabalhar da sua empresa, em digital: um só sistema onde a equipa e os clientes trabalham juntos, enquanto reservas, encomendas, stock e faturação andam sozinhos.",
|
|
39
39
|
},
|
|
40
40
|
action: { en: "Build a Platform", pt: "Criar uma Plataforma" },
|
|
41
41
|
chip: { en: "Platform", pt: "Plataforma" },
|