@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.
Files changed (115) 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.d.ts.map +1 -1
  39. package/distribution/component/service-object/index.js +8 -4
  40. package/distribution/component/service-object/index.js.map +1 -1
  41. package/distribution/component/service-object/index.module.css +1 -1
  42. package/distribution/component/service-object/index.module.scss +2 -2
  43. package/distribution/component/service-object/merchandise/index.d.ts +6 -0
  44. package/distribution/component/service-object/merchandise/index.d.ts.map +1 -0
  45. package/distribution/component/service-object/merchandise/index.js +13 -0
  46. package/distribution/component/service-object/merchandise/index.js.map +1 -0
  47. package/distribution/component/service-object/merchandise/index.module.css +1 -0
  48. package/distribution/component/service-object/merchandise/index.module.scss +91 -0
  49. package/distribution/component/service-object/print-design/index.d.ts +6 -0
  50. package/distribution/component/service-object/print-design/index.d.ts.map +1 -0
  51. package/distribution/component/service-object/print-design/index.js +10 -0
  52. package/distribution/component/service-object/print-design/index.js.map +1 -0
  53. package/distribution/component/service-object/print-design/index.module.css +1 -0
  54. package/distribution/component/service-object/print-design/index.module.scss +123 -0
  55. package/distribution/component/service-object/progressive-web-application/index.d.ts +4 -1
  56. package/distribution/component/service-object/progressive-web-application/index.d.ts.map +1 -1
  57. package/distribution/component/service-object/progressive-web-application/index.js +19 -2
  58. package/distribution/component/service-object/progressive-web-application/index.js.map +1 -1
  59. package/distribution/component/service-object/progressive-web-application/index.module.css +1 -1
  60. package/distribution/component/service-object/progressive-web-application/index.module.scss +151 -63
  61. package/distribution/component/service-object/social-media-strategy/index.d.ts +4 -1
  62. package/distribution/component/service-object/social-media-strategy/index.d.ts.map +1 -1
  63. package/distribution/component/service-object/social-media-strategy/index.js +9 -2
  64. package/distribution/component/service-object/social-media-strategy/index.js.map +1 -1
  65. package/distribution/component/service-object/social-media-strategy/index.module.css +1 -1
  66. package/distribution/component/service-object/social-media-strategy/index.module.scss +177 -53
  67. package/distribution/component/service-unlisted/index.d.ts +10 -0
  68. package/distribution/component/service-unlisted/index.d.ts.map +1 -0
  69. package/distribution/component/service-unlisted/index.js +20 -0
  70. package/distribution/component/service-unlisted/index.js.map +1 -0
  71. package/distribution/component/service-unlisted/index.module.css +1 -0
  72. package/distribution/component/service-unlisted/index.module.scss +28 -0
  73. package/distribution/component/service-unlisted/type.d.ts +5 -0
  74. package/distribution/component/service-unlisted/type.d.ts.map +1 -0
  75. package/distribution/component/service-unlisted/type.js +2 -0
  76. package/distribution/component/service-unlisted/type.js.map +1 -0
  77. package/distribution/component/services/index.d.ts +3 -2
  78. package/distribution/component/services/index.d.ts.map +1 -1
  79. package/distribution/component/services/index.js +5 -3
  80. package/distribution/component/services/index.js.map +1 -1
  81. package/distribution/component/services/index.module.css +1 -1
  82. package/distribution/component/services/index.module.scss +4 -0
  83. package/distribution/component/structured-data/index.d.ts.map +1 -1
  84. package/distribution/component/structured-data/index.js +4 -2
  85. package/distribution/component/structured-data/index.js.map +1 -1
  86. package/distribution/content/contact/index.d.ts +92 -34
  87. package/distribution/content/contact/index.d.ts.map +1 -1
  88. package/distribution/content/contact/index.js +34 -5
  89. package/distribution/content/contact/index.js.map +1 -1
  90. package/distribution/content/services/index.d.ts +143 -64
  91. package/distribution/content/services/index.d.ts.map +1 -1
  92. package/distribution/content/services/index.js +112 -54
  93. package/distribution/content/services/index.js.map +1 -1
  94. package/distribution/content/site/index.d.ts.map +1 -1
  95. package/distribution/content/site/index.js +8 -4
  96. package/distribution/content/site/index.js.map +1 -1
  97. package/distribution/style/token/index.scss +3 -1
  98. package/distribution/utility/contact-problem/index.d.ts +13 -0
  99. package/distribution/utility/contact-problem/index.d.ts.map +1 -0
  100. package/distribution/utility/contact-problem/index.js +23 -0
  101. package/distribution/utility/contact-problem/index.js.map +1 -0
  102. package/llms.txt +3 -1
  103. package/package.json +2 -2
  104. package/distribution/component/service-object/android-application/index.d.ts +0 -3
  105. package/distribution/component/service-object/android-application/index.d.ts.map +0 -1
  106. package/distribution/component/service-object/android-application/index.js +0 -8
  107. package/distribution/component/service-object/android-application/index.js.map +0 -1
  108. package/distribution/component/service-object/android-application/index.module.css +0 -1
  109. package/distribution/component/service-object/android-application/index.module.scss +0 -90
  110. package/distribution/component/service-object/ios-application/index.d.ts +0 -3
  111. package/distribution/component/service-object/ios-application/index.d.ts.map +0 -1
  112. package/distribution/component/service-object/ios-application/index.js +0 -8
  113. package/distribution/component/service-object/ios-application/index.js.map +0 -1
  114. package/distribution/component/service-object/ios-application/index.module.css +0 -1
  115. 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 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/service-object/index.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8DAA8D,CAAC;AAoB5G;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,EAAE,IAAI,EAAE,EAAE,uBAAuB,+BAS9D"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/service-object/index.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8DAA8D,CAAC;AAsB5G;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,EAAE,IAAI,EAAE,EAAE,uBAAuB,+BAS9D"}
@@ -1,12 +1,14 @@
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
+ import { Merchandise } from "@sharadox/sharadox-web-library/component/service-object/merchandise";
11
+ import { PrintDesign } from "@sharadox/sharadox-web-library/component/service-object/print-design";
10
12
  import { ProductLaunch } from "@sharadox/sharadox-web-library/component/service-object/product-launch";
11
13
  import { ProgressiveWebApplication } from "@sharadox/sharadox-web-library/component/service-object/progressive-web-application";
12
14
  import { Rebranding } from "@sharadox/sharadox-web-library/component/service-object/rebranding";
@@ -19,12 +21,14 @@ const OBJECTS = {
19
21
  website: Website,
20
22
  platform: Platform,
21
23
  "e-commerce": ECommerce,
22
- "android-application": AndroidApplication,
23
- "ios-application": IosApplication,
24
+ "content-management-system": ContentManagementSystem,
25
+ "application-programming-interface": ApplicationProgrammingInterface,
24
26
  "progressive-web-application": ProgressiveWebApplication,
25
27
  branding: Branding,
26
28
  rebranding: Rebranding,
27
29
  "branding-design": BrandingDesign,
30
+ "print-design": PrintDesign,
31
+ merchandise: Merchandise,
28
32
  "product-launch": ProductLaunch,
29
33
  "lead-generation": LeadGeneration,
30
34
  "sales-generation": SalesGeneration,
@@ -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,WAAW,EAAE,MAAM,qEAAqE,CAAC;AAClG,OAAO,EAAE,WAAW,EAAE,MAAM,sEAAsE,CAAC;AACnG,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,cAAc,EAAE,WAAW;IAC3B,WAAW,EAAE,WAAW;IACxB,gBAAgB,EAAE,aAAa;IAC/B,iBAAiB,EAAE,cAAc;IACjC,kBAAkB,EAAE,eAAe;IACnC,iBAAiB,EAAE,cAAc;IACjC,uBAAuB,EAAE,mBAAmB;CAC7C,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,UAAU,aAAa,CAAC,EAAE,IAAI,EAA2B;IAC7D,MAAM,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5B,OAAO,CACL,cAAK,SAAS,EAAE,MAAM,CAAC,KAAK,iCAC1B,cAAK,SAAS,EAAE,MAAM,CAAC,IAAI,YACzB,KAAC,KAAK,KAAG,GACL,GACF,CACP,CAAC;AACJ,CAAC"}
@@ -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
  }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Merchandise: a T-shirt with the brand's mark on its chest, swaying beside a branded bottle turning on the spot, so
3
+ * the label comes round again and again.
4
+ */
5
+ export declare function Merchandise(): 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/merchandise/index.tsx"],"names":[],"mappings":"AAMA;;;GAGG;AACH,wBAAgB,WAAW,gCA0B1B"}
@@ -0,0 +1,13 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import styles from "./index.module.css";
3
+ /** Faces around the bottle; the label shows on these. */
4
+ const SIDES = 14;
5
+ const LABEL = [0, 1, 2, 3];
6
+ /**
7
+ * Merchandise: a T-shirt with the brand's mark on its chest, swaying beside a branded bottle turning on the spot, so
8
+ * the label comes round again and again.
9
+ */
10
+ export function Merchandise() {
11
+ return (_jsxs("div", { className: styles.object, children: [_jsxs("div", { className: styles.shirt, children: [_jsx("i", { className: styles.collar }), _jsx("i", { className: styles.mark })] }), _jsxs("div", { className: styles.bottle, children: [Array.from({ length: SIDES }, (_, side) => (_jsx("span", { className: styles.side, "data-label": LABEL.includes(side) || undefined, style: { transform: `rotateY(${(side * 360) / SIDES}deg) translateZ(23px)` } }, side))), Array.from({ length: 8 }, (_, side) => (_jsx("span", { className: styles.cap, style: { transform: `translateY(-66px) rotateY(${side * 45}deg) translateZ(13px)` } }, side)))] })] }));
12
+ }
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/service-object/merchandise/index.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,yDAAyD;AACzD,MAAM,KAAK,GAAG,EAAE,CAAC;AACjB,MAAM,KAAK,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AAE3B;;;GAGG;AACH,MAAM,UAAU,WAAW;IACzB,OAAO,CACL,eAAK,SAAS,EAAE,MAAM,CAAC,MAAM,aAC3B,eAAK,SAAS,EAAE,MAAM,CAAC,KAAK,aAC1B,YAAG,SAAS,EAAE,MAAM,CAAC,MAAM,GAAI,EAC/B,YAAG,SAAS,EAAE,MAAM,CAAC,IAAI,GAAI,IACzB,EACN,eAAK,SAAS,EAAE,MAAM,CAAC,MAAM,aAC1B,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,CAC1C,eAEE,SAAS,EAAE,MAAM,CAAC,IAAI,gBACV,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,SAAS,EAC7C,KAAK,EAAE,EAAE,SAAS,EAAE,WAAW,CAAC,IAAI,GAAG,GAAG,CAAC,GAAG,KAAK,uBAAuB,EAAE,IAHvE,IAAI,CAIT,CACH,CAAC,EACD,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,CACtC,eAEE,SAAS,EAAE,MAAM,CAAC,GAAG,EACrB,KAAK,EAAE,EAAE,SAAS,EAAE,6BAA6B,IAAI,GAAG,EAAE,uBAAuB,EAAE,IAF9E,IAAI,CAGT,CACH,CAAC,IACE,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;transform:rotateX(-12deg)}.shirt{position:absolute;left:50%;top:50%;width:150px;height:150px;margin:-75px 0 0 -75px;transform-style:preserve-3d;animation:merch-sway 8s ease-in-out infinite}@media(prefers-reduced-motion: reduce){.shirt{animation:none}}.shirt{transform:translate3d(-58px, 4px, -20px) rotateY(18deg);background:color-mix(in srgb, var(--foreground) 16%, transparent);clip-path:polygon(30% 6%, 41% 6%, 50% 13%, 59% 6%, 70% 6%, 97% 24%, 86% 42%, 75% 36%, 75% 96%, 25% 96%, 25% 36%, 14% 42%, 3% 24%)}@keyframes merch-sway{0%,100%{transform:translate3d(-58px, 4px, -20px) rotateY(24deg) rotateZ(-2deg)}50%{transform:translate3d(-58px, 0px, -20px) rotateY(-10deg) rotateZ(2deg)}}.collar{position:absolute;left:41%;top:6%;width:18%;height:9%;border-radius:0 0 50% 50%;background:color-mix(in srgb, var(--foreground) 34%, transparent)}.mark{position:absolute;left:50%;top:38%;width:22px;height:22px;margin-left:-11px;border-radius:3px;border:5px solid var(--foreground);transform:rotate(45deg)}.bottle{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d;animation:merch-turn 7s linear infinite}@media(prefers-reduced-motion: reduce){.bottle{animation:none}}.bottle{transform:translate3d(76px, 12px, 30px)}@keyframes merch-turn{from{transform:translate3d(76px, 12px, 30px) rotateY(0deg)}to{transform:translate3d(76px, 12px, 30px) rotateY(360deg)}}.side{position:absolute;left:50%;top:50%;width:11px;height:112px;margin:-56px 0 0 -5.5px;transform-style:preserve-3d;border-top:1px solid color-mix(in srgb, var(--foreground) 45%, transparent);border-bottom:1px solid color-mix(in srgb, var(--foreground) 45%, transparent);border-radius:2px;background:color-mix(in srgb, var(--foreground) 10%, transparent);box-shadow:inset 1px 0 0 color-mix(in srgb, var(--foreground) 18%, transparent);backface-visibility:hidden}.side[data-label]{background:linear-gradient(transparent 30%, color-mix(in srgb, var(--foreground) 55%, transparent) 30%, color-mix(in srgb, var(--foreground) 55%, transparent) 66%, transparent 66%),color-mix(in srgb, var(--foreground) 10%, transparent)}.cap{position:absolute;left:50%;top:50%;width:11px;height:20px;margin:-10px 0 0 -5.5px;transform-style:preserve-3d;border-radius:2px;background:color-mix(in srgb, var(--foreground) 30%, transparent);border-top:1px solid color-mix(in srgb, var(--foreground) 60%, transparent);backface-visibility:hidden}