@sharadox/sharadox-web-library 0.28.0 → 0.29.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.
Files changed (26) hide show
  1. package/distribution/component/service-object/android-application/index.d.ts +5 -1
  2. package/distribution/component/service-object/android-application/index.d.ts.map +1 -1
  3. package/distribution/component/service-object/android-application/index.js +11 -3
  4. package/distribution/component/service-object/android-application/index.js.map +1 -1
  5. package/distribution/component/service-object/android-application/index.module.css +1 -1
  6. package/distribution/component/service-object/android-application/index.module.scss +112 -30
  7. package/distribution/component/service-object/hosting/index.d.ts +2 -3
  8. package/distribution/component/service-object/hosting/index.d.ts.map +1 -1
  9. package/distribution/component/service-object/hosting/index.js +3 -6
  10. package/distribution/component/service-object/hosting/index.js.map +1 -1
  11. package/distribution/component/service-object/hosting/index.module.css +1 -1
  12. package/distribution/component/service-object/hosting/index.module.scss +5 -39
  13. package/distribution/component/service-object/ios-application/index.d.ts +4 -1
  14. package/distribution/component/service-object/ios-application/index.d.ts.map +1 -1
  15. package/distribution/component/service-object/ios-application/index.js +10 -3
  16. package/distribution/component/service-object/ios-application/index.js.map +1 -1
  17. package/distribution/component/service-object/ios-application/index.module.css +1 -1
  18. package/distribution/component/service-object/ios-application/index.module.scss +129 -36
  19. package/distribution/component/service-object/product-launch/index.d.ts +4 -3
  20. package/distribution/component/service-object/product-launch/index.d.ts.map +1 -1
  21. package/distribution/component/service-object/product-launch/index.js +9 -11
  22. package/distribution/component/service-object/product-launch/index.js.map +1 -1
  23. package/distribution/component/service-object/product-launch/index.module.css +1 -1
  24. package/distribution/component/service-object/product-launch/index.module.scss +204 -205
  25. package/llms.txt +1 -0
  26. package/package.json +1 -1
@@ -1,3 +1,7 @@
1
- /** Android applications: a phone turning in the hand, its app tiles rising off the screen in a wave, the three-button bar below. */
1
+ /**
2
+ * Android applications: an Android phone as people know it, with the camera in a hole in the screen, round app icons,
3
+ * the search bar and the three buttons. The quick settings shade slides down from the top, its toggles switch on one
4
+ * by one, and it slides back up.
5
+ */
2
6
  export declare function AndroidApplication(): 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/android-application/index.tsx"],"names":[],"mappings":"AAGA,oIAAoI;AACpI,wBAAgB,kBAAkB,gCAuBjC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/service-object/android-application/index.tsx"],"names":[],"mappings":"AAQA;;;;GAIG;AACH,wBAAgB,kBAAkB,gCA+BjC"}
@@ -1,8 +1,16 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
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
- /** Android applications: a phone turning in the hand, its app tiles rising off the screen in a wave, the three-button bar below. */
4
+ /** The home screen's apps: round icons, four to a row. */
5
+ const APPS = 12;
6
+ /** The quick settings in the shade: rounded toggles, two to a row, switching on one after the other. */
7
+ const TOGGLES = 4;
8
+ /**
9
+ * Android applications: an Android phone as people know it, with the camera in a hole in the screen, round app icons,
10
+ * the search bar and the three buttons. The quick settings shade slides down from the top, its toggles switch on one
11
+ * by one, and it slides back up.
12
+ */
5
13
  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 })] })] }) }) }));
14
+ return (_jsx("div", { className: styles.object, children: _jsx(Cuboid, { className: styles.phone, front: _jsxs("span", { className: styles.screen, children: [_jsx("span", { className: styles.status }), _jsx("span", { className: styles.apps, children: Array.from({ length: APPS }, (_, app) => (_jsx("i", {}, app))) }), _jsx("span", { className: styles.search }), _jsxs("span", { className: styles.buttons, children: [_jsx("i", { className: styles.back }), _jsx("i", { className: styles.home }), _jsx("i", { className: styles.recent })] }), _jsxs("span", { className: styles.shade, children: [Array.from({ length: TOGGLES }, (_, toggle) => (_jsx("i", { style: { animationDelay: `${toggle * 0.25}s` } }, toggle))), _jsx("b", {})] }), _jsx("span", { className: styles.camera })] }) }) }));
7
15
  }
8
16
  //# sourceMappingURL=index.js.map
@@ -1 +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"}
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,0DAA0D;AAC1D,MAAM,IAAI,GAAG,EAAE,CAAC;AAChB,wGAAwG;AACxG,MAAM,OAAO,GAAG,CAAC,CAAC;AAElB;;;;GAIG;AACH,MAAM,UAAU,kBAAkB;IAChC,OAAO,CACL,cAAK,SAAS,EAAE,MAAM,CAAC,MAAM,YAC3B,KAAC,MAAM,IACL,SAAS,EAAE,MAAM,CAAC,KAAK,EACvB,KAAK,EACH,gBAAM,SAAS,EAAE,MAAM,CAAC,MAAM,aAC5B,eAAM,SAAS,EAAE,MAAM,CAAC,MAAM,GAAI,EAClC,eAAM,SAAS,EAAE,MAAM,CAAC,IAAI,YACzB,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,CACxC,cAAQ,GAAG,CAAI,CAChB,CAAC,GACG,EACP,eAAM,SAAS,EAAE,MAAM,CAAC,MAAM,GAAI,EAClC,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,EACP,gBAAM,SAAS,EAAE,MAAM,CAAC,KAAK,aAC1B,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC,CAC9C,YAAgB,KAAK,EAAE,EAAE,cAAc,EAAE,GAAG,MAAM,GAAG,IAAI,GAAG,EAAE,IAAtD,MAAM,CAAoD,CACnE,CAAC,EACF,aAAK,IACA,EACP,eAAM,SAAS,EAAE,MAAM,CAAC,MAAM,GAAI,IAC7B,GAET,GACE,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: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}
1
+ .object{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d;animation:android-turn 10s 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(-30deg)}50%{transform:rotateX(6deg) rotateY(20deg)}}.phone{--width: 88px;--height: 176px;--depth: 9px;--radius: 10px;--front-amount: 4%;--edge-amount: 55%}.screen{position:absolute;inset:3px;overflow:hidden;border-radius:8px}.camera{position:absolute;left:50%;top:6px;width:6px;height:6px;margin-left:-3px;border-radius:50%;background:var(--foreground);box-shadow:0 0 0 1.5px var(--background)}.status{position:absolute;left:7px;right:7px;top:7px;height:4px;background:linear-gradient(color-mix(in srgb, var(--foreground) 50%, transparent), color-mix(in srgb, var(--foreground) 50%, transparent)) left/12px 100% no-repeat,linear-gradient(color-mix(in srgb, var(--foreground) 50%, transparent), color-mix(in srgb, var(--foreground) 50%, transparent)) right/14px 100% no-repeat}.apps{position:absolute;inset:26px 9px auto;display:grid;grid-template-columns:repeat(4, 1fr);gap:9px 6px}.apps i{aspect-ratio:1;border-radius:50%;border:1px solid color-mix(in srgb, var(--foreground) 45%, transparent);background:color-mix(in srgb, var(--foreground) 16%, transparent)}.apps i:nth-child(3n+1){background:color-mix(in srgb, var(--foreground) 34%, transparent)}.search{position:absolute;left:9px;right:9px;bottom:26px;height:14px;border-radius:7px;border:1px solid color-mix(in srgb, var(--foreground) 45%, transparent);background:radial-gradient(circle at 9px 50%, color-mix(in srgb, var(--foreground) 70%, transparent) 3px, transparent 3.5px),color-mix(in srgb, var(--foreground) 10%, transparent)}.buttons{position:absolute;left:20px;right:20px;bottom:7px;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{width:0 !important;height:0 !important;border: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}.shade{position:absolute;left:0;right:0;top:0;display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:18px 7px 12px;border-radius:0 0 12px 12px;background:var(--background);border-bottom:1px solid color-mix(in srgb, var(--foreground) 45%, transparent);box-shadow:0 8px 18px -8px color-mix(in srgb, var(--foreground) 40%, transparent);transform:translateY(-105%);animation:android-shade 6s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.shade{animation:none}}.shade i{height:16px;border-radius:8px;border:1px solid color-mix(in srgb, var(--foreground) 40%, transparent);background:radial-gradient(circle at 8px 50%, color-mix(in srgb, var(--foreground) 60%, transparent) 3px, transparent 3.5px),color-mix(in srgb, var(--foreground) 10%, transparent);animation:android-toggle 6s ease-out infinite}@media(prefers-reduced-motion: reduce){.shade i{animation:none}}.shade b{grid-column:1/-1;justify-self:center;width:18px;height:3px;margin-top:3px;border-radius:2px;background:color-mix(in srgb, var(--foreground) 45%, transparent)}@keyframes android-shade{0%,20%{transform:translateY(-105%)}32%,72%{transform:translateY(0)}84%,100%{transform:translateY(-105%)}}@keyframes android-toggle{0%,38%{background:radial-gradient(circle at 8px 50%, color-mix(in srgb, var(--foreground) 60%, transparent) 3px, transparent 3.5px),color-mix(in srgb, var(--foreground) 10%, transparent)}44%,100%{background:radial-gradient(circle at 8px 50%, var(--background) 3px, transparent 3.5px),var(--foreground)}}
@@ -1,70 +1,93 @@
1
1
  @use "style/token" as *;
2
2
  @use "style/object" as *;
3
3
 
4
+ /* One round: the home screen, the shade sliding down (from 20%), its toggles switching on, and back up (from 72%). */
5
+ $round: 6s;
6
+
4
7
  .object {
5
8
  @include centered(0px, 0px);
6
- @include loop(android-turn 9s ease-in-out infinite);
9
+ @include loop(android-turn 10s ease-in-out infinite);
7
10
  transform: rotateX(10deg) rotateY(-28deg);
8
11
  }
9
12
  @keyframes android-turn {
10
13
  0%,
11
14
  100% {
12
- transform: rotateX(10deg) rotateY(-32deg) rotateZ(-2deg);
15
+ transform: rotateX(10deg) rotateY(-30deg);
13
16
  }
14
17
  50% {
15
- transform: rotateX(6deg) rotateY(24deg) rotateZ(2deg);
18
+ transform: rotateX(6deg) rotateY(20deg);
16
19
  }
17
20
  }
18
21
  .phone {
19
22
  --width: 88px;
20
- --height: 172px;
23
+ --height: 176px;
21
24
  --depth: 9px;
22
- --radius: 12px;
25
+ --radius: 10px;
23
26
  --front-amount: 4%;
24
27
  --edge-amount: 55%;
25
28
  }
29
+ .screen {
30
+ position: absolute;
31
+ inset: 3px;
32
+ overflow: hidden;
33
+ border-radius: 8px;
34
+ }
35
+ /* The camera in a small hole at the top of the screen. */
26
36
  .camera {
27
37
  position: absolute;
28
38
  left: 50%;
29
- top: 8px;
39
+ top: 6px;
30
40
  width: 6px;
31
41
  height: 6px;
32
42
  margin-left: -3px;
33
43
  border-radius: 50%;
34
- background: tint(55%);
44
+ background: var(--foreground);
45
+ box-shadow: 0 0 0 1.5px var(--background);
46
+ }
47
+ .status {
48
+ position: absolute;
49
+ left: 7px;
50
+ right: 7px;
51
+ top: 7px;
52
+ height: 4px;
53
+ background:
54
+ linear-gradient(tint(50%), tint(50%)) left / 12px 100% no-repeat,
55
+ linear-gradient(tint(50%), tint(50%)) right / 14px 100% no-repeat;
35
56
  }
36
- .tiles {
57
+ /* Round app icons, four to a row. */
58
+ .apps {
37
59
  position: absolute;
38
- inset: 24px 11px 30px;
60
+ inset: 26px 9px auto;
39
61
  display: grid;
40
- grid-template-columns: repeat(3, 1fr);
41
- gap: 8px;
42
- transform-style: preserve-3d;
62
+ grid-template-columns: repeat(4, 1fr);
63
+ gap: 9px 6px;
43
64
  i {
44
65
  aspect-ratio: 1;
45
- border-radius: 6px;
66
+ border-radius: 50%;
46
67
  border: 1px solid tint(45%);
47
- background: tint(14%);
48
- @include loop(android-rise 2.8s $ease infinite);
68
+ background: tint(16%);
69
+ &:nth-child(3n + 1) {
70
+ background: tint(34%);
71
+ }
49
72
  }
50
73
  }
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
- }
74
+ /* The search bar near the bottom: a long pill with a round mark at its start. */
75
+ .search {
76
+ position: absolute;
77
+ left: 9px;
78
+ right: 9px;
79
+ bottom: 26px;
80
+ height: 14px;
81
+ border-radius: 7px;
82
+ border: 1px solid tint(45%);
83
+ background: radial-gradient(circle at 9px 50%, tint(70%) 3px, transparent 3.5px), tint(10%);
62
84
  }
85
+ /* The three buttons: back, home and recent apps. */
63
86
  .buttons {
64
87
  position: absolute;
65
- left: 18px;
66
- right: 18px;
67
- bottom: 9px;
88
+ left: 20px;
89
+ right: 20px;
90
+ bottom: 7px;
68
91
  display: flex;
69
92
  align-items: center;
70
93
  justify-content: space-between;
@@ -75,9 +98,9 @@
75
98
  }
76
99
  }
77
100
  .back {
78
- border: 0 !important;
79
101
  width: 0 !important;
80
102
  height: 0 !important;
103
+ border: 0 !important;
81
104
  border-top: 4.5px solid transparent !important;
82
105
  border-bottom: 4.5px solid transparent !important;
83
106
  border-right: 7px solid tint(55%) !important;
@@ -88,3 +111,62 @@
88
111
  .recent {
89
112
  border-radius: 2px;
90
113
  }
114
+ /* The quick settings shade, pulled down over the top of the screen. */
115
+ .shade {
116
+ position: absolute;
117
+ left: 0;
118
+ right: 0;
119
+ top: 0;
120
+ display: grid;
121
+ grid-template-columns: 1fr 1fr;
122
+ gap: 5px;
123
+ padding: 18px 7px 12px;
124
+ border-radius: 0 0 12px 12px;
125
+ background: var(--background);
126
+ border-bottom: 1px solid tint(45%);
127
+ box-shadow: 0 8px 18px -8px tint(40%);
128
+ transform: translateY(-105%);
129
+ @include loop(android-shade $round $ease infinite);
130
+ // A toggle: a rounded pill with a round icon, dim when off, lit when on.
131
+ i {
132
+ height: 16px;
133
+ border-radius: 8px;
134
+ border: 1px solid tint(40%);
135
+ background: radial-gradient(circle at 8px 50%, tint(60%) 3px, transparent 3.5px), tint(10%);
136
+ @include loop(android-toggle $round ease-out infinite);
137
+ }
138
+ // The handle at the bottom of the shade.
139
+ b {
140
+ grid-column: 1 / -1;
141
+ justify-self: center;
142
+ width: 18px;
143
+ height: 3px;
144
+ margin-top: 3px;
145
+ border-radius: 2px;
146
+ background: tint(45%);
147
+ }
148
+ }
149
+ @keyframes android-shade {
150
+ 0%,
151
+ 20% {
152
+ transform: translateY(-105%);
153
+ }
154
+ 32%,
155
+ 72% {
156
+ transform: translateY(0);
157
+ }
158
+ 84%,
159
+ 100% {
160
+ transform: translateY(-105%);
161
+ }
162
+ }
163
+ @keyframes android-toggle {
164
+ 0%,
165
+ 38% {
166
+ background: radial-gradient(circle at 8px 50%, tint(60%) 3px, transparent 3.5px), tint(10%);
167
+ }
168
+ 44%,
169
+ 100% {
170
+ background: radial-gradient(circle at 8px 50%, var(--background) 3px, transparent 3.5px), var(--foreground);
171
+ }
172
+ }
@@ -1,7 +1,6 @@
1
1
  /**
2
- * Hosting: what we build, kept running. A rack of servers, their lights blinking, watched by an uptime line that beats
3
- * steadily. Then one server has an incident: its lights go out and the line dips. It is looked after at once: the
4
- * server comes back with a ring of light and a tick, and the line beats steadily again.
2
+ * Hosting: what we build, kept running. A rack of servers, their lights blinking. Then one server has an incident and
3
+ * its lights go out. It is looked after at once: the server comes back with a glow and a tick.
5
4
  */
6
5
  export declare function Hosting(): import("react").JSX.Element;
7
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/service-object/hosting/index.tsx"],"names":[],"mappings":"AASA;;;;GAIG;AACH,wBAAgB,OAAO,gCAwBtB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/service-object/hosting/index.tsx"],"names":[],"mappings":"AAKA;;;GAGG;AACH,wBAAgB,OAAO,gCAoBtB"}
@@ -3,14 +3,11 @@ import { Cuboid } from "@sharadox/sharadox-web-library/component/service-object/
3
3
  import styles from "./index.module.css";
4
4
  /** The servers in the rack, top to bottom; the middle one is the one that has the incident. */
5
5
  const SERVERS = 3;
6
- /** The uptime line: steady beats, a dip where the incident happens, and steady again once it is fixed. */
7
- const PULSE = "M0 30 L22 30 L28 18 L34 42 L40 30 L70 30 L76 18 L82 42 L88 30 L104 30 L110 52 L132 52 L138 30 L160 30 L166 18 L172 42 L178 30 L200 30";
8
6
  /**
9
- * Hosting: what we build, kept running. A rack of servers, their lights blinking, watched by an uptime line that beats
10
- * steadily. Then one server has an incident: its lights go out and the line dips. It is looked after at once: the
11
- * server comes back with a ring of light and a tick, and the line beats steadily again.
7
+ * Hosting: what we build, kept running. A rack of servers, their lights blinking. Then one server has an incident and
8
+ * its lights go out. It is looked after at once: the server comes back with a glow and a tick.
12
9
  */
13
10
  export function Hosting() {
14
- return (_jsxs("div", { className: styles.object, children: [_jsxs("svg", { className: styles.monitor, viewBox: "0 0 200 60", preserveAspectRatio: "none", children: [_jsx("path", { className: styles.track, d: PULSE }), _jsx("path", { className: styles.beat, d: PULSE, pathLength: 100 })] }), Array.from({ length: SERVERS }, (_, server) => (_jsx(Cuboid, { className: styles.server, front: _jsxs("span", { className: styles.panel, "data-incident": server === 1 || undefined, children: [[0, 1, 2].map((light) => (_jsx("i", { style: { animationDelay: `${(server * 3 + light) * -0.37}s` } }, light))), _jsx("b", {})] }) }, server))), _jsx("span", { className: styles.fixed })] }));
11
+ return (_jsxs("div", { className: styles.object, children: [Array.from({ length: SERVERS }, (_, server) => (_jsx(Cuboid, { className: styles.server, front: _jsxs("span", { className: styles.panel, "data-incident": server === 1 || undefined, children: [[0, 1, 2].map((light) => (_jsx("i", { style: { animationDelay: `${(server * 3 + light) * -0.37}s` } }, light))), _jsx("b", {})] }) }, server))), _jsx("span", { className: styles.fixed })] }));
15
12
  }
16
13
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/service-object/hosting/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gEAAgE,CAAC;AACxF,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,+FAA+F;AAC/F,MAAM,OAAO,GAAG,CAAC,CAAC;AAClB,0GAA0G;AAC1G,MAAM,KAAK,GACT,uIAAuI,CAAC;AAE1I;;;;GAIG;AACH,MAAM,UAAU,OAAO;IACrB,OAAO,CACL,eAAK,SAAS,EAAE,MAAM,CAAC,MAAM,aAC3B,eAAK,SAAS,EAAE,MAAM,CAAC,OAAO,EAAE,OAAO,EAAC,YAAY,EAAC,mBAAmB,EAAC,MAAM,aAC7E,eAAM,SAAS,EAAE,MAAM,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,GAAI,EAC3C,eAAM,SAAS,EAAE,MAAM,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,GAAG,GAAI,IACvD,EACL,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC,CAC9C,KAAC,MAAM,IAEL,SAAS,EAAE,MAAM,CAAC,MAAM,EACxB,KAAK,EACH,gBAAM,SAAS,EAAE,MAAM,CAAC,KAAK,mBAAiB,MAAM,KAAK,CAAC,IAAI,SAAS,aACpE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CACxB,YAAe,KAAK,EAAE,EAAE,cAAc,EAAE,GAAG,CAAC,MAAM,GAAG,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,IAAI,GAAG,EAAE,IAApE,KAAK,CAAmE,CACjF,CAAC,EACF,aAAK,IACA,IARJ,MAAM,CAUX,CACH,CAAC,EACF,eAAM,SAAS,EAAE,MAAM,CAAC,KAAK,GAAI,IAC7B,CACP,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/service-object/hosting/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gEAAgE,CAAC;AACxF,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,+FAA+F;AAC/F,MAAM,OAAO,GAAG,CAAC,CAAC;AAClB;;;GAGG;AACH,MAAM,UAAU,OAAO;IACrB,OAAO,CACL,eAAK,SAAS,EAAE,MAAM,CAAC,MAAM,aAC1B,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC,CAC9C,KAAC,MAAM,IAEL,SAAS,EAAE,MAAM,CAAC,MAAM,EACxB,KAAK,EACH,gBAAM,SAAS,EAAE,MAAM,CAAC,KAAK,mBAAiB,MAAM,KAAK,CAAC,IAAI,SAAS,aACpE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CACxB,YAAe,KAAK,EAAE,EAAE,cAAc,EAAE,GAAG,CAAC,MAAM,GAAG,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,IAAI,GAAG,EAAE,IAApE,KAAK,CAAmE,CACjF,CAAC,EACF,aAAK,IACA,IARJ,MAAM,CAUX,CACH,CAAC,EACF,eAAM,SAAS,EAAE,MAAM,CAAC,KAAK,GAAI,IAC7B,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:hosting-sway 12s ease-in-out infinite}@media(prefers-reduced-motion: reduce){.object{animation:none}}.object{transform:translateY(16px) rotateX(-12deg) rotateY(-24deg)}@keyframes hosting-sway{0%,100%{transform:translateY(16px) rotateX(-12deg) rotateY(-24deg)}50%{transform:translateY(16px) rotateX(-8deg) rotateY(14deg)}}.server{--width: 120px;--height: 30px;--depth: 84px;--radius: 3px;--fill-amount: 8%;--front-amount: 10%;--edge-amount: 60%}.server:nth-child(2){transform:translateY(-36px)}.server:nth-child(4){transform:translateY(36px)}.panel{position:absolute;inset:0;display:flex;align-items:center;gap:6px;padding:0 12px}.panel i{width:6px;height:6px;border-radius:50%;background:var(--foreground);box-shadow:0 0 6px color-mix(in srgb, var(--foreground) 70%, transparent);animation:hosting-blink 1.1s steps(2, jump-none) infinite}@media(prefers-reduced-motion: reduce){.panel i{animation:none}}.panel b{flex:1;height:12px;margin-left:10px;background:repeating-linear-gradient(90deg, color-mix(in srgb, var(--foreground) 35%, transparent) 0 2px, transparent 2px 6px)}@keyframes hosting-blink{0%{opacity:1}100%{opacity:.35}}.panel[data-incident]{animation:hosting-incident 8s linear infinite}@media(prefers-reduced-motion: reduce){.panel[data-incident]{animation:none}}@keyframes hosting-incident{0%,40%{opacity:1;filter:none}42%,56%{opacity:.15}60%{opacity:1;filter:drop-shadow(0 0 8px color-mix(in srgb, var(--foreground) 80%, transparent))}72%,100%{opacity:1;filter:none}}.fixed{position:absolute;left:50%;top:50%;width:30px;height:30px;margin:-15px 0 0 -15px;transform-style:preserve-3d;border-radius:50%;border:1.5px solid var(--foreground);background:var(--background);transform:translateX(92px) translateZ(44px);opacity:0;animation:hosting-fixed 8s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.fixed{animation:none}}.fixed::after{content:"";position:absolute;left:9px;top:6px;width:7px;height:12px;border-right:2px solid var(--foreground);border-bottom:2px solid var(--foreground);transform:rotate(45deg)}@keyframes hosting-fixed{0%,57%{opacity:0;transform:translateX(92px) translateZ(44px) scale(0.4)}62%,84%{opacity:1;transform:translateX(92px) translateZ(44px) scale(1)}92%,100%{opacity:0;transform:translateX(92px) translateZ(44px) scale(1)}}.monitor{position:absolute;left:-110px;top:-122px;width:220px;height:56px;overflow:visible}.monitor path{fill:none;stroke-width:1.5;stroke-linejoin:round;vector-effect:non-scaling-stroke}.track{stroke:color-mix(in srgb, var(--foreground) 18%, transparent)}.beat{stroke:var(--foreground);filter:drop-shadow(0 0 4px color-mix(in srgb, var(--foreground) 60%, transparent));stroke-dasharray:100 100;stroke-dashoffset:0;animation:hosting-beat 8s linear infinite}@media(prefers-reduced-motion: reduce){.beat{animation:none}}@keyframes hosting-beat{0%{stroke-dashoffset:100}90%,100%{stroke-dashoffset:0}}
1
+ .object{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d;animation:hosting-sway 12s ease-in-out infinite}@media(prefers-reduced-motion: reduce){.object{animation:none}}.object{transform:scale(1.15) rotateX(-12deg) rotateY(-24deg)}@keyframes hosting-sway{0%,100%{transform:scale(1.15) rotateX(-12deg) rotateY(-24deg)}50%{transform:scale(1.15) rotateX(-8deg) rotateY(14deg)}}.server{--width: 120px;--height: 30px;--depth: 84px;--radius: 3px;--fill-amount: 8%;--front-amount: 10%;--edge-amount: 60%}.server:nth-child(1){transform:translateY(-36px)}.server:nth-child(3){transform:translateY(36px)}.panel{position:absolute;inset:0;display:flex;align-items:center;gap:6px;padding:0 12px}.panel i{width:6px;height:6px;border-radius:50%;background:var(--foreground);box-shadow:0 0 6px color-mix(in srgb, var(--foreground) 70%, transparent);animation:hosting-blink 1.1s steps(2, jump-none) infinite}@media(prefers-reduced-motion: reduce){.panel i{animation:none}}.panel b{flex:1;height:12px;margin-left:10px;background:repeating-linear-gradient(90deg, color-mix(in srgb, var(--foreground) 35%, transparent) 0 2px, transparent 2px 6px)}@keyframes hosting-blink{0%{opacity:1}100%{opacity:.35}}.panel[data-incident]{animation:hosting-incident 8s linear infinite}@media(prefers-reduced-motion: reduce){.panel[data-incident]{animation:none}}@keyframes hosting-incident{0%,40%{opacity:1;filter:none}42%,56%{opacity:.15}60%{opacity:1;filter:drop-shadow(0 0 8px color-mix(in srgb, var(--foreground) 80%, transparent))}72%,100%{opacity:1;filter:none}}.fixed{position:absolute;left:50%;top:50%;width:30px;height:30px;margin:-15px 0 0 -15px;transform-style:preserve-3d;border-radius:50%;border:1.5px solid var(--foreground);background:var(--background);transform:translateX(92px) translateZ(44px);opacity:0;animation:hosting-fixed 8s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.fixed{animation:none}}.fixed::after{content:"";position:absolute;left:9px;top:6px;width:7px;height:12px;border-right:2px solid var(--foreground);border-bottom:2px solid var(--foreground);transform:rotate(45deg)}@keyframes hosting-fixed{0%,57%{opacity:0;transform:translateX(92px) translateZ(44px) scale(0.4)}62%,84%{opacity:1;transform:translateX(92px) translateZ(44px) scale(1)}92%,100%{opacity:0;transform:translateX(92px) translateZ(44px) scale(1)}}
@@ -7,15 +7,15 @@ $round: 8s;
7
7
  .object {
8
8
  @include centered(0px, 0px);
9
9
  @include loop(hosting-sway 12s ease-in-out infinite);
10
- transform: translateY(16px) rotateX(-12deg) rotateY(-24deg);
10
+ transform: scale(1.15) rotateX(-12deg) rotateY(-24deg);
11
11
  }
12
12
  @keyframes hosting-sway {
13
13
  0%,
14
14
  100% {
15
- transform: translateY(16px) rotateX(-12deg) rotateY(-24deg);
15
+ transform: scale(1.15) rotateX(-12deg) rotateY(-24deg);
16
16
  }
17
17
  50% {
18
- transform: translateY(16px) rotateX(-8deg) rotateY(14deg);
18
+ transform: scale(1.15) rotateX(-8deg) rotateY(14deg);
19
19
  }
20
20
  }
21
21
  .server {
@@ -26,10 +26,10 @@ $round: 8s;
26
26
  --fill-amount: 8%;
27
27
  --front-amount: 10%;
28
28
  --edge-amount: 60%;
29
- &:nth-child(2) {
29
+ &:nth-child(1) {
30
30
  transform: translateY(-36px);
31
31
  }
32
- &:nth-child(4) {
32
+ &:nth-child(3) {
33
33
  transform: translateY(36px);
34
34
  }
35
35
  }
@@ -126,37 +126,3 @@ $round: 8s;
126
126
  transform: translateX(92px) translateZ(44px) scale(1);
127
127
  }
128
128
  }
129
- /* The uptime monitor above the rack: a faint track, and the beat drawn along it, dipping at the incident. */
130
- .monitor {
131
- position: absolute;
132
- left: -110px;
133
- top: -122px;
134
- width: 220px;
135
- height: 56px;
136
- overflow: visible;
137
- path {
138
- fill: none;
139
- stroke-width: 1.5;
140
- stroke-linejoin: round;
141
- vector-effect: non-scaling-stroke;
142
- }
143
- }
144
- .track {
145
- stroke: tint(18%);
146
- }
147
- .beat {
148
- stroke: var(--foreground);
149
- filter: drop-shadow(0 0 4px tint(60%));
150
- stroke-dasharray: 100 100;
151
- stroke-dashoffset: 0;
152
- @include loop(hosting-beat $round linear infinite);
153
- }
154
- @keyframes hosting-beat {
155
- 0% {
156
- stroke-dashoffset: 100;
157
- }
158
- 90%,
159
- 100% {
160
- stroke-dashoffset: 0;
161
- }
162
- }
@@ -1,3 +1,6 @@
1
- /** iOS applications: a phone with its island opening up, and widgets floating off the screen towards you. */
1
+ /**
2
+ * iOS applications: an iPhone as people know it, with the Dynamic Island, rounded-square app icons, the page dots, the
3
+ * dock and the home bar. The island opens into a live activity, then the icons jiggle, ready to be arranged.
4
+ */
2
5
  export declare function IosApplication(): import("react").JSX.Element;
3
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/service-object/ios-application/index.tsx"],"names":[],"mappings":"AAGA,6GAA6G;AAC7G,wBAAgB,cAAc,gCAmB7B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/service-object/ios-application/index.tsx"],"names":[],"mappings":"AAQA;;;GAGG;AACH,wBAAgB,cAAc,gCA+B7B"}
@@ -1,8 +1,15 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
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
- /** iOS applications: a phone with its island opening up, and widgets floating off the screen towards you. */
4
+ /** The home screen's apps: rounded squares, four to a row. */
5
+ const APPS = 12;
6
+ /** The apps in the dock. */
7
+ const DOCK = 4;
8
+ /**
9
+ * iOS applications: an iPhone as people know it, with the Dynamic Island, rounded-square app icons, the page dots, the
10
+ * dock and the home bar. The island opens into a live activity, then the icons jiggle, ready to be arranged.
11
+ */
5
12
  export function IosApplication() {
6
- return (_jsx("div", { className: styles.object, children: _jsx(Cuboid, { className: styles.phone, front: _jsxs(_Fragment, { children: [_jsx("span", { className: styles.island }), _jsxs("span", { className: styles.widgets, children: [_jsx("i", {}), _jsx("i", {}), _jsx("i", {})] }), _jsx("span", { className: styles.indicator })] }) }) }));
13
+ return (_jsx("div", { className: styles.object, children: _jsx(Cuboid, { className: styles.phone, front: _jsxs("span", { className: styles.screen, children: [_jsx("span", { className: styles.island, children: _jsx("i", {}) }), _jsx("span", { className: styles.apps, children: Array.from({ length: APPS }, (_, app) => (_jsx("i", {}, app))) }), _jsxs("span", { className: styles.dots, children: [_jsx("i", {}), _jsx("i", {}), _jsx("i", {})] }), _jsx("span", { className: styles.dock, children: Array.from({ length: DOCK }, (_, app) => (_jsx("i", {}, app))) }), _jsx("span", { className: styles.indicator })] }) }) }));
7
14
  }
8
15
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/service-object/ios-application/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gEAAgE,CAAC;AACxF,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,6GAA6G;AAC7G,MAAM,UAAU,cAAc;IAC5B,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,gBAAM,SAAS,EAAE,MAAM,CAAC,OAAO,aAC7B,aAAK,EACL,aAAK,EACL,aAAK,IACA,EACP,eAAM,SAAS,EAAE,MAAM,CAAC,SAAS,GAAI,IACpC,GAEL,GACE,CACP,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/service-object/ios-application/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gEAAgE,CAAC;AACxF,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,8DAA8D;AAC9D,MAAM,IAAI,GAAG,EAAE,CAAC;AAChB,4BAA4B;AAC5B,MAAM,IAAI,GAAG,CAAC,CAAC;AAEf;;;GAGG;AACH,MAAM,UAAU,cAAc;IAC5B,OAAO,CACL,cAAK,SAAS,EAAE,MAAM,CAAC,MAAM,YAC3B,KAAC,MAAM,IACL,SAAS,EAAE,MAAM,CAAC,KAAK,EACvB,KAAK,EACH,gBAAM,SAAS,EAAE,MAAM,CAAC,MAAM,aAC5B,eAAM,SAAS,EAAE,MAAM,CAAC,MAAM,YAC5B,aAAK,GACA,EACP,eAAM,SAAS,EAAE,MAAM,CAAC,IAAI,YACzB,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,CACxC,cAAQ,GAAG,CAAI,CAChB,CAAC,GACG,EACP,gBAAM,SAAS,EAAE,MAAM,CAAC,IAAI,aAC1B,aAAK,EACL,aAAK,EACL,aAAK,IACA,EACP,eAAM,SAAS,EAAE,MAAM,CAAC,IAAI,YACzB,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,CACxC,cAAQ,GAAG,CAAI,CAChB,CAAC,GACG,EACP,eAAM,SAAS,EAAE,MAAM,CAAC,SAAS,GAAI,IAChC,GAET,GACE,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:ios-turn 10s ease-in-out infinite}@media(prefers-reduced-motion: reduce){.object{animation:none}}.object{transform:rotateX(-6deg) rotateY(26deg)}@keyframes ios-turn{0%,100%{transform:rotateX(-6deg) rotateY(30deg)}50%{transform:rotateX(-2deg) rotateY(-22deg)}}.phone{--width: 88px;--height: 176px;--depth: 9px;--radius: 20px;--front-amount: 4%;--edge-amount: 55%}.island{position:absolute;left:50%;top:9px;width:28px;height:9px;border-radius:9px;background:color-mix(in srgb, var(--foreground) 70%, transparent);transform:translateX(-50%);animation:ios-island 4s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.island{animation:none}}@keyframes ios-island{0%,40%,100%{width:28px;height:9px}55%,80%{width:62px;height:16px}}.widgets{position:absolute;inset:34px 10px 26px;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr 1.2fr;gap:8px;transform-style:preserve-3d}.widgets i{border-radius:9px;border:1px solid color-mix(in srgb, var(--foreground) 45%, transparent);background:color-mix(in srgb, var(--foreground) 12%, transparent);animation:ios-float 4.6s ease-in-out infinite}@media(prefers-reduced-motion: reduce){.widgets i{animation:none}}.widgets i:nth-child(1){grid-column:span 2;background:linear-gradient(135deg, color-mix(in srgb, var(--foreground) 38%, transparent), color-mix(in srgb, var(--foreground) 8%, transparent))}.widgets i:nth-child(2){animation-delay:-1.5s}.widgets i:nth-child(3){animation-delay:-3s}@keyframes ios-float{0%,100%{transform:translateZ(4px)}50%{transform:translateZ(24px)}}.indicator{position:absolute;left:50%;bottom:8px;width:34px;height:3px;margin-left:-17px;border-radius:2px;background:color-mix(in srgb, var(--foreground) 55%, transparent)}
1
+ .object{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d;animation:ios-turn 10s ease-in-out infinite}@media(prefers-reduced-motion: reduce){.object{animation:none}}.object{transform:rotateX(-6deg) rotateY(26deg)}@keyframes ios-turn{0%,100%{transform:rotateX(-6deg) rotateY(28deg)}50%{transform:rotateX(-2deg) rotateY(-20deg)}}.phone{--width: 88px;--height: 178px;--depth: 9px;--radius: 20px;--front-amount: 4%;--edge-amount: 55%}.screen{position:absolute;inset:3px;overflow:hidden;border-radius:17px}.island{position:absolute;left:50%;top:6px;width:28px;height:9px;border-radius:9px;background:var(--foreground);transform:translateX(-50%);animation:ios-island 6s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.island{animation:none}}.island i{position:absolute;left:8px;right:8px;bottom:5px;height:2px;border-radius:1px;background:linear-gradient(90deg, var(--background) var(--done, 0%), color-mix(in srgb, var(--foreground) 70%, transparent) var(--done, 0%));opacity:0;animation:ios-activity 6s linear infinite}@media(prefers-reduced-motion: reduce){.island i{animation:none}}@keyframes ios-island{0%,8%,46%,100%{width:28px;height:9px}16%,38%{width:72px;height:20px}}@keyframes ios-activity{0%,14%{opacity:0;--done: 0%}18%{opacity:1}36%{opacity:1;--done: 100%}40%,100%{opacity:0;--done: 100%}}@property --done{syntax:"<percentage>";inherits:false;initial-value:0%}.apps{position:absolute;inset:26px 9px auto;display:grid;grid-template-columns:repeat(4, 1fr);gap:9px 6px}.apps i{aspect-ratio:1;border-radius:30%;border:1px solid color-mix(in srgb, var(--foreground) 45%, transparent);background:linear-gradient(150deg, color-mix(in srgb, var(--foreground) 30%, transparent), color-mix(in srgb, var(--foreground) 10%, transparent));animation:ios-jiggle 6s linear infinite}@media(prefers-reduced-motion: reduce){.apps i{animation:none}}.apps i:nth-child(odd){animation-name:ios-jiggle-other}@keyframes ios-jiggle{0%,52%,88%,100%{transform:rotate(0)}54%{transform:rotate(-4deg)}58%{transform:rotate(4deg)}62%{transform:rotate(-4deg)}66%{transform:rotate(4deg)}70%{transform:rotate(-4deg)}74%{transform:rotate(4deg)}78%{transform:rotate(-4deg)}82%{transform:rotate(4deg)}86%{transform:rotate(-4deg)}}@keyframes ios-jiggle-other{0%,52%,88%,100%{transform:rotate(0)}54%{transform:rotate(4deg)}58%{transform:rotate(-4deg)}62%{transform:rotate(4deg)}66%{transform:rotate(-4deg)}70%{transform:rotate(4deg)}74%{transform:rotate(-4deg)}78%{transform:rotate(4deg)}82%{transform:rotate(-4deg)}86%{transform:rotate(4deg)}}.dots{position:absolute;left:0;right:0;bottom:40px;display:flex;justify-content:center;gap:4px}.dots i{width:3px;height:3px;border-radius:50%;background:color-mix(in srgb, var(--foreground) 35%, transparent)}.dots i:first-child{background:var(--foreground)}.dock{position:absolute;left:5px;right:5px;bottom:12px;display:grid;grid-template-columns:repeat(4, 1fr);gap:6px;padding:4px;border-radius:9px;background:color-mix(in srgb, var(--foreground) 14%, transparent)}.dock i{aspect-ratio:1;border-radius:30%;border:1px solid color-mix(in srgb, var(--foreground) 45%, transparent);background:linear-gradient(150deg, color-mix(in srgb, var(--foreground) 40%, transparent), color-mix(in srgb, var(--foreground) 14%, transparent))}.indicator{position:absolute;left:50%;bottom:4px;width:30px;height:3px;margin-left:-15px;border-radius:2px;background:color-mix(in srgb, var(--foreground) 60%, transparent)}
@@ -1,6 +1,9 @@
1
1
  @use "style/token" as *;
2
2
  @use "style/object" as *;
3
3
 
4
+ /* One round: the island opens into a live activity (from 8%), closes, then the icons jiggle (from 52%). */
5
+ $round: 6s;
6
+
4
7
  .object {
5
8
  @include centered(0px, 0px);
6
9
  @include loop(ios-turn 10s ease-in-out infinite);
@@ -9,85 +12,175 @@
9
12
  @keyframes ios-turn {
10
13
  0%,
11
14
  100% {
12
- transform: rotateX(-6deg) rotateY(30deg);
15
+ transform: rotateX(-6deg) rotateY(28deg);
13
16
  }
14
17
  50% {
15
- transform: rotateX(-2deg) rotateY(-22deg);
18
+ transform: rotateX(-2deg) rotateY(-20deg);
16
19
  }
17
20
  }
18
21
  .phone {
19
22
  --width: 88px;
20
- --height: 176px;
23
+ --height: 178px;
21
24
  --depth: 9px;
22
25
  --radius: 20px;
23
26
  --front-amount: 4%;
24
27
  --edge-amount: 55%;
25
28
  }
29
+ .screen {
30
+ position: absolute;
31
+ inset: 3px;
32
+ overflow: hidden;
33
+ border-radius: 17px;
34
+ }
35
+ /* The Dynamic Island: a pill at the top that opens into a live activity with a progress bar, then closes. */
26
36
  .island {
27
37
  position: absolute;
28
38
  left: 50%;
29
- top: 9px;
39
+ top: 6px;
30
40
  width: 28px;
31
41
  height: 9px;
32
42
  border-radius: 9px;
33
- background: tint(70%);
43
+ background: var(--foreground);
34
44
  transform: translateX(-50%);
35
- @include loop(ios-island 4s $ease infinite);
45
+ @include loop(ios-island $round $ease infinite);
46
+ i {
47
+ position: absolute;
48
+ left: 8px;
49
+ right: 8px;
50
+ bottom: 5px;
51
+ height: 2px;
52
+ border-radius: 1px;
53
+ background: linear-gradient(90deg, var(--background) var(--done, 0%), tint(70%) var(--done, 0%));
54
+ opacity: 0;
55
+ @include loop(ios-activity $round linear infinite);
56
+ }
36
57
  }
37
58
  @keyframes ios-island {
38
59
  0%,
39
- 40%,
60
+ 8%,
61
+ 46%,
40
62
  100% {
41
63
  width: 28px;
42
64
  height: 9px;
43
65
  }
44
- 55%,
45
- 80% {
46
- width: 62px;
47
- height: 16px;
66
+ 16%,
67
+ 38% {
68
+ width: 72px;
69
+ height: 20px;
70
+ }
71
+ }
72
+ @keyframes ios-activity {
73
+ 0%,
74
+ 14% {
75
+ opacity: 0;
76
+ --done: 0%;
77
+ }
78
+ 18% {
79
+ opacity: 1;
80
+ }
81
+ 36% {
82
+ opacity: 1;
83
+ --done: 100%;
84
+ }
85
+ 40%,
86
+ 100% {
87
+ opacity: 0;
88
+ --done: 100%;
48
89
  }
49
90
  }
50
- .widgets {
91
+ @property --done {
92
+ syntax: "<percentage>";
93
+ inherits: false;
94
+ initial-value: 0%;
95
+ }
96
+ /* App icons: rounded squares, four to a row, jiggling for a moment as when they are being arranged. */
97
+ .apps {
51
98
  position: absolute;
52
- inset: 34px 10px 26px;
99
+ inset: 26px 9px auto;
53
100
  display: grid;
54
- grid-template-columns: 1fr 1fr;
55
- grid-template-rows: 1fr 1fr 1.2fr;
56
- gap: 8px;
57
- transform-style: preserve-3d;
101
+ grid-template-columns: repeat(4, 1fr);
102
+ gap: 9px 6px;
58
103
  i {
59
- border-radius: 9px;
104
+ aspect-ratio: 1;
105
+ border-radius: 30%;
60
106
  border: 1px solid tint(45%);
61
- background: tint(12%);
62
- @include loop(ios-float 4.6s ease-in-out infinite);
63
- &:nth-child(1) {
64
- grid-column: span 2;
65
- background: linear-gradient(135deg, tint(38%), tint(8%));
66
- }
67
- &:nth-child(2) {
68
- animation-delay: -1.5s;
107
+ background: linear-gradient(150deg, tint(30%), tint(10%));
108
+ @include loop(ios-jiggle $round linear infinite);
109
+ &:nth-child(odd) {
110
+ animation-name: ios-jiggle-other;
69
111
  }
70
- &:nth-child(3) {
71
- animation-delay: -3s;
112
+ }
113
+ }
114
+ @keyframes ios-jiggle {
115
+ 0%,
116
+ 52%,
117
+ 88%,
118
+ 100% {
119
+ transform: rotate(0);
120
+ }
121
+ @for $step from 0 through 8 {
122
+ #{54% + $step * 4%} {
123
+ transform: rotate(if($step % 2 == 0, -4deg, 4deg));
72
124
  }
73
125
  }
74
126
  }
75
- @keyframes ios-float {
127
+ @keyframes ios-jiggle-other {
76
128
  0%,
129
+ 52%,
130
+ 88%,
77
131
  100% {
78
- transform: translateZ(4px);
132
+ transform: rotate(0);
79
133
  }
80
- 50% {
81
- transform: translateZ(24px);
134
+ @for $step from 0 through 8 {
135
+ #{54% + $step * 4%} {
136
+ transform: rotate(if($step % 2 == 0, 4deg, -4deg));
137
+ }
138
+ }
139
+ }
140
+ .dots {
141
+ position: absolute;
142
+ left: 0;
143
+ right: 0;
144
+ bottom: 40px;
145
+ display: flex;
146
+ justify-content: center;
147
+ gap: 4px;
148
+ i {
149
+ width: 3px;
150
+ height: 3px;
151
+ border-radius: 50%;
152
+ background: tint(35%);
153
+ &:first-child {
154
+ background: var(--foreground);
155
+ }
156
+ }
157
+ }
158
+ /* The dock: a frosted shelf of four apps at the bottom. */
159
+ .dock {
160
+ position: absolute;
161
+ left: 5px;
162
+ right: 5px;
163
+ bottom: 12px;
164
+ display: grid;
165
+ grid-template-columns: repeat(4, 1fr);
166
+ gap: 6px;
167
+ padding: 4px;
168
+ border-radius: 9px;
169
+ background: tint(14%);
170
+ i {
171
+ aspect-ratio: 1;
172
+ border-radius: 30%;
173
+ border: 1px solid tint(45%);
174
+ background: linear-gradient(150deg, tint(40%), tint(14%));
82
175
  }
83
176
  }
84
177
  .indicator {
85
178
  position: absolute;
86
179
  left: 50%;
87
- bottom: 8px;
88
- width: 34px;
180
+ bottom: 4px;
181
+ width: 30px;
89
182
  height: 3px;
90
- margin-left: -17px;
183
+ margin-left: -15px;
91
184
  border-radius: 2px;
92
- background: tint(55%);
185
+ background: tint(60%);
93
186
  }
@@ -1,7 +1,8 @@
1
1
  /**
2
- * Product launches: a campaign from the first teaser to day one. Along a timeline, each step lights up in turn: a
3
- * teaser (the product still a mystery), its landing page, the campaign announcing it, and launch day, when the product
4
- * is revealed and confetti flies. With reduced motion, every step is lit and the product is shown.
2
+ * Product launches: the countdown and the lift-off. Numbers count down from 3, each one flowing smoothly into the
3
+ * next while a ring around them runs out; at zero the rocket's engine lights, smoke spreads over the pad and the
4
+ * rocket rises, faster and faster, out of sight, before the next one stands ready. With reduced motion, the rocket
5
+ * stands on its pad.
5
6
  */
6
7
  export declare function ProductLaunch(): import("react").JSX.Element;
7
8
  //# 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":"AAQA;;;;GAIG;AACH,wBAAgB,aAAa,gCA+B5B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/service-object/product-launch/index.tsx"],"names":[],"mappings":"AAQA;;;;;GAKG;AACH,wBAAgB,aAAa,gCA8B5B"}
@@ -1,18 +1,16 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import styles from "./index.module.css";
3
- /** The steps of a launch campaign, in order: each lights up as the campaign reaches it. */
4
- const STEPS = ["teaser", "page", "campaign", "launch"];
5
- /** Confetti thrown on launch day, evenly around the product. */
6
- const CONFETTI = 12;
3
+ /** The countdown, one number a second, each flowing into the next. */
4
+ const COUNTDOWN = ["3", "2", "1"];
5
+ /** Puffs of smoke spreading over the pad at lift-off, to either side. */
6
+ const SMOKE = [-1, 1, -0.6, 0.6];
7
7
  /**
8
- * Product launches: a campaign from the first teaser to day one. Along a timeline, each step lights up in turn: a
9
- * teaser (the product still a mystery), its landing page, the campaign announcing it, and launch day, when the product
10
- * is revealed and confetti flies. With reduced motion, every step is lit and the product is shown.
8
+ * Product launches: the countdown and the lift-off. Numbers count down from 3, each one flowing smoothly into the
9
+ * next while a ring around them runs out; at zero the rocket's engine lights, smoke spreads over the pad and the
10
+ * rocket rises, faster and faster, out of sight, before the next one stands ready. With reduced motion, the rocket
11
+ * stands on its pad.
11
12
  */
12
13
  export function ProductLaunch() {
13
- return (_jsx("div", { className: styles.object, children: _jsxs("div", { className: styles.timeline, children: [_jsx("span", { className: styles.track, children: _jsx("span", { className: styles.progress }) }), STEPS.map((step, index) => (_jsxs("div", { className: styles.step, "data-step": index, children: [_jsx("span", { className: styles.tile, children: _jsx("span", { className: styles[step] }) }), _jsx("i", { className: styles.dot })] }, step))), _jsx("div", { className: styles.confetti, children: Array.from({ length: CONFETTI }, (_, piece) => (_jsx("i", { style: {
14
- "--angle": `${(360 / CONFETTI) * piece + 8}deg`,
15
- "--reach": `${44 + (piece % 3) * 14}px`,
16
- } }, piece))) })] }) }));
14
+ return (_jsxs("div", { className: styles.object, children: [_jsxs("div", { className: styles.countdown, children: [_jsxs("svg", { className: styles.ring, viewBox: "0 0 60 60", children: [_jsx("circle", { cx: "30", cy: "30", r: "27", pathLength: 100 }), _jsx("circle", { className: styles.time, cx: "30", cy: "30", r: "27", pathLength: 100 })] }), COUNTDOWN.map((number, index) => (_jsx("span", { className: styles.number, style: { animationDelay: `${index * 1.2}s` }, children: number }, number)))] }), _jsx("div", { className: styles.pad, children: SMOKE.map((side, index) => (_jsx("i", { style: { "--side": side } }, index))) }), _jsxs("div", { className: styles.rocket, children: [_jsx("span", { className: styles.trail }), _jsxs("svg", { viewBox: "0 0 40 92", children: [_jsx("path", { className: styles.flame, d: "M14 70 Q20 96 26 70 Z" }), _jsx("path", { className: styles.fin, d: "M12 52 L3 70 L12 66 Z M28 52 L37 70 L28 66 Z" }), _jsx("path", { className: styles.body, d: "M20 2 C31 14 30 40 28 68 L12 68 C10 40 9 14 20 2 Z" }), _jsx("circle", { className: styles.window, cx: "20", cy: "30", r: "5" })] })] })] }));
17
15
  }
18
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":";AACA,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,2FAA2F;AAC3F,MAAM,KAAK,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,CAAU,CAAC;AAChE,gEAAgE;AAChE,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB;;;;GAIG;AACH,MAAM,UAAU,aAAa;IAC3B,OAAO,CACL,cAAK,SAAS,EAAE,MAAM,CAAC,MAAM,YAC3B,eAAK,SAAS,EAAE,MAAM,CAAC,QAAQ,aAC7B,eAAM,SAAS,EAAE,MAAM,CAAC,KAAK,YAC3B,eAAM,SAAS,EAAE,MAAM,CAAC,QAAQ,GAAI,GAC/B,EACN,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CAC1B,eAAgB,SAAS,EAAE,MAAM,CAAC,IAAI,eAAa,KAAK,aACtD,eAAM,SAAS,EAAE,MAAM,CAAC,IAAI,YAC1B,eAAM,SAAS,EAAE,MAAM,CAAC,IAAI,CAAC,GAAI,GAC5B,EACP,YAAG,SAAS,EAAE,MAAM,CAAC,GAAG,GAAI,KAJpB,IAAI,CAKR,CACP,CAAC,EACF,cAAK,SAAS,EAAE,MAAM,CAAC,QAAQ,YAC5B,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,CAC9C,YAEE,KAAK,EACH;4BACE,SAAS,EAAE,GAAG,CAAC,GAAG,GAAG,QAAQ,CAAC,GAAG,KAAK,GAAG,CAAC,KAAK;4BAC/C,SAAS,EAAE,GAAG,EAAE,GAAG,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,EAAE,IAAI;yBACvB,IALf,KAAK,CAOV,CACH,CAAC,GACE,IACF,GACF,CACP,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/service-object/product-launch/index.tsx"],"names":[],"mappings":";AACA,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,sEAAsE;AACtE,MAAM,SAAS,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;AAClC,yEAAyE;AACzE,MAAM,KAAK,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;AAEjC;;;;;GAKG;AACH,MAAM,UAAU,aAAa;IAC3B,OAAO,CACL,eAAK,SAAS,EAAE,MAAM,CAAC,MAAM,aAC3B,eAAK,SAAS,EAAE,MAAM,CAAC,SAAS,aAC9B,eAAK,SAAS,EAAE,MAAM,CAAC,IAAI,EAAE,OAAO,EAAC,WAAW,aAC9C,iBAAQ,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,CAAC,EAAC,IAAI,EAAC,UAAU,EAAE,GAAG,GAAI,EAClD,iBAAQ,SAAS,EAAE,MAAM,CAAC,IAAI,EAAE,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,CAAC,EAAC,IAAI,EAAC,UAAU,EAAE,GAAG,GAAI,IACtE,EACL,SAAS,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,CAChC,eAAmB,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,cAAc,EAAE,GAAG,KAAK,GAAG,GAAG,GAAG,EAAE,YACtF,MAAM,IADE,MAAM,CAEV,CACR,CAAC,IACE,EACN,cAAK,SAAS,EAAE,MAAM,CAAC,GAAG,YACvB,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CAC1B,YAAe,KAAK,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAmB,IAAjD,KAAK,CAAgD,CAC9D,CAAC,GACE,EACN,eAAK,SAAS,EAAE,MAAM,CAAC,MAAM,aAC3B,eAAM,SAAS,EAAE,MAAM,CAAC,KAAK,GAAI,EACjC,eAAK,OAAO,EAAC,WAAW,aACtB,eAAM,SAAS,EAAE,MAAM,CAAC,KAAK,EAAE,CAAC,EAAC,uBAAuB,GAAG,EAC3D,eAAM,SAAS,EAAE,MAAM,CAAC,GAAG,EAAE,CAAC,EAAC,8CAA8C,GAAG,EAChF,eAAM,SAAS,EAAE,MAAM,CAAC,IAAI,EAAE,CAAC,EAAC,oDAAoD,GAAG,EACvF,iBAAQ,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,CAAC,EAAC,GAAG,GAAG,IACtD,IACF,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-sway 12s ease-in-out infinite}@media(prefers-reduced-motion: reduce){.object{animation:none}}.object{transform:rotateX(24deg) rotateY(-14deg)}@keyframes launch-sway{0%,100%{transform:rotateX(24deg) rotateY(-14deg)}50%{transform:rotateX(18deg) rotateY(10deg)}}.timeline{position:absolute;left:50%;top:50%;width:264px;height:130px;margin:-65px 0 0 -132px;transform-style:preserve-3d;display:grid;grid-template-columns:repeat(4, 1fr);gap:10px}.track{position:absolute;left:30px;right:30px;bottom:9px;height:2px;background:color-mix(in srgb, var(--foreground) 16%, transparent)}.progress{position:absolute;inset:0;background:var(--foreground);box-shadow:0 0 8px color-mix(in srgb, var(--foreground) 60%, transparent);transform-origin:left;animation:launch-progress 8s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.progress{animation:none}}@keyframes launch-progress{0%,4%{transform:scaleX(0)}55%{transform:scaleX(1)}88%{transform:scaleX(1);opacity:1}94%,100%{transform:scaleX(1);opacity:0}}.step{position:relative;display:grid;grid-template-rows:1fr 20px;justify-items:center;align-items:center}.tile{display:grid;place-items:center;width:58px;height:78px;border-radius:6px;box-sizing:border-box;background:color-mix(in srgb, var(--foreground) 6%, transparent);border:1px solid color-mix(in srgb, var(--foreground) 55%, transparent);background:var(--background);box-shadow:0 0 22px -6px color-mix(in srgb, var(--foreground) 45%, transparent);transform-style:preserve-3d}.dot{width:9px;height:9px;border-radius:50%;border:1.5px solid var(--foreground);background:var(--foreground)}.step[data-step="0"] .tile{animation:launch-tile-0 8s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.step[data-step="0"] .tile{animation:none}}.step[data-step="0"] .dot{animation:launch-dot-0 8s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.step[data-step="0"] .dot{animation:none}}@keyframes launch-tile-0{0%,4%{opacity:.3;transform:translateY(0) translateZ(0);box-shadow:none}8%,88%{opacity:1;transform:translateY(-4px) translateZ(14px);box-shadow:0 0 22px -6px color-mix(in srgb, var(--foreground) 45%, transparent)}94%,100%{opacity:.3;transform:translateY(0) translateZ(0);box-shadow:none}}@keyframes launch-dot-0{0%,4%{background:var(--background);border-color:color-mix(in srgb, var(--foreground) 35%, transparent)}7%,88%{background:var(--foreground);border-color:var(--foreground)}94%,100%{background:var(--background);border-color:color-mix(in srgb, var(--foreground) 35%, transparent)}}.step[data-step="1"] .tile{animation:launch-tile-1 8s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.step[data-step="1"] .tile{animation:none}}.step[data-step="1"] .dot{animation:launch-dot-1 8s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.step[data-step="1"] .dot{animation:none}}@keyframes launch-tile-1{0%,21%{opacity:.3;transform:translateY(0) translateZ(0);box-shadow:none}25%,88%{opacity:1;transform:translateY(-4px) translateZ(14px);box-shadow:0 0 22px -6px color-mix(in srgb, var(--foreground) 45%, transparent)}94%,100%{opacity:.3;transform:translateY(0) translateZ(0);box-shadow:none}}@keyframes launch-dot-1{0%,21%{background:var(--background);border-color:color-mix(in srgb, var(--foreground) 35%, transparent)}24%,88%{background:var(--foreground);border-color:var(--foreground)}94%,100%{background:var(--background);border-color:color-mix(in srgb, var(--foreground) 35%, transparent)}}.step[data-step="2"] .tile{animation:launch-tile-2 8s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.step[data-step="2"] .tile{animation:none}}.step[data-step="2"] .dot{animation:launch-dot-2 8s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.step[data-step="2"] .dot{animation:none}}@keyframes launch-tile-2{0%,38%{opacity:.3;transform:translateY(0) translateZ(0);box-shadow:none}42%,88%{opacity:1;transform:translateY(-4px) translateZ(14px);box-shadow:0 0 22px -6px color-mix(in srgb, var(--foreground) 45%, transparent)}94%,100%{opacity:.3;transform:translateY(0) translateZ(0);box-shadow:none}}@keyframes launch-dot-2{0%,38%{background:var(--background);border-color:color-mix(in srgb, var(--foreground) 35%, transparent)}41%,88%{background:var(--foreground);border-color:var(--foreground)}94%,100%{background:var(--background);border-color:color-mix(in srgb, var(--foreground) 35%, transparent)}}.step[data-step="3"] .tile{animation:launch-tile-3 8s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.step[data-step="3"] .tile{animation:none}}.step[data-step="3"] .dot{animation:launch-dot-3 8s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.step[data-step="3"] .dot{animation:none}}@keyframes launch-tile-3{0%,55%{opacity:.3;transform:translateY(0) translateZ(0);box-shadow:none}59%,88%{opacity:1;transform:translateY(-4px) translateZ(14px);box-shadow:0 0 22px -6px color-mix(in srgb, var(--foreground) 45%, transparent)}94%,100%{opacity:.3;transform:translateY(0) translateZ(0);box-shadow:none}}@keyframes launch-dot-3{0%,55%{background:var(--background);border-color:color-mix(in srgb, var(--foreground) 35%, transparent)}58%,88%{background:var(--foreground);border-color:var(--foreground)}94%,100%{background:var(--background);border-color:color-mix(in srgb, var(--foreground) 35%, transparent)}}.teaser{display:grid;place-items:center;width:32px;height:32px;border:1.5px dashed color-mix(in srgb, var(--foreground) 70%, transparent);border-radius:5px}.teaser::after{content:"?";font-size:18px;font-weight:700;line-height:1;color:var(--foreground)}.page{position:relative;width:40px;height:50px;border:1.5px solid color-mix(in srgb, var(--foreground) 70%, transparent);border-radius:4px;background:linear-gradient(var(--foreground), var(--foreground)) 6px 10px/24px 3px,linear-gradient(color-mix(in srgb, var(--foreground) 40%, transparent), color-mix(in srgb, var(--foreground) 40%, transparent)) 6px 16px/16px 2px,linear-gradient(color-mix(in srgb, var(--foreground) 25%, transparent), color-mix(in srgb, var(--foreground) 25%, transparent)) 6px 22px/25px 12px,linear-gradient(var(--foreground), var(--foreground)) 6px 38px/14px 5px;background-repeat:no-repeat}.page::before{content:"";position:absolute;left:0;right:0;top:4px;border-top:1.5px solid color-mix(in srgb, var(--foreground) 40%, transparent)}.campaign{position:relative;width:40px;height:30px}.campaign::before{content:"";position:absolute;left:2px;top:4px;width:22px;height:22px;background:var(--foreground);clip-path:polygon(0 35%, 30% 35%, 100% 0, 100% 100%, 30% 65%, 0 65%)}.campaign::after{content:"";position:absolute;left:20px;top:3px;width:18px;height:24px;border-radius:50%;border:2px solid rgba(0,0,0,0);border-right-color:color-mix(in srgb, var(--foreground) 70%, transparent)}.launch{position:relative;width:26px;height:34px;border-radius:4px;background:linear-gradient(160deg, var(--foreground), color-mix(in srgb, var(--foreground) 55%, transparent));box-shadow:0 0 18px color-mix(in srgb, var(--foreground) 55%, transparent)}.launch::before{content:"";position:absolute;inset:-14px;z-index:-1;background:repeating-conic-gradient(color-mix(in srgb, var(--foreground) 35%, transparent) 0 6deg, transparent 6deg 30deg);mask:radial-gradient(circle, #000 30%, transparent 70%);border-radius:50%}.confetti{position:absolute;left:calc(100% - 32px);top:46px;width:0;height:0;transform:translateZ(20px)}.confetti i{position:absolute;left:-2px;top:-4px;width:4px;height:8px;border-radius:1px;background:var(--foreground);opacity:0;animation:launch-confetti 8s ease-out infinite}@media(prefers-reduced-motion: reduce){.confetti i{animation:none}}@keyframes launch-confetti{0%,55%{opacity:0;transform:rotate(var(--angle)) translateY(-8px) rotate(0deg)}57%{opacity:1}73%,100%{opacity:0;transform:rotate(var(--angle)) translateY(calc(-1 * var(--reach))) rotate(220deg)}}
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:scale(1.2) rotateX(8deg) rotateY(-12deg)}@keyframes launch-sway{0%,100%{transform:scale(1.2) rotateX(8deg) rotateY(-12deg)}50%{transform:scale(1.2) rotateX(4deg) rotateY(12deg)}}.countdown{position:absolute;left:-106px;top:-64px;width:64px;height:64px;opacity:0;animation:launch-countdown 6s ease-out infinite}@media(prefers-reduced-motion: reduce){.countdown{animation:none}}@keyframes launch-countdown{0%,58%{opacity:1;transform:scale(1)}66%,100%{opacity:0;transform:scale(0.8)}}.ring{position:absolute;inset:0;overflow:visible;transform:rotate(-90deg)}.ring circle{fill:none;stroke:color-mix(in srgb, var(--foreground) 16%, transparent);stroke-width:2}.ring .time{stroke:var(--foreground);stroke-linecap:round;stroke-dasharray:100 100;animation:launch-time 6s linear infinite}@media(prefers-reduced-motion: reduce){.ring .time{animation:none}}@keyframes launch-time{0%{stroke-dashoffset:0}60%,100%{stroke-dashoffset:100}}.number{position:absolute;inset:0;display:grid;place-items:center;font-family:var(--font-display, inherit);font-size:30px;font-weight:700;font-variant-numeric:tabular-nums;color:var(--foreground);opacity:0;animation:launch-number 6s cubic-bezier(0.22, 1, 0.36, 1) infinite backwards}@media(prefers-reduced-motion: reduce){.number{animation:none}}@keyframes launch-number{0%{opacity:0;transform:translateY(14px) scale(1.25);filter:blur(6px)}6%,16%{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}23%,100%{opacity:0;transform:translateY(-14px) scale(0.85);filter:blur(6px)}}.pad{position:absolute;left:-50px;top:74px;width:100px;height:4px;border-radius:2px;background:color-mix(in srgb, var(--foreground) 30%, transparent)}.pad i{position:absolute;left:50%;top:-14px;width:26px;height:26px;margin-left:-13px;border-radius:50%;background:radial-gradient(circle, color-mix(in srgb, var(--foreground) 40%, transparent), transparent 70%);opacity:0;animation:launch-smoke 6s ease-out infinite}@media(prefers-reduced-motion: reduce){.pad i{animation:none}}@keyframes launch-smoke{0%,60%{opacity:0;transform:translateX(0) scale(0.4)}64%{opacity:1}84%,100%{opacity:0;transform:translateX(calc(var(--side) * 70px)) translateY(-10px) scale(2.2)}}.rocket{position:absolute;left:-20px;top:-18px;width:40px;height:92px;animation:launch-rocket 6s infinite}@media(prefers-reduced-motion: reduce){.rocket{animation:none}}.rocket svg{position:absolute;inset:0;overflow:visible}@keyframes launch-rocket{0%,60%{opacity:1;transform:translateY(0)}63%{transform:translateY(2px);animation-timing-function:cubic-bezier(0.55, 0, 0.9, 0.4)}84%{opacity:1;transform:translateY(-340px)}85%{opacity:0;transform:translateY(0) scale(0.6)}92%{opacity:0;transform:translateY(0) scale(0.6);animation-timing-function:cubic-bezier(0.22, 1, 0.36, 1)}100%{opacity:1;transform:translateY(0) scale(1)}}.body{fill:var(--background);stroke:var(--foreground);stroke-width:1.5}.window{fill:color-mix(in srgb, var(--foreground) 30%, transparent);stroke:var(--foreground);stroke-width:1.5}.fin{fill:color-mix(in srgb, var(--foreground) 40%, transparent);stroke:var(--foreground);stroke-width:1.2;stroke-linejoin:round}.flame{fill:var(--foreground);filter:drop-shadow(0 0 6px color-mix(in srgb, var(--foreground) 80%, transparent));transform-box:fill-box;transform-origin:50% 0;transform:scaleY(0);animation:launch-flame 6s linear infinite}@media(prefers-reduced-motion: reduce){.flame{animation:none}}@keyframes launch-flame{0%,58%{transform:scaleY(0)}61%{transform:scaleY(1.2)}62%{transform:scaleY(0.8)}64%{transform:scaleY(1.25)}66%{transform:scaleY(0.8)}68%{transform:scaleY(1.25)}70%{transform:scaleY(0.8)}72%{transform:scaleY(1.25)}74%{transform:scaleY(0.8)}76%{transform:scaleY(1.25)}78%{transform:scaleY(0.8)}80%{transform:scaleY(1.25)}82%{transform:scaleY(0.8)}84%,100%{transform:scaleY(0)}}.trail{position:absolute;left:50%;top:86px;width:3px;height:120px;margin-left:-1.5px;background:linear-gradient(180deg, color-mix(in srgb, var(--foreground) 70%, transparent), transparent);transform-origin:top;transform:scaleY(0);animation:launch-trail 6s ease-in infinite}@media(prefers-reduced-motion: reduce){.trail{animation:none}}@keyframes launch-trail{0%,62%{transform:scaleY(0);opacity:1}80%{transform:scaleY(1.6);opacity:1}84%,100%{transform:scaleY(1.6);opacity:0}}
@@ -1,256 +1,255 @@
1
1
  @use "style/token" as *;
2
2
  @use "style/object" as *;
3
3
 
4
- /* One round: the four steps light one after the other (from 4%, every 17%), launch day holds, then all clears. */
5
- $round: 8s;
6
- $first: 4%;
7
- $step: 17%;
8
- $clear: 88%;
4
+ /*
5
+ * One round of 6s: the countdown (3, 2 and 1, 1.2s each, so 0 to 60%), the engine lighting and the lift-off (60% to
6
+ * 84%), and the next rocket standing ready (from 90%). Every part runs on the same clock.
7
+ */
8
+ $round: 6s;
9
9
 
10
10
  .object {
11
11
  @include centered(0px, 0px);
12
12
  @include loop(launch-sway 12s ease-in-out infinite);
13
- transform: rotateX(24deg) rotateY(-14deg);
13
+ transform: scale(1.2) rotateX(8deg) rotateY(-12deg);
14
14
  }
15
15
  @keyframes launch-sway {
16
16
  0%,
17
17
  100% {
18
- transform: rotateX(24deg) rotateY(-14deg);
18
+ transform: scale(1.2) rotateX(8deg) rotateY(-12deg);
19
19
  }
20
20
  50% {
21
- transform: rotateX(18deg) rotateY(10deg);
21
+ transform: scale(1.2) rotateX(4deg) rotateY(12deg);
22
22
  }
23
23
  }
24
- .timeline {
25
- @include centered(264px, 130px);
26
- display: grid;
27
- grid-template-columns: repeat(4, 1fr);
28
- gap: 10px;
29
- }
30
- /* The timeline under the steps, filling as the campaign moves on. */
31
- .track {
24
+ /* The countdown, beside the rocket: a ring that runs out over the three seconds, the numbers inside it. */
25
+ .countdown {
32
26
  position: absolute;
33
- left: 30px;
34
- right: 30px;
35
- bottom: 9px;
36
- height: 2px;
37
- background: tint(16%);
38
- }
39
- .progress {
40
- position: absolute;
41
- inset: 0;
42
- background: var(--foreground);
43
- box-shadow: 0 0 8px tint(60%);
44
- transform-origin: left;
45
- @include loop(launch-progress $round $ease infinite);
46
- }
47
- @keyframes launch-progress {
27
+ left: -106px;
28
+ top: -64px;
29
+ width: 64px;
30
+ height: 64px;
31
+ opacity: 0;
32
+ @include loop(launch-countdown $round ease-out infinite);
33
+ }
34
+ @keyframes launch-countdown {
48
35
  0%,
49
- #{$first} {
50
- transform: scaleX(0);
51
- }
52
- #{$first + 3 * $step} {
53
- transform: scaleX(1);
54
- }
55
- #{$clear} {
56
- transform: scaleX(1);
36
+ 58% {
57
37
  opacity: 1;
38
+ transform: scale(1);
58
39
  }
59
- #{$clear + 6%},
40
+ 66%,
60
41
  100% {
61
- transform: scaleX(1);
62
42
  opacity: 0;
43
+ transform: scale(0.8);
63
44
  }
64
45
  }
65
- .step {
66
- position: relative;
67
- display: grid;
68
- grid-template-rows: 1fr 20px;
69
- justify-items: center;
70
- align-items: center;
71
- }
72
- /* A step's card: dim until the campaign reaches it, then lit, raised a little. */
73
- .tile {
74
- display: grid;
75
- place-items: center;
76
- width: 58px;
77
- height: 78px;
78
- border-radius: 6px;
79
- @include face(6%, 55%);
80
- background: var(--background);
81
- box-shadow: 0 0 22px -6px tint(45%);
82
- transform-style: preserve-3d;
83
- }
84
- .dot {
85
- width: 9px;
86
- height: 9px;
87
- border-radius: 50%;
88
- border: 1.5px solid var(--foreground);
89
- background: var(--foreground);
90
- }
91
- @each $index in 0, 1, 2, 3 {
92
- $at: $first + $index * $step;
93
- .step[data-step="#{$index}"] {
94
- .tile {
95
- @include loop(launch-tile-#{$index} $round $ease infinite);
96
- }
97
- .dot {
98
- @include loop(launch-dot-#{$index} $round $ease infinite);
99
- }
46
+ .ring {
47
+ position: absolute;
48
+ inset: 0;
49
+ overflow: visible;
50
+ transform: rotate(-90deg);
51
+ circle {
52
+ fill: none;
53
+ stroke: tint(16%);
54
+ stroke-width: 2;
100
55
  }
101
- @keyframes launch-tile-#{$index} {
102
- 0%,
103
- #{$at} {
104
- opacity: 0.3;
105
- transform: translateY(0) translateZ(0);
106
- box-shadow: none;
107
- }
108
- #{$at + 4%},
109
- #{$clear} {
110
- opacity: 1;
111
- transform: translateY(-4px) translateZ(14px);
112
- box-shadow: 0 0 22px -6px tint(45%);
113
- }
114
- #{$clear + 6%},
115
- 100% {
116
- opacity: 0.3;
117
- transform: translateY(0) translateZ(0);
118
- box-shadow: none;
119
- }
56
+ .time {
57
+ stroke: var(--foreground);
58
+ stroke-linecap: round;
59
+ stroke-dasharray: 100 100;
60
+ @include loop(launch-time $round linear infinite);
120
61
  }
121
- @keyframes launch-dot-#{$index} {
122
- 0%,
123
- #{$at} {
124
- background: var(--background);
125
- border-color: tint(35%);
126
- }
127
- #{$at + 3%},
128
- #{$clear} {
129
- background: var(--foreground);
130
- border-color: var(--foreground);
131
- }
132
- #{$clear + 6%},
133
- 100% {
134
- background: var(--background);
135
- border-color: tint(35%);
136
- }
62
+ }
63
+ @keyframes launch-time {
64
+ 0% {
65
+ stroke-dashoffset: 0;
66
+ }
67
+ 60%,
68
+ 100% {
69
+ stroke-dashoffset: 100;
137
70
  }
138
71
  }
139
- /* The teaser: the product as a mystery, a dashed outline with a question mark. */
140
- .teaser {
72
+ /* Each number rises into place out of a blur and flows away upwards as the next one comes in. */
73
+ .number {
74
+ position: absolute;
75
+ inset: 0;
141
76
  display: grid;
142
77
  place-items: center;
143
- width: 32px;
144
- height: 32px;
145
- border: 1.5px dashed tint(70%);
146
- border-radius: 5px;
147
- &::after {
148
- content: "?";
149
- font-size: 18px;
150
- font-weight: 700;
151
- line-height: 1;
152
- color: var(--foreground);
78
+ font-family: var(--font-display, inherit);
79
+ font-size: 30px;
80
+ font-weight: 700;
81
+ font-variant-numeric: tabular-nums;
82
+ color: var(--foreground);
83
+ opacity: 0;
84
+ @include loop(launch-number $round $ease infinite backwards);
85
+ }
86
+ @keyframes launch-number {
87
+ 0% {
88
+ opacity: 0;
89
+ transform: translateY(14px) scale(1.25);
90
+ filter: blur(6px);
153
91
  }
154
- }
155
- /* The landing page: a little browser window with a headline, a picture and a button. */
156
- .page {
157
- position: relative;
158
- width: 40px;
159
- height: 50px;
160
- border: 1.5px solid tint(70%);
161
- border-radius: 4px;
162
- background:
163
- linear-gradient(var(--foreground), var(--foreground)) 6px 10px / 24px 3px,
164
- linear-gradient(tint(40%), tint(40%)) 6px 16px / 16px 2px,
165
- linear-gradient(tint(25%), tint(25%)) 6px 22px / 25px 12px,
166
- linear-gradient(var(--foreground), var(--foreground)) 6px 38px / 14px 5px;
167
- background-repeat: no-repeat;
168
- &::before {
169
- content: "";
170
- position: absolute;
171
- left: 0;
172
- right: 0;
173
- top: 4px;
174
- border-top: 1.5px solid tint(40%);
92
+ 6%,
93
+ 16% {
94
+ opacity: 1;
95
+ transform: translateY(0) scale(1);
96
+ filter: blur(0);
175
97
  }
176
- }
177
- /* The campaign: a megaphone and the sound it sends out. */
178
- .campaign {
179
- position: relative;
180
- width: 40px;
181
- height: 30px;
182
- &::before {
183
- content: "";
184
- position: absolute;
185
- left: 2px;
186
- top: 4px;
187
- width: 22px;
188
- height: 22px;
189
- background: var(--foreground);
190
- clip-path: polygon(0 35%, 30% 35%, 100% 0, 100% 100%, 30% 65%, 0 65%);
98
+ 23%,
99
+ 100% {
100
+ opacity: 0;
101
+ transform: translateY(-14px) scale(0.85);
102
+ filter: blur(6px);
191
103
  }
192
- &::after {
193
- content: "";
104
+ }
105
+ /* The launch pad, and the smoke that spreads over it at lift-off. */
106
+ .pad {
107
+ position: absolute;
108
+ left: -50px;
109
+ top: 74px;
110
+ width: 100px;
111
+ height: 4px;
112
+ border-radius: 2px;
113
+ background: tint(30%);
114
+ i {
194
115
  position: absolute;
195
- left: 20px;
196
- top: 3px;
197
- width: 18px;
198
- height: 24px;
116
+ left: 50%;
117
+ top: -14px;
118
+ width: 26px;
119
+ height: 26px;
120
+ margin-left: -13px;
199
121
  border-radius: 50%;
200
- border: 2px solid transparent;
201
- border-right-color: tint(70%);
122
+ background: radial-gradient(circle, tint(40%), transparent 70%);
123
+ opacity: 0;
124
+ @include loop(launch-smoke $round ease-out infinite);
202
125
  }
203
126
  }
204
- /* Launch day: the product revealed, a solid box with a star of light behind it. */
205
- .launch {
206
- position: relative;
207
- width: 26px;
208
- height: 34px;
209
- border-radius: 4px;
210
- background: linear-gradient(160deg, var(--foreground), tint(55%));
211
- box-shadow: 0 0 18px tint(55%);
212
- &::before {
213
- content: "";
214
- position: absolute;
215
- inset: -14px;
216
- z-index: -1;
217
- background: repeating-conic-gradient(tint(35%) 0 6deg, transparent 6deg 30deg);
218
- mask: radial-gradient(circle, #000 30%, transparent 70%);
219
- border-radius: 50%;
127
+ @keyframes launch-smoke {
128
+ 0%,
129
+ 60% {
130
+ opacity: 0;
131
+ transform: translateX(0) scale(0.4);
132
+ }
133
+ 64% {
134
+ opacity: 1;
135
+ }
136
+ 84%,
137
+ 100% {
138
+ opacity: 0;
139
+ transform: translateX(calc(var(--side) * 70px)) translateY(-10px) scale(2.2);
220
140
  }
221
141
  }
222
- /* Confetti flying out of launch day once it is reached. */
223
- .confetti {
142
+ /* The rocket: standing on the pad, rising faster and faster at zero, then the next one appearing in its place. */
143
+ .rocket {
224
144
  position: absolute;
225
- left: calc(100% - 32px);
226
- top: 46px;
227
- width: 0;
228
- height: 0;
229
- transform: translateZ(20px);
230
- i {
145
+ left: -20px;
146
+ top: -18px;
147
+ width: 40px;
148
+ height: 92px;
149
+ @include loop(launch-rocket $round infinite);
150
+ svg {
231
151
  position: absolute;
232
- left: -2px;
233
- top: -4px;
234
- width: 4px;
235
- height: 8px;
236
- border-radius: 1px;
237
- background: var(--foreground);
238
- opacity: 0;
239
- @include loop(launch-confetti $round ease-out infinite);
152
+ inset: 0;
153
+ overflow: visible;
240
154
  }
241
155
  }
242
- @keyframes launch-confetti {
156
+ @keyframes launch-rocket {
243
157
  0%,
244
- #{$first + 3 * $step} {
158
+ 60% {
159
+ opacity: 1;
160
+ transform: translateY(0);
161
+ }
162
+ 63% {
163
+ transform: translateY(2px);
164
+ animation-timing-function: cubic-bezier(0.55, 0, 0.9, 0.4);
165
+ }
166
+ 84% {
167
+ opacity: 1;
168
+ transform: translateY(-340px);
169
+ }
170
+ 85% {
171
+ opacity: 0;
172
+ transform: translateY(0) scale(0.6);
173
+ }
174
+ 92% {
245
175
  opacity: 0;
246
- transform: rotate(var(--angle)) translateY(-8px) rotate(0deg);
176
+ transform: translateY(0) scale(0.6);
177
+ animation-timing-function: $ease;
178
+ }
179
+ 100% {
180
+ opacity: 1;
181
+ transform: translateY(0) scale(1);
182
+ }
183
+ }
184
+ .body {
185
+ fill: var(--background);
186
+ stroke: var(--foreground);
187
+ stroke-width: 1.5;
188
+ }
189
+ .window {
190
+ fill: tint(30%);
191
+ stroke: var(--foreground);
192
+ stroke-width: 1.5;
193
+ }
194
+ .fin {
195
+ fill: tint(40%);
196
+ stroke: var(--foreground);
197
+ stroke-width: 1.2;
198
+ stroke-linejoin: round;
199
+ }
200
+ /* The engine's flame: lit at zero, flickering as it burns. */
201
+ .flame {
202
+ fill: var(--foreground);
203
+ filter: drop-shadow(0 0 6px tint(80%));
204
+ transform-box: fill-box;
205
+ transform-origin: 50% 0;
206
+ transform: scaleY(0);
207
+ @include loop(launch-flame $round linear infinite);
208
+ }
209
+ @keyframes launch-flame {
210
+ 0%,
211
+ 58% {
212
+ transform: scaleY(0);
213
+ }
214
+ 61% {
215
+ transform: scaleY(1.2);
216
+ }
217
+ @for $step from 0 through 10 {
218
+ #{62% + $step * 2%} {
219
+ transform: scaleY(if($step % 2 == 0, 0.8, 1.25));
220
+ }
221
+ }
222
+ 84%,
223
+ 100% {
224
+ transform: scaleY(0);
225
+ }
226
+ }
227
+ /* The trail left behind, stretching as the rocket climbs and fading. */
228
+ .trail {
229
+ position: absolute;
230
+ left: 50%;
231
+ top: 86px;
232
+ width: 3px;
233
+ height: 120px;
234
+ margin-left: -1.5px;
235
+ background: linear-gradient(180deg, tint(70%), transparent);
236
+ transform-origin: top;
237
+ transform: scaleY(0);
238
+ @include loop(launch-trail $round ease-in infinite);
239
+ }
240
+ @keyframes launch-trail {
241
+ 0%,
242
+ 62% {
243
+ transform: scaleY(0);
244
+ opacity: 1;
247
245
  }
248
- #{$first + 3 * $step + 2%} {
246
+ 80% {
247
+ transform: scaleY(1.6);
249
248
  opacity: 1;
250
249
  }
251
- #{$first + 3 * $step + 18%},
250
+ 84%,
252
251
  100% {
252
+ transform: scaleY(1.6);
253
253
  opacity: 0;
254
- transform: rotate(var(--angle)) translateY(calc(-1 * var(--reach))) rotate(220deg);
255
254
  }
256
255
  }
package/llms.txt CHANGED
@@ -31,3 +31,4 @@
31
31
  - 0.26.0: Services renamed Web, Desktop & Mobile, Creative and Marketing. Web drops CMS and APIs and adds Professional Emails (object: an envelope opening behind an address that changes name, always @yourdomain.com); Platforms reads as your company's own system. Creative brings Merchandise back (designed by us, made by trusted partners) and every description is short, like the web ones; new objects: Branding (pieces of the brand settle on a board, then its mark rises), Rebranding (a divider sweeps the dated mark into the fresh one), Branding Design (a pointer drags a vector anchor and its handles, SVG with a still copy for reduced motion). Marketing cards are named campaigns (Product Launch, Lead Generation, Sales Generation, Brand Awareness Campaigns). "Didn't find the service you were looking for?"; 15 cards in all
32
32
  - 0.27.0: New objects: Platforms (a company's people around one system, joined to it by lines; messages travel from person to person through it, its gear turning and its tasks ticking off; text: your company's way of working, made digital), Product Launch (a countdown over a covered product, then the cover lifts, the product rises into the light and sparks fly), Brand Awareness (a billboard, then word of mouth spreads the brand's mark through a crowd until everyone thinks of it together). Shared Person and Mark pieces (component/service-object/person, /mark); Branding uses Mark. animation-web-library ^0.2.3 (the marquee glides sideways). The 0.26.0 note above said 16 cards: there are 15
33
33
  - 0.28.0: Web adds Hosting before Professional Emails (we host what we build, look after it and bring it back up if anything goes wrong; object: a server rack watched by an uptime line, one server has an incident, goes dark, and comes back with a tick); Web is now three cards over two. Desktop & Mobile brings back Android Applications and iOS Applications after the PWA (three cards in a row; the PWA card is short like the others, without its points; lead "Apps for every screen."). New Product Launch object: a campaign timeline lighting step by step (teaser, landing page, campaign, launch day with the product revealed and confetti). ServiceCard has no `wide` or `points` any more. 18 cards in all
34
+ - 0.29.0: Hosting's object is only the server rack (no uptime line): one server goes dark and comes back with a tick. Android's object looks like Android (camera hole, round icons, search bar, three buttons, the quick settings shade sliding down and its toggles switching on); iOS's like an iPhone (Dynamic Island opening into a live activity, rounded-square icons that jiggle, page dots, dock, home bar). Product Launch is a 3-2-1 countdown, each number flowing smoothly into the next inside a ring that runs out, then a rocket lifts off with flame, smoke and a trail
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sharadox/sharadox-web-library",
3
- "version": "0.28.0",
3
+ "version": "0.29.0",
4
4
  "description": "Sharadox's own website building blocks: content, components, brand and actions for sharadox-web-application, plus the preview notice and agency credit used on client demos.",
5
5
  "private": false,
6
6
  "license": "SEE LICENSE IN LICENCA.md",