@sharadox/sharadox-web-library 0.20.1 → 0.22.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 +5 -4
- package/distribution/action/send-contact/index.d.ts +3 -1
- package/distribution/action/send-contact/index.d.ts.map +1 -1
- package/distribution/action/send-contact/index.js +7 -1
- package/distribution/action/send-contact/index.js.map +1 -1
- package/distribution/component/contact/form/index.d.ts +5 -1
- package/distribution/component/contact/form/index.d.ts.map +1 -1
- package/distribution/component/contact/form/index.js +39 -5
- package/distribution/component/contact/form/index.js.map +1 -1
- package/distribution/component/contact/form/index.module.css +1 -1
- package/distribution/component/contact/form/index.module.scss +18 -0
- package/distribution/component/footer/index.d.ts +2 -2
- package/distribution/component/footer/index.d.ts.map +1 -1
- package/distribution/component/footer/index.js +3 -3
- package/distribution/component/footer/index.js.map +1 -1
- package/distribution/component/footer/index.module.css +1 -1
- package/distribution/component/footer/index.module.scss +42 -57
- package/distribution/component/service-card/index.d.ts +3 -2
- package/distribution/component/service-card/index.d.ts.map +1 -1
- package/distribution/component/service-card/index.js +4 -3
- 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 +54 -0
- package/distribution/component/service-card/type.d.ts +2 -0
- package/distribution/component/service-card/type.d.ts.map +1 -1
- package/distribution/component/service-object/application-programming-interface/index.d.ts +6 -0
- package/distribution/component/service-object/application-programming-interface/index.d.ts.map +1 -0
- package/distribution/component/service-object/application-programming-interface/index.js +11 -0
- package/distribution/component/service-object/application-programming-interface/index.js.map +1 -0
- package/distribution/component/service-object/application-programming-interface/index.module.css +1 -0
- package/distribution/component/service-object/application-programming-interface/index.module.scss +154 -0
- package/distribution/component/service-object/content-management-system/index.d.ts +6 -0
- package/distribution/component/service-object/content-management-system/index.d.ts.map +1 -0
- package/distribution/component/service-object/content-management-system/index.js +10 -0
- package/distribution/component/service-object/content-management-system/index.js.map +1 -0
- package/distribution/component/service-object/content-management-system/index.module.css +1 -0
- package/distribution/component/service-object/content-management-system/index.module.scss +181 -0
- package/distribution/component/service-object/index.d.ts.map +1 -1
- package/distribution/component/service-object/index.js +8 -4
- package/distribution/component/service-object/index.js.map +1 -1
- package/distribution/component/service-object/index.module.css +1 -1
- package/distribution/component/service-object/index.module.scss +2 -2
- package/distribution/component/service-object/merchandise/index.d.ts +6 -0
- package/distribution/component/service-object/merchandise/index.d.ts.map +1 -0
- package/distribution/component/service-object/merchandise/index.js +13 -0
- package/distribution/component/service-object/merchandise/index.js.map +1 -0
- package/distribution/component/service-object/merchandise/index.module.css +1 -0
- package/distribution/component/service-object/merchandise/index.module.scss +91 -0
- package/distribution/component/service-object/print-design/index.d.ts +6 -0
- package/distribution/component/service-object/print-design/index.d.ts.map +1 -0
- package/distribution/component/service-object/print-design/index.js +10 -0
- package/distribution/component/service-object/print-design/index.js.map +1 -0
- package/distribution/component/service-object/print-design/index.module.css +1 -0
- package/distribution/component/service-object/print-design/index.module.scss +123 -0
- package/distribution/component/service-object/progressive-web-application/index.d.ts +4 -1
- package/distribution/component/service-object/progressive-web-application/index.d.ts.map +1 -1
- package/distribution/component/service-object/progressive-web-application/index.js +19 -2
- package/distribution/component/service-object/progressive-web-application/index.js.map +1 -1
- package/distribution/component/service-object/progressive-web-application/index.module.css +1 -1
- package/distribution/component/service-object/progressive-web-application/index.module.scss +151 -63
- package/distribution/component/service-object/social-media-strategy/index.d.ts +4 -1
- package/distribution/component/service-object/social-media-strategy/index.d.ts.map +1 -1
- package/distribution/component/service-object/social-media-strategy/index.js +9 -2
- package/distribution/component/service-object/social-media-strategy/index.js.map +1 -1
- package/distribution/component/service-object/social-media-strategy/index.module.css +1 -1
- package/distribution/component/service-object/social-media-strategy/index.module.scss +177 -53
- package/distribution/component/service-unlisted/index.d.ts +10 -0
- package/distribution/component/service-unlisted/index.d.ts.map +1 -0
- package/distribution/component/service-unlisted/index.js +20 -0
- package/distribution/component/service-unlisted/index.js.map +1 -0
- package/distribution/component/service-unlisted/index.module.css +1 -0
- package/distribution/component/service-unlisted/index.module.scss +28 -0
- package/distribution/component/service-unlisted/type.d.ts +5 -0
- package/distribution/component/service-unlisted/type.d.ts.map +1 -0
- package/distribution/component/service-unlisted/type.js +2 -0
- package/distribution/component/service-unlisted/type.js.map +1 -0
- package/distribution/component/services/index.d.ts +3 -2
- package/distribution/component/services/index.d.ts.map +1 -1
- package/distribution/component/services/index.js +5 -3
- 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 +4 -0
- package/distribution/component/structured-data/index.d.ts.map +1 -1
- package/distribution/component/structured-data/index.js +4 -2
- package/distribution/component/structured-data/index.js.map +1 -1
- package/distribution/content/contact/index.d.ts +92 -34
- package/distribution/content/contact/index.d.ts.map +1 -1
- package/distribution/content/contact/index.js +34 -5
- package/distribution/content/contact/index.js.map +1 -1
- package/distribution/content/services/index.d.ts +143 -64
- package/distribution/content/services/index.d.ts.map +1 -1
- package/distribution/content/services/index.js +112 -54
- package/distribution/content/services/index.js.map +1 -1
- package/distribution/content/site/index.d.ts.map +1 -1
- package/distribution/content/site/index.js +8 -4
- package/distribution/content/site/index.js.map +1 -1
- package/distribution/style/token/index.scss +3 -1
- package/distribution/utility/contact-problem/index.d.ts +13 -0
- package/distribution/utility/contact-problem/index.d.ts.map +1 -0
- package/distribution/utility/contact-problem/index.js +23 -0
- package/distribution/utility/contact-problem/index.js.map +1 -0
- package/llms.txt +3 -1
- package/package.json +2 -2
- package/distribution/component/service-object/android-application/index.d.ts +0 -3
- package/distribution/component/service-object/android-application/index.d.ts.map +0 -1
- package/distribution/component/service-object/android-application/index.js +0 -8
- package/distribution/component/service-object/android-application/index.js.map +0 -1
- package/distribution/component/service-object/android-application/index.module.css +0 -1
- package/distribution/component/service-object/android-application/index.module.scss +0 -90
- package/distribution/component/service-object/ios-application/index.d.ts +0 -3
- package/distribution/component/service-object/ios-application/index.d.ts.map +0 -1
- package/distribution/component/service-object/ios-application/index.js +0 -8
- package/distribution/component/service-object/ios-application/index.js.map +0 -1
- package/distribution/component/service-object/ios-application/index.module.css +0 -1
- package/distribution/component/service-object/ios-application/index.module.scss +0 -93
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
@use "style/token" as *;
|
|
2
|
+
@use "style/object" as *;
|
|
3
|
+
|
|
4
|
+
.object {
|
|
5
|
+
@include centered(0px, 0px);
|
|
6
|
+
transform: rotateX(-12deg);
|
|
7
|
+
}
|
|
8
|
+
/* A T-shirt, cut from a flat face. */
|
|
9
|
+
.shirt {
|
|
10
|
+
@include centered(150px, 150px);
|
|
11
|
+
@include loop(merch-sway 8s ease-in-out infinite);
|
|
12
|
+
transform: translate3d(-58px, 4px, -20px) rotateY(18deg);
|
|
13
|
+
background: tint(16%);
|
|
14
|
+
clip-path: polygon(
|
|
15
|
+
30% 6%,
|
|
16
|
+
41% 6%,
|
|
17
|
+
50% 13%,
|
|
18
|
+
59% 6%,
|
|
19
|
+
70% 6%,
|
|
20
|
+
97% 24%,
|
|
21
|
+
86% 42%,
|
|
22
|
+
75% 36%,
|
|
23
|
+
75% 96%,
|
|
24
|
+
25% 96%,
|
|
25
|
+
25% 36%,
|
|
26
|
+
14% 42%,
|
|
27
|
+
3% 24%
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
@keyframes merch-sway {
|
|
31
|
+
0%,
|
|
32
|
+
100% {
|
|
33
|
+
transform: translate3d(-58px, 4px, -20px) rotateY(24deg) rotateZ(-2deg);
|
|
34
|
+
}
|
|
35
|
+
50% {
|
|
36
|
+
transform: translate3d(-58px, 0px, -20px) rotateY(-10deg) rotateZ(2deg);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
.collar {
|
|
40
|
+
position: absolute;
|
|
41
|
+
left: 41%;
|
|
42
|
+
top: 6%;
|
|
43
|
+
width: 18%;
|
|
44
|
+
height: 9%;
|
|
45
|
+
border-radius: 0 0 50% 50%;
|
|
46
|
+
background: tint(34%);
|
|
47
|
+
}
|
|
48
|
+
.mark {
|
|
49
|
+
position: absolute;
|
|
50
|
+
left: 50%;
|
|
51
|
+
top: 38%;
|
|
52
|
+
width: 22px;
|
|
53
|
+
height: 22px;
|
|
54
|
+
margin-left: -11px;
|
|
55
|
+
border-radius: 3px;
|
|
56
|
+
border: 5px solid var(--foreground);
|
|
57
|
+
transform: rotate(45deg);
|
|
58
|
+
}
|
|
59
|
+
/* A bottle: a ring of faces around its axis, turning. */
|
|
60
|
+
.bottle {
|
|
61
|
+
@include centered(0px, 0px);
|
|
62
|
+
@include loop(merch-turn 7s linear infinite);
|
|
63
|
+
transform: translate3d(76px, 12px, 30px);
|
|
64
|
+
}
|
|
65
|
+
@keyframes merch-turn {
|
|
66
|
+
from {
|
|
67
|
+
transform: translate3d(76px, 12px, 30px) rotateY(0deg);
|
|
68
|
+
}
|
|
69
|
+
to {
|
|
70
|
+
transform: translate3d(76px, 12px, 30px) rotateY(360deg);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
.side {
|
|
74
|
+
@include centered(11px, 112px);
|
|
75
|
+
border-top: 1px solid tint(45%);
|
|
76
|
+
border-bottom: 1px solid tint(45%);
|
|
77
|
+
border-radius: 2px;
|
|
78
|
+
background: tint(10%);
|
|
79
|
+
box-shadow: inset 1px 0 0 tint(18%);
|
|
80
|
+
backface-visibility: hidden;
|
|
81
|
+
&[data-label] {
|
|
82
|
+
background: linear-gradient(transparent 30%, tint(55%) 30%, tint(55%) 66%, transparent 66%), tint(10%);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
.cap {
|
|
86
|
+
@include centered(11px, 20px);
|
|
87
|
+
border-radius: 2px;
|
|
88
|
+
background: tint(30%);
|
|
89
|
+
border-top: 1px solid tint(60%);
|
|
90
|
+
backface-visibility: hidden;
|
|
91
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Print design: a flyer standing behind a stack of business cards; the top card lifts off the stack and flips over to
|
|
3
|
+
* show the brand's mark on its back, then settles again.
|
|
4
|
+
*/
|
|
5
|
+
export declare function PrintDesign(): import("react").JSX.Element;
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/service-object/print-design/index.tsx"],"names":[],"mappings":"AAEA;;;GAGG;AACH,wBAAgB,WAAW,gCA6B1B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import styles from "./index.module.css";
|
|
3
|
+
/**
|
|
4
|
+
* Print design: a flyer standing behind a stack of business cards; the top card lifts off the stack and flips over to
|
|
5
|
+
* show the brand's mark on its back, then settles again.
|
|
6
|
+
*/
|
|
7
|
+
export function PrintDesign() {
|
|
8
|
+
return (_jsxs("div", { className: styles.object, children: [_jsxs("div", { className: styles.flyer, children: [_jsx("span", { className: styles.picture }), _jsx("span", { className: styles.heading }), _jsxs("span", { className: styles.lines, children: [_jsx("i", {}), _jsx("i", {}), _jsx("i", {})] })] }), _jsxs("div", { className: styles.stack, children: [[0, 1, 2, 3].map((card) => (_jsx("span", { className: styles.card, style: { transform: `translateY(${-card * 3}px)` } }, card))), _jsxs("div", { className: styles.top, children: [_jsxs("div", { className: styles.front, children: [_jsx("i", { className: styles.name }), _jsx("i", { className: styles.detail }), _jsx("i", { className: styles.detail })] }), _jsx("div", { className: styles.back, children: _jsx("i", { className: styles.mark }) })] })] })] }));
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/service-object/print-design/index.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC;;;GAGG;AACH,MAAM,UAAU,WAAW;IACzB,OAAO,CACL,eAAK,SAAS,EAAE,MAAM,CAAC,MAAM,aAC3B,eAAK,SAAS,EAAE,MAAM,CAAC,KAAK,aAC1B,eAAM,SAAS,EAAE,MAAM,CAAC,OAAO,GAAI,EACnC,eAAM,SAAS,EAAE,MAAM,CAAC,OAAO,GAAI,EACnC,gBAAM,SAAS,EAAE,MAAM,CAAC,KAAK,aAC3B,aAAK,EACL,aAAK,EACL,aAAK,IACA,IACH,EACN,eAAK,SAAS,EAAE,MAAM,CAAC,KAAK,aACzB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAC1B,eAAiB,SAAS,EAAE,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,cAAc,CAAC,IAAI,GAAG,CAAC,KAAK,EAAE,IAAhF,IAAI,CAAgF,CAChG,CAAC,EACF,eAAK,SAAS,EAAE,MAAM,CAAC,GAAG,aACxB,eAAK,SAAS,EAAE,MAAM,CAAC,KAAK,aAC1B,YAAG,SAAS,EAAE,MAAM,CAAC,IAAI,GAAI,EAC7B,YAAG,SAAS,EAAE,MAAM,CAAC,MAAM,GAAI,EAC/B,YAAG,SAAS,EAAE,MAAM,CAAC,MAAM,GAAI,IAC3B,EACN,cAAK,SAAS,EAAE,MAAM,CAAC,IAAI,YACzB,YAAG,SAAS,EAAE,MAAM,CAAC,IAAI,GAAI,GACzB,IACF,IACF,IACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.object{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d;animation:print-sway 11s ease-in-out infinite}@media(prefers-reduced-motion: reduce){.object{animation:none}}.object{transform:rotateX(-16deg) rotateY(-22deg)}@keyframes print-sway{0%,100%{transform:rotateX(-16deg) rotateY(-26deg)}50%{transform:rotateX(-10deg) rotateY(12deg)}}.flyer{position:absolute;left:50%;top:50%;width:104px;height:146px;margin:-73px 0 0 -52px;transform-style:preserve-3d;box-sizing:border-box;background:color-mix(in srgb, var(--foreground) 4%, transparent);border:1px solid color-mix(in srgb, var(--foreground) 44%, transparent);display:grid;grid-template-rows:1fr auto auto;gap:8px;padding:10px;border-radius:3px;transform:translate3d(40px, -18px, -60px) rotateY(-8deg)}.picture{border-radius:2px;background:linear-gradient(150deg, color-mix(in srgb, var(--foreground) 32%, transparent), color-mix(in srgb, var(--foreground) 6%, transparent))}.heading{width:70%;height:7px;border-radius:2px;background:color-mix(in srgb, var(--foreground) 55%, transparent)}.lines{display:grid;gap:4px}.lines i{height:3px;border-radius:2px;background:color-mix(in srgb, var(--foreground) 22%, transparent)}.lines i:last-child{width:60%}.stack{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d;transform:translate3d(-34px, 46px, 20px) rotateX(70deg)}.card{position:absolute;left:50%;top:50%;width:112px;height:64px;margin:-32px 0 0 -56px;transform-style:preserve-3d;border-radius:4px;box-sizing:border-box;background:color-mix(in srgb, var(--foreground) 6%, transparent);border:1px solid color-mix(in srgb, var(--foreground) 40%, transparent)}.top{position:absolute;left:50%;top:50%;width:112px;height:64px;margin:-32px 0 0 -56px;transform-style:preserve-3d;border-radius:4px;animation:print-flip 5s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.top{animation:none}}.top{transform:translateZ(14px)}@keyframes print-flip{0%,12%{transform:translateZ(14px) rotateX(0deg)}45%,62%{transform:translateZ(70px) rotateX(-110deg) rotateZ(-10deg)}88%,100%{transform:translateZ(14px) rotateX(-180deg)}}.front,.back{box-sizing:border-box;background:color-mix(in srgb, var(--foreground) 10%, transparent);border:1px solid color-mix(in srgb, var(--foreground) 60%, transparent);position:absolute;inset:0;border-radius:inherit;backface-visibility:hidden}.front{display:grid;align-content:center;gap:5px;padding:0 12px}.name{width:56%;height:6px;border-radius:2px;background:color-mix(in srgb, var(--foreground) 60%, transparent)}.detail{width:40%;height:3px;border-radius:2px;background:color-mix(in srgb, var(--foreground) 28%, transparent)}.back{display:grid;place-items:center;background:color-mix(in srgb, var(--foreground) 26%, transparent);transform:rotateX(180deg)}.mark{width:20px;height:20px;border-radius:3px;border:5px solid var(--foreground);transform:rotate(45deg)}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
@use "style/token" as *;
|
|
2
|
+
@use "style/object" as *;
|
|
3
|
+
|
|
4
|
+
.object {
|
|
5
|
+
@include centered(0px, 0px);
|
|
6
|
+
@include loop(print-sway 11s ease-in-out infinite);
|
|
7
|
+
transform: rotateX(-16deg) rotateY(-22deg);
|
|
8
|
+
}
|
|
9
|
+
@keyframes print-sway {
|
|
10
|
+
0%,
|
|
11
|
+
100% {
|
|
12
|
+
transform: rotateX(-16deg) rotateY(-26deg);
|
|
13
|
+
}
|
|
14
|
+
50% {
|
|
15
|
+
transform: rotateX(-10deg) rotateY(12deg);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
/* An A5 flyer, upright behind the cards. */
|
|
19
|
+
.flyer {
|
|
20
|
+
@include centered(104px, 146px);
|
|
21
|
+
@include face(4%, 44%);
|
|
22
|
+
display: grid;
|
|
23
|
+
grid-template-rows: 1fr auto auto;
|
|
24
|
+
gap: 8px;
|
|
25
|
+
padding: 10px;
|
|
26
|
+
border-radius: 3px;
|
|
27
|
+
transform: translate3d(40px, -18px, -60px) rotateY(-8deg);
|
|
28
|
+
}
|
|
29
|
+
.picture {
|
|
30
|
+
border-radius: 2px;
|
|
31
|
+
background: linear-gradient(150deg, tint(32%), tint(6%));
|
|
32
|
+
}
|
|
33
|
+
.heading {
|
|
34
|
+
width: 70%;
|
|
35
|
+
height: 7px;
|
|
36
|
+
border-radius: 2px;
|
|
37
|
+
background: tint(55%);
|
|
38
|
+
}
|
|
39
|
+
.lines {
|
|
40
|
+
display: grid;
|
|
41
|
+
gap: 4px;
|
|
42
|
+
i {
|
|
43
|
+
height: 3px;
|
|
44
|
+
border-radius: 2px;
|
|
45
|
+
background: tint(22%);
|
|
46
|
+
&:last-child {
|
|
47
|
+
width: 60%;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
/* Business cards lying in a stack, seen from above at an angle. */
|
|
52
|
+
.stack {
|
|
53
|
+
@include centered(0px, 0px);
|
|
54
|
+
transform: translate3d(-34px, 46px, 20px) rotateX(70deg);
|
|
55
|
+
}
|
|
56
|
+
@mixin business-card {
|
|
57
|
+
@include centered(112px, 64px);
|
|
58
|
+
border-radius: 4px;
|
|
59
|
+
}
|
|
60
|
+
.card {
|
|
61
|
+
@include business-card;
|
|
62
|
+
@include face(6%, 40%);
|
|
63
|
+
}
|
|
64
|
+
/* The top card, lifting, flipping over and settling back. */
|
|
65
|
+
.top {
|
|
66
|
+
@include business-card;
|
|
67
|
+
@include loop(print-flip 5s $ease infinite);
|
|
68
|
+
transform: translateZ(14px);
|
|
69
|
+
}
|
|
70
|
+
@keyframes print-flip {
|
|
71
|
+
0%,
|
|
72
|
+
12% {
|
|
73
|
+
transform: translateZ(14px) rotateX(0deg);
|
|
74
|
+
}
|
|
75
|
+
45%,
|
|
76
|
+
62% {
|
|
77
|
+
transform: translateZ(70px) rotateX(-110deg) rotateZ(-10deg);
|
|
78
|
+
}
|
|
79
|
+
88%,
|
|
80
|
+
100% {
|
|
81
|
+
transform: translateZ(14px) rotateX(-180deg);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
.front,
|
|
85
|
+
.back {
|
|
86
|
+
@include face(10%, 60%);
|
|
87
|
+
position: absolute;
|
|
88
|
+
inset: 0;
|
|
89
|
+
border-radius: inherit;
|
|
90
|
+
backface-visibility: hidden;
|
|
91
|
+
}
|
|
92
|
+
.front {
|
|
93
|
+
display: grid;
|
|
94
|
+
align-content: center;
|
|
95
|
+
gap: 5px;
|
|
96
|
+
padding: 0 12px;
|
|
97
|
+
}
|
|
98
|
+
.name {
|
|
99
|
+
width: 56%;
|
|
100
|
+
height: 6px;
|
|
101
|
+
border-radius: 2px;
|
|
102
|
+
background: tint(60%);
|
|
103
|
+
}
|
|
104
|
+
.detail {
|
|
105
|
+
width: 40%;
|
|
106
|
+
height: 3px;
|
|
107
|
+
border-radius: 2px;
|
|
108
|
+
background: tint(28%);
|
|
109
|
+
}
|
|
110
|
+
.back {
|
|
111
|
+
display: grid;
|
|
112
|
+
place-items: center;
|
|
113
|
+
background: tint(26%);
|
|
114
|
+
transform: rotateX(180deg);
|
|
115
|
+
}
|
|
116
|
+
/* The brand's mark: a diamond with a hole, like the seal's. */
|
|
117
|
+
.mark {
|
|
118
|
+
width: 20px;
|
|
119
|
+
height: 20px;
|
|
120
|
+
border-radius: 3px;
|
|
121
|
+
border: 5px solid var(--foreground);
|
|
122
|
+
transform: rotate(45deg);
|
|
123
|
+
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* Progressive web applications: one codebase in the middle sends the same app to a computer, a tablet and a phone at
|
|
3
|
+
* once, and every screen lights up together. Built once, it runs everywhere.
|
|
4
|
+
*/
|
|
2
5
|
export declare function ProgressiveWebApplication(): 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/progressive-web-application/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/service-object/progressive-web-application/index.tsx"],"names":[],"mappings":"AAuBA;;;GAGG;AACH,wBAAgB,yBAAyB,gCAwCxC"}
|
|
@@ -1,8 +1,25 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Cuboid } from "@sharadox/sharadox-web-library/component/service-object/cuboid";
|
|
3
3
|
import styles from "./index.module.css";
|
|
4
|
-
/**
|
|
4
|
+
/** The same app on every screen: a header, a picture and two tiles. */
|
|
5
|
+
function Screen() {
|
|
6
|
+
return (_jsxs("span", { className: styles.app, children: [_jsx("i", { className: styles.header }), _jsx("i", { className: styles.picture }), _jsx("i", { className: styles.tile }), _jsx("i", { className: styles.tile })] }));
|
|
7
|
+
}
|
|
8
|
+
/** Where each device sits around the codebase, as the packet that reaches it flies there. */
|
|
9
|
+
const DEVICES = [
|
|
10
|
+
{ kind: "computer", x: 0, y: -50, z: -110 },
|
|
11
|
+
{ kind: "tablet", x: -148, y: 14, z: -6 },
|
|
12
|
+
{ kind: "phone", x: 148, y: 26, z: 4 },
|
|
13
|
+
];
|
|
14
|
+
/**
|
|
15
|
+
* Progressive web applications: one codebase in the middle sends the same app to a computer, a tablet and a phone at
|
|
16
|
+
* once, and every screen lights up together. Built once, it runs everywhere.
|
|
17
|
+
*/
|
|
5
18
|
export function ProgressiveWebApplication() {
|
|
6
|
-
return (_jsxs("div", { className: styles.object, children: [
|
|
19
|
+
return (_jsxs("div", { className: styles.object, children: [_jsx(Cuboid, { className: styles.codebase, front: _jsxs("span", { className: styles.code, children: [_jsx("i", {}), _jsx("i", {}), _jsx("i", {})] }) }), DEVICES.map((device) => (_jsxs("div", { className: styles.place, style: { transform: `translate3d(${device.x}px, ${device.y}px, ${device.z}px)` }, children: [_jsx("div", { className: styles.device, "data-kind": device.kind, children: _jsx(Screen, {}) }), device.kind === "computer" && _jsx("span", { className: styles.stand })] }, device.kind))), DEVICES.map((device) => (_jsx("span", { className: styles.packet, style: {
|
|
20
|
+
"--to-x": `${device.x}px`,
|
|
21
|
+
"--to-y": `${device.y}px`,
|
|
22
|
+
"--to-z": `${device.z}px`,
|
|
23
|
+
} }, device.kind)))] }));
|
|
7
24
|
}
|
|
8
25
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/service-object/progressive-web-application/index.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/service-object/progressive-web-application/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,gEAAgE,CAAC;AACxF,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,uEAAuE;AACvE,SAAS,MAAM;IACb,OAAO,CACL,gBAAM,SAAS,EAAE,MAAM,CAAC,GAAG,aACzB,YAAG,SAAS,EAAE,MAAM,CAAC,MAAM,GAAI,EAC/B,YAAG,SAAS,EAAE,MAAM,CAAC,OAAO,GAAI,EAChC,YAAG,SAAS,EAAE,MAAM,CAAC,IAAI,GAAI,EAC7B,YAAG,SAAS,EAAE,MAAM,CAAC,IAAI,GAAI,IACxB,CACR,CAAC;AACJ,CAAC;AAED,6FAA6F;AAC7F,MAAM,OAAO,GAAG;IACd,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,GAAG,EAAE;IAC3C,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE;IACzC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE;CAC9B,CAAC;AAEX;;;GAGG;AACH,MAAM,UAAU,yBAAyB;IACvC,OAAO,CACL,eAAK,SAAS,EAAE,MAAM,CAAC,MAAM,aAC3B,KAAC,MAAM,IACL,SAAS,EAAE,MAAM,CAAC,QAAQ,EAC1B,KAAK,EACH,gBAAM,SAAS,EAAE,MAAM,CAAC,IAAI,aAC1B,aAAK,EACL,aAAK,EACL,aAAK,IACA,GAET,EACD,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CACvB,eAEE,SAAS,EAAE,MAAM,CAAC,KAAK,EACvB,KAAK,EAAE,EAAE,SAAS,EAAE,eAAe,MAAM,CAAC,CAAC,OAAO,MAAM,CAAC,CAAC,OAAO,MAAM,CAAC,CAAC,KAAK,EAAE,aAEhF,cAAK,SAAS,EAAE,MAAM,CAAC,MAAM,eAAa,MAAM,CAAC,IAAI,YACnD,KAAC,MAAM,KAAG,GACN,EACL,MAAM,CAAC,IAAI,KAAK,UAAU,IAAI,eAAM,SAAS,EAAE,MAAM,CAAC,KAAK,GAAI,KAP3D,MAAM,CAAC,IAAI,CAQZ,CACP,CAAC,EACD,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CACvB,eAEE,SAAS,EAAE,MAAM,CAAC,MAAM,EACxB,KAAK,EACH;oBACE,QAAQ,EAAE,GAAG,MAAM,CAAC,CAAC,IAAI;oBACzB,QAAQ,EAAE,GAAG,MAAM,CAAC,CAAC,IAAI;oBACzB,QAAQ,EAAE,GAAG,MAAM,CAAC,CAAC,IAAI;iBACT,IAPf,MAAM,CAAC,IAAI,CAShB,CACH,CAAC,IACE,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:pwa-sway
|
|
1
|
+
.object{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d;animation:pwa-sway 12s ease-in-out infinite}@media(prefers-reduced-motion: reduce){.object{animation:none}}.object{transform:rotateX(-14deg) rotateY(18deg)}@media(max-width: 480px){.object{scale:.8}}@keyframes pwa-sway{0%,100%{transform:rotateX(-14deg) rotateY(22deg)}50%{transform:rotateX(-10deg) rotateY(-22deg)}}.codebase{--width: 46px;--height: 46px;--depth: 46px;--radius: 6px;--front-amount: 14%;--top-amount: 22%;--edge-amount: 70%;transform:translateY(34px);animation:pwa-pulse 4s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.codebase{animation:none}}@keyframes pwa-pulse{0%,100%{transform:translateY(34px) scale3d(1, 1, 1)}8%{transform:translateY(34px) scale3d(1.12, 1.12, 1.12)}20%{transform:translateY(34px) scale3d(1, 1, 1)}}.code{position:absolute;inset:0}.code i{position:absolute;top:50%;width:8px;height:8px;margin-top:-4px;border:solid var(--foreground);border-width:0 0 2px 2px}.code i:nth-child(1){left:9px;transform:rotate(45deg)}.code i:nth-child(2){left:50%;width:2px;height:16px;margin:-8px 0 0 -1px;border:0;background:var(--foreground);transform:rotate(20deg)}.code i:nth-child(3){right:9px;transform:rotate(-135deg)}.place{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d}.device{box-sizing:border-box;background:color-mix(in srgb, var(--foreground) 4%, transparent);border:1px solid color-mix(in srgb, var(--foreground) 50%, transparent);position:absolute;padding:7px;border-radius:6px}.device[data-kind=computer]{width:156px;height:98px;left:-78px;top:-49px}.device[data-kind=tablet]{width:78px;height:104px;left:-39px;top:-52px;border-radius:9px;transform:rotateY(28deg)}.device[data-kind=phone]{width:46px;height:90px;left:-23px;top:-45px;padding:9px 5px;border-radius:9px;transform:rotateY(-28deg)}.stand{position:absolute;left:-22px;top:49px;width:44px;height:14px;border:1px solid color-mix(in srgb, var(--foreground) 40%, transparent);border-top:0;border-radius:0 0 6px 6px;background:color-mix(in srgb, var(--foreground) 6%, transparent)}.app{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:6px 1fr .7fr;gap:4px;height:100%}.app i{border-radius:2px;background:color-mix(in srgb, var(--foreground) 14%, transparent);animation:pwa-light 4s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.app i{animation:none}}.header{grid-column:1/-1}.picture{grid-column:1/-1}@keyframes pwa-light{0%,30%,100%{background:color-mix(in srgb, var(--foreground) 14%, transparent)}44%,64%{background:color-mix(in srgb, var(--foreground) 45%, transparent)}}.packet{position:absolute;left:50%;top:50%;width:10px;height:10px;margin:-5px 0 0 -5px;transform-style:preserve-3d;border-radius:3px;background:var(--foreground);opacity:0;animation:pwa-send 4s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.packet{animation:none}}@keyframes pwa-send{0%,6%{opacity:0;transform:translate3d(0, 34px, 0) scale(0.6)}12%{opacity:1}38%{opacity:1;transform:translate3d(var(--to-x), var(--to-y), var(--to-z)) scale(1)}46%,100%{opacity:0;transform:translate3d(var(--to-x), var(--to-y), var(--to-z)) scale(1.6)}}
|
|
@@ -1,91 +1,179 @@
|
|
|
1
1
|
@use "style/token" as *;
|
|
2
2
|
@use "style/object" as *;
|
|
3
3
|
|
|
4
|
+
$period: 4s;
|
|
5
|
+
|
|
4
6
|
.object {
|
|
5
7
|
@include centered(0px, 0px);
|
|
6
|
-
@include loop(pwa-sway
|
|
7
|
-
transform: rotateX(-
|
|
8
|
+
@include loop(pwa-sway 12s ease-in-out infinite);
|
|
9
|
+
transform: rotateX(-14deg) rotateY(18deg);
|
|
10
|
+
// The widest scene: smaller on phones, so every device stays in view.
|
|
11
|
+
@include below(480px) {
|
|
12
|
+
scale: 0.8;
|
|
13
|
+
}
|
|
8
14
|
}
|
|
9
15
|
@keyframes pwa-sway {
|
|
10
16
|
0%,
|
|
11
17
|
100% {
|
|
12
|
-
transform: rotateX(-
|
|
18
|
+
transform: rotateX(-14deg) rotateY(22deg);
|
|
13
19
|
}
|
|
14
20
|
50% {
|
|
15
|
-
transform: rotateX(-
|
|
21
|
+
transform: rotateX(-10deg) rotateY(-22deg);
|
|
16
22
|
}
|
|
17
23
|
}
|
|
18
|
-
.
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
24
|
+
/* The one codebase: a block with code brackets, pulsing as it sends the app out. */
|
|
25
|
+
.codebase {
|
|
26
|
+
--width: 46px;
|
|
27
|
+
--height: 46px;
|
|
28
|
+
--depth: 46px;
|
|
29
|
+
--radius: 6px;
|
|
30
|
+
--front-amount: 14%;
|
|
31
|
+
--top-amount: 22%;
|
|
32
|
+
--edge-amount: 70%;
|
|
33
|
+
transform: translateY(34px);
|
|
34
|
+
@include loop(pwa-pulse $period $ease infinite);
|
|
23
35
|
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
background: tint(25%);
|
|
36
|
+
@keyframes pwa-pulse {
|
|
37
|
+
0%,
|
|
38
|
+
100% {
|
|
39
|
+
transform: translateY(34px) scale3d(1, 1, 1);
|
|
40
|
+
}
|
|
41
|
+
8% {
|
|
42
|
+
transform: translateY(34px) scale3d(1.12, 1.12, 1.12);
|
|
43
|
+
}
|
|
44
|
+
20% {
|
|
45
|
+
transform: translateY(34px) scale3d(1, 1, 1);
|
|
35
46
|
}
|
|
36
47
|
}
|
|
37
|
-
.
|
|
48
|
+
/* "< / >" drawn with lines: two chevrons and a slash. */
|
|
49
|
+
.code {
|
|
38
50
|
position: absolute;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
51
|
+
inset: 0;
|
|
52
|
+
i {
|
|
53
|
+
position: absolute;
|
|
54
|
+
top: 50%;
|
|
55
|
+
width: 8px;
|
|
56
|
+
height: 8px;
|
|
57
|
+
margin-top: -4px;
|
|
58
|
+
border: solid var(--foreground);
|
|
59
|
+
border-width: 0 0 2px 2px;
|
|
60
|
+
&:nth-child(1) {
|
|
61
|
+
left: 9px;
|
|
62
|
+
transform: rotate(45deg);
|
|
63
|
+
}
|
|
64
|
+
&:nth-child(2) {
|
|
65
|
+
left: 50%;
|
|
66
|
+
width: 2px;
|
|
67
|
+
height: 16px;
|
|
68
|
+
margin: -8px 0 0 -1px;
|
|
69
|
+
border: 0;
|
|
70
|
+
background: var(--foreground);
|
|
71
|
+
transform: rotate(20deg);
|
|
72
|
+
}
|
|
73
|
+
&:nth-child(3) {
|
|
74
|
+
right: 9px;
|
|
75
|
+
transform: rotate(-135deg);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
46
78
|
}
|
|
47
|
-
.
|
|
79
|
+
.place {
|
|
48
80
|
@include centered(0px, 0px);
|
|
49
|
-
transform: translate3d(0, 6px, -20px);
|
|
50
|
-
@include loop(pwa-install 4.2s $ease infinite);
|
|
51
81
|
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
82
|
+
/* Each device faces the codebase a little. */
|
|
83
|
+
.device {
|
|
84
|
+
@include face(4%, 50%);
|
|
85
|
+
position: absolute;
|
|
86
|
+
padding: 7px;
|
|
87
|
+
border-radius: 6px;
|
|
88
|
+
&[data-kind="computer"] {
|
|
89
|
+
width: 156px;
|
|
90
|
+
height: 98px;
|
|
91
|
+
left: -78px;
|
|
92
|
+
top: -49px;
|
|
93
|
+
}
|
|
94
|
+
&[data-kind="tablet"] {
|
|
95
|
+
width: 78px;
|
|
96
|
+
height: 104px;
|
|
97
|
+
left: -39px;
|
|
98
|
+
top: -52px;
|
|
99
|
+
border-radius: 9px;
|
|
100
|
+
transform: rotateY(28deg);
|
|
56
101
|
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
102
|
+
&[data-kind="phone"] {
|
|
103
|
+
width: 46px;
|
|
104
|
+
height: 90px;
|
|
105
|
+
left: -23px;
|
|
106
|
+
top: -45px;
|
|
107
|
+
padding: 9px 5px;
|
|
108
|
+
border-radius: 9px;
|
|
109
|
+
transform: rotateY(-28deg);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
.stand {
|
|
113
|
+
position: absolute;
|
|
114
|
+
left: -22px;
|
|
115
|
+
top: 49px;
|
|
116
|
+
width: 44px;
|
|
117
|
+
height: 14px;
|
|
118
|
+
border: 1px solid tint(40%);
|
|
119
|
+
border-top: 0;
|
|
120
|
+
border-radius: 0 0 6px 6px;
|
|
121
|
+
background: tint(6%);
|
|
122
|
+
}
|
|
123
|
+
/* The same app on every screen; all of them light up when the packets land. */
|
|
124
|
+
.app {
|
|
125
|
+
display: grid;
|
|
126
|
+
grid-template-columns: 1fr 1fr;
|
|
127
|
+
grid-template-rows: 6px 1fr 0.7fr;
|
|
128
|
+
gap: 4px;
|
|
129
|
+
height: 100%;
|
|
130
|
+
i {
|
|
131
|
+
border-radius: 2px;
|
|
132
|
+
background: tint(14%);
|
|
133
|
+
@include loop(pwa-light $period $ease infinite);
|
|
60
134
|
}
|
|
135
|
+
}
|
|
136
|
+
.header {
|
|
137
|
+
grid-column: 1 / -1;
|
|
138
|
+
}
|
|
139
|
+
.picture {
|
|
140
|
+
grid-column: 1 / -1;
|
|
141
|
+
}
|
|
142
|
+
@keyframes pwa-light {
|
|
143
|
+
0%,
|
|
144
|
+
30%,
|
|
61
145
|
100% {
|
|
62
|
-
|
|
146
|
+
background: tint(14%);
|
|
147
|
+
}
|
|
148
|
+
44%,
|
|
149
|
+
64% {
|
|
150
|
+
background: tint(45%);
|
|
63
151
|
}
|
|
64
152
|
}
|
|
65
|
-
.
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
153
|
+
/* The app flying from the codebase to each device, all at the same moment. */
|
|
154
|
+
.packet {
|
|
155
|
+
@include centered(10px, 10px);
|
|
156
|
+
border-radius: 3px;
|
|
157
|
+
background: var(--foreground);
|
|
158
|
+
opacity: 0;
|
|
159
|
+
@include loop(pwa-send $period $ease infinite);
|
|
72
160
|
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
transform:
|
|
161
|
+
@keyframes pwa-send {
|
|
162
|
+
0%,
|
|
163
|
+
6% {
|
|
164
|
+
opacity: 0;
|
|
165
|
+
transform: translate3d(0, 34px, 0) scale(0.6);
|
|
166
|
+
}
|
|
167
|
+
12% {
|
|
168
|
+
opacity: 1;
|
|
169
|
+
}
|
|
170
|
+
38% {
|
|
171
|
+
opacity: 1;
|
|
172
|
+
transform: translate3d(var(--to-x), var(--to-y), var(--to-z)) scale(1);
|
|
173
|
+
}
|
|
174
|
+
46%,
|
|
175
|
+
100% {
|
|
176
|
+
opacity: 0;
|
|
177
|
+
transform: translate3d(var(--to-x), var(--to-y), var(--to-z)) scale(1.6);
|
|
90
178
|
}
|
|
91
179
|
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* Social media growth strategy: a feed of posts with likes floating off the newest one, the planned posting calendar
|
|
3
|
+
* ticking off beside it, and the followers chart climbing.
|
|
4
|
+
*/
|
|
2
5
|
export declare function SocialMediaStrategy(): 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/social-media-strategy/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/service-object/social-media-strategy/index.tsx"],"names":[],"mappings":"AAoBA;;;GAGG;AACH,wBAAgB,mBAAmB,gCAwBlC"}
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import styles from "./index.module.css";
|
|
3
|
-
/**
|
|
3
|
+
/** A post in the feed: who posted it, its picture, and the like, comment and share buttons. */
|
|
4
|
+
function Post({ className }) {
|
|
5
|
+
return (_jsxs("div", { className: `${styles.post} ${className}`, children: [_jsxs("span", { className: styles.author, children: [_jsx("i", {}), _jsx("i", {})] }), _jsx("span", { className: styles.picture }), _jsxs("span", { className: styles.actions, children: [_jsx("i", { className: styles.like }), _jsx("i", { className: styles.comment }), _jsx("i", { className: styles.share })] })] }));
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Social media growth strategy: a feed of posts with likes floating off the newest one, the planned posting calendar
|
|
9
|
+
* ticking off beside it, and the followers chart climbing.
|
|
10
|
+
*/
|
|
4
11
|
export function SocialMediaStrategy() {
|
|
5
|
-
return (_jsxs("div", { className: styles.object, children: [_jsx("
|
|
12
|
+
return (_jsxs("div", { className: styles.object, children: [_jsx("div", { className: styles.calendar, children: Array.from({ length: 12 }, (_, day) => (_jsx("i", { style: { animationDelay: `${day * 0.35}s` } }, day))) }), _jsx(Post, { className: styles.older }), _jsx(Post, { className: styles.newest }), Array.from({ length: 5 }, (_, heart) => (_jsx("span", { className: styles.heart, style: { animationDelay: `${heart * 0.7}s`, left: `${[-6, 10, -14, 4, 16][heart]}px` } }, heart))), _jsx("div", { className: styles.growth, children: [0, 1, 2, 3].map((bar) => (_jsx("i", { style: { animationDelay: `${bar * 0.25}s` } }, bar))) })] }));
|
|
6
13
|
}
|
|
7
14
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/service-object/social-media-strategy/index.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/service-object/social-media-strategy/index.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,+FAA+F;AAC/F,SAAS,IAAI,CAAC,EAAE,SAAS,EAAqC;IAC5D,OAAO,CACL,eAAK,SAAS,EAAE,GAAG,MAAM,CAAC,IAAI,IAAI,SAAS,EAAE,aAC3C,gBAAM,SAAS,EAAE,MAAM,CAAC,MAAM,aAC5B,aAAK,EACL,aAAK,IACA,EACP,eAAM,SAAS,EAAE,MAAM,CAAC,OAAO,GAAI,EACnC,gBAAM,SAAS,EAAE,MAAM,CAAC,OAAO,aAC7B,YAAG,SAAS,EAAE,MAAM,CAAC,IAAI,GAAI,EAC7B,YAAG,SAAS,EAAE,MAAM,CAAC,OAAO,GAAI,EAChC,YAAG,SAAS,EAAE,MAAM,CAAC,KAAK,GAAI,IACzB,IACH,CACP,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,mBAAmB;IACjC,OAAO,CACL,eAAK,SAAS,EAAE,MAAM,CAAC,MAAM,aAC3B,cAAK,SAAS,EAAE,MAAM,CAAC,QAAQ,YAC5B,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,CACtC,YAAa,KAAK,EAAE,EAAE,cAAc,EAAE,GAAG,GAAG,GAAG,IAAI,GAAG,EAAE,IAAhD,GAAG,CAAiD,CAC7D,CAAC,GACE,EACN,KAAC,IAAI,IAAC,SAAS,EAAE,MAAM,CAAC,KAAK,GAAI,EACjC,KAAC,IAAI,IAAC,SAAS,EAAE,MAAM,CAAC,MAAM,GAAI,EACjC,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,CACvC,eAEE,SAAS,EAAE,MAAM,CAAC,KAAK,EACvB,KAAK,EAAE,EAAE,cAAc,EAAE,GAAG,KAAK,GAAG,GAAG,GAAG,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,EAAE,IAFjF,KAAK,CAGV,CACH,CAAC,EACF,cAAK,SAAS,EAAE,MAAM,CAAC,MAAM,YAC1B,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CACzB,YAAa,KAAK,EAAE,EAAE,cAAc,EAAE,GAAG,GAAG,GAAG,IAAI,GAAG,EAAE,IAAhD,GAAG,CAAiD,CAC7D,CAAC,GACE,IACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.object{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d;animation:social-sway 12s ease-in-out infinite}@media(prefers-reduced-motion: reduce){.object{animation:none}}.object{transform:rotateX(-
|
|
1
|
+
.object{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d;animation:social-sway 12s ease-in-out infinite}@media(prefers-reduced-motion: reduce){.object{animation:none}}.object{transform:rotateX(-10deg) rotateY(-20deg)}@keyframes social-sway{0%,100%{transform:rotateX(-10deg) rotateY(-24deg)}50%{transform:rotateX(-6deg) rotateY(20deg)}}.post{position:absolute;left:50%;top:50%;width:112px;height:148px;margin:-74px 0 0 -56px;transform-style:preserve-3d;box-sizing:border-box;background:color-mix(in srgb, var(--foreground) 5%, transparent);border:1px solid color-mix(in srgb, var(--foreground) 46%, transparent);display:grid;grid-template-rows:auto 1fr auto;gap:7px;padding:8px;border-radius:10px}.older{transform:translate3d(-24px, -18px, -46px);opacity:.55}.newest{transform:translate3d(0, 6px, 0)}.author{display:flex;align-items:center;gap:6px}.author i:first-child{width:14px;height:14px;border-radius:50%;border:1px solid color-mix(in srgb, var(--foreground) 55%, transparent);background:color-mix(in srgb, var(--foreground) 22%, transparent)}.author i:last-child{width:44px;height:4px;border-radius:2px;background:color-mix(in srgb, var(--foreground) 30%, transparent)}.picture{border-radius:5px;background:linear-gradient(145deg, color-mix(in srgb, var(--foreground) 30%, transparent), color-mix(in srgb, var(--foreground) 6%, transparent));border:1px solid color-mix(in srgb, var(--foreground) 25%, transparent)}.actions{display:flex;align-items:center;gap:9px}.actions i{position:relative;width:10px;height:10px}.like{width:7px;height:7px;background:var(--foreground);transform:rotate(-45deg)}.like::before,.like::after{content:"";position:absolute;width:7px;height:7px;border-radius:50%;background:var(--foreground)}.like::before{top:-3.5px;left:0}.like::after{left:3.5px;top:0}.like{width:7px !important;height:7px !important;margin:2px 0 0 1px;animation:social-beat 1.4s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.like{animation:none}}@keyframes social-beat{0%,100%{transform:rotate(-45deg) scale(1)}15%{transform:rotate(-45deg) scale(1.3)}}.comment{border:1.5px solid color-mix(in srgb, var(--foreground) 60%, transparent);border-radius:50% 50% 50% 0}.share{border:solid color-mix(in srgb, var(--foreground) 60%, transparent);border-width:1.5px 1.5px 0 0;transform:rotate(45deg) scale(0.8)}.heart{position:absolute;top:40px;width:10px;height:10px;background:var(--foreground);transform:rotate(-45deg)}.heart::before,.heart::after{content:"";position:absolute;width:10px;height:10px;border-radius:50%;background:var(--foreground)}.heart::before{top:-5px;left:0}.heart::after{left:5px;top:0}.heart{opacity:0;animation:social-float 3.5s ease-out infinite}@media(prefers-reduced-motion: reduce){.heart{animation:none}}@keyframes social-float{0%{opacity:0;transform:translate3d(0, 0, 10px) rotate(-45deg) scale(0.5)}15%{opacity:1}100%{opacity:0;transform:translate3d(0, -110px, 70px) rotate(-45deg) scale(1.1)}}.calendar{position:absolute;left:50%;top:50%;width:70px;height:54px;margin:-27px 0 0 -35px;transform-style:preserve-3d;box-sizing:border-box;background:color-mix(in srgb, var(--foreground) 4%, transparent);border:1px solid color-mix(in srgb, var(--foreground) 40%, transparent);display:grid;grid-template-columns:repeat(4, 1fr);gap:4px;padding:7px;border-radius:7px;transform:translate3d(-118px, 30px, 14px) rotateY(24deg)}.calendar i{border-radius:2px;border:1px solid color-mix(in srgb, var(--foreground) 30%, transparent);animation:social-plan 4.2s steps(1, end) infinite}@media(prefers-reduced-motion: reduce){.calendar i{animation:none}}@keyframes social-plan{0%,8%{background:rgba(0,0,0,0)}9%,100%{background:color-mix(in srgb, var(--foreground) 45%, transparent)}}.growth{position:absolute;left:50%;top:50%;width:58px;height:60px;margin:-30px 0 0 -29px;transform-style:preserve-3d;box-sizing:border-box;background:color-mix(in srgb, var(--foreground) 4%, transparent);border:1px solid color-mix(in srgb, var(--foreground) 40%, transparent);display:flex;align-items:flex-end;gap:5px;padding:8px;border-radius:7px;transform:translate3d(112px, -34px, 26px) rotateY(-22deg)}.growth i{flex:1;border-radius:2px;background:color-mix(in srgb, var(--foreground) 50%, transparent);transform-origin:bottom;animation:social-grow 3.2s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.growth i{animation:none}}.growth i:nth-child(1){height:30%}.growth i:nth-child(2){height:48%}.growth i:nth-child(3){height:70%}.growth i:nth-child(4){height:100%}@keyframes social-grow{0%{transform:scaleY(0.2)}50%,100%{transform:scaleY(1)}}
|