@sharadox/sharadox-web-library 0.25.0 → 0.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/distribution/component/service-object/brand-awareness/index.d.ts +5 -1
- package/distribution/component/service-object/brand-awareness/index.d.ts.map +1 -1
- package/distribution/component/service-object/brand-awareness/index.js +25 -3
- package/distribution/component/service-object/brand-awareness/index.js.map +1 -1
- package/distribution/component/service-object/brand-awareness/index.module.css +1 -1
- package/distribution/component/service-object/brand-awareness/index.module.scss +147 -68
- package/distribution/component/service-object/branding/index.d.ts +4 -1
- package/distribution/component/service-object/branding/index.d.ts.map +1 -1
- package/distribution/component/service-object/branding/index.js +7 -3
- package/distribution/component/service-object/branding/index.js.map +1 -1
- package/distribution/component/service-object/branding/index.module.css +1 -1
- package/distribution/component/service-object/branding/index.module.scss +109 -42
- package/distribution/component/service-object/branding-design/index.d.ts +4 -1
- package/distribution/component/service-object/branding-design/index.d.ts.map +1 -1
- package/distribution/component/service-object/branding-design/index.js +36 -2
- package/distribution/component/service-object/branding-design/index.js.map +1 -1
- package/distribution/component/service-object/branding-design/index.module.css +1 -1
- package/distribution/component/service-object/branding-design/index.module.scss +64 -47
- package/distribution/component/service-object/index.js +4 -4
- package/distribution/component/service-object/index.js.map +1 -1
- package/distribution/component/service-object/mark/index.d.ts +10 -0
- package/distribution/component/service-object/mark/index.d.ts.map +1 -0
- package/distribution/component/service-object/mark/index.js +14 -0
- package/distribution/component/service-object/mark/index.js.map +1 -0
- package/distribution/component/service-object/mark/index.module.css +1 -0
- package/distribution/component/service-object/mark/index.module.scss +23 -0
- package/distribution/component/service-object/mark/type.d.ts +5 -0
- package/distribution/component/service-object/mark/type.d.ts.map +1 -0
- package/distribution/component/service-object/mark/type.js +2 -0
- package/distribution/component/service-object/mark/type.js.map +1 -0
- package/distribution/component/service-object/merchandise/index.d.ts +6 -0
- package/distribution/component/service-object/merchandise/index.d.ts.map +1 -0
- package/distribution/component/service-object/merchandise/index.js +13 -0
- package/distribution/component/service-object/merchandise/index.js.map +1 -0
- package/distribution/component/service-object/merchandise/index.module.css +1 -0
- package/distribution/component/service-object/merchandise/index.module.scss +91 -0
- package/distribution/component/service-object/person/index.d.ts +10 -0
- package/distribution/component/service-object/person/index.d.ts.map +1 -0
- package/distribution/component/service-object/person/index.js +14 -0
- package/distribution/component/service-object/person/index.js.map +1 -0
- package/distribution/component/service-object/person/index.module.css +1 -0
- package/distribution/component/service-object/person/index.module.scss +38 -0
- package/distribution/component/service-object/person/type.d.ts +5 -0
- package/distribution/component/service-object/person/type.d.ts.map +1 -0
- package/distribution/component/service-object/person/type.js +2 -0
- package/distribution/component/service-object/person/type.js.map +1 -0
- package/distribution/component/service-object/platform/index.d.ts +5 -1
- package/distribution/component/service-object/platform/index.d.ts.map +1 -1
- package/distribution/component/service-object/platform/index.js +36 -3
- package/distribution/component/service-object/platform/index.js.map +1 -1
- package/distribution/component/service-object/platform/index.module.css +1 -1
- package/distribution/component/service-object/platform/index.module.scss +139 -35
- package/distribution/component/service-object/product-launch/index.d.ts +5 -1
- package/distribution/component/service-object/product-launch/index.d.ts.map +1 -1
- package/distribution/component/service-object/product-launch/index.js +10 -2
- package/distribution/component/service-object/product-launch/index.js.map +1 -1
- package/distribution/component/service-object/product-launch/index.module.css +1 -1
- package/distribution/component/service-object/product-launch/index.module.scss +145 -74
- package/distribution/component/service-object/professional-email/index.d.ts +6 -0
- package/distribution/component/service-object/professional-email/index.d.ts.map +1 -0
- package/distribution/component/service-object/professional-email/index.js +12 -0
- package/distribution/component/service-object/professional-email/index.js.map +1 -0
- package/distribution/component/service-object/professional-email/index.module.css +1 -0
- package/distribution/component/service-object/professional-email/index.module.scss +153 -0
- package/distribution/component/service-object/rebranding/index.d.ts +4 -1
- package/distribution/component/service-object/rebranding/index.d.ts.map +1 -1
- package/distribution/component/service-object/rebranding/index.js +5 -3
- package/distribution/component/service-object/rebranding/index.js.map +1 -1
- package/distribution/component/service-object/rebranding/index.module.css +1 -1
- package/distribution/component/service-object/rebranding/index.module.scss +88 -44
- package/distribution/component/services/index.d.ts +1 -2
- package/distribution/component/services/index.d.ts.map +1 -1
- package/distribution/component/services/index.js +1 -2
- package/distribution/component/services/index.js.map +1 -1
- package/distribution/component/structured-data/index.d.ts.map +1 -1
- package/distribution/component/structured-data/index.js +3 -2
- package/distribution/component/structured-data/index.js.map +1 -1
- package/distribution/content/contact/index.d.ts +28 -28
- package/distribution/content/services/index.d.ts +67 -67
- package/distribution/content/services/index.js +49 -49
- package/distribution/content/services/index.js.map +1 -1
- package/distribution/content/site/index.d.ts.map +1 -1
- package/distribution/content/site/index.js +8 -6
- package/distribution/content/site/index.js.map +1 -1
- package/llms.txt +3 -1
- package/package.json +2 -2
- package/distribution/component/service-object/application-programming-interface/index.d.ts +0 -6
- package/distribution/component/service-object/application-programming-interface/index.d.ts.map +0 -1
- package/distribution/component/service-object/application-programming-interface/index.js +0 -11
- package/distribution/component/service-object/application-programming-interface/index.js.map +0 -1
- package/distribution/component/service-object/application-programming-interface/index.module.css +0 -1
- package/distribution/component/service-object/application-programming-interface/index.module.scss +0 -154
- package/distribution/component/service-object/content-management-system/index.d.ts +0 -6
- package/distribution/component/service-object/content-management-system/index.d.ts.map +0 -1
- package/distribution/component/service-object/content-management-system/index.js +0 -10
- package/distribution/component/service-object/content-management-system/index.js.map +0 -1
- package/distribution/component/service-object/content-management-system/index.module.css +0 -1
- package/distribution/component/service-object/content-management-system/index.module.scss +0 -181
|
@@ -1,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
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Professional email: an envelope opens and its letter rises, while the address in front of it changes name after
|
|
3
|
+
* name, always at your own domain.
|
|
4
|
+
*/
|
|
5
|
+
export declare function ProfessionalEmail(): import("react").JSX.Element;
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/service-object/professional-email/index.tsx"],"names":[],"mappings":"AAKA;;;GAGG;AACH,wBAAgB,iBAAiB,gCAwBhC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import styles from "./index.module.css";
|
|
3
|
+
/** The names before the @ that take turns in the address. */
|
|
4
|
+
const NAMES = ["hello", "team", "you"];
|
|
5
|
+
/**
|
|
6
|
+
* Professional email: an envelope opens and its letter rises, while the address in front of it changes name after
|
|
7
|
+
* name, always at your own domain.
|
|
8
|
+
*/
|
|
9
|
+
export function ProfessionalEmail() {
|
|
10
|
+
return (_jsxs("div", { className: styles.object, children: [_jsxs("div", { className: styles.envelope, children: [_jsxs("span", { className: styles.letter, children: [_jsx("i", {}), _jsx("i", {}), _jsx("i", {})] }), _jsx("span", { className: styles.pocket }), _jsx("span", { className: styles.flap })] }), _jsxs("div", { className: styles.address, children: [_jsx("span", { className: styles.names, children: NAMES.map((name, index) => (_jsx("span", { style: { animationDelay: `${index * 3}s` }, children: name }, name))) }), _jsx("b", { children: "@yourdomain.com" })] })] }));
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/service-object/professional-email/index.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,6DAA6D;AAC7D,MAAM,KAAK,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;AAEvC;;;GAGG;AACH,MAAM,UAAU,iBAAiB;IAC/B,OAAO,CACL,eAAK,SAAS,EAAE,MAAM,CAAC,MAAM,aAC3B,eAAK,SAAS,EAAE,MAAM,CAAC,QAAQ,aAC7B,gBAAM,SAAS,EAAE,MAAM,CAAC,MAAM,aAC5B,aAAK,EACL,aAAK,EACL,aAAK,IACA,EACP,eAAM,SAAS,EAAE,MAAM,CAAC,MAAM,GAAI,EAClC,eAAM,SAAS,EAAE,MAAM,CAAC,IAAI,GAAI,IAC5B,EACN,eAAK,SAAS,EAAE,MAAM,CAAC,OAAO,aAC5B,eAAM,SAAS,EAAE,MAAM,CAAC,KAAK,YAC1B,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CAC1B,eAAiB,KAAK,EAAE,EAAE,cAAc,EAAE,GAAG,KAAK,GAAG,CAAC,GAAG,EAAE,YACxD,IAAI,IADI,IAAI,CAER,CACR,CAAC,GACG,EACP,0CAAsB,IAClB,IACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.object{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d;animation:email-sway 9s ease-in-out infinite}@media(prefers-reduced-motion: reduce){.object{animation:none}}.object{transform:rotateX(10deg) rotateY(18deg)}@keyframes email-sway{0%,100%{transform:rotateX(10deg) rotateY(22deg)}50%{transform:rotateX(4deg) rotateY(6deg)}}.envelope{position:absolute;left:50%;top:50%;width:136px;height:88px;margin:-44px 0 0 -68px;transform-style:preserve-3d;transform:translate3d(0, -26px, -30px)}.letter{box-sizing:border-box;background:color-mix(in srgb, var(--foreground) 10%, transparent);border:1px solid color-mix(in srgb, var(--foreground) 55%, transparent);animation:email-letter 6s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.letter{animation:none}}.letter{position:absolute;inset:8px 12px 6px;display:grid;align-content:start;gap:6px;padding:10px;border-radius:3px;background:var(--background);transform:translateZ(1px)}.letter i{height:4px;border-radius:2px;background:color-mix(in srgb, var(--foreground) 35%, transparent)}.letter i:first-child{width:50%;background:color-mix(in srgb, var(--foreground) 65%, transparent)}.letter i:last-child{width:70%}@keyframes email-letter{0%,22%{transform:translate3d(0, 0, 1px)}42%,70%{transform:translate3d(0, -42px, 1px)}88%,100%{transform:translate3d(0, 0, 1px)}}.pocket{box-sizing:border-box;background:color-mix(in srgb, var(--foreground) 8%, transparent);border:1px solid color-mix(in srgb, var(--foreground) 50%, transparent);position:absolute;inset:0;border-radius:4px;background:linear-gradient(to top right, transparent calc(50% - 0.5px), color-mix(in srgb, var(--foreground) 40%, transparent) 50%, transparent calc(50% + 0.5px)) left bottom/50% 100% no-repeat,linear-gradient(to top left, transparent calc(50% - 0.5px), color-mix(in srgb, var(--foreground) 40%, transparent) 50%, transparent calc(50% + 0.5px)) right bottom/50% 100% no-repeat,color-mix(in srgb, var(--background) 88%, var(--foreground));transform:translateZ(4px)}.flap{animation:email-flap 6s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.flap{animation:none}}.flap{position:absolute;inset:0 0 auto;height:52px;background:color-mix(in srgb, var(--background) 80%, var(--foreground));clip-path:polygon(0 0, 100% 0, 50% 100%);transform-origin:top;transform:translateZ(5px) rotateX(0deg)}@keyframes email-flap{0%,10%{transform:translateZ(5px) rotateX(0deg)}28%,80%{transform:translateZ(-2px) rotateX(-180deg)}96%,100%{transform:translateZ(5px) rotateX(0deg)}}.address{box-sizing:border-box;background:color-mix(in srgb, var(--foreground) 10%, transparent);border:1px solid color-mix(in srgb, var(--foreground) 60%, transparent);position:absolute;left:50%;top:50%;display:flex;align-items:center;height:34px;padding:0 14px;border-radius:999px;background:var(--background);box-shadow:0 18px 40px -18px color-mix(in srgb, var(--foreground) 40%, transparent);font-size:13px;white-space:nowrap;transform:translate3d(-50%, 44px, 40px)}.address b{margin-left:1px;font-weight:600;color:var(--foreground)}.names{display:inline-grid;justify-items:end;color:color-mix(in srgb, var(--foreground) 60%, transparent)}.names span{grid-area:1/1;opacity:0;animation:email-name 9s cubic-bezier(0.22, 1, 0.36, 1) infinite backwards}@media(prefers-reduced-motion: reduce){.names span{animation:none}}@media(prefers-reduced-motion: reduce){.names span:last-child{opacity:1}}@keyframes email-name{0%{opacity:0;transform:translateY(8px)}6%,30%{opacity:1;transform:translateY(0)}36%,100%{opacity:0;transform:translateY(-8px)}}
|