@sharadox/sharadox-web-library 0.28.0 → 0.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/distribution/component/service-object/android-application/index.d.ts +5 -1
- package/distribution/component/service-object/android-application/index.d.ts.map +1 -1
- package/distribution/component/service-object/android-application/index.js +11 -3
- package/distribution/component/service-object/android-application/index.js.map +1 -1
- package/distribution/component/service-object/android-application/index.module.css +1 -1
- package/distribution/component/service-object/android-application/index.module.scss +112 -30
- package/distribution/component/service-object/hosting/index.d.ts +2 -3
- package/distribution/component/service-object/hosting/index.d.ts.map +1 -1
- package/distribution/component/service-object/hosting/index.js +3 -6
- package/distribution/component/service-object/hosting/index.js.map +1 -1
- package/distribution/component/service-object/hosting/index.module.css +1 -1
- package/distribution/component/service-object/hosting/index.module.scss +5 -39
- package/distribution/component/service-object/ios-application/index.d.ts +4 -1
- package/distribution/component/service-object/ios-application/index.d.ts.map +1 -1
- package/distribution/component/service-object/ios-application/index.js +10 -3
- package/distribution/component/service-object/ios-application/index.js.map +1 -1
- package/distribution/component/service-object/ios-application/index.module.css +1 -1
- package/distribution/component/service-object/ios-application/index.module.scss +129 -36
- package/distribution/component/service-object/product-launch/index.d.ts +4 -3
- package/distribution/component/service-object/product-launch/index.d.ts.map +1 -1
- package/distribution/component/service-object/product-launch/index.js +35 -11
- 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 +225 -199
- package/llms.txt +2 -0
- package/package.json +2 -2
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
/**
|
|
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":"
|
|
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
|
|
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 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(
|
|
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,
|
|
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
|
|
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
|
|
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(-
|
|
15
|
+
transform: rotateX(10deg) rotateY(-30deg);
|
|
13
16
|
}
|
|
14
17
|
50% {
|
|
15
|
-
transform: rotateX(6deg) rotateY(
|
|
18
|
+
transform: rotateX(6deg) rotateY(20deg);
|
|
16
19
|
}
|
|
17
20
|
}
|
|
18
21
|
.phone {
|
|
19
22
|
--width: 88px;
|
|
20
|
-
--height:
|
|
23
|
+
--height: 176px;
|
|
21
24
|
--depth: 9px;
|
|
22
|
-
--radius:
|
|
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:
|
|
39
|
+
top: 6px;
|
|
30
40
|
width: 6px;
|
|
31
41
|
height: 6px;
|
|
32
42
|
margin-left: -3px;
|
|
33
43
|
border-radius: 50%;
|
|
34
|
-
background:
|
|
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
|
-
.
|
|
57
|
+
/* Round app icons, four to a row. */
|
|
58
|
+
.apps {
|
|
37
59
|
position: absolute;
|
|
38
|
-
inset:
|
|
60
|
+
inset: 26px 9px auto;
|
|
39
61
|
display: grid;
|
|
40
|
-
grid-template-columns: repeat(
|
|
41
|
-
gap:
|
|
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:
|
|
66
|
+
border-radius: 50%;
|
|
46
67
|
border: 1px solid tint(45%);
|
|
47
|
-
background: tint(
|
|
48
|
-
|
|
68
|
+
background: tint(16%);
|
|
69
|
+
&:nth-child(3n + 1) {
|
|
70
|
+
background: tint(34%);
|
|
71
|
+
}
|
|
49
72
|
}
|
|
50
73
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
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:
|
|
66
|
-
right:
|
|
67
|
-
bottom:
|
|
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
|
|
3
|
-
*
|
|
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":"
|
|
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
|
|
10
|
-
*
|
|
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: [
|
|
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
|
|
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:
|
|
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:
|
|
10
|
+
transform: scale(1.15) rotateX(-12deg) rotateY(-24deg);
|
|
11
11
|
}
|
|
12
12
|
@keyframes hosting-sway {
|
|
13
13
|
0%,
|
|
14
14
|
100% {
|
|
15
|
-
transform:
|
|
15
|
+
transform: scale(1.15) rotateX(-12deg) rotateY(-24deg);
|
|
16
16
|
}
|
|
17
17
|
50% {
|
|
18
|
-
transform:
|
|
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(
|
|
29
|
+
&:nth-child(1) {
|
|
30
30
|
transform: translateY(-36px);
|
|
31
31
|
}
|
|
32
|
-
&:nth-child(
|
|
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
|
-
/**
|
|
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":"
|
|
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
|
|
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 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(
|
|
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,
|
|
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(
|
|
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)}
|