@sharadox/sharadox-web-library 0.20.1 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/README.md +5 -4
  2. package/distribution/action/send-contact/index.d.ts +3 -1
  3. package/distribution/action/send-contact/index.d.ts.map +1 -1
  4. package/distribution/action/send-contact/index.js +7 -1
  5. package/distribution/action/send-contact/index.js.map +1 -1
  6. package/distribution/component/contact/form/index.d.ts +5 -1
  7. package/distribution/component/contact/form/index.d.ts.map +1 -1
  8. package/distribution/component/contact/form/index.js +39 -5
  9. package/distribution/component/contact/form/index.js.map +1 -1
  10. package/distribution/component/contact/form/index.module.css +1 -1
  11. package/distribution/component/contact/form/index.module.scss +18 -0
  12. package/distribution/component/footer/index.d.ts +2 -2
  13. package/distribution/component/footer/index.d.ts.map +1 -1
  14. package/distribution/component/footer/index.js +3 -3
  15. package/distribution/component/footer/index.js.map +1 -1
  16. package/distribution/component/footer/index.module.css +1 -1
  17. package/distribution/component/footer/index.module.scss +42 -57
  18. package/distribution/component/service-card/index.d.ts +3 -2
  19. package/distribution/component/service-card/index.d.ts.map +1 -1
  20. package/distribution/component/service-card/index.js +4 -3
  21. package/distribution/component/service-card/index.js.map +1 -1
  22. package/distribution/component/service-card/index.module.css +1 -1
  23. package/distribution/component/service-card/index.module.scss +54 -0
  24. package/distribution/component/service-card/type.d.ts +2 -0
  25. package/distribution/component/service-card/type.d.ts.map +1 -1
  26. package/distribution/component/service-object/application-programming-interface/index.d.ts +6 -0
  27. package/distribution/component/service-object/application-programming-interface/index.d.ts.map +1 -0
  28. package/distribution/component/service-object/application-programming-interface/index.js +11 -0
  29. package/distribution/component/service-object/application-programming-interface/index.js.map +1 -0
  30. package/distribution/component/service-object/application-programming-interface/index.module.css +1 -0
  31. package/distribution/component/service-object/application-programming-interface/index.module.scss +154 -0
  32. package/distribution/component/service-object/content-management-system/index.d.ts +6 -0
  33. package/distribution/component/service-object/content-management-system/index.d.ts.map +1 -0
  34. package/distribution/component/service-object/content-management-system/index.js +10 -0
  35. package/distribution/component/service-object/content-management-system/index.js.map +1 -0
  36. package/distribution/component/service-object/content-management-system/index.module.css +1 -0
  37. package/distribution/component/service-object/content-management-system/index.module.scss +181 -0
  38. package/distribution/component/service-object/index.js +4 -4
  39. package/distribution/component/service-object/index.js.map +1 -1
  40. package/distribution/component/service-object/index.module.css +1 -1
  41. package/distribution/component/service-object/index.module.scss +2 -2
  42. package/distribution/component/service-object/progressive-web-application/index.d.ts +4 -1
  43. package/distribution/component/service-object/progressive-web-application/index.d.ts.map +1 -1
  44. package/distribution/component/service-object/progressive-web-application/index.js +19 -2
  45. package/distribution/component/service-object/progressive-web-application/index.js.map +1 -1
  46. package/distribution/component/service-object/progressive-web-application/index.module.css +1 -1
  47. package/distribution/component/service-object/progressive-web-application/index.module.scss +151 -63
  48. package/distribution/component/service-object/social-media-strategy/index.d.ts +4 -1
  49. package/distribution/component/service-object/social-media-strategy/index.d.ts.map +1 -1
  50. package/distribution/component/service-object/social-media-strategy/index.js +9 -2
  51. package/distribution/component/service-object/social-media-strategy/index.js.map +1 -1
  52. package/distribution/component/service-object/social-media-strategy/index.module.css +1 -1
  53. package/distribution/component/service-object/social-media-strategy/index.module.scss +177 -53
  54. package/distribution/component/service-unlisted/index.d.ts +10 -0
  55. package/distribution/component/service-unlisted/index.d.ts.map +1 -0
  56. package/distribution/component/service-unlisted/index.js +20 -0
  57. package/distribution/component/service-unlisted/index.js.map +1 -0
  58. package/distribution/component/service-unlisted/index.module.css +1 -0
  59. package/distribution/component/service-unlisted/index.module.scss +28 -0
  60. package/distribution/component/service-unlisted/type.d.ts +5 -0
  61. package/distribution/component/service-unlisted/type.d.ts.map +1 -0
  62. package/distribution/component/service-unlisted/type.js +2 -0
  63. package/distribution/component/service-unlisted/type.js.map +1 -0
  64. package/distribution/component/services/index.d.ts +3 -2
  65. package/distribution/component/services/index.d.ts.map +1 -1
  66. package/distribution/component/services/index.js +5 -3
  67. package/distribution/component/services/index.js.map +1 -1
  68. package/distribution/component/services/index.module.css +1 -1
  69. package/distribution/component/services/index.module.scss +4 -0
  70. package/distribution/component/structured-data/index.d.ts.map +1 -1
  71. package/distribution/component/structured-data/index.js +4 -2
  72. package/distribution/component/structured-data/index.js.map +1 -1
  73. package/distribution/content/contact/index.d.ts +84 -34
  74. package/distribution/content/contact/index.d.ts.map +1 -1
  75. package/distribution/content/contact/index.js +34 -5
  76. package/distribution/content/contact/index.js.map +1 -1
  77. package/distribution/content/services/index.d.ts +103 -60
  78. package/distribution/content/services/index.d.ts.map +1 -1
  79. package/distribution/content/services/index.js +84 -49
  80. package/distribution/content/services/index.js.map +1 -1
  81. package/distribution/content/site/index.d.ts.map +1 -1
  82. package/distribution/content/site/index.js +8 -4
  83. package/distribution/content/site/index.js.map +1 -1
  84. package/distribution/style/token/index.scss +3 -1
  85. package/distribution/utility/contact-problem/index.d.ts +13 -0
  86. package/distribution/utility/contact-problem/index.d.ts.map +1 -0
  87. package/distribution/utility/contact-problem/index.js +23 -0
  88. package/distribution/utility/contact-problem/index.js.map +1 -0
  89. package/llms.txt +2 -1
  90. package/package.json +2 -2
  91. package/distribution/component/service-object/android-application/index.d.ts +0 -3
  92. package/distribution/component/service-object/android-application/index.d.ts.map +0 -1
  93. package/distribution/component/service-object/android-application/index.js +0 -8
  94. package/distribution/component/service-object/android-application/index.js.map +0 -1
  95. package/distribution/component/service-object/android-application/index.module.css +0 -1
  96. package/distribution/component/service-object/android-application/index.module.scss +0 -90
  97. package/distribution/component/service-object/ios-application/index.d.ts +0 -3
  98. package/distribution/component/service-object/ios-application/index.d.ts.map +0 -1
  99. package/distribution/component/service-object/ios-application/index.js +0 -8
  100. package/distribution/component/service-object/ios-application/index.js.map +0 -1
  101. package/distribution/component/service-object/ios-application/index.module.css +0 -1
  102. package/distribution/component/service-object/ios-application/index.module.scss +0 -93
@@ -57,3 +57,57 @@
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,5 +4,7 @@ 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;
7
9
  }
8
10
  //# 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;CACxD"}
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;IACvD,sFAAsF;IACtF,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * APIs: a database and an app talking through a gateway in between. Requests travel one way and answers come back
3
+ * the other, along the same line, without anyone in the middle.
4
+ */
5
+ export declare function ApplicationProgrammingInterface(): 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/application-programming-interface/index.tsx"],"names":[],"mappings":"AAGA;;;GAGG;AACH,wBAAgB,+BAA+B,gCAuB9C"}
@@ -0,0 +1,11 @@
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
+ /**
5
+ * APIs: a database and an app talking through a gateway in between. Requests travel one way and answers come back
6
+ * the other, along the same line, without anyone in the middle.
7
+ */
8
+ export function ApplicationProgrammingInterface() {
9
+ return (_jsxs("div", { className: styles.object, children: [_jsx("div", { className: styles.database, children: Array.from({ length: 3 }, (_, disc) => (_jsx("span", { className: styles.disc, style: { transform: `translateY(${disc * 26 - 26}px)` }, children: Array.from({ length: 6 }, (_, layer) => (_jsx("i", { style: { transform: `rotateX(90deg) translateZ(${layer * 3 - 7.5}px)` } }, layer))) }, disc))) }), _jsx("span", { className: styles.line }), _jsx(Cuboid, { className: styles.gateway, front: _jsx("span", { className: styles.braces }) }), _jsxs("div", { className: styles.application, children: [_jsx("span", { className: styles.row }), _jsx("span", { className: styles.row }), _jsx("span", { className: styles.row })] }), _jsx("span", { className: `${styles.packet} ${styles.request}` }), _jsx("span", { className: `${styles.packet} ${styles.answer}` })] }));
10
+ }
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/service-object/application-programming-interface/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gEAAgE,CAAC;AACxF,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC;;;GAGG;AACH,MAAM,UAAU,+BAA+B;IAC7C,OAAO,CACL,eAAK,SAAS,EAAE,MAAM,CAAC,MAAM,aAC3B,cAAK,SAAS,EAAE,MAAM,CAAC,QAAQ,YAC5B,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,CACtC,eAAiB,SAAS,EAAE,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,cAAc,IAAI,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,YAC7F,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,CACvC,YAAe,KAAK,EAAE,EAAE,SAAS,EAAE,6BAA6B,KAAK,GAAG,CAAC,GAAG,GAAG,KAAK,EAAE,IAA9E,KAAK,CAA6E,CAC3F,CAAC,IAHO,IAAI,CAIR,CACR,CAAC,GACE,EACN,eAAM,SAAS,EAAE,MAAM,CAAC,IAAI,GAAI,EAChC,KAAC,MAAM,IAAC,SAAS,EAAE,MAAM,CAAC,OAAO,EAAE,KAAK,EAAE,eAAM,SAAS,EAAE,MAAM,CAAC,MAAM,GAAI,GAAI,EAChF,eAAK,SAAS,EAAE,MAAM,CAAC,WAAW,aAChC,eAAM,SAAS,EAAE,MAAM,CAAC,GAAG,GAAI,EAC/B,eAAM,SAAS,EAAE,MAAM,CAAC,GAAG,GAAI,EAC/B,eAAM,SAAS,EAAE,MAAM,CAAC,GAAG,GAAI,IAC3B,EACN,eAAM,SAAS,EAAE,GAAG,MAAM,CAAC,MAAM,IAAI,MAAM,CAAC,OAAO,EAAE,GAAI,EACzD,eAAM,SAAS,EAAE,GAAG,MAAM,CAAC,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE,GAAI,IACpD,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:api-sway 10s ease-in-out infinite}@media(prefers-reduced-motion: reduce){.object{animation:none}}.object{transform:rotateX(-18deg) rotateY(-20deg)}@keyframes api-sway{0%,100%{transform:rotateX(-18deg) rotateY(-24deg)}50%{transform:rotateX(-12deg) rotateY(14deg)}}.database{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d;transform:translateX(-118px)}.disc{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d}.disc i{position:absolute;left:50%;top:50%;width:64px;height:64px;margin:-32px 0 0 -32px;transform-style:preserve-3d;border-radius:50%;border:1px solid color-mix(in srgb, var(--foreground) 34%, transparent)}.disc i:first-child,.disc i:last-child{box-sizing:border-box;background:color-mix(in srgb, var(--foreground) 8%, transparent);border:1px solid color-mix(in srgb, var(--foreground) 55%, transparent);border-radius:50%}.line{position:absolute;left:50%;top:50%;width:236px;height:0px;margin:-0px 0 0 -118px;transform-style:preserve-3d;border-top:1px dashed color-mix(in srgb, var(--foreground) 40%, transparent)}.gateway{--width: 50px;--height: 50px;--depth: 50px;--radius: 6px;--front-amount: 14%;--top-amount: 24%;--edge-amount: 72%}.braces{position:absolute;inset:13px 12px}.braces::before,.braces::after{content:"";position:absolute;top:0;bottom:0;width:7px;border:2px solid var(--foreground)}.braces::before{left:0;border-right:0;border-radius:6px 0 0 6px}.braces::after{right:0;border-left:0;border-radius:0 6px 6px 0}.application{position:absolute;left:50%;top:50%;width:74px;height:96px;margin:-48px 0 0 -37px;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) 48%, transparent);display:grid;align-content:start;gap:8px;padding:14px 10px;border-radius:8px;transform:translateX(118px) rotateY(-14deg)}.row{height:12px;border-radius:3px;background:color-mix(in srgb, var(--foreground) 14%, transparent);animation:api-row 3.2s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.row{animation:none}}.row:nth-child(2){animation-delay:.12s}.row:nth-child(3){animation-delay:.24s}@keyframes api-row{0%,86%,100%{background:color-mix(in srgb, var(--foreground) 14%, transparent)}92%{background:color-mix(in srgb, var(--foreground) 45%, transparent)}}.packet{position:absolute;left:50%;top:50%;width:12px;height:12px;margin:-6px 0 0 -6px;transform-style:preserve-3d;border-radius:3px;opacity:0}.request{background:var(--foreground);animation:api-request 3.2s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.request{animation:none}}@keyframes api-request{0%{opacity:0;transform:translateX(84px)}8%,40%{opacity:1}48%,100%{opacity:0;transform:translateX(-84px)}}.answer{border:2px solid var(--foreground);animation:api-answer 3.2s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.answer{animation:none}}@keyframes api-answer{0%,44%{opacity:0;transform:translateX(-84px)}52%,84%{opacity:1}92%,100%{opacity:0;transform:translateX(84px)}}
@@ -0,0 +1,154 @@
1
+ @use "style/token" as *;
2
+ @use "style/object" as *;
3
+
4
+ $period: 3.2s;
5
+
6
+ .object {
7
+ @include centered(0px, 0px);
8
+ @include loop(api-sway 10s ease-in-out infinite);
9
+ transform: rotateX(-18deg) rotateY(-20deg);
10
+ }
11
+ @keyframes api-sway {
12
+ 0%,
13
+ 100% {
14
+ transform: rotateX(-18deg) rotateY(-24deg);
15
+ }
16
+ 50% {
17
+ transform: rotateX(-12deg) rotateY(14deg);
18
+ }
19
+ }
20
+ /* A database: three stacked cylinders, each a few rings. */
21
+ .database {
22
+ @include centered(0px, 0px);
23
+ transform: translateX(-118px);
24
+ }
25
+ .disc {
26
+ @include centered(0px, 0px);
27
+ i {
28
+ @include centered(64px, 64px);
29
+ border-radius: 50%;
30
+ border: 1px solid tint(34%);
31
+ &:first-child,
32
+ &:last-child {
33
+ @include face(8%, 55%);
34
+ border-radius: 50%;
35
+ }
36
+ }
37
+ }
38
+ /* The line every message travels along. */
39
+ .line {
40
+ @include centered(236px, 0px);
41
+ border-top: 1px dashed tint(40%);
42
+ }
43
+ /* The gateway: the API itself, with braces on its face. */
44
+ .gateway {
45
+ --width: 50px;
46
+ --height: 50px;
47
+ --depth: 50px;
48
+ --radius: 6px;
49
+ --front-amount: 14%;
50
+ --top-amount: 24%;
51
+ --edge-amount: 72%;
52
+ }
53
+ .braces {
54
+ position: absolute;
55
+ inset: 13px 12px;
56
+ &::before,
57
+ &::after {
58
+ content: "";
59
+ position: absolute;
60
+ top: 0;
61
+ bottom: 0;
62
+ width: 7px;
63
+ border: 2px solid var(--foreground);
64
+ }
65
+ &::before {
66
+ left: 0;
67
+ border-right: 0;
68
+ border-radius: 6px 0 0 6px;
69
+ }
70
+ &::after {
71
+ right: 0;
72
+ border-left: 0;
73
+ border-radius: 0 6px 6px 0;
74
+ }
75
+ }
76
+ /* An app window on the other side. */
77
+ .application {
78
+ @include centered(74px, 96px);
79
+ @include face(4%, 48%);
80
+ display: grid;
81
+ align-content: start;
82
+ gap: 8px;
83
+ padding: 14px 10px;
84
+ border-radius: 8px;
85
+ transform: translateX(118px) rotateY(-14deg);
86
+ }
87
+ .row {
88
+ height: 12px;
89
+ border-radius: 3px;
90
+ background: tint(14%);
91
+ @include loop(api-row $period $ease infinite);
92
+ &:nth-child(2) {
93
+ animation-delay: 0.12s;
94
+ }
95
+ &:nth-child(3) {
96
+ animation-delay: 0.24s;
97
+ }
98
+ }
99
+ @keyframes api-row {
100
+ 0%,
101
+ 86%,
102
+ 100% {
103
+ background: tint(14%);
104
+ }
105
+ 92% {
106
+ background: tint(45%);
107
+ }
108
+ }
109
+ .packet {
110
+ @include centered(12px, 12px);
111
+ border-radius: 3px;
112
+ opacity: 0;
113
+ }
114
+ /* The app asks... */
115
+ .request {
116
+ background: var(--foreground);
117
+ @include loop(api-request $period $ease infinite);
118
+ }
119
+ @keyframes api-request {
120
+ 0% {
121
+ opacity: 0;
122
+ transform: translateX(84px);
123
+ }
124
+ 8%,
125
+ 40% {
126
+ opacity: 1;
127
+ }
128
+ 48%,
129
+ 100% {
130
+ opacity: 0;
131
+ transform: translateX(-84px);
132
+ }
133
+ }
134
+ /* ...and the database answers. */
135
+ .answer {
136
+ border: 2px solid var(--foreground);
137
+ @include loop(api-answer $period $ease infinite);
138
+ }
139
+ @keyframes api-answer {
140
+ 0%,
141
+ 44% {
142
+ opacity: 0;
143
+ transform: translateX(-84px);
144
+ }
145
+ 52%,
146
+ 84% {
147
+ opacity: 1;
148
+ }
149
+ 92%,
150
+ 100% {
151
+ opacity: 0;
152
+ transform: translateX(84px);
153
+ }
154
+ }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Content management systems: a web page with an editing panel floating in front of it. As a field is typed in the
3
+ * panel, the same words appear on the page and its picture changes, with no code in sight.
4
+ */
5
+ export declare function ContentManagementSystem(): 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/content-management-system/index.tsx"],"names":[],"mappings":"AAEA;;;GAGG;AACH,wBAAgB,uBAAuB,gCAgCtC"}
@@ -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
+ * Content management systems: a web page with an editing panel floating in front of it. As a field is typed in the
5
+ * panel, the same words appear on the page and its picture changes, with no code in sight.
6
+ */
7
+ export function ContentManagementSystem() {
8
+ return (_jsxs("div", { className: styles.object, children: [_jsxs("div", { className: styles.page, children: [_jsxs("span", { className: styles.bar, children: [_jsx("i", {}), _jsx("i", {}), _jsx("i", {})] }), _jsx("span", { className: styles.title }), _jsx("span", { className: styles.picture }), _jsxs("span", { className: styles.lines, children: [_jsx("i", {}), _jsx("i", {})] })] }), _jsxs("div", { className: styles.panel, children: [_jsx("span", { className: styles.label }), _jsxs("span", { className: styles.field, children: [_jsx("i", { className: styles.typed }), _jsx("i", { className: styles.caret })] }), _jsx("span", { className: styles.label }), _jsxs("span", { className: styles.swatches, children: [_jsx("i", {}), _jsx("i", {}), _jsx("i", {})] }), _jsx("span", { className: styles.save })] })] }));
9
+ }
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/service-object/content-management-system/index.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC;;;GAGG;AACH,MAAM,UAAU,uBAAuB;IACrC,OAAO,CACL,eAAK,SAAS,EAAE,MAAM,CAAC,MAAM,aAC3B,eAAK,SAAS,EAAE,MAAM,CAAC,IAAI,aACzB,gBAAM,SAAS,EAAE,MAAM,CAAC,GAAG,aACzB,aAAK,EACL,aAAK,EACL,aAAK,IACA,EACP,eAAM,SAAS,EAAE,MAAM,CAAC,KAAK,GAAI,EACjC,eAAM,SAAS,EAAE,MAAM,CAAC,OAAO,GAAI,EACnC,gBAAM,SAAS,EAAE,MAAM,CAAC,KAAK,aAC3B,aAAK,EACL,aAAK,IACA,IACH,EACN,eAAK,SAAS,EAAE,MAAM,CAAC,KAAK,aAC1B,eAAM,SAAS,EAAE,MAAM,CAAC,KAAK,GAAI,EACjC,gBAAM,SAAS,EAAE,MAAM,CAAC,KAAK,aAC3B,YAAG,SAAS,EAAE,MAAM,CAAC,KAAK,GAAI,EAC9B,YAAG,SAAS,EAAE,MAAM,CAAC,KAAK,GAAI,IACzB,EACP,eAAM,SAAS,EAAE,MAAM,CAAC,KAAK,GAAI,EACjC,gBAAM,SAAS,EAAE,MAAM,CAAC,QAAQ,aAC9B,aAAK,EACL,aAAK,EACL,aAAK,IACA,EACP,eAAM,SAAS,EAAE,MAAM,CAAC,IAAI,GAAI,IAC5B,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:cms-sway 11s ease-in-out infinite}@media(prefers-reduced-motion: reduce){.object{animation:none}}.object{transform:rotateX(-12deg) rotateY(24deg)}@keyframes cms-sway{0%,100%{transform:rotateX(-12deg) rotateY(26deg)}50%{transform:rotateX(-8deg) rotateY(6deg)}}.page{position:absolute;left:50%;top:50%;width:176px;height:128px;margin:-64px 0 0 -88px;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) 42%, transparent);display:grid;grid-template-rows:auto 8px 1fr auto;gap:8px;padding:0 0 10px;border-radius:8px;transform:translate3d(-26px, 0, -30px)}.bar{display:flex;gap:4px;padding:6px 8px;border-bottom:1px solid color-mix(in srgb, var(--foreground) 18%, transparent)}.bar i{width:5px;height:5px;border-radius:50%;background:color-mix(in srgb, var(--foreground) 30%, transparent)}.title{justify-self:start;margin:0 10px;width:62%;border-radius:3px;background:color-mix(in srgb, var(--foreground) 55%, transparent);transform-origin:left;animation:cms-title 5s steps(8, end) infinite}@media(prefers-reduced-motion: reduce){.title{animation:none}}@keyframes cms-title{0%,12%{transform:scaleX(0.05)}52%,100%{transform:scaleX(1)}}.picture{margin:0 10px;border-radius:4px;border:1px solid color-mix(in srgb, var(--foreground) 30%, transparent);animation:cms-picture 5s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.picture{animation:none}}@keyframes cms-picture{0%,60%{background:linear-gradient(135deg, color-mix(in srgb, var(--foreground) 10%, transparent), color-mix(in srgb, var(--foreground) 4%, transparent))}70%,100%{background:linear-gradient(135deg, color-mix(in srgb, var(--foreground) 40%, transparent), color-mix(in srgb, var(--foreground) 12%, transparent))}}.lines{display:grid;gap:5px;margin:0 10px}.lines i{height:4px;border-radius:2px;background:color-mix(in srgb, var(--foreground) 20%, transparent)}.lines i:last-child{width:70%}.panel{position:absolute;left:50%;top:50%;width:92px;height:112px;margin:-56px 0 0 -46px;transform-style:preserve-3d;box-sizing:border-box;background:color-mix(in srgb, var(--foreground) 10%, transparent);border:1px solid color-mix(in srgb, var(--foreground) 60%, transparent);display:grid;align-content:start;gap:6px;padding:10px;border-radius:8px;transform:translate3d(74px, 14px, 40px)}.label{width:44%;height:4px;border-radius:2px;background:color-mix(in srgb, var(--foreground) 35%, transparent)}.field{position:relative;display:flex;align-items:center;gap:2px;height:16px;padding:0 4px;border-radius:4px;border:1px solid color-mix(in srgb, var(--foreground) 45%, transparent);background:var(--background)}.typed{height:4px;width:54px;border-radius:2px;background:color-mix(in srgb, var(--foreground) 55%, transparent);transform-origin:left;animation:cms-title 5s steps(8, end) infinite}@media(prefers-reduced-motion: reduce){.typed{animation:none}}.caret{width:1.5px;height:9px;background:var(--foreground);animation:cms-blink .9s steps(1, end) infinite}@media(prefers-reduced-motion: reduce){.caret{animation:none}}@keyframes cms-blink{50%{opacity:0}}.swatches{display:flex;gap:5px}.swatches i{width:14px;height:14px;border-radius:4px;border:1px solid color-mix(in srgb, var(--foreground) 40%, transparent);background:color-mix(in srgb, var(--foreground) 10%, transparent)}.swatches i:nth-child(2){animation:cms-pick 5s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.swatches i:nth-child(2){animation:none}}@keyframes cms-pick{0%,58%{background:color-mix(in srgb, var(--foreground) 10%, transparent);box-shadow:none}64%,100%{background:color-mix(in srgb, var(--foreground) 45%, transparent);box-shadow:0 0 0 2px color-mix(in srgb, var(--foreground) 25%, transparent)}}.save{margin-top:4px;height:14px;border-radius:7px;background:var(--foreground);animation:cms-save 5s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.save{animation:none}}@keyframes cms-save{0%,74%,90%,100%{transform:scale(1)}82%{transform:scale(0.92)}}
@@ -0,0 +1,181 @@
1
+ @use "style/token" as *;
2
+ @use "style/object" as *;
3
+
4
+ $period: 5s;
5
+
6
+ .object {
7
+ @include centered(0px, 0px);
8
+ @include loop(cms-sway 11s ease-in-out infinite);
9
+ transform: rotateX(-12deg) rotateY(24deg);
10
+ }
11
+ @keyframes cms-sway {
12
+ 0%,
13
+ 100% {
14
+ transform: rotateX(-12deg) rotateY(26deg);
15
+ }
16
+ 50% {
17
+ transform: rotateX(-8deg) rotateY(6deg);
18
+ }
19
+ }
20
+ .page {
21
+ @include centered(176px, 128px);
22
+ @include face(4%, 42%);
23
+ display: grid;
24
+ grid-template-rows: auto 8px 1fr auto;
25
+ gap: 8px;
26
+ padding: 0 0 10px;
27
+ border-radius: 8px;
28
+ transform: translate3d(-26px, 0, -30px);
29
+ }
30
+ .bar {
31
+ display: flex;
32
+ gap: 4px;
33
+ padding: 6px 8px;
34
+ border-bottom: 1px solid tint(18%);
35
+ i {
36
+ width: 5px;
37
+ height: 5px;
38
+ border-radius: 50%;
39
+ background: tint(30%);
40
+ }
41
+ }
42
+ /* The page's title grows as the field in the panel is typed. */
43
+ .title {
44
+ justify-self: start;
45
+ margin: 0 10px;
46
+ width: 62%;
47
+ border-radius: 3px;
48
+ background: tint(55%);
49
+ transform-origin: left;
50
+ @include loop(cms-title $period steps(8, end) infinite);
51
+ }
52
+ @keyframes cms-title {
53
+ 0%,
54
+ 12% {
55
+ transform: scaleX(0.05);
56
+ }
57
+ 52%,
58
+ 100% {
59
+ transform: scaleX(1);
60
+ }
61
+ }
62
+ .picture {
63
+ margin: 0 10px;
64
+ border-radius: 4px;
65
+ border: 1px solid tint(30%);
66
+ @include loop(cms-picture $period $ease infinite);
67
+ }
68
+ @keyframes cms-picture {
69
+ 0%,
70
+ 60% {
71
+ background: linear-gradient(135deg, tint(10%), tint(4%));
72
+ }
73
+ 70%,
74
+ 100% {
75
+ background: linear-gradient(135deg, tint(40%), tint(12%));
76
+ }
77
+ }
78
+ .lines {
79
+ display: grid;
80
+ gap: 5px;
81
+ margin: 0 10px;
82
+ i {
83
+ height: 4px;
84
+ border-radius: 2px;
85
+ background: tint(20%);
86
+ &:last-child {
87
+ width: 70%;
88
+ }
89
+ }
90
+ }
91
+ /* The editing panel, closer to the visitor. */
92
+ .panel {
93
+ @include centered(92px, 112px);
94
+ @include face(10%, 60%);
95
+ display: grid;
96
+ align-content: start;
97
+ gap: 6px;
98
+ padding: 10px;
99
+ border-radius: 8px;
100
+ transform: translate3d(74px, 14px, 40px);
101
+ }
102
+ .label {
103
+ width: 44%;
104
+ height: 4px;
105
+ border-radius: 2px;
106
+ background: tint(35%);
107
+ }
108
+ .field {
109
+ position: relative;
110
+ display: flex;
111
+ align-items: center;
112
+ gap: 2px;
113
+ height: 16px;
114
+ padding: 0 4px;
115
+ border-radius: 4px;
116
+ border: 1px solid tint(45%);
117
+ background: var(--background);
118
+ }
119
+ .typed {
120
+ height: 4px;
121
+ width: 54px;
122
+ border-radius: 2px;
123
+ background: tint(55%);
124
+ transform-origin: left;
125
+ @include loop(cms-title $period steps(8, end) infinite);
126
+ }
127
+ .caret {
128
+ width: 1.5px;
129
+ height: 9px;
130
+ background: var(--foreground);
131
+ @include loop(cms-blink 0.9s steps(1, end) infinite);
132
+ }
133
+ @keyframes cms-blink {
134
+ 50% {
135
+ opacity: 0;
136
+ }
137
+ }
138
+ .swatches {
139
+ display: flex;
140
+ gap: 5px;
141
+ i {
142
+ width: 14px;
143
+ height: 14px;
144
+ border-radius: 4px;
145
+ border: 1px solid tint(40%);
146
+ background: tint(10%);
147
+ &:nth-child(2) {
148
+ @include loop(cms-pick $period $ease infinite);
149
+ }
150
+ }
151
+ }
152
+ @keyframes cms-pick {
153
+ 0%,
154
+ 58% {
155
+ background: tint(10%);
156
+ box-shadow: none;
157
+ }
158
+ 64%,
159
+ 100% {
160
+ background: tint(45%);
161
+ box-shadow: 0 0 0 2px tint(25%);
162
+ }
163
+ }
164
+ .save {
165
+ margin-top: 4px;
166
+ height: 14px;
167
+ border-radius: 7px;
168
+ background: var(--foreground);
169
+ @include loop(cms-save $period $ease infinite);
170
+ }
171
+ @keyframes cms-save {
172
+ 0%,
173
+ 74%,
174
+ 90%,
175
+ 100% {
176
+ transform: scale(1);
177
+ }
178
+ 82% {
179
+ transform: scale(0.92);
180
+ }
181
+ }
@@ -1,10 +1,10 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { AndroidApplication } from "@sharadox/sharadox-web-library/component/service-object/android-application";
2
+ import { ApplicationProgrammingInterface } from "@sharadox/sharadox-web-library/component/service-object/application-programming-interface";
3
3
  import { BrandAwareness } from "@sharadox/sharadox-web-library/component/service-object/brand-awareness";
4
4
  import { Branding } from "@sharadox/sharadox-web-library/component/service-object/branding";
5
5
  import { BrandingDesign } from "@sharadox/sharadox-web-library/component/service-object/branding-design";
6
+ import { ContentManagementSystem } from "@sharadox/sharadox-web-library/component/service-object/content-management-system";
6
7
  import { ECommerce } from "@sharadox/sharadox-web-library/component/service-object/e-commerce";
7
- import { IosApplication } from "@sharadox/sharadox-web-library/component/service-object/ios-application";
8
8
  import { LeadGeneration } from "@sharadox/sharadox-web-library/component/service-object/lead-generation";
9
9
  import { Platform } from "@sharadox/sharadox-web-library/component/service-object/platform";
10
10
  import { ProductLaunch } from "@sharadox/sharadox-web-library/component/service-object/product-launch";
@@ -19,8 +19,8 @@ const OBJECTS = {
19
19
  website: Website,
20
20
  platform: Platform,
21
21
  "e-commerce": ECommerce,
22
- "android-application": AndroidApplication,
23
- "ios-application": IosApplication,
22
+ "content-management-system": ContentManagementSystem,
23
+ "application-programming-interface": ApplicationProgrammingInterface,
24
24
  "progressive-web-application": ProgressiveWebApplication,
25
25
  branding: Branding,
26
26
  rebranding: Rebranding,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/service-object/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,6EAA6E,CAAC;AACjH,OAAO,EAAE,cAAc,EAAE,MAAM,yEAAyE,CAAC;AACzG,OAAO,EAAE,QAAQ,EAAE,MAAM,kEAAkE,CAAC;AAC5F,OAAO,EAAE,cAAc,EAAE,MAAM,yEAAyE,CAAC;AACzG,OAAO,EAAE,SAAS,EAAE,MAAM,oEAAoE,CAAC;AAC/F,OAAO,EAAE,cAAc,EAAE,MAAM,yEAAyE,CAAC;AACzG,OAAO,EAAE,cAAc,EAAE,MAAM,yEAAyE,CAAC;AACzG,OAAO,EAAE,QAAQ,EAAE,MAAM,kEAAkE,CAAC;AAC5F,OAAO,EAAE,aAAa,EAAE,MAAM,wEAAwE,CAAC;AACvG,OAAO,EAAE,yBAAyB,EAAE,MAAM,qFAAqF,CAAC;AAChI,OAAO,EAAE,UAAU,EAAE,MAAM,oEAAoE,CAAC;AAChG,OAAO,EAAE,eAAe,EAAE,MAAM,0EAA0E,CAAC;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,qBAAqB,EAAE,kBAAkB;IACzC,iBAAiB,EAAE,cAAc;IACjC,6BAA6B,EAAE,yBAAyB;IACxD,QAAQ,EAAE,QAAQ;IAClB,UAAU,EAAE,UAAU;IACtB,iBAAiB,EAAE,cAAc;IACjC,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"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/service-object/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,+BAA+B,EAAE,MAAM,2FAA2F,CAAC;AAC5I,OAAO,EAAE,cAAc,EAAE,MAAM,yEAAyE,CAAC;AACzG,OAAO,EAAE,QAAQ,EAAE,MAAM,kEAAkE,CAAC;AAC5F,OAAO,EAAE,cAAc,EAAE,MAAM,yEAAyE,CAAC;AACzG,OAAO,EAAE,uBAAuB,EAAE,MAAM,mFAAmF,CAAC;AAC5H,OAAO,EAAE,SAAS,EAAE,MAAM,oEAAoE,CAAC;AAC/F,OAAO,EAAE,cAAc,EAAE,MAAM,yEAAyE,CAAC;AACzG,OAAO,EAAE,QAAQ,EAAE,MAAM,kEAAkE,CAAC;AAC5F,OAAO,EAAE,aAAa,EAAE,MAAM,wEAAwE,CAAC;AACvG,OAAO,EAAE,yBAAyB,EAAE,MAAM,qFAAqF,CAAC;AAChI,OAAO,EAAE,UAAU,EAAE,MAAM,oEAAoE,CAAC;AAChG,OAAO,EAAE,eAAe,EAAE,MAAM,0EAA0E,CAAC;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,2BAA2B,EAAE,uBAAuB;IACpD,mCAAmC,EAAE,+BAA+B;IACpE,6BAA6B,EAAE,yBAAyB;IACxD,QAAQ,EAAE,QAAQ;IAClB,UAAU,EAAE,UAAU;IACtB,iBAAiB,EAAE,cAAc;IACjC,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"}
@@ -1 +1 @@
1
- .stage{position:absolute;inset:0;perspective:900px;overflow:hidden}.view{position:absolute;inset:0;transform-style:preserve-3d;transform:rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));transition:transform .7s cubic-bezier(0.22, 1, 0.36, 1)}
1
+ .stage{position:absolute;inset:0;perspective:900px;overflow:hidden}.view{position:absolute;inset:0;transform-style:preserve-3d;transform:scale(var(--object-scale, 1)) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));transition:transform .7s cubic-bezier(0.22, 1, 0.36, 1)}
@@ -6,11 +6,11 @@
6
6
  perspective: 900px;
7
7
  overflow: hidden;
8
8
  }
9
- /* Turns towards the pointer (from the card's tilt), easing there and back. */
9
+ /* Turns towards the pointer (from the card's tilt), easing there and back; `--object-scale` enlarges it. */
10
10
  .view {
11
11
  position: absolute;
12
12
  inset: 0;
13
13
  transform-style: preserve-3d;
14
- transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
14
+ transform: scale(var(--object-scale, 1)) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
15
15
  transition: transform 0.7s $ease;
16
16
  }
@@ -1,3 +1,6 @@
1
- /** Progressive web applications: a website whose app icon lifts out of the page and turns, installed in one tap. */
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":"AAGA,oHAAoH;AACpH,wBAAgB,yBAAyB,gCAcxC"}
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
- /** Progressive web applications: a website whose app icon lifts out of the page and turns, installed in one tap. */
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: [_jsxs("div", { className: styles.window, children: [_jsx("span", { className: styles.bar, children: _jsx("i", {}) }), _jsx("span", { className: styles.slot })] }), _jsx("div", { className: styles.lift, children: _jsx(Cuboid, { className: styles.icon, front: _jsx("span", { className: styles.plus }) }) })] }));
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":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gEAAgE,CAAC;AACxF,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,oHAAoH;AACpH,MAAM,UAAU,yBAAyB;IACvC,OAAO,CACL,eAAK,SAAS,EAAE,MAAM,CAAC,MAAM,aAC3B,eAAK,SAAS,EAAE,MAAM,CAAC,MAAM,aAC3B,eAAM,SAAS,EAAE,MAAM,CAAC,GAAG,YACzB,aAAK,GACA,EACP,eAAM,SAAS,EAAE,MAAM,CAAC,IAAI,GAAI,IAC5B,EACN,cAAK,SAAS,EAAE,MAAM,CAAC,IAAI,YACzB,KAAC,MAAM,IAAC,SAAS,EAAE,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,eAAM,SAAS,EAAE,MAAM,CAAC,IAAI,GAAI,GAAI,GACvE,IACF,CACP,CAAC;AACJ,CAAC"}
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 9s ease-in-out infinite}@media(prefers-reduced-motion: reduce){.object{animation:none}}.object{transform:rotateX(-18deg) rotateY(28deg)}@keyframes pwa-sway{0%,100%{transform:rotateX(-18deg) rotateY(32deg)}50%{transform:rotateX(-12deg) rotateY(8deg)}}.window{position:absolute;left:50%;top:50%;width:168px;height:116px;margin:-58px 0 0 -84px;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) 42%, transparent);border-radius:8px;transform:translateZ(-20px)}.bar{display:block;padding:7px 10px;border-bottom:1px solid color-mix(in srgb, var(--foreground) 18%, transparent)}.bar i{display:block;height:6px;width:60%;margin:0 auto;border-radius:3px;background:color-mix(in srgb, var(--foreground) 25%, transparent)}.slot{position:absolute;left:50%;top:50%;width:40px;height:40px;margin:-14px 0 0 -20px;border-radius:10px;border:1px dashed color-mix(in srgb, var(--foreground) 45%, transparent)}.lift{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d;transform:translate3d(0, 6px, -20px);animation:pwa-install 4.2s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.lift{animation:none}}@keyframes pwa-install{0%,15%{transform:translate3d(0, 6px, -14px) rotateY(0deg)}55%,75%{transform:translate3d(0, -26px, 56px) rotateY(360deg)}100%{transform:translate3d(0, 6px, -14px) rotateY(360deg)}}.icon{--width: 40px;--height: 40px;--depth: 10px;--radius: 10px;--front-amount: 28%;--edge-amount: 75%}.plus{position:absolute;inset:0}.plus::before,.plus::after{content:"";position:absolute;left:50%;top:50%;width:16px;height:2px;margin:-1px 0 0 -8px;border-radius:1px;background:var(--foreground)}.plus::after{transform:rotate(90deg)}
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)}}