@sharadox/sharadox-web-library 0.27.0 → 0.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/distribution/component/service-card/index.d.ts +2 -3
- package/distribution/component/service-card/index.d.ts.map +1 -1
- package/distribution/component/service-card/index.js +3 -4
- package/distribution/component/service-card/index.js.map +1 -1
- package/distribution/component/service-card/index.module.css +1 -1
- package/distribution/component/service-card/index.module.scss +0 -54
- package/distribution/component/service-card/type.d.ts +0 -2
- package/distribution/component/service-card/type.d.ts.map +1 -1
- package/distribution/component/service-object/android-application/index.d.ts +3 -0
- package/distribution/component/service-object/android-application/index.d.ts.map +1 -0
- package/distribution/component/service-object/android-application/index.js +8 -0
- package/distribution/component/service-object/android-application/index.js.map +1 -0
- package/distribution/component/service-object/android-application/index.module.css +1 -0
- package/distribution/component/service-object/android-application/index.module.scss +90 -0
- package/distribution/component/service-object/hosting/index.d.ts +7 -0
- package/distribution/component/service-object/hosting/index.d.ts.map +1 -0
- package/distribution/component/service-object/hosting/index.js +16 -0
- package/distribution/component/service-object/hosting/index.js.map +1 -0
- package/distribution/component/service-object/hosting/index.module.css +1 -0
- package/distribution/component/service-object/hosting/index.module.scss +162 -0
- package/distribution/component/service-object/index.d.ts.map +1 -1
- package/distribution/component/service-object/index.js +6 -0
- package/distribution/component/service-object/index.js.map +1 -1
- package/distribution/component/service-object/ios-application/index.d.ts +3 -0
- package/distribution/component/service-object/ios-application/index.d.ts.map +1 -0
- package/distribution/component/service-object/ios-application/index.js +8 -0
- package/distribution/component/service-object/ios-application/index.js.map +1 -0
- package/distribution/component/service-object/ios-application/index.module.css +1 -0
- package/distribution/component/service-object/ios-application/index.module.scss +93 -0
- package/distribution/component/service-object/product-launch/index.d.ts +3 -3
- package/distribution/component/service-object/product-launch/index.d.ts.map +1 -1
- package/distribution/component/service-object/product-launch/index.js +11 -9
- 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 +208 -133
- package/distribution/component/services/index.js +1 -1
- package/distribution/component/services/index.js.map +1 -1
- package/distribution/component/services/index.module.css +1 -1
- package/distribution/component/services/index.module.scss +1 -5
- package/distribution/content/contact/index.d.ts +27 -15
- package/distribution/content/contact/index.d.ts.map +1 -1
- package/distribution/content/services/index.d.ts +68 -42
- package/distribution/content/services/index.d.ts.map +1 -1
- package/distribution/content/services/index.js +41 -32
- package/distribution/content/services/index.js.map +1 -1
- package/distribution/content/site/index.d.ts.map +1 -1
- package/distribution/content/site/index.js +6 -2
- package/distribution/content/site/index.js.map +1 -1
- package/llms.txt +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -34,7 +34,7 @@ Everything generic comes from the open-source Sharadox libraries, configured her
|
|
|
34
34
|
- **One source for shared copy:** text used in more than one place lives in its own content module and is imported, never retyped.
|
|
35
35
|
- **`component/`:** the page's branded parts:
|
|
36
36
|
- grid frame, `Cross` marks, navigation (below 1100px its links open in a menu under the bar, in the bar's frosted background, scrolling when it doesn't fit, as on a phone held sideways) and footer
|
|
37
|
-
- hero and its guides, service index, statement, and Services: four groups of cards (Web, Desktop & Mobile, Creative, Marketing), each card with its own animated 3D object (`service-object`, in CSS 3D, turning towards the pointer), a description and a button that starts that project; a
|
|
37
|
+
- hero and its guides, service index, statement, and Services: four groups of cards (Web, Desktop & Mobile, Creative, Marketing), each card with its own animated 3D object (`service-object`, in CSS 3D, turning towards the pointer), a description and a button that starts that project; rows of three, with a row of two (or two rows of two) when the count needs it; then `ServiceUnlisted`, the invitation for ideas none of them name
|
|
38
38
|
- the 3D touchpoint stack, capabilities sheet, process, contact, section indicator, style switch
|
|
39
39
|
- `Consent`, the Sharadox cookie panel (reopened by the footer's Cookie Preferences), and the footer's legal parts: Portugal's complaints book and the Algarve's consumer dispute notice (CIMAAL)
|
|
40
40
|
- the Sharadox wrapper around the shared globe, structured data, share image, `llmsText()` for `/llms.txt`
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import type { ServiceCardProperties } from "@sharadox/sharadox-web-library/component/service-card/type";
|
|
2
2
|
/**
|
|
3
3
|
* One service: its 3D object (which turns towards the pointer anywhere on the card), name, description, and a button
|
|
4
|
-
* that scrolls to the contact form with this service ticked
|
|
5
|
-
* the pointer. A `wide` card puts the object beside the words.
|
|
4
|
+
* that scrolls to the contact form with this service ticked. A soft light follows the pointer.
|
|
6
5
|
*
|
|
7
6
|
* @example
|
|
8
7
|
* <ServiceCard locale="en" card={SERVICES.items[0].cards[0]} />
|
|
9
8
|
*/
|
|
10
|
-
export declare function ServiceCard({ locale, card
|
|
9
|
+
export declare function ServiceCard({ locale, card }: ServiceCardProperties): import("react").JSX.Element;
|
|
11
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/service-card/index.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4DAA4D,CAAC;AAExG
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/service-card/index.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4DAA4D,CAAC;AAExG;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,qBAAqB,+BAyBlE"}
|
|
@@ -10,15 +10,14 @@ import { requestContactNeeds } from "@sharadox/sharadox-web-library/utility/cont
|
|
|
10
10
|
import styles from "./index.module.css";
|
|
11
11
|
/**
|
|
12
12
|
* One service: its 3D object (which turns towards the pointer anywhere on the card), name, description, and a button
|
|
13
|
-
* that scrolls to the contact form with this service ticked
|
|
14
|
-
* the pointer. A `wide` card puts the object beside the words.
|
|
13
|
+
* that scrolls to the contact form with this service ticked. A soft light follows the pointer.
|
|
15
14
|
*
|
|
16
15
|
* @example
|
|
17
16
|
* <ServiceCard locale="en" card={SERVICES.items[0].cards[0]} />
|
|
18
17
|
*/
|
|
19
|
-
export function ServiceCard({ locale, card
|
|
18
|
+
export function ServiceCard({ locale, card }) {
|
|
20
19
|
const spotlight = useSpotlight();
|
|
21
20
|
const tilt = useTilt(16);
|
|
22
|
-
return (_jsx("article", { ref: spotlight, className: styles.card,
|
|
21
|
+
return (_jsx("article", { ref: spotlight, className: styles.card, children: _jsxs("div", { ref: tilt, className: styles.inner, children: [_jsx("div", { className: styles.visual, children: _jsx(ServiceObject, { kind: card.key }) }), _jsxs("div", { className: styles.copy, children: [_jsx("h4", { children: translate(card.title, locale) }), _jsx("p", { children: translate(card.text, locale) }), _jsx(Button, { href: `#${SECTION.contact.id}`, size: "small", arrow: true, className: styles.action, onClick: () => requestContactNeeds([card.key]), children: translate(card.action, locale) })] })] }) }));
|
|
23
22
|
}
|
|
24
23
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/service-card/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAE,MAAM,iDAAiD,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,MAAM,yDAAyD,CAAC;AACxF,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AACzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,qDAAqD,CAAC;AAC1F,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/service-card/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,SAA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S,CAAC,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,GACxB,IACL,IACF,GACE,CACX,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.card{--pointer-x: -500px;--pointer-y: -500px;position:relative;height:100%;background:var(--background);isolation:isolate}.card::before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(420px circle at var(--pointer-x) var(--pointer-y), color-mix(in srgb, var(--foreground) 7%, transparent), transparent 60%)}.inner{--tilt-x: 0deg;--tilt-y: 0deg;display:flex;flex-direction:column;height:100%}.visual{position:relative;height:270px;border-bottom:1px dashed var(--line-2);background:radial-gradient(90% 80% at 50% 45%, color-mix(in srgb, var(--foreground) 6%, transparent), transparent 70%),radial-gradient(circle, var(--line-2) 1px, transparent 1.4px) 0 0/18px 18px}@media(max-width: 640px){.visual{height:250px}}.copy{flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:24px 26px 28px}.copy h4{margin:0;font-size:1.3rem;font-weight:600;letter-spacing:-0.03em}.copy p{margin-bottom:14px;color:var(--foreground-2);max-width:44ch;text-wrap:pretty}.action{margin-top:auto}
|
|
1
|
+
.card{--pointer-x: -500px;--pointer-y: -500px;position:relative;height:100%;background:var(--background);isolation:isolate}.card::before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(420px circle at var(--pointer-x) var(--pointer-y), color-mix(in srgb, var(--foreground) 7%, transparent), transparent 60%)}.inner{--tilt-x: 0deg;--tilt-y: 0deg;display:flex;flex-direction:column;height:100%}.visual{position:relative;height:270px;border-bottom:1px dashed var(--line-2);background:radial-gradient(90% 80% at 50% 45%, color-mix(in srgb, var(--foreground) 6%, transparent), transparent 70%),radial-gradient(circle, var(--line-2) 1px, transparent 1.4px) 0 0/18px 18px}@media(max-width: 640px){.visual{height:250px}}.copy{flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:24px 26px 28px}.copy h4{margin:0;font-size:1.3rem;font-weight:600;letter-spacing:-0.03em}.copy p{margin-bottom:14px;color:var(--foreground-2);max-width:44ch;text-wrap:pretty}.action{margin-top:auto}
|
|
@@ -57,57 +57,3 @@
|
|
|
57
57
|
.action {
|
|
58
58
|
margin-top: auto;
|
|
59
59
|
}
|
|
60
|
-
/* The card's reasons, numbered. */
|
|
61
|
-
.points {
|
|
62
|
-
display: grid;
|
|
63
|
-
gap: 14px;
|
|
64
|
-
margin: 0 0 22px;
|
|
65
|
-
padding: 0;
|
|
66
|
-
list-style: none;
|
|
67
|
-
li {
|
|
68
|
-
display: grid;
|
|
69
|
-
grid-template-columns: auto 1fr;
|
|
70
|
-
gap: 2px 14px;
|
|
71
|
-
padding-top: 14px;
|
|
72
|
-
border-top: 1px dashed var(--line-2);
|
|
73
|
-
> span:first-child {
|
|
74
|
-
grid-row: span 2;
|
|
75
|
-
font-size: 12px;
|
|
76
|
-
color: var(--foreground-3);
|
|
77
|
-
line-height: 1.7;
|
|
78
|
-
}
|
|
79
|
-
strong {
|
|
80
|
-
font-weight: 600;
|
|
81
|
-
}
|
|
82
|
-
> span:last-child {
|
|
83
|
-
color: var(--foreground-2);
|
|
84
|
-
text-wrap: pretty;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
/* Alone in its row: the object on the left, the words on the right. */
|
|
89
|
-
.card[data-wide] {
|
|
90
|
-
@media (min-width: 961px) {
|
|
91
|
-
.inner {
|
|
92
|
-
display: grid;
|
|
93
|
-
grid-template-columns: 1fr 1fr;
|
|
94
|
-
}
|
|
95
|
-
.visual {
|
|
96
|
-
--object-scale: 1.5;
|
|
97
|
-
height: auto;
|
|
98
|
-
min-height: 440px;
|
|
99
|
-
border-bottom: 0;
|
|
100
|
-
border-right: 1px dashed var(--line-2);
|
|
101
|
-
}
|
|
102
|
-
.copy {
|
|
103
|
-
justify-content: center;
|
|
104
|
-
padding: 40px clamp(28px, 4vw, 56px);
|
|
105
|
-
p {
|
|
106
|
-
max-width: 56ch;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
.action {
|
|
110
|
-
margin-top: 0;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
}
|
|
@@ -4,7 +4,5 @@ export interface ServiceCardProperties {
|
|
|
4
4
|
locale: Locale;
|
|
5
5
|
/** One of the cards in `SERVICES`. */
|
|
6
6
|
card: (typeof SERVICES.items)[number]["cards"][number];
|
|
7
|
-
/** The object beside the words instead of above them, for a card alone in its row. */
|
|
8
|
-
wide?: boolean;
|
|
9
7
|
}
|
|
10
8
|
//# sourceMappingURL=type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../source/component/service-card/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oDAAoD,CAAC;AACjF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAEhF,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,sCAAsC;IACtC,IAAI,EAAE,CAAC,OAAO,QAAQ,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../source/component/service-card/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oDAAoD,CAAC;AACjF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAEhF,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,sCAAsC;IACtC,IAAI,EAAE,CAAC,OAAO,QAAQ,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC;CACxD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/service-object/android-application/index.tsx"],"names":[],"mappings":"AAGA,oIAAoI;AACpI,wBAAgB,kBAAkB,gCAuBjC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { Cuboid } from "@sharadox/sharadox-web-library/component/service-object/cuboid";
|
|
3
|
+
import styles from "./index.module.css";
|
|
4
|
+
/** Android applications: a phone turning in the hand, its app tiles rising off the screen in a wave, the three-button bar below. */
|
|
5
|
+
export function AndroidApplication() {
|
|
6
|
+
return (_jsx("div", { className: styles.object, children: _jsx(Cuboid, { className: styles.phone, front: _jsxs(_Fragment, { children: [_jsx("span", { className: styles.camera }), _jsx("span", { className: styles.tiles, children: Array.from({ length: 12 }, (_, tile) => (_jsx("i", { style: { animationDelay: `${(tile % 3) * 0.15 + Math.floor(tile / 3) * 0.2}s` } }, tile))) }), _jsxs("span", { className: styles.buttons, children: [_jsx("i", { className: styles.back }), _jsx("i", { className: styles.home }), _jsx("i", { className: styles.recent })] })] }) }) }));
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/service-object/android-application/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gEAAgE,CAAC;AACxF,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,oIAAoI;AACpI,MAAM,UAAU,kBAAkB;IAChC,OAAO,CACL,cAAK,SAAS,EAAE,MAAM,CAAC,MAAM,YAC3B,KAAC,MAAM,IACL,SAAS,EAAE,MAAM,CAAC,KAAK,EACvB,KAAK,EACH,8BACE,eAAM,SAAS,EAAE,MAAM,CAAC,MAAM,GAAI,EAClC,eAAM,SAAS,EAAE,MAAM,CAAC,KAAK,YAC1B,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,CACvC,YAAc,KAAK,EAAE,EAAE,cAAc,EAAE,GAAG,CAAC,IAAI,GAAG,CAAC,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,CAAC,CAAC,GAAG,GAAG,GAAG,EAAE,IAArF,IAAI,CAAqF,CAClG,CAAC,GACG,EACP,gBAAM,SAAS,EAAE,MAAM,CAAC,OAAO,aAC7B,YAAG,SAAS,EAAE,MAAM,CAAC,IAAI,GAAI,EAC7B,YAAG,SAAS,EAAE,MAAM,CAAC,IAAI,GAAI,EAC7B,YAAG,SAAS,EAAE,MAAM,CAAC,MAAM,GAAI,IAC1B,IACN,GAEL,GACE,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.object{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d;animation:android-turn 9s ease-in-out infinite}@media(prefers-reduced-motion: reduce){.object{animation:none}}.object{transform:rotateX(10deg) rotateY(-28deg)}@keyframes android-turn{0%,100%{transform:rotateX(10deg) rotateY(-32deg) rotateZ(-2deg)}50%{transform:rotateX(6deg) rotateY(24deg) rotateZ(2deg)}}.phone{--width: 88px;--height: 172px;--depth: 9px;--radius: 12px;--front-amount: 4%;--edge-amount: 55%}.camera{position:absolute;left:50%;top:8px;width:6px;height:6px;margin-left:-3px;border-radius:50%;background:color-mix(in srgb, var(--foreground) 55%, transparent)}.tiles{position:absolute;inset:24px 11px 30px;display:grid;grid-template-columns:repeat(3, 1fr);gap:8px;transform-style:preserve-3d}.tiles i{aspect-ratio:1;border-radius:6px;border:1px solid color-mix(in srgb, var(--foreground) 45%, transparent);background:color-mix(in srgb, var(--foreground) 14%, transparent);animation:android-rise 2.8s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.tiles i{animation:none}}@keyframes android-rise{0%,45%,100%{transform:translateZ(0);background:color-mix(in srgb, var(--foreground) 14%, transparent)}20%{transform:translateZ(16px);background:color-mix(in srgb, var(--foreground) 40%, transparent)}}.buttons{position:absolute;left:18px;right:18px;bottom:9px;display:flex;align-items:center;justify-content:space-between}.buttons i{width:8px;height:8px;border:1.5px solid color-mix(in srgb, var(--foreground) 55%, transparent)}.back{border:0 !important;width:0 !important;height:0 !important;border-top:4.5px solid rgba(0,0,0,0) !important;border-bottom:4.5px solid rgba(0,0,0,0) !important;border-right:7px solid color-mix(in srgb, var(--foreground) 55%, transparent) !important}.home{border-radius:50%}.recent{border-radius:2px}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
@use "style/token" as *;
|
|
2
|
+
@use "style/object" as *;
|
|
3
|
+
|
|
4
|
+
.object {
|
|
5
|
+
@include centered(0px, 0px);
|
|
6
|
+
@include loop(android-turn 9s ease-in-out infinite);
|
|
7
|
+
transform: rotateX(10deg) rotateY(-28deg);
|
|
8
|
+
}
|
|
9
|
+
@keyframes android-turn {
|
|
10
|
+
0%,
|
|
11
|
+
100% {
|
|
12
|
+
transform: rotateX(10deg) rotateY(-32deg) rotateZ(-2deg);
|
|
13
|
+
}
|
|
14
|
+
50% {
|
|
15
|
+
transform: rotateX(6deg) rotateY(24deg) rotateZ(2deg);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
.phone {
|
|
19
|
+
--width: 88px;
|
|
20
|
+
--height: 172px;
|
|
21
|
+
--depth: 9px;
|
|
22
|
+
--radius: 12px;
|
|
23
|
+
--front-amount: 4%;
|
|
24
|
+
--edge-amount: 55%;
|
|
25
|
+
}
|
|
26
|
+
.camera {
|
|
27
|
+
position: absolute;
|
|
28
|
+
left: 50%;
|
|
29
|
+
top: 8px;
|
|
30
|
+
width: 6px;
|
|
31
|
+
height: 6px;
|
|
32
|
+
margin-left: -3px;
|
|
33
|
+
border-radius: 50%;
|
|
34
|
+
background: tint(55%);
|
|
35
|
+
}
|
|
36
|
+
.tiles {
|
|
37
|
+
position: absolute;
|
|
38
|
+
inset: 24px 11px 30px;
|
|
39
|
+
display: grid;
|
|
40
|
+
grid-template-columns: repeat(3, 1fr);
|
|
41
|
+
gap: 8px;
|
|
42
|
+
transform-style: preserve-3d;
|
|
43
|
+
i {
|
|
44
|
+
aspect-ratio: 1;
|
|
45
|
+
border-radius: 6px;
|
|
46
|
+
border: 1px solid tint(45%);
|
|
47
|
+
background: tint(14%);
|
|
48
|
+
@include loop(android-rise 2.8s $ease infinite);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
@keyframes android-rise {
|
|
52
|
+
0%,
|
|
53
|
+
45%,
|
|
54
|
+
100% {
|
|
55
|
+
transform: translateZ(0);
|
|
56
|
+
background: tint(14%);
|
|
57
|
+
}
|
|
58
|
+
20% {
|
|
59
|
+
transform: translateZ(16px);
|
|
60
|
+
background: tint(40%);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
.buttons {
|
|
64
|
+
position: absolute;
|
|
65
|
+
left: 18px;
|
|
66
|
+
right: 18px;
|
|
67
|
+
bottom: 9px;
|
|
68
|
+
display: flex;
|
|
69
|
+
align-items: center;
|
|
70
|
+
justify-content: space-between;
|
|
71
|
+
i {
|
|
72
|
+
width: 8px;
|
|
73
|
+
height: 8px;
|
|
74
|
+
border: 1.5px solid tint(55%);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
.back {
|
|
78
|
+
border: 0 !important;
|
|
79
|
+
width: 0 !important;
|
|
80
|
+
height: 0 !important;
|
|
81
|
+
border-top: 4.5px solid transparent !important;
|
|
82
|
+
border-bottom: 4.5px solid transparent !important;
|
|
83
|
+
border-right: 7px solid tint(55%) !important;
|
|
84
|
+
}
|
|
85
|
+
.home {
|
|
86
|
+
border-radius: 50%;
|
|
87
|
+
}
|
|
88
|
+
.recent {
|
|
89
|
+
border-radius: 2px;
|
|
90
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
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.
|
|
5
|
+
*/
|
|
6
|
+
export declare function Hosting(): import("react").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Cuboid } from "@sharadox/sharadox-web-library/component/service-object/cuboid";
|
|
3
|
+
import styles from "./index.module.css";
|
|
4
|
+
/** The servers in the rack, top to bottom; the middle one is the one that has the incident. */
|
|
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
|
+
/**
|
|
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.
|
|
12
|
+
*/
|
|
13
|
+
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 })] }));
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.object{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d;animation: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}}
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
@use "style/token" as *;
|
|
2
|
+
@use "style/object" as *;
|
|
3
|
+
|
|
4
|
+
/* One round: steady running, the incident (from 40%), the fix (from 58%), and steady running again. */
|
|
5
|
+
$round: 8s;
|
|
6
|
+
|
|
7
|
+
.object {
|
|
8
|
+
@include centered(0px, 0px);
|
|
9
|
+
@include loop(hosting-sway 12s ease-in-out infinite);
|
|
10
|
+
transform: translateY(16px) rotateX(-12deg) rotateY(-24deg);
|
|
11
|
+
}
|
|
12
|
+
@keyframes hosting-sway {
|
|
13
|
+
0%,
|
|
14
|
+
100% {
|
|
15
|
+
transform: translateY(16px) rotateX(-12deg) rotateY(-24deg);
|
|
16
|
+
}
|
|
17
|
+
50% {
|
|
18
|
+
transform: translateY(16px) rotateX(-8deg) rotateY(14deg);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
.server {
|
|
22
|
+
--width: 120px;
|
|
23
|
+
--height: 30px;
|
|
24
|
+
--depth: 84px;
|
|
25
|
+
--radius: 3px;
|
|
26
|
+
--fill-amount: 8%;
|
|
27
|
+
--front-amount: 10%;
|
|
28
|
+
--edge-amount: 60%;
|
|
29
|
+
&:nth-child(2) {
|
|
30
|
+
transform: translateY(-36px);
|
|
31
|
+
}
|
|
32
|
+
&:nth-child(4) {
|
|
33
|
+
transform: translateY(36px);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
/* A server's front: three status lights and a vent. */
|
|
37
|
+
.panel {
|
|
38
|
+
position: absolute;
|
|
39
|
+
inset: 0;
|
|
40
|
+
display: flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
gap: 6px;
|
|
43
|
+
padding: 0 12px;
|
|
44
|
+
i {
|
|
45
|
+
width: 6px;
|
|
46
|
+
height: 6px;
|
|
47
|
+
border-radius: 50%;
|
|
48
|
+
background: var(--foreground);
|
|
49
|
+
box-shadow: 0 0 6px tint(70%);
|
|
50
|
+
@include loop(hosting-blink 1.1s steps(2, jump-none) infinite);
|
|
51
|
+
}
|
|
52
|
+
b {
|
|
53
|
+
flex: 1;
|
|
54
|
+
height: 12px;
|
|
55
|
+
margin-left: 10px;
|
|
56
|
+
background: repeating-linear-gradient(90deg, tint(35%) 0 2px, transparent 2px 6px);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
@keyframes hosting-blink {
|
|
60
|
+
0% {
|
|
61
|
+
opacity: 1;
|
|
62
|
+
}
|
|
63
|
+
100% {
|
|
64
|
+
opacity: 0.35;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
/* The server with the incident: its lights go out, then come back once it is fixed. */
|
|
68
|
+
.panel[data-incident] {
|
|
69
|
+
@include loop(hosting-incident $round linear infinite);
|
|
70
|
+
}
|
|
71
|
+
@keyframes hosting-incident {
|
|
72
|
+
0%,
|
|
73
|
+
40% {
|
|
74
|
+
opacity: 1;
|
|
75
|
+
filter: none;
|
|
76
|
+
}
|
|
77
|
+
42%,
|
|
78
|
+
56% {
|
|
79
|
+
opacity: 0.15;
|
|
80
|
+
}
|
|
81
|
+
60% {
|
|
82
|
+
opacity: 1;
|
|
83
|
+
filter: drop-shadow(0 0 8px tint(80%));
|
|
84
|
+
}
|
|
85
|
+
72%,
|
|
86
|
+
100% {
|
|
87
|
+
opacity: 1;
|
|
88
|
+
filter: none;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
/* The ring of light and the tick when the server is back up. */
|
|
92
|
+
.fixed {
|
|
93
|
+
@include centered(30px, 30px);
|
|
94
|
+
border-radius: 50%;
|
|
95
|
+
border: 1.5px solid var(--foreground);
|
|
96
|
+
background: var(--background);
|
|
97
|
+
transform: translateX(92px) translateZ(44px);
|
|
98
|
+
opacity: 0;
|
|
99
|
+
@include loop(hosting-fixed $round $ease infinite);
|
|
100
|
+
&::after {
|
|
101
|
+
content: "";
|
|
102
|
+
position: absolute;
|
|
103
|
+
left: 9px;
|
|
104
|
+
top: 6px;
|
|
105
|
+
width: 7px;
|
|
106
|
+
height: 12px;
|
|
107
|
+
border-right: 2px solid var(--foreground);
|
|
108
|
+
border-bottom: 2px solid var(--foreground);
|
|
109
|
+
transform: rotate(45deg);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
@keyframes hosting-fixed {
|
|
113
|
+
0%,
|
|
114
|
+
57% {
|
|
115
|
+
opacity: 0;
|
|
116
|
+
transform: translateX(92px) translateZ(44px) scale(0.4);
|
|
117
|
+
}
|
|
118
|
+
62%,
|
|
119
|
+
84% {
|
|
120
|
+
opacity: 1;
|
|
121
|
+
transform: translateX(92px) translateZ(44px) scale(1);
|
|
122
|
+
}
|
|
123
|
+
92%,
|
|
124
|
+
100% {
|
|
125
|
+
opacity: 0;
|
|
126
|
+
transform: translateX(92px) translateZ(44px) scale(1);
|
|
127
|
+
}
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/service-object/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/service-object/index.tsx"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8DAA8D,CAAC;AAwB5G;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,EAAE,IAAI,EAAE,EAAE,uBAAuB,+BAS9D"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { AndroidApplication } from "@sharadox/sharadox-web-library/component/service-object/android-application";
|
|
2
3
|
import { BrandAwareness } from "@sharadox/sharadox-web-library/component/service-object/brand-awareness";
|
|
3
4
|
import { Branding } from "@sharadox/sharadox-web-library/component/service-object/branding";
|
|
4
5
|
import { BrandingDesign } from "@sharadox/sharadox-web-library/component/service-object/branding-design";
|
|
@@ -8,6 +9,8 @@ import { LeadGeneration } from "@sharadox/sharadox-web-library/component/service
|
|
|
8
9
|
import { Platform } from "@sharadox/sharadox-web-library/component/service-object/platform";
|
|
9
10
|
import { PrintDesign } from "@sharadox/sharadox-web-library/component/service-object/print-design";
|
|
10
11
|
import { ProfessionalEmail } from "@sharadox/sharadox-web-library/component/service-object/professional-email";
|
|
12
|
+
import { Hosting } from "@sharadox/sharadox-web-library/component/service-object/hosting";
|
|
13
|
+
import { IosApplication } from "@sharadox/sharadox-web-library/component/service-object/ios-application";
|
|
11
14
|
import { ProductLaunch } from "@sharadox/sharadox-web-library/component/service-object/product-launch";
|
|
12
15
|
import { ProgressiveWebApplication } from "@sharadox/sharadox-web-library/component/service-object/progressive-web-application";
|
|
13
16
|
import { Rebranding } from "@sharadox/sharadox-web-library/component/service-object/rebranding";
|
|
@@ -20,8 +23,11 @@ const OBJECTS = {
|
|
|
20
23
|
website: Website,
|
|
21
24
|
platform: Platform,
|
|
22
25
|
"e-commerce": ECommerce,
|
|
26
|
+
hosting: Hosting,
|
|
23
27
|
"professional-email": ProfessionalEmail,
|
|
24
28
|
"progressive-web-application": ProgressiveWebApplication,
|
|
29
|
+
"android-application": AndroidApplication,
|
|
30
|
+
"ios-application": IosApplication,
|
|
25
31
|
branding: Branding,
|
|
26
32
|
rebranding: Rebranding,
|
|
27
33
|
"branding-design": BrandingDesign,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/service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AC;AAC3G,OAAO,EAAE,mBAAmB,EAAE,MAAM,+EAA+E,CAAC;AACpH,OAAO,EAAE,OAAO,EAAE,MAAM,iEAAiE,CAAC;AAE1F,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC,sCAAsC;AACtC,MAAM,OAAO,GAA0C;IACrD,OAAO,EAAE,OAAO;IAChB,QAAQ,EAAE,QAAQ;IAClB,YAAY,EAAE,SAAS;IACvB,OAAO,EAAE,OAAO;IAChB,oBAAoB,EAAE,iBAAiB;IACvC,6BAA6B,EAAE,yBAAyB;IACxD,qBAAqB,EAAE,kBAAkB;IACzC,iBAAiB,EAAE,cAAc;IACjC,QAAQ,EAAE,QAAQ;IAClB,UAAU,EAAE,UAAU;IACtB,iBAAiB,EAAE,cAAc;IACjC,cAAc,EAAE,WAAW;IAC3B,WAAW,EAAE,WAAW;IACxB,gBAAgB,EAAE,aAAa;IAC/B,iBAAiB,EAAE,cAAc;IACjC,kBAAkB,EAAE,eAAe;IACnC,iBAAiB,EAAE,cAAc;IACjC,uBAAuB,EAAE,mBAAmB;CAC7C,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,UAAU,aAAa,CAAC,EAAE,IAAI,EAA2B;IAC7D,MAAM,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5B,OAAO,CACL,cAAK,SAAS,EAAE,MAAM,CAAC,KAAK,iCAC1B,cAAK,SAAS,EAAE,MAAM,CAAC,IAAI,YACzB,KAAC,KAAK,KAAG,GACL,GACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { Cuboid } from "@sharadox/sharadox-web-library/component/service-object/cuboid";
|
|
3
|
+
import styles from "./index.module.css";
|
|
4
|
+
/** iOS applications: a phone with its island opening up, and widgets floating off the screen towards you. */
|
|
5
|
+
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 })] }) }) }));
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.object{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d;animation: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)}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
@use "style/token" as *;
|
|
2
|
+
@use "style/object" as *;
|
|
3
|
+
|
|
4
|
+
.object {
|
|
5
|
+
@include centered(0px, 0px);
|
|
6
|
+
@include loop(ios-turn 10s ease-in-out infinite);
|
|
7
|
+
transform: rotateX(-6deg) rotateY(26deg);
|
|
8
|
+
}
|
|
9
|
+
@keyframes ios-turn {
|
|
10
|
+
0%,
|
|
11
|
+
100% {
|
|
12
|
+
transform: rotateX(-6deg) rotateY(30deg);
|
|
13
|
+
}
|
|
14
|
+
50% {
|
|
15
|
+
transform: rotateX(-2deg) rotateY(-22deg);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
.phone {
|
|
19
|
+
--width: 88px;
|
|
20
|
+
--height: 176px;
|
|
21
|
+
--depth: 9px;
|
|
22
|
+
--radius: 20px;
|
|
23
|
+
--front-amount: 4%;
|
|
24
|
+
--edge-amount: 55%;
|
|
25
|
+
}
|
|
26
|
+
.island {
|
|
27
|
+
position: absolute;
|
|
28
|
+
left: 50%;
|
|
29
|
+
top: 9px;
|
|
30
|
+
width: 28px;
|
|
31
|
+
height: 9px;
|
|
32
|
+
border-radius: 9px;
|
|
33
|
+
background: tint(70%);
|
|
34
|
+
transform: translateX(-50%);
|
|
35
|
+
@include loop(ios-island 4s $ease infinite);
|
|
36
|
+
}
|
|
37
|
+
@keyframes ios-island {
|
|
38
|
+
0%,
|
|
39
|
+
40%,
|
|
40
|
+
100% {
|
|
41
|
+
width: 28px;
|
|
42
|
+
height: 9px;
|
|
43
|
+
}
|
|
44
|
+
55%,
|
|
45
|
+
80% {
|
|
46
|
+
width: 62px;
|
|
47
|
+
height: 16px;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
.widgets {
|
|
51
|
+
position: absolute;
|
|
52
|
+
inset: 34px 10px 26px;
|
|
53
|
+
display: grid;
|
|
54
|
+
grid-template-columns: 1fr 1fr;
|
|
55
|
+
grid-template-rows: 1fr 1fr 1.2fr;
|
|
56
|
+
gap: 8px;
|
|
57
|
+
transform-style: preserve-3d;
|
|
58
|
+
i {
|
|
59
|
+
border-radius: 9px;
|
|
60
|
+
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;
|
|
69
|
+
}
|
|
70
|
+
&:nth-child(3) {
|
|
71
|
+
animation-delay: -3s;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
@keyframes ios-float {
|
|
76
|
+
0%,
|
|
77
|
+
100% {
|
|
78
|
+
transform: translateZ(4px);
|
|
79
|
+
}
|
|
80
|
+
50% {
|
|
81
|
+
transform: translateZ(24px);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
.indicator {
|
|
85
|
+
position: absolute;
|
|
86
|
+
left: 50%;
|
|
87
|
+
bottom: 8px;
|
|
88
|
+
width: 34px;
|
|
89
|
+
height: 3px;
|
|
90
|
+
margin-left: -17px;
|
|
91
|
+
border-radius: 2px;
|
|
92
|
+
background: tint(55%);
|
|
93
|
+
}
|