@sharadox/sharadox-web-library 0.2.0 → 0.4.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 (307) hide show
  1. package/README.md +4 -2
  2. package/distribution/action/send-contact/index.d.ts.map +1 -1
  3. package/distribution/action/send-contact/index.js +9 -4
  4. package/distribution/action/send-contact/index.js.map +1 -1
  5. package/distribution/component/button/index.d.ts +1 -1
  6. package/distribution/component/button/index.d.ts.map +1 -1
  7. package/distribution/component/button/index.js +2 -2
  8. package/distribution/component/button/index.js.map +1 -1
  9. package/distribution/component/button/index.module.css +11 -8
  10. package/distribution/component/button/type.d.ts +1 -1
  11. package/distribution/component/capability/index.d.ts +4 -0
  12. package/distribution/component/capability/index.d.ts.map +1 -0
  13. package/distribution/component/capability/index.js +13 -0
  14. package/distribution/component/capability/index.js.map +1 -0
  15. package/distribution/component/capability/index.module.css +83 -0
  16. package/distribution/component/{services/application-visual → capability}/type.d.ts +1 -1
  17. package/distribution/component/capability/type.d.ts.map +1 -0
  18. package/distribution/component/capability/type.js.map +1 -0
  19. package/distribution/component/contact/form/index.d.ts.map +1 -1
  20. package/distribution/component/contact/form/index.js +2 -1
  21. package/distribution/component/contact/form/index.js.map +1 -1
  22. package/distribution/component/contact/form/index.module.css +67 -7
  23. package/distribution/component/contact/index.module.css +2 -2
  24. package/distribution/component/cross/index.d.ts +4 -0
  25. package/distribution/component/cross/index.d.ts.map +1 -0
  26. package/distribution/component/cross/index.js +7 -0
  27. package/distribution/component/cross/index.js.map +1 -0
  28. package/distribution/component/cross/index.module.css +53 -0
  29. package/distribution/component/cross/type.d.ts +6 -0
  30. package/distribution/component/cross/type.d.ts.map +1 -0
  31. package/distribution/component/cross/type.js.map +1 -0
  32. package/distribution/component/cursor/index.module.css +1 -0
  33. package/distribution/component/footer/index.d.ts +1 -1
  34. package/distribution/component/footer/index.d.ts.map +1 -1
  35. package/distribution/component/footer/index.js +12 -5
  36. package/distribution/component/footer/index.js.map +1 -1
  37. package/distribution/component/footer/index.module.css +88 -22
  38. package/distribution/component/globe/arc/index.d.ts +1 -1
  39. package/distribution/component/globe/arc/index.d.ts.map +1 -1
  40. package/distribution/component/globe/arc/index.js +4 -4
  41. package/distribution/component/globe/arc/index.js.map +1 -1
  42. package/distribution/component/globe/arc/type.d.ts +2 -0
  43. package/distribution/component/globe/arc/type.d.ts.map +1 -1
  44. package/distribution/component/globe/color/index.d.ts +4 -0
  45. package/distribution/component/globe/color/index.d.ts.map +1 -0
  46. package/distribution/component/globe/color/index.js +16 -0
  47. package/distribution/component/globe/color/index.js.map +1 -0
  48. package/distribution/component/globe/color/type.d.ts +13 -0
  49. package/distribution/component/globe/color/type.d.ts.map +1 -0
  50. package/distribution/component/globe/color/type.js +2 -0
  51. package/distribution/component/globe/color/type.js.map +1 -0
  52. package/distribution/component/globe/dots/index.d.ts +1 -1
  53. package/distribution/component/globe/dots/index.d.ts.map +1 -1
  54. package/distribution/component/globe/dots/index.js +6 -2
  55. package/distribution/component/globe/dots/index.js.map +1 -1
  56. package/distribution/component/globe/dots/type.d.ts +2 -0
  57. package/distribution/component/globe/dots/type.d.ts.map +1 -1
  58. package/distribution/component/globe/index.d.ts +1 -1
  59. package/distribution/component/globe/index.d.ts.map +1 -1
  60. package/distribution/component/globe/index.js +8 -3
  61. package/distribution/component/globe/index.js.map +1 -1
  62. package/distribution/component/globe/index.module.css +3 -3
  63. package/distribution/component/globe/marker/index.d.ts +1 -1
  64. package/distribution/component/globe/marker/index.d.ts.map +1 -1
  65. package/distribution/component/globe/marker/index.js +2 -2
  66. package/distribution/component/globe/marker/index.js.map +1 -1
  67. package/distribution/component/globe/marker/type.d.ts +2 -0
  68. package/distribution/component/globe/marker/type.d.ts.map +1 -1
  69. package/distribution/component/globe/shader/arc/index.d.ts.map +1 -1
  70. package/distribution/component/globe/shader/arc/index.js +2 -1
  71. package/distribution/component/globe/shader/arc/index.js.map +1 -1
  72. package/distribution/component/globe/shader/atmosphere/index.d.ts.map +1 -1
  73. package/distribution/component/globe/shader/atmosphere/index.js +2 -1
  74. package/distribution/component/globe/shader/atmosphere/index.js.map +1 -1
  75. package/distribution/component/globe/shader/body/index.d.ts +1 -1
  76. package/distribution/component/globe/shader/body/index.d.ts.map +1 -1
  77. package/distribution/component/globe/shader/body/index.js +4 -2
  78. package/distribution/component/globe/shader/body/index.js.map +1 -1
  79. package/distribution/component/globe/shader/dot/index.d.ts.map +1 -1
  80. package/distribution/component/globe/shader/dot/index.js +2 -1
  81. package/distribution/component/globe/shader/dot/index.js.map +1 -1
  82. package/distribution/component/globe/world/index.d.ts +1 -1
  83. package/distribution/component/globe/world/index.d.ts.map +1 -1
  84. package/distribution/component/globe/world/index.js +11 -7
  85. package/distribution/component/globe/world/index.js.map +1 -1
  86. package/distribution/component/globe/world/type.d.ts +2 -0
  87. package/distribution/component/globe/world/type.d.ts.map +1 -1
  88. package/distribution/component/hero/guide/index.d.ts +6 -0
  89. package/distribution/component/hero/guide/index.d.ts.map +1 -0
  90. package/distribution/component/hero/guide/index.js +12 -0
  91. package/distribution/component/hero/guide/index.js.map +1 -0
  92. package/distribution/component/hero/guide/index.module.css +97 -0
  93. package/distribution/component/hero/index.d.ts +1 -1
  94. package/distribution/component/hero/index.d.ts.map +1 -1
  95. package/distribution/component/hero/index.js +4 -2
  96. package/distribution/component/hero/index.js.map +1 -1
  97. package/distribution/component/hero/index.module.css +23 -29
  98. package/distribution/component/language-switch/index.d.ts +1 -1
  99. package/distribution/component/language-switch/index.d.ts.map +1 -1
  100. package/distribution/component/language-switch/index.js +5 -3
  101. package/distribution/component/language-switch/index.js.map +1 -1
  102. package/distribution/component/language-switch/index.module.css +6 -3
  103. package/distribution/component/locale-link/index.d.ts +4 -0
  104. package/distribution/component/locale-link/index.d.ts.map +1 -0
  105. package/distribution/component/locale-link/index.js +9 -0
  106. package/distribution/component/locale-link/index.js.map +1 -0
  107. package/distribution/component/locale-link/type.d.ts +10 -0
  108. package/distribution/component/locale-link/type.d.ts.map +1 -0
  109. package/distribution/component/locale-link/type.js +2 -0
  110. package/distribution/component/locale-link/type.js.map +1 -0
  111. package/distribution/component/marquee/index.d.ts +4 -1
  112. package/distribution/component/marquee/index.d.ts.map +1 -1
  113. package/distribution/component/marquee/index.js +8 -3
  114. package/distribution/component/marquee/index.js.map +1 -1
  115. package/distribution/component/marquee/index.module.css +20 -4
  116. package/distribution/component/navigation/index.d.ts +1 -1
  117. package/distribution/component/navigation/index.d.ts.map +1 -1
  118. package/distribution/component/navigation/index.js +4 -2
  119. package/distribution/component/navigation/index.js.map +1 -1
  120. package/distribution/component/navigation/index.module.css +32 -7
  121. package/distribution/component/process/index.module.css +3 -3
  122. package/distribution/component/process/step/index.module.css +2 -2
  123. package/distribution/component/section/index.d.ts +5 -2
  124. package/distribution/component/section/index.d.ts.map +1 -1
  125. package/distribution/component/section/index.js +8 -4
  126. package/distribution/component/section/index.js.map +1 -1
  127. package/distribution/component/section/index.module.css +32 -3
  128. package/distribution/component/section/type.d.ts +5 -1
  129. package/distribution/component/section/type.d.ts.map +1 -1
  130. package/distribution/component/service-index/index.d.ts +4 -0
  131. package/distribution/component/service-index/index.d.ts.map +1 -0
  132. package/distribution/component/service-index/index.js +11 -0
  133. package/distribution/component/service-index/index.js.map +1 -0
  134. package/distribution/component/service-index/index.module.css +88 -0
  135. package/distribution/component/service-index/type.d.ts +5 -0
  136. package/distribution/component/service-index/type.d.ts.map +1 -0
  137. package/distribution/component/service-index/type.js +2 -0
  138. package/distribution/component/service-index/type.js.map +1 -0
  139. package/distribution/component/services/campaign-visual/index.d.ts +4 -0
  140. package/distribution/component/services/campaign-visual/index.d.ts.map +1 -0
  141. package/distribution/component/services/campaign-visual/index.js +18 -0
  142. package/distribution/component/services/campaign-visual/index.js.map +1 -0
  143. package/distribution/component/services/campaign-visual/index.module.css +128 -0
  144. package/distribution/component/services/campaign-visual/stage/index.d.ts +4 -0
  145. package/distribution/component/services/campaign-visual/stage/index.d.ts.map +1 -0
  146. package/distribution/component/services/campaign-visual/stage/index.js +11 -0
  147. package/distribution/component/services/campaign-visual/stage/index.js.map +1 -0
  148. package/distribution/component/services/campaign-visual/stage/type.d.ts +10 -0
  149. package/distribution/component/services/campaign-visual/stage/type.d.ts.map +1 -0
  150. package/distribution/component/services/campaign-visual/stage/type.js +2 -0
  151. package/distribution/component/services/campaign-visual/stage/type.js.map +1 -0
  152. package/distribution/component/services/campaign-visual/type.d.ts +5 -0
  153. package/distribution/component/services/campaign-visual/type.d.ts.map +1 -0
  154. package/distribution/component/services/campaign-visual/type.js +2 -0
  155. package/distribution/component/services/campaign-visual/type.js.map +1 -0
  156. package/distribution/component/services/cell/index.d.ts +7 -0
  157. package/distribution/component/services/cell/index.d.ts.map +1 -0
  158. package/distribution/component/services/cell/index.js +15 -0
  159. package/distribution/component/services/cell/index.js.map +1 -0
  160. package/distribution/component/services/cell/index.module.css +86 -0
  161. package/distribution/component/services/cell/type.d.ts +14 -0
  162. package/distribution/component/services/cell/type.d.ts.map +1 -0
  163. package/distribution/component/services/cell/type.js +2 -0
  164. package/distribution/component/services/cell/type.js.map +1 -0
  165. package/distribution/component/services/design-visual/index.d.ts +5 -0
  166. package/distribution/component/services/design-visual/index.d.ts.map +1 -0
  167. package/distribution/component/services/design-visual/index.js +20 -0
  168. package/distribution/component/services/design-visual/index.js.map +1 -0
  169. package/distribution/component/services/design-visual/index.module.css +130 -0
  170. package/distribution/component/services/index.d.ts +1 -1
  171. package/distribution/component/services/index.d.ts.map +1 -1
  172. package/distribution/component/services/index.js +16 -10
  173. package/distribution/component/services/index.js.map +1 -1
  174. package/distribution/component/services/index.module.css +73 -8
  175. package/distribution/component/services/mobile-visual/index.d.ts +4 -0
  176. package/distribution/component/services/mobile-visual/index.d.ts.map +1 -0
  177. package/distribution/component/services/{application-visual → mobile-visual}/index.js +1 -1
  178. package/distribution/component/services/mobile-visual/index.js.map +1 -0
  179. package/distribution/component/services/{application-visual → mobile-visual}/index.module.css +15 -6
  180. package/distribution/component/services/mobile-visual/type.d.ts +5 -0
  181. package/distribution/component/services/mobile-visual/type.d.ts.map +1 -0
  182. package/distribution/component/services/mobile-visual/type.js +2 -0
  183. package/distribution/component/services/mobile-visual/type.js.map +1 -0
  184. package/distribution/component/services/platform-visual/index.js +1 -1
  185. package/distribution/component/services/platform-visual/index.js.map +1 -1
  186. package/distribution/component/services/platform-visual/index.module.css +8 -8
  187. package/distribution/component/services/social-visual/index.d.ts +4 -0
  188. package/distribution/component/services/social-visual/index.d.ts.map +1 -0
  189. package/distribution/component/services/social-visual/index.js +17 -0
  190. package/distribution/component/services/social-visual/index.js.map +1 -0
  191. package/distribution/component/services/social-visual/index.module.css +131 -0
  192. package/distribution/component/services/social-visual/type.d.ts +5 -0
  193. package/distribution/component/services/social-visual/type.d.ts.map +1 -0
  194. package/distribution/component/services/social-visual/type.js +2 -0
  195. package/distribution/component/services/social-visual/type.js.map +1 -0
  196. package/distribution/component/services/web-visual/index.module.css +19 -11
  197. package/distribution/component/statement/index.d.ts.map +1 -1
  198. package/distribution/component/statement/index.js +2 -1
  199. package/distribution/component/statement/index.js.map +1 -1
  200. package/distribution/component/statement/index.module.css +1 -3
  201. package/distribution/component/structured-data/index.d.ts +1 -1
  202. package/distribution/component/structured-data/index.d.ts.map +1 -1
  203. package/distribution/component/structured-data/index.js +28 -2
  204. package/distribution/component/structured-data/index.js.map +1 -1
  205. package/distribution/component/style-switch/index.d.ts +7 -0
  206. package/distribution/component/style-switch/index.d.ts.map +1 -0
  207. package/distribution/component/style-switch/index.js +24 -0
  208. package/distribution/component/style-switch/index.js.map +1 -0
  209. package/distribution/component/style-switch/index.module.css +45 -0
  210. package/distribution/component/style-switch/type.d.ts +6 -0
  211. package/distribution/component/style-switch/type.d.ts.map +1 -0
  212. package/distribution/component/style-switch/type.js +2 -0
  213. package/distribution/component/style-switch/type.js.map +1 -0
  214. package/distribution/component/touchpoint/index.d.ts +7 -0
  215. package/distribution/component/touchpoint/index.d.ts.map +1 -0
  216. package/distribution/component/touchpoint/index.js +25 -0
  217. package/distribution/component/touchpoint/index.js.map +1 -0
  218. package/distribution/component/touchpoint/index.module.css +86 -0
  219. package/distribution/component/touchpoint/plate/index.d.ts +4 -0
  220. package/distribution/component/touchpoint/plate/index.d.ts.map +1 -0
  221. package/distribution/component/touchpoint/plate/index.js +9 -0
  222. package/distribution/component/touchpoint/plate/index.js.map +1 -0
  223. package/distribution/component/touchpoint/plate/index.module.css +136 -0
  224. package/distribution/component/touchpoint/plate/type.d.ts +8 -0
  225. package/distribution/component/touchpoint/plate/type.d.ts.map +1 -0
  226. package/distribution/component/touchpoint/plate/type.js +2 -0
  227. package/distribution/component/touchpoint/plate/type.js.map +1 -0
  228. package/distribution/component/touchpoint/type.d.ts +5 -0
  229. package/distribution/component/touchpoint/type.d.ts.map +1 -0
  230. package/distribution/component/touchpoint/type.js +2 -0
  231. package/distribution/component/touchpoint/type.js.map +1 -0
  232. package/distribution/component/wordmark/index.module.css +2 -2
  233. package/distribution/content/capability/index.d.ts +12 -0
  234. package/distribution/content/capability/index.d.ts.map +1 -0
  235. package/distribution/content/capability/index.js +6 -0
  236. package/distribution/content/capability/index.js.map +1 -0
  237. package/distribution/content/contact/index.d.ts +12 -4
  238. package/distribution/content/contact/index.d.ts.map +1 -1
  239. package/distribution/content/contact/index.js +8 -3
  240. package/distribution/content/contact/index.js.map +1 -1
  241. package/distribution/content/footer/index.d.ts +12 -0
  242. package/distribution/content/footer/index.d.ts.map +1 -1
  243. package/distribution/content/footer/index.js +3 -0
  244. package/distribution/content/footer/index.js.map +1 -1
  245. package/distribution/content/hero/index.d.ts +4 -4
  246. package/distribution/content/hero/index.js +3 -3
  247. package/distribution/content/hero/index.js.map +1 -1
  248. package/distribution/content/navigation/index.d.ts +8 -0
  249. package/distribution/content/navigation/index.d.ts.map +1 -1
  250. package/distribution/content/navigation/index.js +2 -0
  251. package/distribution/content/navigation/index.js.map +1 -1
  252. package/distribution/content/process/index.d.ts +7 -7
  253. package/distribution/content/process/index.d.ts.map +1 -1
  254. package/distribution/content/process/index.js +8 -5
  255. package/distribution/content/process/index.js.map +1 -1
  256. package/distribution/content/separator/index.d.ts +2 -5
  257. package/distribution/content/separator/index.d.ts.map +1 -1
  258. package/distribution/content/separator/index.js +2 -5
  259. package/distribution/content/separator/index.js.map +1 -1
  260. package/distribution/content/services/index.d.ts +120 -29
  261. package/distribution/content/services/index.d.ts.map +1 -1
  262. package/distribution/content/services/index.js +146 -21
  263. package/distribution/content/services/index.js.map +1 -1
  264. package/distribution/content/site/index.d.ts.map +1 -1
  265. package/distribution/content/site/index.js +28 -4
  266. package/distribution/content/site/index.js.map +1 -1
  267. package/distribution/content/stack/index.d.ts +2 -2
  268. package/distribution/content/stack/index.d.ts.map +1 -1
  269. package/distribution/content/stack/index.js +8 -1
  270. package/distribution/content/stack/index.js.map +1 -1
  271. package/distribution/content/statement/index.d.ts +2 -2
  272. package/distribution/content/statement/index.js +2 -2
  273. package/distribution/content/statement/index.js.map +1 -1
  274. package/distribution/content/style/index.d.ts +59 -0
  275. package/distribution/content/style/index.d.ts.map +1 -0
  276. package/distribution/content/style/index.js +48 -0
  277. package/distribution/content/style/index.js.map +1 -0
  278. package/distribution/content/touchpoint/index.d.ts +37 -0
  279. package/distribution/content/touchpoint/index.d.ts.map +1 -0
  280. package/distribution/content/touchpoint/index.js +17 -0
  281. package/distribution/content/touchpoint/index.js.map +1 -0
  282. package/distribution/style/token/index.scss +33 -2
  283. package/distribution/utility/hex-channel/index.d.ts +3 -0
  284. package/distribution/utility/hex-channel/index.d.ts.map +1 -0
  285. package/distribution/utility/hex-channel/index.js +8 -0
  286. package/distribution/utility/hex-channel/index.js.map +1 -0
  287. package/distribution/utility/parse-contact/index.d.ts.map +1 -1
  288. package/distribution/utility/parse-contact/index.js +4 -0
  289. package/distribution/utility/parse-contact/index.js.map +1 -1
  290. package/distribution/utility/parse-contact/type.d.ts +3 -0
  291. package/distribution/utility/parse-contact/type.d.ts.map +1 -1
  292. package/package.json +4 -2
  293. package/distribution/component/services/application-visual/index.d.ts +0 -4
  294. package/distribution/component/services/application-visual/index.d.ts.map +0 -1
  295. package/distribution/component/services/application-visual/index.js.map +0 -1
  296. package/distribution/component/services/application-visual/type.d.ts.map +0 -1
  297. package/distribution/component/services/application-visual/type.js.map +0 -1
  298. package/distribution/component/services/card/index.d.ts +0 -4
  299. package/distribution/component/services/card/index.d.ts.map +0 -1
  300. package/distribution/component/services/card/index.js +0 -10
  301. package/distribution/component/services/card/index.js.map +0 -1
  302. package/distribution/component/services/card/index.module.css +0 -92
  303. package/distribution/component/services/card/type.d.ts +0 -12
  304. package/distribution/component/services/card/type.d.ts.map +0 -1
  305. package/distribution/component/services/card/type.js.map +0 -1
  306. /package/distribution/component/{services/application-visual → capability}/type.js +0 -0
  307. /package/distribution/component/{services/card → cross}/type.js +0 -0
@@ -0,0 +1,86 @@
1
+ .cell {
2
+ --pointer-x: -500px;
3
+ --pointer-y: -500px;
4
+ position: relative;
5
+ display: flex;
6
+ flex-direction: column;
7
+ background: var(--background);
8
+ isolation: isolate;
9
+ scroll-margin-top: 80px;
10
+ }
11
+ .cell::before {
12
+ content: "";
13
+ position: absolute;
14
+ inset: 0;
15
+ z-index: -1;
16
+ background: radial-gradient(460px circle at var(--pointer-x) var(--pointer-y), color-mix(in srgb, var(--foreground) 6%, transparent), transparent 60%);
17
+ }
18
+
19
+ .visual {
20
+ --tilt-x: 0deg;
21
+ --tilt-y: 0deg;
22
+ position: relative;
23
+ height: 320px;
24
+ overflow: hidden;
25
+ perspective: 1100px;
26
+ border-bottom: 1px dashed var(--line-2);
27
+ background: radial-gradient(110% 90% at 50% 0%, color-mix(in srgb, var(--foreground) 5%, transparent), transparent 70%), radial-gradient(circle, var(--line-2) 1px, transparent 1.4px) 0 0/18px 18px;
28
+ }
29
+ @media (max-width: 600px) {
30
+ .visual {
31
+ height: 280px;
32
+ }
33
+ }
34
+
35
+ .stage {
36
+ position: absolute;
37
+ inset: 0;
38
+ transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
39
+ transform-style: preserve-3d;
40
+ transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
41
+ }
42
+
43
+ .copy {
44
+ padding: 26px 28px 32px;
45
+ display: grid;
46
+ gap: 10px;
47
+ align-content: start;
48
+ }
49
+ .copy p:not(.lead) {
50
+ color: var(--foreground-2);
51
+ max-width: 48ch;
52
+ }
53
+
54
+ .meta {
55
+ display: flex;
56
+ align-items: center;
57
+ justify-content: space-between;
58
+ gap: 12px;
59
+ }
60
+
61
+ .number {
62
+ font-size: 12px;
63
+ color: var(--foreground-3);
64
+ }
65
+
66
+ .kinds {
67
+ display: flex;
68
+ flex-wrap: wrap;
69
+ justify-content: flex-end;
70
+ gap: 6px;
71
+ margin: 0;
72
+ padding: 0;
73
+ list-style: none;
74
+ }
75
+ .kinds li {
76
+ font-size: 11px;
77
+ padding: 4px 9px;
78
+ border-radius: 99px;
79
+ border: 1px solid var(--line-2);
80
+ color: var(--foreground-2);
81
+ }
82
+
83
+ .lead {
84
+ color: var(--foreground);
85
+ font-weight: 500;
86
+ }
@@ -0,0 +1,14 @@
1
+ import type { ReactNode } from "react";
2
+ export interface CellProperties {
3
+ /** Anchor id, so the service index can jump here. */
4
+ id: string;
5
+ /** The live visual on top. */
6
+ visual: ReactNode;
7
+ number: string;
8
+ kinds: readonly string[];
9
+ title: string;
10
+ lead: string;
11
+ text: string;
12
+ className?: string;
13
+ }
14
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../source/component/services/cell/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,cAAc;IAC7B,qDAAqD;IACrD,EAAE,EAAE,MAAM,CAAC;IACX,8BAA8B;IAC9B,MAAM,EAAE,SAAS,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../source/component/services/cell/type.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Brand assets floating in 3D: a logo being constructed on its guides, the colour palette and a type specimen.
3
+ */
4
+ export declare function DesignVisual(): import("react").JSX.Element;
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/services/design-visual/index.tsx"],"names":[],"mappings":"AAMA;;GAEG;AACH,wBAAgB,YAAY,gCA0C3B"}
@@ -0,0 +1,20 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { useInView } from "@sharadox/web-library/animation/in-view";
4
+ import styles from "./index.module.css";
5
+ const SWATCHES = ["var(--foreground)", "var(--foreground-2)", "var(--foreground-3)", "var(--surface)"];
6
+ /**
7
+ * Brand assets floating in 3D: a logo being constructed on its guides, the colour palette and a type specimen.
8
+ */
9
+ export function DesignVisual() {
10
+ const [container, on] = useInView();
11
+ return (_jsx("div", { ref: container, className: [styles.visual, on && styles.on].filter(Boolean).join(" "), "aria-hidden": true, children: _jsxs("div", { className: styles.scene, children: [_jsx("div", { className: `${styles.card} ${styles.palette}`, children: SWATCHES.map((color, index) => (_jsx("span", { style: { background: color, animationDelay: `${0.3 + index * 0.1}s` } }, color))) }), _jsxs("div", { className: `${styles.card} ${styles.type}`, children: [_jsx("span", { className: styles.specimen, children: "Aa" }), _jsx("span", { className: `${styles.caption} monospace`, children: "Geist" }), _jsx("span", { className: `${styles.glyphs} monospace`, children: "Rr Gg 01" })] }), _jsx("div", { className: `${styles.card} ${styles.mark}`, children: _jsxs("svg", { viewBox: "0 0 120 120", children: [_jsxs("g", { className: styles.guides, children: [_jsx("line", { x1: "0", y1: "60", x2: "120", y2: "60" }), _jsx("line", { x1: "60", y1: "0", x2: "60", y2: "120" }), _jsx("circle", { cx: "60", cy: "60", r: "46" }), _jsx("circle", { cx: "60", cy: "60", r: "28" }), _jsx("line", { x1: "14", y1: "14", x2: "106", y2: "106" }), _jsx("line", { x1: "106", y1: "14", x2: "14", y2: "106" })] }), _jsx("circle", { cx: "60", cy: "60", r: "34", className: styles.outer, pathLength: 1 }), _jsx("ellipse", { cx: "60", cy: "60", rx: "18", ry: "34", className: styles.inner, pathLength: 1 }), [
12
+ [60, 26],
13
+ [94, 60],
14
+ [60, 94],
15
+ [26, 60],
16
+ [42, 60],
17
+ [78, 60],
18
+ ].map(([x, y]) => (_jsx("rect", { x: x - 2.5, y: y - 2.5, width: "5", height: "5", className: styles.anchor }, `${x}-${y}`)))] }) })] }) }));
19
+ }
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/services/design-visual/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,MAAM,QAAQ,GAAG,CAAC,mBAAmB,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,gBAAgB,CAAC,CAAC;AAEvG;;GAEG;AACH,MAAM,UAAU,YAAY;IAC1B,MAAM,CAAC,SAAS,EAAE,EAAE,CAAC,GAAG,SAAS,EAAkB,CAAC;IACpD,OAAO,CACL,cAAK,GAAG,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,IAAI,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CA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AAI,EAAC,EAAE,EAAC,KAAK,EAAC,EAAE,EAAC,KAAK,GAAG,EAC1C,eAAM,EAAE,EAAC,KAAK,EAAC,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,KAAK,GAAG,IACxC,EACJ,iBAAQ,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,CAAC,EAAC,IAAI,EAAC,SAAS,EAAE,MAAM,CAAC,KAAK,EAAE,UAAU,EAAE,CAAC,GAAI,EACzE,kBAAS,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,SAAS,EAAE,MAAM,CAAC,KAAK,EAAE,UAAU,EAAE,CAAC,GAAI,EAClF;gCACC,CAAC,EAAE,EAAE,EAAE,CAAC;gCACR,CAAC,EAAE,EAAE,EAAE,CAAC;gCACR,CAAC,EAAE,EAAE,EAAE,CAAC;gCACR,CAAC,EAAE,EAAE,EAAE,CAAC;gCACR,CAAC,EAAE,EAAE,EAAE,CAAC;gCACR,CAAC,EAAE,EAAE,EAAE,CAAC;6BACT,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAChB,eAAwB,CAAC,EAAE,CAAE,GAAG,GAAG,EAAE,CAAC,EAAE,CAAE,GAAG,GAAG,EAAE,KAAK,EAAC,GAAG,EAAC,MAAM,EAAC,GAAG,EAAC,SAAS,EAAE,MAAM,CAAC,MAAM,IAApF,GAAG,CAAC,IAAI,CAAC,EAAE,CAA6E,CACpG,CAAC,IACE,GACF,IACF,GACF,CACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1,130 @@
1
+ .visual {
2
+ position: absolute;
3
+ inset: 0;
4
+ display: grid;
5
+ place-items: center;
6
+ perspective: 900px;
7
+ }
8
+
9
+ .scene {
10
+ position: relative;
11
+ width: 150px;
12
+ height: 190px;
13
+ transform-style: preserve-3d;
14
+ animation: sway 10s ease-in-out infinite;
15
+ }
16
+
17
+ @keyframes sway {
18
+ 0%, 100% {
19
+ transform: rotateX(12deg) rotateY(-16deg);
20
+ }
21
+ 50% {
22
+ transform: rotateX(6deg) rotateY(14deg);
23
+ }
24
+ }
25
+ .card {
26
+ position: absolute;
27
+ inset: 0;
28
+ border-radius: 14px;
29
+ border: 1px solid var(--line-2);
30
+ background: var(--card);
31
+ box-shadow: 0 30px 60px -20px color-mix(in srgb, var(--background) 90%, transparent);
32
+ }
33
+
34
+ .palette {
35
+ transform: translate3d(-110px, 6px, -70px) rotateY(24deg);
36
+ display: grid;
37
+ grid-template-rows: repeat(4, 1fr);
38
+ padding: 10px;
39
+ gap: 6px;
40
+ }
41
+ .palette span {
42
+ border-radius: 6px;
43
+ border: 1px solid var(--line);
44
+ transform-origin: left;
45
+ }
46
+ .on .palette span {
47
+ animation: fill-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
48
+ }
49
+
50
+ @keyframes fill-in {
51
+ from {
52
+ transform: scaleX(0);
53
+ }
54
+ }
55
+ .type {
56
+ transform: translate3d(110px, -6px, -50px) rotateY(-24deg);
57
+ display: grid;
58
+ align-content: center;
59
+ justify-items: center;
60
+ gap: 4px;
61
+ }
62
+
63
+ .specimen {
64
+ font-size: 64px;
65
+ font-weight: 600;
66
+ letter-spacing: -0.06em;
67
+ line-height: 1;
68
+ }
69
+
70
+ .caption {
71
+ font-size: 10px;
72
+ color: var(--foreground-2);
73
+ }
74
+
75
+ .glyphs {
76
+ margin-top: 8px;
77
+ font-size: 10px;
78
+ color: var(--foreground-3);
79
+ letter-spacing: 0.2em;
80
+ }
81
+
82
+ .mark {
83
+ transform: translateZ(40px);
84
+ display: grid;
85
+ place-items: center;
86
+ background: var(--background);
87
+ }
88
+ .mark svg {
89
+ width: 120px;
90
+ height: 120px;
91
+ overflow: visible;
92
+ }
93
+
94
+ .guides {
95
+ fill: none;
96
+ stroke: var(--line-2);
97
+ stroke-width: 0.6;
98
+ stroke-dasharray: 2 2;
99
+ }
100
+
101
+ .outer,
102
+ .inner {
103
+ fill: none;
104
+ stroke: var(--foreground);
105
+ stroke-width: 2.4;
106
+ stroke-dasharray: 1;
107
+ stroke-dashoffset: 0;
108
+ }
109
+ .on .outer,
110
+ .on .inner {
111
+ animation: draw-line 1.8s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
112
+ }
113
+
114
+ .inner {
115
+ stroke-width: 1.8;
116
+ }
117
+ .on .inner {
118
+ animation-delay: 0.6s;
119
+ }
120
+
121
+ @keyframes draw-line {
122
+ from {
123
+ stroke-dashoffset: 1;
124
+ }
125
+ }
126
+ .anchor {
127
+ fill: var(--background);
128
+ stroke: var(--foreground-2);
129
+ stroke-width: 0.8;
130
+ }
@@ -1,4 +1,4 @@
1
1
  import type { ServicesProperties } from "@sharadox/sharadox-web-library/component/services/type";
2
- /** "What we build": websites (wide), platforms and applications, each with a live visual. */
2
+ /** "What we do": the five disciplines as cells of one grid, each with a live visual. */
3
3
  export declare function Services({ locale }: ServicesProperties): import("react").JSX.Element;
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/services/index.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wDAAwD,CAAC;AAGjG,6FAA6F;AAC7F,wBAAgB,QAAQ,CAAC,EAAE,MAAM,EAAE,EAAE,kBAAkB,+BAyBtD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/services/index.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wDAAwD,CAAC;AAEjG,wFAAwF;AACxF,wBAAgB,QAAQ,CAAC,EAAE,MAAM,EAAE,EAAE,kBAAkB,+BAwCtD"}
@@ -1,21 +1,27 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Reveal } from "@sharadox/web-library/animation/reveal";
3
+ import { translate } from "@sharadox/web-library/internationalization/translate";
4
+ import { Cross } from "@sharadox/sharadox-web-library/component/cross";
3
5
  import { Section } from "@sharadox/sharadox-web-library/component/section";
4
6
  import { SectionHeading } from "@sharadox/sharadox-web-library/component/section-heading";
5
- import { SERVICES } from "@sharadox/sharadox-web-library/content/services";
6
- import { translate } from "@sharadox/web-library/internationalization/translate";
7
- import { ApplicationVisual } from "@sharadox/sharadox-web-library/component/services/application-visual";
8
- import { Card } from "@sharadox/sharadox-web-library/component/services/card";
9
- import styles from "./index.module.css";
7
+ import { CampaignVisual } from "@sharadox/sharadox-web-library/component/services/campaign-visual";
8
+ import { Cell } from "@sharadox/sharadox-web-library/component/services/cell";
9
+ import { DesignVisual } from "@sharadox/sharadox-web-library/component/services/design-visual";
10
+ import { MobileVisual } from "@sharadox/sharadox-web-library/component/services/mobile-visual";
10
11
  import { PlatformVisual } from "@sharadox/sharadox-web-library/component/services/platform-visual";
12
+ import { SocialVisual } from "@sharadox/sharadox-web-library/component/services/social-visual";
11
13
  import { WebVisual } from "@sharadox/sharadox-web-library/component/services/web-visual";
12
- /** "What we build": websites (wide), platforms and applications, each with a live visual. */
14
+ import { SERVICES } from "@sharadox/sharadox-web-library/content/services";
15
+ import styles from "./index.module.css";
16
+ /** "What we do": the five disciplines as cells of one grid, each with a live visual. */
13
17
  export function Services({ locale }) {
14
18
  const visuals = {
15
- web: _jsx(WebVisual, {}),
16
- platform: _jsx(PlatformVisual, {}),
17
- applications: _jsx(ApplicationVisual, { locale: locale }),
19
+ "web-application": (_jsxs("div", { className: styles.split, children: [_jsx(WebVisual, {}), _jsx(PlatformVisual, {})] })),
20
+ "mobile-application": _jsx(MobileVisual, { locale: locale }),
21
+ "graphic-design": _jsx(DesignVisual, {}),
22
+ "social-media": _jsx(SocialVisual, { locale: locale }),
23
+ "marketing-campaign": _jsx(CampaignVisual, { locale: locale }),
18
24
  };
19
- return (_jsxs(Section, { id: "services", children: [_jsx(SectionHeading, { eyebrow: translate(SERVICES.eyebrow, locale), title: translate(SERVICES.title, locale) }), _jsx("div", { className: styles.cards, children: SERVICES.items.map((service, index) => (_jsx(Reveal, { delay: index * 0.1, className: index === 0 ? styles.wide : undefined, children: _jsx(Card, { wide: index === 0, visual: visuals[service.key], tag: service.tag, title: translate(service.title, locale), lead: translate(service.lead, locale), text: translate(service.text, locale) }) }, service.key))) })] }));
25
+ return (_jsxs(Section, { id: "services", padded: false, children: [_jsx("div", { className: styles.heading, children: _jsx(SectionHeading, { eyebrow: translate(SERVICES.eyebrow, locale), title: translate(SERVICES.title, locale) }) }), _jsxs("div", { className: styles.grid, children: [_jsx(Cross, { corner: "top-left" }), _jsx(Cross, { corner: "top-right" }), SERVICES.items.map((service, index) => (_jsx("div", { className: styles[service.key], children: _jsx(Reveal, { delay: (index % 3) * 0.08, className: styles.reveal, children: _jsx(Cell, { id: service.key, visual: visuals[service.key], number: service.number, kinds: service.kinds[locale], title: translate(service.title, locale), lead: translate(service.lead, locale), text: translate(service.text, locale) }) }) }, service.key)))] })] }));
20
26
  }
21
27
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/services/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,wCAAwC,CAAC;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,kDAAkD,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,0DAA0D,CAAC;AAC1F,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAC3E,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,EAAE,iBAAiB,EAAE,MAAM,sEAAsE,CAAC;AACzG,OAAO,EAAE,IAAI,EAAE,MAAM,wDAAwD,CAAC;AAC9E,OAAO,MAAM,MAAM,qBAAqB,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,mEAAmE,CAA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* Cells share hairlines: the grid's background shows through 1px gaps. */
6
+ .grid {
7
+ position: relative;
2
8
  display: grid;
3
- grid-template-columns: 1fr 1fr;
4
- gap: 16px;
9
+ grid-template-columns: repeat(6, 1fr);
10
+ gap: 1px;
11
+ background: var(--line);
12
+ border-top: 1px solid var(--line);
13
+ }
14
+ .grid > div {
15
+ background: var(--background);
5
16
  }
6
- @media (max-width: 860px) {
7
- .cards {
17
+ @media (max-width: 960px) {
18
+ .grid {
19
+ grid-template-columns: 1fr 1fr;
20
+ }
21
+ }
22
+ @media (max-width: 640px) {
23
+ .grid {
8
24
  grid-template-columns: 1fr;
9
25
  }
10
26
  }
11
27
 
12
- .wide {
28
+ .reveal {
29
+ height: 100%;
30
+ }
31
+ .reveal > article {
32
+ height: 100%;
33
+ }
34
+
35
+ .web-application {
36
+ grid-column: span 4;
37
+ }
38
+ @media (max-width: 960px) {
39
+ .web-application {
40
+ grid-column: span 2;
41
+ }
42
+ }
43
+ @media (max-width: 640px) {
44
+ .web-application {
45
+ grid-column: auto;
46
+ }
47
+ }
48
+
49
+ .mobile-application,
50
+ .graphic-design,
51
+ .social-media,
52
+ .marketing-campaign {
13
53
  grid-column: span 2;
14
54
  }
15
- @media (max-width: 860px) {
16
- .wide {
55
+ @media (max-width: 960px) {
56
+ .mobile-application,
57
+ .graphic-design,
58
+ .social-media,
59
+ .marketing-campaign {
17
60
  grid-column: auto;
18
61
  }
19
62
  }
63
+
64
+ .split {
65
+ position: absolute;
66
+ inset: 0;
67
+ display: grid;
68
+ grid-template-columns: 1.25fr 1fr;
69
+ }
70
+ .split > * {
71
+ position: relative !important;
72
+ inset: auto !important;
73
+ }
74
+ .split > *:last-child {
75
+ border-left: 1px dashed var(--line-2);
76
+ }
77
+ @media (max-width: 640px) {
78
+ .split {
79
+ grid-template-columns: 1fr;
80
+ }
81
+ .split > *:last-child {
82
+ display: none !important;
83
+ }
84
+ }
@@ -0,0 +1,4 @@
1
+ import type { MobileVisualProperties } from "@sharadox/sharadox-web-library/component/services/mobile-visual/type";
2
+ /** A phone with business notifications sliding in. */
3
+ export declare function MobileVisual({ locale }: MobileVisualProperties): import("react").JSX.Element;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/services/mobile-visual/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sEAAsE,CAAC;AAEnH,sDAAsD;AACtD,wBAAgB,YAAY,CAAC,EAAE,MAAM,EAAE,EAAE,sBAAsB,+BA2B9D"}
@@ -4,7 +4,7 @@ import { useEffect, useState } from "react";
4
4
  import { SERVICES } from "@sharadox/sharadox-web-library/content/services";
5
5
  import styles from "./index.module.css";
6
6
  /** A phone with business notifications sliding in. */
7
- export function ApplicationVisual({ locale }) {
7
+ export function MobileVisual({ locale }) {
8
8
  const items = SERVICES.notifications[locale];
9
9
  const [tick, setTick] = useState(0);
10
10
  useEffect(() => {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/services/mobile-visual/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAC3E,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC,sDAAsD;AACtD,MAAM,UAAU,YAAY,CAAC,EAAE,MAAM,EAA0B;IAC7D,MAAM,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;IAC7C,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IACpC,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,KAAK,GAAG,WAAW,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;QACzE,OAAO,GAAG,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IACpC,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,MAAM,KAAK,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC,GAAG,KAAK,CAAC,MAAM,CAAE,CAAC,CAAC;IAC5E,OAAO,CACL,cAAK,SAAS,EAAE,MAAM,CAAC,MAAM,iCAC3B,eAAK,SAAS,EAAE,MAAM,CAAC,KAAK,aAC1B,cAAK,SAAS,EAAE,MAAM,CAAC,KAAK,GAAI,EAChC,cAAK,SAAS,EAAE,GAAG,MAAM,CAAC,IAAI,YAAY,qBAAY,EACtD,cAAK,SAAS,EAAE,MAAM,CAAC,KAAK,YACzB,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,CACpC,eAA6B,SAAS,EAAE,GAAG,MAAM,CAAC,IAAI,IAAI,MAAM,CAAC,OAAO,IAAI,EAAE,CAAC,IAAI,EAAE,EAAE,aACrF,eAAM,SAAS,EAAE,MAAM,CAAC,IAAI,GAAI,EAChC,gBAAM,SAAS,EAAE,MAAM,CAAC,IAAI,aAC1B,sBAAI,KAAK,GAAK,EACd,uBAAK,MAAM,GAAM,IACZ,KALC,GAAG,IAAI,IAAI,IAAI,EAAE,CAMrB,CACP,CAAC,GACE,IACF,GACF,CACP,CAAC;AACJ,CAAC"}
@@ -12,8 +12,11 @@
12
12
  margin-top: 70px;
13
13
  border-radius: 30px;
14
14
  border: 1px solid var(--line-2);
15
- background: linear-gradient(180deg, #111, #050505);
16
- box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.9);
15
+ background: linear-gradient(180deg, var(--surface), var(--card));
16
+ box-shadow: 0 40px 80px -20px color-mix(in srgb, var(--background) 90%, transparent);
17
+ transform: rotateY(-14deg) rotateX(8deg) rotateZ(2deg);
18
+ transform-style: preserve-3d;
19
+ animation: hover 8s ease-in-out infinite;
17
20
  padding: 34px 10px 0;
18
21
  }
19
22
 
@@ -25,8 +28,8 @@
25
28
  height: 16px;
26
29
  margin-left: -28px;
27
30
  border-radius: 10px;
28
- background: #000;
29
- border: 1px solid #1c1c1c;
31
+ background: var(--background);
32
+ border: 1px solid var(--line-2);
30
33
  }
31
34
 
32
35
  .time {
@@ -48,7 +51,8 @@
48
51
  align-items: center;
49
52
  padding: 8px 9px;
50
53
  border-radius: 12px;
51
- background: rgba(255, 255, 255, 0.07);
54
+ background: color-mix(in srgb, var(--foreground) 7%, transparent);
55
+ backdrop-filter: blur(4px);
52
56
  border: 1px solid var(--line);
53
57
  animation: note-in 0.6s var(--ease) both;
54
58
  }
@@ -65,7 +69,7 @@
65
69
  width: 20px;
66
70
  height: 20px;
67
71
  border-radius: 6px;
68
- background: #fff;
72
+ background: var(--foreground);
69
73
  flex: none;
70
74
  }
71
75
 
@@ -93,3 +97,8 @@
93
97
  transform: translateY(-12px) scale(0.96);
94
98
  }
95
99
  }
100
+ @keyframes hover {
101
+ 50% {
102
+ transform: rotateY(-8deg) rotateX(4deg) rotateZ(1deg) translateY(-8px);
103
+ }
104
+ }
@@ -0,0 +1,5 @@
1
+ import type { Locale } from "@sharadox/sharadox-web-library/utility/locale/type";
2
+ export interface MobileVisualProperties {
3
+ locale: Locale;
4
+ }
5
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../source/component/services/mobile-visual/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oDAAoD,CAAC;AAEjF,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,MAAM,CAAC;CAChB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../source/component/services/mobile-visual/type.ts"],"names":[],"mappings":""}
@@ -11,6 +11,6 @@ const CENTER_X = 170;
11
11
  const CENTER_Y = 132;
12
12
  /** Systems connected to one core, with data packets flowing between them. */
13
13
  export function PlatformVisual() {
14
- return (_jsx("div", { className: styles.visual, "aria-hidden": true, children: _jsxs("svg", { viewBox: "0 0 340 270", children: [_jsx("defs", { children: _jsxs("radialGradient", { id: "coreGlow", children: [_jsx("stop", { offset: "0", stopColor: "#fff", stopOpacity: ".35" }), _jsx("stop", { offset: "1", stopColor: "#fff", stopOpacity: "0" })] }) }), _jsx("circle", { cx: CENTER_X, cy: CENTER_Y, r: "70", fill: "url(#coreGlow)" }), NODES.map((node, index) => (_jsx("path", { id: `edge${index}`, d: `M${node.x},${node.y} Q${(node.x + CENTER_X) / 2 + (index % 2 ? 26 : -26)},${(node.y + CENTER_Y) / 2} ${CENTER_X},${CENTER_Y}`, className: styles.edge }, `path${index}`))), NODES.map((_, index) => (_jsx("circle", { r: "2.6", className: styles.packet, children: _jsx("animateMotion", { dur: `${2.2 + index * 0.35}s`, repeatCount: "indefinite", keyPoints: index % 2 ? "0;1" : "1;0", keyTimes: "0;1", calcMode: "linear", children: _jsx("mpath", { href: `#edge${index}` }) }) }, `packet${index}`))), _jsx("rect", { x: CENTER_X - 30, y: CENTER_Y - 16, width: "60", height: "32", rx: "9", className: styles.core }), _jsx("text", { x: CENTER_X, y: CENTER_Y + 4, className: styles.coreLabel, children: "core" }), NODES.map((node, index) => (_jsxs("g", { children: [_jsx("circle", { cx: node.x, cy: node.y, r: "5", className: styles.node }), _jsx("text", { x: node.x, y: node.y - 12, className: styles.nodeLabel, children: node.label })] }, `node${index}`)))] }) }));
14
+ return (_jsx("div", { className: styles.visual, "aria-hidden": true, children: _jsxs("svg", { viewBox: "0 0 340 270", children: [_jsx("defs", { children: _jsxs("radialGradient", { id: "platform-core-glow", children: [_jsx("stop", { offset: "0", stopColor: "var(--foreground)", stopOpacity: ".3" }), _jsx("stop", { offset: "1", stopColor: "var(--foreground)", stopOpacity: "0" })] }) }), _jsx("circle", { cx: CENTER_X, cy: CENTER_Y, r: "70", fill: "url(#platform-core-glow)" }), NODES.map((node, index) => (_jsx("path", { id: `platform-edge-${index}`, d: `M${node.x},${node.y} Q${(node.x + CENTER_X) / 2 + (index % 2 ? 26 : -26)},${(node.y + CENTER_Y) / 2} ${CENTER_X},${CENTER_Y}`, className: styles.edge }, `path${index}`))), NODES.map((_, index) => (_jsx("circle", { r: "2.6", className: styles.packet, children: _jsx("animateMotion", { dur: `${2.2 + index * 0.35}s`, repeatCount: "indefinite", keyPoints: index % 2 ? "0;1" : "1;0", keyTimes: "0;1", calcMode: "linear", children: _jsx("mpath", { href: `#platform-edge-${index}` }) }) }, `packet${index}`))), _jsx("rect", { x: CENTER_X - 30, y: CENTER_Y - 16, width: "60", height: "32", rx: "9", className: styles.core }), _jsx("text", { x: CENTER_X, y: CENTER_Y + 4, className: styles.coreLabel, children: "core" }), NODES.map((node, index) => (_jsxs("g", { children: [_jsx("circle", { cx: node.x, cy: node.y, r: "5", className: styles.node }), _jsx("text", { x: node.x, y: node.y - 12, className: styles.nodeLabel, children: node.label })] }, `node${index}`)))] }) }));
15
15
  }
16
16
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/services/platform-visual/index.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,MAAM,KAAK,GAAG;IACZ,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE;IACnC,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE;IACpC,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,G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,KAAK,EAAE,EAAE,CAAC,CAC1B,wBACE,iBAAQ,EAAE,EAAE,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC,EAAE,CAAC,EAAC,GAAG,EAAC,SAAS,EAAE,MAAM,CAAC,IAAI,GAAI,EAChE,eAAM,CAAC,EAAE,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,SAAS,EAAE,MAAM,CAAC,SAAS,YACzD,IAAI,CAAC,KAAK,GACN,KAJD,OAAO,KAAK,EAAE,CAKlB,CACL,CAAC,IACE,GACF,CACP,CAAC;AACJ,CAAC"}
@@ -12,30 +12,30 @@
12
12
 
13
13
  .edge {
14
14
  fill: none;
15
- stroke: rgba(255, 255, 255, 0.16);
15
+ stroke: var(--line-2);
16
16
  stroke-width: 1;
17
17
  stroke-dasharray: 3 4;
18
18
  }
19
19
 
20
20
  .packet {
21
- fill: #fff;
22
- filter: drop-shadow(0 0 4px #fff);
21
+ fill: var(--foreground);
22
+ filter: drop-shadow(0 0 4px var(--foreground));
23
23
  }
24
24
 
25
25
  .core {
26
- fill: #111;
27
- stroke: rgba(255, 255, 255, 0.5);
26
+ fill: var(--surface);
27
+ stroke: var(--foreground-3);
28
28
  }
29
29
 
30
30
  .coreLabel {
31
- fill: #fff;
31
+ fill: var(--foreground);
32
32
  font: 500 11px var(--monospace);
33
33
  text-anchor: middle;
34
34
  }
35
35
 
36
36
  .node {
37
- fill: #000;
38
- stroke: #fff;
37
+ fill: var(--background);
38
+ stroke: var(--foreground);
39
39
  stroke-width: 1.4;
40
40
  }
41
41
 
@@ -0,0 +1,4 @@
1
+ import type { SocialVisualProperties } from "@sharadox/sharadox-web-library/component/services/social-visual/type";
2
+ /** A growth chart drawing itself as the follower count climbs, beside a feed of posts filling in, in 3D. */
3
+ export declare function SocialVisual({ locale }: SocialVisualProperties): import("react").JSX.Element;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/services/social-visual/index.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sEAAsE,CAAC;AAKnH,4GAA4G;AAC5G,wBAAgB,YAAY,CAAC,EAAE,MAAM,EAAE,EAAE,sBAAsB,+BAiC9D"}
@@ -0,0 +1,17 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { useCountUp } from "@sharadox/web-library/animation/count-up";
4
+ import { useInView } from "@sharadox/web-library/animation/in-view";
5
+ import { languageTag } from "@sharadox/web-library/internationalization/locale";
6
+ import { translate } from "@sharadox/web-library/internationalization/translate";
7
+ import { SERVICES } from "@sharadox/sharadox-web-library/content/services";
8
+ import styles from "./index.module.css";
9
+ const LINE = "M0 86 C 30 84, 46 74, 70 70 S 112 66, 132 52 S 170 40, 196 30 S 232 14, 260 8";
10
+ const POSTS = Array.from({ length: 9 }, (_, index) => index);
11
+ /** A growth chart drawing itself as the follower count climbs, beside a feed of posts filling in, in 3D. */
12
+ export function SocialVisual({ locale }) {
13
+ const [container, on] = useInView();
14
+ const followers = useCountUp(12480, on, 2200);
15
+ return (_jsxs("div", { ref: container, className: [styles.visual, on && styles.on].filter(Boolean).join(" "), "aria-hidden": true, children: [_jsx("div", { className: styles.feed, children: POSTS.map((post) => (_jsx("span", { style: { animationDelay: `${0.2 + post * 0.09}s` } }, post))) }), _jsxs("div", { className: styles.panel, children: [_jsxs("div", { className: styles.header, children: [_jsx("span", { className: `${styles.label} monospace`, children: translate(SERVICES.visual.followers, locale) }), _jsx("span", { className: `${styles.growth} monospace`, children: "+38%" })] }), _jsx("span", { className: styles.count, children: followers.toLocaleString(languageTag(locale)) }), _jsxs("svg", { viewBox: "0 0 260 96", className: styles.chart, children: [_jsx("defs", { children: _jsxs("linearGradient", { id: "social-area", x1: "0", x2: "0", y1: "0", y2: "1", children: [_jsx("stop", { offset: "0", stopColor: "var(--foreground)", stopOpacity: "0.22" }), _jsx("stop", { offset: "1", stopColor: "var(--foreground)", stopOpacity: "0" })] }) }), [24, 48, 72].map((y) => (_jsx("line", { x1: "0", x2: "260", y1: y, y2: y, className: styles.gridLine }, y))), _jsx("path", { d: `${LINE} L 260 96 L 0 96 Z`, className: styles.area, fill: "url(#social-area)" }), _jsx("path", { d: LINE, className: styles.line, pathLength: 1 }), _jsx("circle", { cx: "260", cy: "8", r: "3.5", className: styles.dot })] })] })] }));
16
+ }
17
+ //# sourceMappingURL=index.js.map