@sharadox/sharadox-web-library 0.19.0 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (276) 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/capability/index.d.ts +1 -1
  7. package/distribution/component/capability/index.d.ts.map +1 -1
  8. package/distribution/component/capability/index.js +1 -1
  9. package/distribution/component/capability/index.js.map +1 -1
  10. package/distribution/component/capability/index.module.css +1 -1
  11. package/distribution/component/capability/index.module.scss +1 -1
  12. package/distribution/component/contact/form/chip/index.d.ts +4 -0
  13. package/distribution/component/contact/form/chip/index.d.ts.map +1 -0
  14. package/distribution/component/contact/form/chip/index.js +7 -0
  15. package/distribution/component/contact/form/chip/index.js.map +1 -0
  16. package/distribution/component/contact/form/chip/index.module.css +1 -0
  17. package/distribution/component/contact/form/chip/index.module.scss +59 -0
  18. package/distribution/component/contact/form/chip/type.d.ts +7 -0
  19. package/distribution/component/contact/form/chip/type.d.ts.map +1 -0
  20. package/distribution/component/contact/form/chip/type.js.map +1 -0
  21. package/distribution/component/contact/form/index.d.ts +5 -1
  22. package/distribution/component/contact/form/index.d.ts.map +1 -1
  23. package/distribution/component/contact/form/index.js +40 -5
  24. package/distribution/component/contact/form/index.js.map +1 -1
  25. package/distribution/component/contact/form/index.module.css +1 -1
  26. package/distribution/component/contact/form/index.module.scss +35 -60
  27. package/distribution/component/footer/index.d.ts +2 -3
  28. package/distribution/component/footer/index.d.ts.map +1 -1
  29. package/distribution/component/footer/index.js +4 -4
  30. package/distribution/component/footer/index.js.map +1 -1
  31. package/distribution/component/footer/index.module.css +1 -1
  32. package/distribution/component/footer/index.module.scss +75 -89
  33. package/distribution/component/process/index.d.ts.map +1 -1
  34. package/distribution/component/process/index.js +3 -2
  35. package/distribution/component/process/index.js.map +1 -1
  36. package/distribution/component/process/index.module.css +1 -1
  37. package/distribution/component/process/index.module.scss +4 -2
  38. package/distribution/component/service-card/index.d.ts +11 -0
  39. package/distribution/component/service-card/index.d.ts.map +1 -0
  40. package/distribution/component/service-card/index.js +24 -0
  41. package/distribution/component/service-card/index.js.map +1 -0
  42. package/distribution/component/service-card/index.module.css +1 -0
  43. package/distribution/component/service-card/index.module.scss +113 -0
  44. package/distribution/component/service-card/type.d.ts +10 -0
  45. package/distribution/component/service-card/type.d.ts.map +1 -0
  46. package/distribution/component/service-card/type.js.map +1 -0
  47. package/distribution/component/service-index/index.d.ts +1 -1
  48. package/distribution/component/service-index/index.d.ts.map +1 -1
  49. package/distribution/component/service-index/index.js +3 -2
  50. package/distribution/component/service-index/index.js.map +1 -1
  51. package/distribution/component/service-index/index.module.css +1 -1
  52. package/distribution/component/service-index/index.module.scss +4 -5
  53. package/distribution/component/service-object/application-programming-interface/index.d.ts +6 -0
  54. package/distribution/component/service-object/application-programming-interface/index.d.ts.map +1 -0
  55. package/distribution/component/service-object/application-programming-interface/index.js +11 -0
  56. package/distribution/component/service-object/application-programming-interface/index.js.map +1 -0
  57. package/distribution/component/service-object/application-programming-interface/index.module.css +1 -0
  58. package/distribution/component/service-object/application-programming-interface/index.module.scss +154 -0
  59. package/distribution/component/service-object/brand-awareness/index.d.ts +3 -0
  60. package/distribution/component/service-object/brand-awareness/index.d.ts.map +1 -0
  61. package/distribution/component/service-object/brand-awareness/index.js +8 -0
  62. package/distribution/component/service-object/brand-awareness/index.js.map +1 -0
  63. package/distribution/component/service-object/brand-awareness/index.module.css +1 -0
  64. package/distribution/component/service-object/brand-awareness/index.module.scss +89 -0
  65. package/distribution/component/service-object/branding/index.d.ts +3 -0
  66. package/distribution/component/service-object/branding/index.d.ts.map +1 -0
  67. package/distribution/component/service-object/branding/index.js +7 -0
  68. package/distribution/component/service-object/branding/index.js.map +1 -0
  69. package/distribution/component/service-object/branding/index.module.css +1 -0
  70. package/distribution/component/service-object/branding/index.module.scss +63 -0
  71. package/distribution/component/service-object/branding-design/index.d.ts +3 -0
  72. package/distribution/component/service-object/branding-design/index.d.ts.map +1 -0
  73. package/distribution/component/service-object/branding-design/index.js +7 -0
  74. package/distribution/component/service-object/branding-design/index.js.map +1 -0
  75. package/distribution/component/service-object/branding-design/index.module.css +1 -0
  76. package/distribution/component/service-object/branding-design/index.module.scss +61 -0
  77. package/distribution/component/service-object/content-management-system/index.d.ts +6 -0
  78. package/distribution/component/service-object/content-management-system/index.d.ts.map +1 -0
  79. package/distribution/component/service-object/content-management-system/index.js +10 -0
  80. package/distribution/component/service-object/content-management-system/index.js.map +1 -0
  81. package/distribution/component/service-object/content-management-system/index.module.css +1 -0
  82. package/distribution/component/service-object/content-management-system/index.module.scss +181 -0
  83. package/distribution/component/service-object/cuboid/index.d.ts +11 -0
  84. package/distribution/component/service-object/cuboid/index.d.ts.map +1 -0
  85. package/distribution/component/service-object/cuboid/index.js +15 -0
  86. package/distribution/component/service-object/cuboid/index.js.map +1 -0
  87. package/distribution/component/service-object/cuboid/index.module.css +1 -0
  88. package/distribution/component/service-object/cuboid/index.module.scss +61 -0
  89. package/distribution/component/service-object/cuboid/type.d.ts +10 -0
  90. package/distribution/component/service-object/cuboid/type.d.ts.map +1 -0
  91. package/distribution/component/service-object/cuboid/type.js.map +1 -0
  92. package/distribution/component/service-object/e-commerce/index.d.ts +3 -0
  93. package/distribution/component/service-object/e-commerce/index.d.ts.map +1 -0
  94. package/distribution/component/service-object/e-commerce/index.js +8 -0
  95. package/distribution/component/service-object/e-commerce/index.js.map +1 -0
  96. package/distribution/component/service-object/e-commerce/index.module.css +1 -0
  97. package/distribution/component/service-object/e-commerce/index.module.scss +78 -0
  98. package/distribution/component/service-object/index.d.ts +10 -0
  99. package/distribution/component/service-object/index.d.ts.map +1 -0
  100. package/distribution/component/service-object/index.js +45 -0
  101. package/distribution/component/service-object/index.js.map +1 -0
  102. package/distribution/component/service-object/index.module.css +1 -0
  103. package/distribution/component/service-object/index.module.scss +16 -0
  104. package/distribution/component/service-object/lead-generation/index.d.ts +3 -0
  105. package/distribution/component/service-object/lead-generation/index.d.ts.map +1 -0
  106. package/distribution/component/service-object/lead-generation/index.js +7 -0
  107. package/distribution/component/service-object/lead-generation/index.js.map +1 -0
  108. package/distribution/component/service-object/lead-generation/index.module.css +1 -0
  109. package/distribution/component/service-object/lead-generation/index.module.scss +82 -0
  110. package/distribution/component/service-object/platform/index.d.ts +3 -0
  111. package/distribution/component/service-object/platform/index.d.ts.map +1 -0
  112. package/distribution/component/service-object/platform/index.js +8 -0
  113. package/distribution/component/service-object/platform/index.js.map +1 -0
  114. package/distribution/component/service-object/platform/index.module.css +1 -0
  115. package/distribution/component/service-object/platform/index.module.scss +54 -0
  116. package/distribution/component/service-object/product-launch/index.d.ts +3 -0
  117. package/distribution/component/service-object/product-launch/index.d.ts.map +1 -0
  118. package/distribution/component/service-object/product-launch/index.js +8 -0
  119. package/distribution/component/service-object/product-launch/index.js.map +1 -0
  120. package/distribution/component/service-object/product-launch/index.module.css +1 -0
  121. package/distribution/component/service-object/product-launch/index.module.scss +110 -0
  122. package/distribution/component/service-object/progressive-web-application/index.d.ts +6 -0
  123. package/distribution/component/service-object/progressive-web-application/index.d.ts.map +1 -0
  124. package/distribution/component/service-object/progressive-web-application/index.js +25 -0
  125. package/distribution/component/service-object/progressive-web-application/index.js.map +1 -0
  126. package/distribution/component/service-object/progressive-web-application/index.module.css +1 -0
  127. package/distribution/component/service-object/progressive-web-application/index.module.scss +179 -0
  128. package/distribution/component/service-object/rebranding/index.d.ts +3 -0
  129. package/distribution/component/service-object/rebranding/index.d.ts.map +1 -0
  130. package/distribution/component/service-object/rebranding/index.js +8 -0
  131. package/distribution/component/service-object/rebranding/index.js.map +1 -0
  132. package/distribution/component/service-object/rebranding/index.module.css +1 -0
  133. package/distribution/component/service-object/rebranding/index.module.scss +76 -0
  134. package/distribution/component/service-object/sales-generation/index.d.ts +3 -0
  135. package/distribution/component/service-object/sales-generation/index.d.ts.map +1 -0
  136. package/distribution/component/service-object/sales-generation/index.js +8 -0
  137. package/distribution/component/service-object/sales-generation/index.js.map +1 -0
  138. package/distribution/component/service-object/sales-generation/index.module.css +1 -0
  139. package/distribution/component/service-object/sales-generation/index.module.scss +65 -0
  140. package/distribution/component/service-object/social-media-strategy/index.d.ts +6 -0
  141. package/distribution/component/service-object/social-media-strategy/index.d.ts.map +1 -0
  142. package/distribution/component/service-object/social-media-strategy/index.js +14 -0
  143. package/distribution/component/service-object/social-media-strategy/index.js.map +1 -0
  144. package/distribution/component/service-object/social-media-strategy/index.module.css +1 -0
  145. package/distribution/component/service-object/social-media-strategy/index.module.scss +201 -0
  146. package/distribution/component/service-object/type.d.ts +6 -0
  147. package/distribution/component/service-object/type.d.ts.map +1 -0
  148. package/distribution/component/service-object/type.js.map +1 -0
  149. package/distribution/component/service-object/website/index.d.ts +3 -0
  150. package/distribution/component/service-object/website/index.d.ts.map +1 -0
  151. package/distribution/component/service-object/website/index.js +7 -0
  152. package/distribution/component/service-object/website/index.js.map +1 -0
  153. package/distribution/component/service-object/website/index.module.css +1 -0
  154. package/distribution/component/service-object/website/index.module.scss +73 -0
  155. package/distribution/component/service-unlisted/index.d.ts +10 -0
  156. package/distribution/component/service-unlisted/index.d.ts.map +1 -0
  157. package/distribution/component/service-unlisted/index.js +20 -0
  158. package/distribution/component/service-unlisted/index.js.map +1 -0
  159. package/distribution/component/service-unlisted/index.module.css +1 -0
  160. package/distribution/component/service-unlisted/index.module.scss +28 -0
  161. package/distribution/component/{services/social-visual → service-unlisted}/type.d.ts +1 -1
  162. package/distribution/component/service-unlisted/type.d.ts.map +1 -0
  163. package/distribution/component/service-unlisted/type.js.map +1 -0
  164. package/distribution/component/services/index.d.ts +5 -1
  165. package/distribution/component/services/index.d.ts.map +1 -1
  166. package/distribution/component/services/index.js +8 -17
  167. package/distribution/component/services/index.js.map +1 -1
  168. package/distribution/component/services/index.module.css +1 -1
  169. package/distribution/component/services/index.module.scss +53 -43
  170. package/distribution/component/structured-data/index.d.ts +1 -1
  171. package/distribution/component/structured-data/index.d.ts.map +1 -1
  172. package/distribution/component/structured-data/index.js +17 -12
  173. package/distribution/component/structured-data/index.js.map +1 -1
  174. package/distribution/content/contact/index.d.ts +140 -34
  175. package/distribution/content/contact/index.d.ts.map +1 -1
  176. package/distribution/content/contact/index.js +42 -10
  177. package/distribution/content/contact/index.js.map +1 -1
  178. package/distribution/content/hero/index.d.ts +1 -1
  179. package/distribution/content/hero/index.js +1 -1
  180. package/distribution/content/hero/index.js.map +1 -1
  181. package/distribution/content/services/index.d.ts +330 -133
  182. package/distribution/content/services/index.d.ts.map +1 -1
  183. package/distribution/content/services/index.js +219 -117
  184. package/distribution/content/services/index.js.map +1 -1
  185. package/distribution/content/site/index.d.ts.map +1 -1
  186. package/distribution/content/site/index.js +18 -10
  187. package/distribution/content/site/index.js.map +1 -1
  188. package/distribution/style/object/index.scss +28 -0
  189. package/distribution/style/token/index.scss +3 -1
  190. package/distribution/utility/contact-problem/index.d.ts +13 -0
  191. package/distribution/utility/contact-problem/index.d.ts.map +1 -0
  192. package/distribution/utility/contact-problem/index.js +23 -0
  193. package/distribution/utility/contact-problem/index.js.map +1 -0
  194. package/distribution/utility/llms-text/index.js +1 -1
  195. package/distribution/utility/llms-text/index.js.map +1 -1
  196. package/llms.txt +6 -3
  197. package/package.json +2 -2
  198. package/distribution/component/service-action/index.d.ts +0 -10
  199. package/distribution/component/service-action/index.d.ts.map +0 -1
  200. package/distribution/component/service-action/index.js +0 -18
  201. package/distribution/component/service-action/index.js.map +0 -1
  202. package/distribution/component/service-action/index.module.css +0 -1
  203. package/distribution/component/service-action/index.module.scss +0 -6
  204. package/distribution/component/service-action/type.d.ts +0 -7
  205. package/distribution/component/service-action/type.d.ts.map +0 -1
  206. package/distribution/component/service-action/type.js.map +0 -1
  207. package/distribution/component/services/campaign-visual/index.d.ts +0 -4
  208. package/distribution/component/services/campaign-visual/index.d.ts.map +0 -1
  209. package/distribution/component/services/campaign-visual/index.js +0 -19
  210. package/distribution/component/services/campaign-visual/index.js.map +0 -1
  211. package/distribution/component/services/campaign-visual/index.module.css +0 -1
  212. package/distribution/component/services/campaign-visual/index.module.scss +0 -125
  213. package/distribution/component/services/campaign-visual/stage/index.d.ts +0 -4
  214. package/distribution/component/services/campaign-visual/stage/index.d.ts.map +0 -1
  215. package/distribution/component/services/campaign-visual/stage/index.js +0 -11
  216. package/distribution/component/services/campaign-visual/stage/index.js.map +0 -1
  217. package/distribution/component/services/campaign-visual/stage/type.d.ts +0 -10
  218. package/distribution/component/services/campaign-visual/stage/type.d.ts.map +0 -1
  219. package/distribution/component/services/campaign-visual/stage/type.js.map +0 -1
  220. package/distribution/component/services/campaign-visual/type.d.ts +0 -5
  221. package/distribution/component/services/campaign-visual/type.d.ts.map +0 -1
  222. package/distribution/component/services/campaign-visual/type.js.map +0 -1
  223. package/distribution/component/services/cell/index.d.ts +0 -7
  224. package/distribution/component/services/cell/index.d.ts.map +0 -1
  225. package/distribution/component/services/cell/index.js +0 -16
  226. package/distribution/component/services/cell/index.js.map +0 -1
  227. package/distribution/component/services/cell/index.module.css +0 -1
  228. package/distribution/component/services/cell/index.module.scss +0 -81
  229. package/distribution/component/services/cell/type.d.ts +0 -16
  230. package/distribution/component/services/cell/type.d.ts.map +0 -1
  231. package/distribution/component/services/cell/type.js.map +0 -1
  232. package/distribution/component/services/design-visual/index.d.ts +0 -5
  233. package/distribution/component/services/design-visual/index.d.ts.map +0 -1
  234. package/distribution/component/services/design-visual/index.js +0 -21
  235. package/distribution/component/services/design-visual/index.js.map +0 -1
  236. package/distribution/component/services/design-visual/index.module.css +0 -1
  237. package/distribution/component/services/design-visual/index.module.scss +0 -119
  238. package/distribution/component/services/mobile-visual/index.d.ts +0 -4
  239. package/distribution/component/services/mobile-visual/index.d.ts.map +0 -1
  240. package/distribution/component/services/mobile-visual/index.js +0 -18
  241. package/distribution/component/services/mobile-visual/index.js.map +0 -1
  242. package/distribution/component/services/mobile-visual/index.module.css +0 -1
  243. package/distribution/component/services/mobile-visual/index.module.scss +0 -93
  244. package/distribution/component/services/mobile-visual/type.d.ts +0 -5
  245. package/distribution/component/services/mobile-visual/type.d.ts.map +0 -1
  246. package/distribution/component/services/mobile-visual/type.js.map +0 -1
  247. package/distribution/component/services/platform-visual/index.d.ts +0 -3
  248. package/distribution/component/services/platform-visual/index.d.ts.map +0 -1
  249. package/distribution/component/services/platform-visual/index.js +0 -16
  250. package/distribution/component/services/platform-visual/index.js.map +0 -1
  251. package/distribution/component/services/platform-visual/index.module.css +0 -1
  252. package/distribution/component/services/platform-visual/index.module.scss +0 -39
  253. package/distribution/component/services/social-visual/index.d.ts +0 -4
  254. package/distribution/component/services/social-visual/index.d.ts.map +0 -1
  255. package/distribution/component/services/social-visual/index.js +0 -18
  256. package/distribution/component/services/social-visual/index.js.map +0 -1
  257. package/distribution/component/services/social-visual/index.module.css +0 -1
  258. package/distribution/component/services/social-visual/index.module.scss +0 -123
  259. package/distribution/component/services/social-visual/type.d.ts.map +0 -1
  260. package/distribution/component/services/social-visual/type.js +0 -2
  261. package/distribution/component/services/social-visual/type.js.map +0 -1
  262. package/distribution/component/services/web-visual/index.d.ts +0 -3
  263. package/distribution/component/services/web-visual/index.d.ts.map +0 -1
  264. package/distribution/component/services/web-visual/index.js +0 -26
  265. package/distribution/component/services/web-visual/index.js.map +0 -1
  266. package/distribution/component/services/web-visual/index.module.css +0 -1
  267. package/distribution/component/services/web-visual/index.module.scss +0 -133
  268. package/distribution/content/services/type.d.ts +0 -8
  269. package/distribution/content/services/type.d.ts.map +0 -1
  270. package/distribution/content/services/type.js +0 -2
  271. package/distribution/content/services/type.js.map +0 -1
  272. /package/distribution/component/{service-action → contact/form/chip}/type.js +0 -0
  273. /package/distribution/component/{services/campaign-visual/stage → service-card}/type.js +0 -0
  274. /package/distribution/component/{services/campaign-visual → service-object/cuboid}/type.js +0 -0
  275. /package/distribution/component/{services/cell → service-object}/type.js +0 -0
  276. /package/distribution/component/{services/mobile-visual → service-unlisted}/type.js +0 -0
@@ -1,119 +0,0 @@
1
- @use "style/token" as *;
2
-
3
- .visual {
4
- @include fill-center;
5
- perspective: 900px;
6
- }
7
- .scene {
8
- position: relative;
9
- width: 150px;
10
- height: 190px;
11
- transform-style: preserve-3d;
12
- animation: sway 10s ease-in-out infinite;
13
- }
14
- @keyframes sway {
15
- 0%,
16
- 100% {
17
- transform: rotateX(12deg) rotateY(-16deg);
18
- }
19
- 50% {
20
- transform: rotateX(6deg) rotateY(14deg);
21
- }
22
- }
23
- .card {
24
- position: absolute;
25
- inset: 0;
26
- border-radius: 14px;
27
- border: 1px solid var(--line-2);
28
- background: var(--card);
29
- box-shadow: 0 30px 60px -20px shade(90%);
30
- }
31
- .palette {
32
- transform: translate3d(-110px, 6px, -70px) rotateY(24deg);
33
- display: grid;
34
- grid-template-rows: repeat(4, 1fr);
35
- padding: 10px;
36
- gap: 6px;
37
- span {
38
- border-radius: 6px;
39
- border: 1px solid var(--line);
40
- transform-origin: left;
41
- .on & {
42
- animation: fill-in 0.8s $ease both;
43
- @include skip-entrance;
44
- }
45
- }
46
- }
47
- @keyframes fill-in {
48
- from {
49
- transform: scaleX(0);
50
- }
51
- }
52
- .type {
53
- transform: translate3d(110px, -6px, -50px) rotateY(-24deg);
54
- display: grid;
55
- align-content: center;
56
- justify-items: center;
57
- gap: 4px;
58
- }
59
- .specimen {
60
- font-size: 64px;
61
- font-weight: 600;
62
- letter-spacing: -0.06em;
63
- line-height: 1;
64
- }
65
- .caption {
66
- font-size: 10px;
67
- color: var(--foreground-2);
68
- }
69
- .glyphs {
70
- margin-top: 8px;
71
- font-size: 10px;
72
- color: var(--foreground-3);
73
- letter-spacing: 0.2em;
74
- }
75
- .mark {
76
- transform: translateZ(40px);
77
- display: grid;
78
- place-items: center;
79
- background: var(--background);
80
- svg {
81
- width: 120px;
82
- height: 120px;
83
- overflow: visible;
84
- }
85
- }
86
- .guides {
87
- fill: none;
88
- stroke: var(--line-2);
89
- stroke-width: 0.6;
90
- stroke-dasharray: 2 2;
91
- }
92
- .outer,
93
- .inner {
94
- fill: none;
95
- stroke: var(--foreground);
96
- stroke-width: 2.4;
97
- stroke-dasharray: 1;
98
- stroke-dashoffset: 0;
99
- .on & {
100
- animation: draw-line 1.8s 0.2s $ease both;
101
- @include skip-entrance;
102
- }
103
- }
104
- .inner {
105
- stroke-width: 1.8;
106
- .on & {
107
- animation-delay: 0.6s;
108
- }
109
- }
110
- @keyframes draw-line {
111
- from {
112
- stroke-dashoffset: 1;
113
- }
114
- }
115
- .anchor {
116
- fill: var(--background);
117
- stroke: var(--foreground-2);
118
- stroke-width: 0.8;
119
- }
@@ -1,4 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/services/mobile-visual/index.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sEAAsE,CAAC;AAEnH,sDAAsD;AACtD,wBAAgB,YAAY,CAAC,EAAE,MAAM,EAAE,EAAE,sBAAsB,+BA8B9D"}
@@ -1,18 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { useEffect, useState } from "react";
4
- import { SERVICES } from "@sharadox/sharadox-web-library/content/services";
5
- import { classNames } from "@sharadox/web-library/class-name";
6
- import styles from "./index.module.css";
7
- /** A phone with business notifications sliding in. */
8
- export function MobileVisual({ locale }) {
9
- const items = SERVICES.notifications[locale];
10
- const [tick, setTick] = useState(0);
11
- useEffect(() => {
12
- const timer = setInterval(() => setTick((current) => current + 1), 1800);
13
- return () => clearInterval(timer);
14
- }, []);
15
- const shown = [0, 1, 2].map((slot) => items[(tick + slot) % items.length]);
16
- return (_jsx("div", { className: styles.visual, "aria-hidden": true, children: _jsxs("div", { className: styles.phone, children: [_jsx("div", { className: styles.notch }), _jsx("div", { className: `${styles.time} monospace`, children: "9:41" }), _jsx("div", { className: styles.notes, children: shown.map(([title, detail], slot) => (_jsxs("div", { className: classNames(styles.note, slot === 1 && styles.note1, slot === 2 && styles.note2), children: [_jsx("span", { className: styles.icon }), _jsxs("span", { className: styles.text, children: [_jsx("b", { children: title }), _jsx("em", { children: detail })] })] }, `${tick}-${slot}`))) })] }) }));
17
- }
18
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
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,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,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,eAEE,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,KAAK,CAAC,IAAI,MAAM,CAAC,KAAK,EAAE,IAAI,KAAK,CAAC,IAAI,MAAM,CAAC,KAAK,CAAC,aAE1F,eAAM,SAAS,EAAE,MAAM,CAAC,IAAI,GAAI,EAChC,gBAAM,SAAS,EAAE,MAAM,CAAC,IAAI,aAC1B,sBAAI,KAAK,GAAK,EACd,uBAAK,MAAM,GAAM,IACZ,KAPF,GAAG,IAAI,IAAI,IAAI,EAAE,CAQlB,CACP,CAAC,GACE,IACF,GACF,CACP,CAAC;AACJ,CAAC"}
@@ -1 +0,0 @@
1
- .visual{position:absolute;inset:0;display:grid;place-items:center}.phone{position:relative;width:168px;height:300px;margin-top:70px;border-radius:30px;border:1px solid var(--line-2);background:linear-gradient(180deg, var(--surface), var(--card));box-shadow:0 40px 80px -20px color-mix(in srgb, var(--background) 90%, transparent);transform:rotateY(-14deg) rotateX(8deg) rotateZ(2deg);transform-style:preserve-3d;animation:hover 8s ease-in-out infinite;padding:34px 10px 0}.notch{position:absolute;top:9px;left:50%;width:56px;height:16px;margin-left:-28px;border-radius:10px;background:var(--background);border:1px solid var(--line-2)}.time{text-align:center;font-size:26px;font-weight:500;letter-spacing:-0.04em;margin:4px 0 12px}.notes{display:grid;gap:7px}.note{display:flex;gap:8px;align-items:center;padding:8px 9px;border-radius:12px;background:color-mix(in srgb, var(--foreground) 7%, transparent);backdrop-filter:blur(4px);border:1px solid var(--line);animation:note-in .6s var(--ease) both}.note1{opacity:.7}.note2{opacity:.4}.icon{width:20px;height:20px;border-radius:6px;background:var(--foreground);flex:none}.text{display:grid;line-height:1.25;min-width:0}.text b{font-size:10.5px;font-weight:600}.text em{font-style:normal;font-size:9.5px;color:var(--foreground-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@keyframes note-in{from{opacity:0;transform:translateY(-12px) scale(0.96)}}@keyframes hover{50%{transform:rotateY(-8deg) rotateX(4deg) rotateZ(1deg) translateY(-8px)}}
@@ -1,93 +0,0 @@
1
- @use "style/token" as *;
2
-
3
- .visual {
4
- @include fill-center;
5
- }
6
- .phone {
7
- position: relative;
8
- width: 168px;
9
- height: 300px;
10
- margin-top: 70px;
11
- border-radius: 30px;
12
- border: 1px solid var(--line-2);
13
- background: linear-gradient(180deg, var(--surface), var(--card));
14
- box-shadow: 0 40px 80px -20px shade(90%);
15
- transform: rotateY(-14deg) rotateX(8deg) rotateZ(2deg);
16
- transform-style: preserve-3d;
17
- animation: hover 8s ease-in-out infinite;
18
- padding: 34px 10px 0;
19
- }
20
- .notch {
21
- position: absolute;
22
- top: 9px;
23
- left: 50%;
24
- width: 56px;
25
- height: 16px;
26
- margin-left: -28px;
27
- border-radius: 10px;
28
- background: var(--background);
29
- border: 1px solid var(--line-2);
30
- }
31
- .time {
32
- text-align: center;
33
- font-size: 26px;
34
- font-weight: 500;
35
- letter-spacing: -0.04em;
36
- margin: 4px 0 12px;
37
- }
38
- .notes {
39
- display: grid;
40
- gap: 7px;
41
- }
42
- .note {
43
- display: flex;
44
- gap: 8px;
45
- align-items: center;
46
- padding: 8px 9px;
47
- border-radius: 12px;
48
- background: tint(7%);
49
- backdrop-filter: blur(4px);
50
- border: 1px solid var(--line);
51
- animation: note-in 0.6s var(--ease) both;
52
- }
53
- .note1 {
54
- opacity: 0.7;
55
- }
56
- .note2 {
57
- opacity: 0.4;
58
- }
59
- .icon {
60
- width: 20px;
61
- height: 20px;
62
- border-radius: 6px;
63
- background: var(--foreground);
64
- flex: none;
65
- }
66
- .text {
67
- display: grid;
68
- line-height: 1.25;
69
- min-width: 0;
70
- b {
71
- font-size: 10.5px;
72
- font-weight: 600;
73
- }
74
- em {
75
- font-style: normal;
76
- font-size: 9.5px;
77
- color: var(--foreground-2);
78
- white-space: nowrap;
79
- overflow: hidden;
80
- text-overflow: ellipsis;
81
- }
82
- }
83
- @keyframes note-in {
84
- from {
85
- opacity: 0;
86
- transform: translateY(-12px) scale(0.96);
87
- }
88
- }
89
- @keyframes hover {
90
- 50% {
91
- transform: rotateY(-8deg) rotateX(4deg) rotateZ(1deg) translateY(-8px);
92
- }
93
- }
@@ -1,5 +0,0 @@
1
- import type { Locale } from "@sharadox/sharadox-web-library/content/locale/type";
2
- export interface MobileVisualProperties {
3
- locale: Locale;
4
- }
5
- //# sourceMappingURL=type.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../source/component/services/mobile-visual/type.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- /** Systems connected to one core, with data packets flowing between them. */
2
- export declare function PlatformVisual(): import("react").JSX.Element;
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/services/platform-visual/index.tsx"],"names":[],"mappings":"AAYA,6EAA6E;AAC7E,wBAAgB,cAAc,gCA+C7B"}
@@ -1,16 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import styles from "./index.module.css";
3
- const NODES = [
4
- { x: 60, y: 46, label: "bookings" },
5
- { x: 260, y: 40, label: "payments" },
6
- { x: 292, y: 150, label: "inventory" },
7
- { x: 196, y: 228, label: "customers" },
8
- { x: 48, y: 186, label: "analytics" },
9
- ];
10
- const CENTER_X = 170;
11
- const CENTER_Y = 132;
12
- /** Systems connected to one core, with data packets flowing between them. */
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: "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
- }
16
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
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,GAAG,EAAE,KAAK,EAAE,WAAW,EAAE;IACtC,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,WAAW,EAAE;IACtC,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,WAAW,EAAE;CACtC,CAAC;AACF,MAAM,QAAQ,GAAG,GAAG,CAAC;AACrB,MAAM,QAAQ,GAAG,GAAG,CAAC;AAErB,6EAA6E;AAC7E,MAAM,UAAU,cAAc;IAC5B,OAAO,CACL,cAAK,SAAS,EAAE,MAAM,CAAC,MAAM,iCAC3B,eAAK,OAAO,EAAC,aAAa,aACxB,yBACE,0BAAgB,EAAE,EAAC,oBAAoB,aACrC,eAAM,MAAM,EAAC,GAAG,EAAC,SAAS,EAAC,mBAAmB,EAAC,WAAW,EAAC,IAAI,GAAG,EAClE,eAAM,MAAM,EAAC,GAAG,EAAC,SAAS,EAAC,mBAAmB,EAAC,WAAW,EAAC,GAAG,GAAG,IAClD,GACZ,EACP,iBAAQ,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAC,IAAI,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Q,EAAE,CAAC,EAAE,QAAQ,GAAG,CAAC,EAAE,SAAS,EAAE,MAAM,CAAC,SAAS,qBAExD,EACN,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,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"}
@@ -1 +0,0 @@
1
- .visual{position:absolute;inset:0;display:grid;place-items:center}.visual svg{width:min(92%,420px);height:auto;overflow:visible}.edge{fill:none;stroke:var(--line-2);stroke-width:1;stroke-dasharray:3 4}.packet{fill:var(--foreground);filter:drop-shadow(0 0 4px var(--foreground))}.core{fill:var(--surface);stroke:var(--foreground-3)}.coreLabel{fill:var(--foreground);font:500 11px var(--monospace);text-anchor:middle}.node{fill:var(--background);stroke:var(--foreground);stroke-width:1.4}.nodeLabel{fill:var(--foreground-2);font:400 10.5px var(--monospace);text-anchor:middle}
@@ -1,39 +0,0 @@
1
- @use "style/token" as *;
2
-
3
- .visual {
4
- @include fill-center;
5
- svg {
6
- width: min(92%, 420px);
7
- height: auto;
8
- overflow: visible;
9
- }
10
- }
11
- .edge {
12
- fill: none;
13
- stroke: var(--line-2);
14
- stroke-width: 1;
15
- stroke-dasharray: 3 4;
16
- }
17
- .packet {
18
- fill: var(--foreground);
19
- filter: drop-shadow(0 0 4px var(--foreground));
20
- }
21
- .core {
22
- fill: var(--surface);
23
- stroke: var(--foreground-3);
24
- }
25
- .coreLabel {
26
- fill: var(--foreground);
27
- font: 500 11px var(--monospace);
28
- text-anchor: middle;
29
- }
30
- .node {
31
- fill: var(--background);
32
- stroke: var(--foreground);
33
- stroke-width: 1.4;
34
- }
35
- .nodeLabel {
36
- fill: var(--foreground-2);
37
- font: 400 10.5px var(--monospace);
38
- text-anchor: middle;
39
- }
@@ -1,4 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/services/social-visual/index.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sEAAsE,CAAC;AAKnH,4GAA4G;AAC5G,wBAAgB,YAAY,CAAC,EAAE,MAAM,EAAE,EAAE,sBAAsB,+BAiC9D"}
@@ -1,18 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { classNames } from "@sharadox/web-library/class-name";
4
- import { useCountUp } from "@sharadox/animation-web-library/count-up";
5
- import { useInView } from "@sharadox/animation-web-library/in-view";
6
- import { LOCALES } from "@sharadox/sharadox-web-library/content/locale";
7
- import { translate } from "@sharadox/internationalization-web-library/translate";
8
- import { SERVICES } from "@sharadox/sharadox-web-library/content/services";
9
- import styles from "./index.module.css";
10
- 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";
11
- const POSTS = Array.from({ length: 9 }, (_, index) => index);
12
- /** A growth chart drawing itself as the follower count climbs, beside a feed of posts filling in, in 3D. */
13
- export function SocialVisual({ locale }) {
14
- const [container, on] = useInView();
15
- const followers = useCountUp(12480, on, 2200);
16
- return (_jsxs("div", { ref: container, className: classNames(styles.visual, on && styles.on), "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(LOCALES.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 })] })] })] }));
17
- }
18
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/services/social-visual/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,0CAA0C,CAAC;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,OAAO,EAAE,MAAM,+CAA+C,CAAC;AACxE,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAC3E,OAAO,MAAM,MAAM,qBAAqB,CAAC;A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AC/C,yBACE,0BAAgB,EAAE,EAAC,aAAa,EAAC,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,aAC1D,eAAM,MAAM,EAAC,GAAG,EAAC,SAAS,EAAC,mBAAmB,EAAC,WAAW,EAAC,MAAM,GAAG,EACpE,eAAM,MAAM,EAAC,GAAG,EAAC,SAAS,EAAC,mBAAmB,EAAC,WAAW,EAAC,GAAG,GAAG,IAClD,GACZ,EACN,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CACvB,eAAc,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,KAAK,EAAC,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,SAAS,EAAE,MAAM,CAAC,QAAQ,IAA3D,CAAC,CAA8D,CAC3E,CAAC,EACF,eAAM,CAAC,EAAE,GAAG,IAAI,oBAAoB,EAAE,SAAS,EAAE,MAAM,CAAC,IAAI,EAAE,IAAI,EAAC,mBAAmB,GAAG,EACzF,eAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,CAAC,IAAI,EAAE,UAAU,EAAE,CAAC,GAAI,EACxD,iBAAQ,EAAE,EAAC,KAAK,EAAC,EAAE,EAAC,GAAG,EAAC,CAAC,EAAC,KAAK,EAAC,SAAS,EAAE,MAAM,CAAC,GAAG,GAAI,IACrD,IACF,IACF,CACP,CAAC;AACJ,CAAC"}
@@ -1 +0,0 @@
1
- .visual{position:absolute;inset:0;display:grid;place-items:center;perspective:900px}.feed{position:absolute;right:6%;top:50%;width:132px;display:grid;grid-template-columns:repeat(3, 1fr);gap:5px;transform:translateY(-56%) rotateY(-28deg) rotateX(10deg) translateZ(-40px)}.feed span{aspect-ratio:1;border-radius:5px;border:1px solid var(--line-2);background:linear-gradient(135deg, color-mix(in srgb, var(--foreground) 14%, transparent), color-mix(in srgb, var(--foreground) 3%, transparent))}.on .feed span{animation:pop .6s cubic-bezier(0.22, 1, 0.36, 1) both}:global(:root[data-soft-navigation]) .on .feed span{animation-duration:0s !important;animation-delay:0s !important}.feed span:nth-child(3n+2){background:linear-gradient(135deg, color-mix(in srgb, var(--foreground) 28%, transparent), color-mix(in srgb, var(--foreground) 8%, transparent))}@keyframes pop{from{opacity:0;transform:scale(0.6)}}.panel{position:relative;width:min(72%,290px);margin-right:22%;padding:16px 16px 10px;border-radius:14px;border:1px solid var(--line-2);background:color-mix(in srgb, var(--background) 80%, transparent);backdrop-filter:blur(8px);box-shadow:0 30px 60px -24px color-mix(in srgb, var(--background) 90%, transparent);transform:rotateY(10deg) rotateX(6deg) translateZ(30px)}.header{display:flex;justify-content:space-between;align-items:center}.label{font-size:10.5px;text-transform:uppercase;letter-spacing:.05em;color:var(--foreground-3)}.growth{font-size:10.5px;padding:2px 7px;border-radius:99px;background:color-mix(in srgb, var(--foreground) 10%, transparent)}.count{display:block;margin:2px 0 6px;font-size:30px;font-weight:600;letter-spacing:-0.04em;font-variant-numeric:tabular-nums}.chart{display:block;width:100%;height:auto;overflow:visible}.gridLine{stroke:var(--line);stroke-dasharray:3 3}.line{fill:none;stroke:var(--foreground);stroke-width:1.8;stroke-linecap:round;stroke-dasharray:1}.on .line{animation:draw-line 2.2s cubic-bezier(0.22, 1, 0.36, 1) both}:global(:root[data-soft-navigation]) .on .line{animation-duration:0s !important;animation-delay:0s !important}.on .area{animation:fade 2.2s ease both}:global(:root[data-soft-navigation]) .on .area{animation-duration:0s !important;animation-delay:0s !important}@keyframes draw-line{from{stroke-dashoffset:1}}@keyframes fade{from{opacity:0}}.dot{fill:var(--foreground)}.on .dot{animation:pulse 2s 2.2s ease-out infinite}@keyframes pulse{0%{filter:drop-shadow(0 0 0 var(--foreground))}50%{filter:drop-shadow(0 0 6px var(--foreground))}}
@@ -1,123 +0,0 @@
1
- @use "style/token" as *;
2
-
3
- .visual {
4
- @include fill-center;
5
- perspective: 900px;
6
- }
7
- .feed {
8
- position: absolute;
9
- right: 6%;
10
- top: 50%;
11
- width: 132px;
12
- display: grid;
13
- grid-template-columns: repeat(3, 1fr);
14
- gap: 5px;
15
- transform: translateY(-56%) rotateY(-28deg) rotateX(10deg) translateZ(-40px);
16
- span {
17
- aspect-ratio: 1;
18
- border-radius: 5px;
19
- border: 1px solid var(--line-2);
20
- background: linear-gradient(135deg, tint(14%), tint(3%));
21
- .on & {
22
- animation: pop 0.6s $ease both;
23
- @include skip-entrance;
24
- }
25
- }
26
- span:nth-child(3n + 2) {
27
- background: linear-gradient(135deg, tint(28%), tint(8%));
28
- }
29
- }
30
- @keyframes pop {
31
- from {
32
- opacity: 0;
33
- transform: scale(0.6);
34
- }
35
- }
36
- .panel {
37
- position: relative;
38
- width: min(72%, 290px);
39
- margin-right: 22%;
40
- padding: 16px 16px 10px;
41
- border-radius: 14px;
42
- border: 1px solid var(--line-2);
43
- background: shade(80%);
44
- backdrop-filter: blur(8px);
45
- box-shadow: 0 30px 60px -24px shade(90%);
46
- transform: rotateY(10deg) rotateX(6deg) translateZ(30px);
47
- }
48
- .header {
49
- display: flex;
50
- justify-content: space-between;
51
- align-items: center;
52
- }
53
- .label {
54
- font-size: 10.5px;
55
- text-transform: uppercase;
56
- letter-spacing: 0.05em;
57
- color: var(--foreground-3);
58
- }
59
- .growth {
60
- font-size: 10.5px;
61
- padding: 2px 7px;
62
- border-radius: 99px;
63
- background: tint(10%);
64
- }
65
- .count {
66
- display: block;
67
- margin: 2px 0 6px;
68
- font-size: 30px;
69
- font-weight: 600;
70
- letter-spacing: -0.04em;
71
- font-variant-numeric: tabular-nums;
72
- }
73
- .chart {
74
- display: block;
75
- width: 100%;
76
- height: auto;
77
- overflow: visible;
78
- }
79
- .gridLine {
80
- stroke: var(--line);
81
- stroke-dasharray: 3 3;
82
- }
83
- .line {
84
- fill: none;
85
- stroke: var(--foreground);
86
- stroke-width: 1.8;
87
- stroke-linecap: round;
88
- stroke-dasharray: 1;
89
- .on & {
90
- animation: draw-line 2.2s $ease both;
91
- @include skip-entrance;
92
- }
93
- }
94
- .area {
95
- .on & {
96
- animation: fade 2.2s ease both;
97
- @include skip-entrance;
98
- }
99
- }
100
- @keyframes draw-line {
101
- from {
102
- stroke-dashoffset: 1;
103
- }
104
- }
105
- @keyframes fade {
106
- from {
107
- opacity: 0;
108
- }
109
- }
110
- .dot {
111
- fill: var(--foreground);
112
- .on & {
113
- animation: pulse 2s 2.2s ease-out infinite;
114
- }
115
- }
116
- @keyframes pulse {
117
- 0% {
118
- filter: drop-shadow(0 0 0 var(--foreground));
119
- }
120
- 50% {
121
- filter: drop-shadow(0 0 6px var(--foreground));
122
- }
123
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../source/component/services/social-visual/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oDAAoD,CAAC;AAEjF,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,MAAM,CAAC;CAChB"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=type.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../source/component/services/social-visual/type.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- /** A browser whose layout assembles itself, with a performance score counting to 100. */
2
- export declare function WebVisual(): import("react").JSX.Element;
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/services/web-visual/index.tsx"],"names":[],"mappings":"AAQA,yFAAyF;AACzF,wBAAgB,SAAS,gCA+CxB"}
@@ -1,26 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { classNames } from "@sharadox/web-library/class-name";
4
- import { useEffect, useState } from "react";
5
- import { useInView } from "@sharadox/animation-web-library/in-view";
6
- import styles from "./index.module.css";
7
- const CIRCUMFERENCE = 2 * Math.PI * 22;
8
- /** A browser whose layout assembles itself, with a performance score counting to 100. */
9
- export function WebVisual() {
10
- const [container, on] = useInView();
11
- const [score, setScore] = useState(0);
12
- useEffect(() => {
13
- if (!on)
14
- return;
15
- let value = 0;
16
- const timer = setInterval(() => {
17
- value += 3;
18
- setScore(Math.min(100, value));
19
- if (value >= 100)
20
- clearInterval(timer);
21
- }, 22);
22
- return () => clearInterval(timer);
23
- }, [on]);
24
- return (_jsxs("div", { ref: container, className: classNames(styles.visual, on && styles.on), "aria-hidden": true, children: [_jsxs("div", { className: styles.browser, children: [_jsxs("div", { className: styles.bar, children: [_jsx("i", {}), _jsx("i", {}), _jsx("i", {}), _jsx("span", { className: `${styles.url} monospace`, children: "yourbusiness.com" })] }), _jsxs("div", { className: styles.body, children: [_jsx("div", { className: `${styles.skeleton} ${styles.navigation}` }), _jsx("div", { className: `${styles.skeleton} ${styles.hero}` }), _jsxs("div", { className: styles.row, children: [_jsx("div", { className: `${styles.skeleton} ${styles.card}` }), _jsx("div", { className: `${styles.skeleton} ${styles.card}` }), _jsx("div", { className: `${styles.skeleton} ${styles.card}` })] })] })] }), _jsxs("div", { className: styles.score, children: [_jsxs("svg", { viewBox: "0 0 52 52", children: [_jsx("circle", { cx: "26", cy: "26", r: "22", className: styles.track }), _jsx("circle", { cx: "26", cy: "26", r: "22", className: styles.progress, style: { strokeDasharray: CIRCUMFERENCE, strokeDashoffset: CIRCUMFERENCE * (1 - score / 100) } })] }), _jsx("span", { className: "monospace", children: score })] })] }));
25
- }
26
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/services/web-visual/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OA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CAAC,UAAU,EAAE,GAAI,EAC7D,cAAK,SAAS,EAAE,GAAG,MAAM,CAAC,QAAQ,IAAI,MAAM,CAAC,IAAI,EAAE,GAAI,EACvD,eAAK,SAAS,EAAE,MAAM,CAAC,GAAG,aACxB,cAAK,SAAS,EAAE,GAAG,MAAM,CAAC,QAAQ,IAAI,MAAM,CAAC,IAAI,EAAE,GAAI,EACvD,cAAK,SAAS,EAAE,GAAG,MAAM,CAAC,QAAQ,IAAI,MAAM,CAAC,IAAI,EAAE,GAAI,EACvD,cAAK,SAAS,EAAE,GAAG,MAAM,CAAC,QAAQ,IAAI,MAAM,CAAC,IAAI,EAAE,GAAI,IACnD,IACF,IACF,EACN,eAAK,SAAS,EAAE,MAAM,CAAC,KAAK,aAC1B,eAAK,OAAO,EAAC,WAAW,aACtB,iBAAQ,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,CAAC,EAAC,IAAI,EAAC,SAAS,EAAE,MAAM,CAAC,KAAK,GAAI,EAC1D,iBACE,EAAE,EAAC,IAAI,EACP,EAAE,EAAC,IAAI,EACP,CAAC,EAAC,IAAI,EACN,SAAS,EAAE,MAAM,CAAC,QAAQ,EAC1B,KAAK,EAAE,EAAE,eAAe,EAAE,aAAa,EAAE,gBAAgB,EAAE,aAAa,GAAG,CAAC,CAAC,GAAG,KAAK,GAAG,GAAG,CAAC,EAAE,GAC9F,IACE,EACN,eAAM,SAAS,EAAC,WAAW,YAAE,KAAK,GAAQ,IACtC,IACF,CACP,CAAC;AACJ,CAAC"}
@@ -1 +0,0 @@
1
- .visual{position:absolute;inset:0;display:grid;place-items:center}.browser{width:min(78%,520px);border-radius:12px;border:1px solid var(--line-2);background:var(--card);overflow:hidden;box-shadow:0 30px 80px -20px color-mix(in srgb, var(--background) 90%, transparent),0 0 0 1px color-mix(in srgb, var(--foreground) 2%, transparent);transform:perspective(900px) rotateX(10deg) rotateY(-8deg) translateZ(20px);animation:float 7s ease-in-out infinite}.bar{display:flex;align-items:center;gap:6px;height:32px;padding:0 12px;border-bottom:1px solid var(--line)}.bar i{width:8px;height:8px;border-radius:50%;background:var(--line-2)}.url{margin-left:12px;font-size:11px;color:var(--foreground-3);padding:3px 10px;border-radius:6px;background:var(--surface)}.body{padding:16px;display:grid;gap:10px}.skeleton{border-radius:6px;background:linear-gradient(90deg, var(--surface), color-mix(in srgb, var(--foreground) 14%, transparent), var(--surface));background-size:200% 100%;opacity:0;transform:translateY(8px)}.on .skeleton{animation:skin .7s var(--ease) forwards,shimmer 2.4s linear infinite}:global(:root[data-soft-navigation]) .on .skeleton{animation-duration:0s,2.4s !important;animation-delay:0s !important}.navigation{height:12px;width:40%}.hero{height:70px;animation-delay:.15s !important}.row{display:grid;grid-template-columns:repeat(3, 1fr);gap:10px}.row .skeleton:nth-child(1){animation-delay:.3s,0s !important}.row .skeleton:nth-child(2){animation-delay:.42s,0s !important}.row .skeleton:nth-child(3){animation-delay:.54s,0s !important}.card{height:44px}@keyframes skin{to{opacity:1;transform:none}}@keyframes shimmer{to{background-position:-200% 0}}.score{position:absolute;right:7%;bottom:10%;transform:translateZ(60px);width:74px;height:74px;display:grid;place-items:center;border-radius:50%;background:color-mix(in srgb, var(--background) 90%, transparent);border:1px solid var(--line-2);backdrop-filter:blur(8px)}.score svg{position:absolute;inset:8px;transform:rotate(-90deg)}.score span{font-size:17px;font-weight:500}.track{fill:none;stroke:var(--line-2);stroke-width:3}.progress{fill:none;stroke:var(--foreground);stroke-width:3;stroke-linecap:round;transition:stroke-dashoffset .1s linear}@keyframes float{50%{transform:perspective(900px) rotateX(6deg) rotateY(-4deg) translateZ(20px) translateY(-6px)}}