@sharadox/sharadox-web-library 0.6.6 → 0.7.1

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 (300) hide show
  1. package/README.md +46 -8
  2. package/distribution/action/send-contact/index.d.ts +5 -6
  3. package/distribution/action/send-contact/index.d.ts.map +1 -1
  4. package/distribution/action/send-contact/index.js +13 -49
  5. package/distribution/action/send-contact/index.js.map +1 -1
  6. package/distribution/action/send-contact/type.d.ts +1 -3
  7. package/distribution/action/send-contact/type.d.ts.map +1 -1
  8. package/distribution/component/button/index.module.css +1 -58
  9. package/distribution/component/button/index.module.scss +60 -0
  10. package/distribution/component/capability/index.js +2 -2
  11. package/distribution/component/capability/index.module.css +1 -94
  12. package/distribution/component/capability/index.module.scss +85 -0
  13. package/distribution/component/capability/type.d.ts +1 -1
  14. package/distribution/component/consent/index.d.ts +1 -4
  15. package/distribution/component/consent/index.d.ts.map +1 -1
  16. package/distribution/component/consent/index.js +19 -32
  17. package/distribution/component/consent/index.js.map +1 -1
  18. package/distribution/component/consent/index.module.css +1 -183
  19. package/distribution/component/consent/index.module.scss +45 -0
  20. package/distribution/component/consent/preferences-link/index.js +1 -1
  21. package/distribution/component/consent/type.d.ts +1 -1
  22. package/distribution/component/contact/form/index.d.ts.map +1 -1
  23. package/distribution/component/contact/form/index.js +4 -4
  24. package/distribution/component/contact/form/index.js.map +1 -1
  25. package/distribution/component/contact/form/index.module.css +1 -168
  26. package/distribution/component/contact/form/index.module.scss +163 -0
  27. package/distribution/component/contact/form/type.d.ts +1 -1
  28. package/distribution/component/contact/index.js +2 -2
  29. package/distribution/component/contact/index.module.css +1 -56
  30. package/distribution/component/contact/index.module.scss +52 -0
  31. package/distribution/component/contact/type.d.ts +1 -1
  32. package/distribution/component/cross/index.d.ts.map +1 -1
  33. package/distribution/component/cross/index.js +2 -1
  34. package/distribution/component/cross/index.js.map +1 -1
  35. package/distribution/component/cross/index.module.css +1 -53
  36. package/distribution/component/cross/index.module.scss +50 -0
  37. package/distribution/component/eyebrow/index.d.ts.map +1 -1
  38. package/distribution/component/eyebrow/index.js +2 -1
  39. package/distribution/component/eyebrow/index.js.map +1 -1
  40. package/distribution/component/eyebrow/index.module.css +1 -9
  41. package/distribution/component/eyebrow/index.module.scss +9 -0
  42. package/distribution/component/footer/index.js +4 -4
  43. package/distribution/component/footer/index.js.map +1 -1
  44. package/distribution/component/footer/index.module.css +1 -138
  45. package/distribution/component/footer/index.module.scss +125 -0
  46. package/distribution/component/footer/type.d.ts +1 -1
  47. package/distribution/component/globe/index.d.ts +2 -2
  48. package/distribution/component/globe/index.d.ts.map +1 -1
  49. package/distribution/component/globe/index.js +23 -32
  50. package/distribution/component/globe/index.js.map +1 -1
  51. package/distribution/component/globe/index.module.css +1 -25
  52. package/distribution/component/globe/index.module.scss +7 -0
  53. package/distribution/component/hero/guide/index.module.css +1 -97
  54. package/distribution/component/hero/guide/index.module.scss +94 -0
  55. package/distribution/component/hero/index.js +1 -1
  56. package/distribution/component/hero/index.module.css +1 -124
  57. package/distribution/component/hero/index.module.scss +109 -0
  58. package/distribution/component/hero/type.d.ts +1 -1
  59. package/distribution/component/language-switch/index.js +4 -4
  60. package/distribution/component/language-switch/index.js.map +1 -1
  61. package/distribution/component/language-switch/index.module.css +1 -20
  62. package/distribution/component/language-switch/index.module.scss +22 -0
  63. package/distribution/component/language-switch/type.d.ts +1 -1
  64. package/distribution/component/marquee/index.js +1 -1
  65. package/distribution/component/marquee/index.module.css +1 -43
  66. package/distribution/component/marquee/index.module.scss +39 -0
  67. package/distribution/component/navigation/index.d.ts.map +1 -1
  68. package/distribution/component/navigation/index.js +3 -2
  69. package/distribution/component/navigation/index.js.map +1 -1
  70. package/distribution/component/navigation/index.module.css +1 -81
  71. package/distribution/component/navigation/index.module.scss +76 -0
  72. package/distribution/component/navigation/type.d.ts +1 -1
  73. package/distribution/component/process/index.js +1 -1
  74. package/distribution/component/process/index.module.css +1 -43
  75. package/distribution/component/process/index.module.scss +40 -0
  76. package/distribution/component/process/step/index.module.css +1 -33
  77. package/distribution/component/process/step/index.module.scss +31 -0
  78. package/distribution/component/process/type.d.ts +1 -1
  79. package/distribution/component/section/index.d.ts.map +1 -1
  80. package/distribution/component/section/index.js +2 -1
  81. package/distribution/component/section/index.js.map +1 -1
  82. package/distribution/component/section/index.module.css +1 -35
  83. package/distribution/component/section/index.module.scss +32 -0
  84. package/distribution/component/section-heading/index.js +1 -1
  85. package/distribution/component/section-heading/index.module.css +1 -7
  86. package/distribution/component/section-heading/index.module.scss +7 -0
  87. package/distribution/component/section-indicator/index.js +2 -2
  88. package/distribution/component/section-indicator/index.module.css +1 -145
  89. package/distribution/component/section-indicator/index.module.scss +143 -0
  90. package/distribution/component/section-indicator/type.d.ts +1 -1
  91. package/distribution/component/service-index/index.js +1 -1
  92. package/distribution/component/service-index/index.module.css +1 -88
  93. package/distribution/component/service-index/index.module.scss +83 -0
  94. package/distribution/component/service-index/type.d.ts +1 -1
  95. package/distribution/component/services/campaign-visual/index.d.ts.map +1 -1
  96. package/distribution/component/services/campaign-visual/index.js +4 -3
  97. package/distribution/component/services/campaign-visual/index.js.map +1 -1
  98. package/distribution/component/services/campaign-visual/index.module.css +1 -128
  99. package/distribution/component/services/campaign-visual/index.module.scss +122 -0
  100. package/distribution/component/services/campaign-visual/stage/index.js +3 -3
  101. package/distribution/component/services/campaign-visual/stage/index.js.map +1 -1
  102. package/distribution/component/services/campaign-visual/stage/type.d.ts +1 -1
  103. package/distribution/component/services/campaign-visual/type.d.ts +1 -1
  104. package/distribution/component/services/cell/index.d.ts.map +1 -1
  105. package/distribution/component/services/cell/index.js +4 -3
  106. package/distribution/component/services/cell/index.js.map +1 -1
  107. package/distribution/component/services/cell/index.module.css +1 -86
  108. package/distribution/component/services/cell/index.module.scss +81 -0
  109. package/distribution/component/services/design-visual/index.d.ts.map +1 -1
  110. package/distribution/component/services/design-visual/index.js +3 -2
  111. package/distribution/component/services/design-visual/index.js.map +1 -1
  112. package/distribution/component/services/design-visual/index.module.css +1 -130
  113. package/distribution/component/services/design-visual/index.module.scss +117 -0
  114. package/distribution/component/services/index.js +2 -2
  115. package/distribution/component/services/index.module.css +1 -84
  116. package/distribution/component/services/index.module.scss +66 -0
  117. package/distribution/component/services/mobile-visual/index.d.ts.map +1 -1
  118. package/distribution/component/services/mobile-visual/index.js +2 -1
  119. package/distribution/component/services/mobile-visual/index.js.map +1 -1
  120. package/distribution/component/services/mobile-visual/index.module.css +1 -104
  121. package/distribution/component/services/mobile-visual/index.module.scss +93 -0
  122. package/distribution/component/services/mobile-visual/type.d.ts +1 -1
  123. package/distribution/component/services/platform-visual/index.module.css +1 -46
  124. package/distribution/component/services/platform-visual/index.module.scss +39 -0
  125. package/distribution/component/services/social-visual/index.d.ts.map +1 -1
  126. package/distribution/component/services/social-visual/index.js +6 -5
  127. package/distribution/component/services/social-visual/index.js.map +1 -1
  128. package/distribution/component/services/social-visual/index.module.css +1 -131
  129. package/distribution/component/services/social-visual/index.module.scss +120 -0
  130. package/distribution/component/services/social-visual/type.d.ts +1 -1
  131. package/distribution/component/services/type.d.ts +1 -1
  132. package/distribution/component/services/web-visual/index.d.ts.map +1 -1
  133. package/distribution/component/services/web-visual/index.js +3 -2
  134. package/distribution/component/services/web-visual/index.js.map +1 -1
  135. package/distribution/component/services/web-visual/index.module.css +1 -142
  136. package/distribution/component/services/web-visual/index.module.scss +132 -0
  137. package/distribution/component/share-image/index.d.ts +1 -2
  138. package/distribution/component/share-image/index.d.ts.map +1 -1
  139. package/distribution/component/share-image/index.js +3 -3
  140. package/distribution/component/share-image/index.js.map +1 -1
  141. package/distribution/component/share-image/type.d.ts +1 -1
  142. package/distribution/component/statement/index.js +1 -1
  143. package/distribution/component/statement/index.module.css +1 -11
  144. package/distribution/component/statement/index.module.scss +10 -0
  145. package/distribution/component/structured-data/index.d.ts.map +1 -1
  146. package/distribution/component/structured-data/index.js +48 -53
  147. package/distribution/component/structured-data/index.js.map +1 -1
  148. package/distribution/component/structured-data/type.d.ts +1 -1
  149. package/distribution/component/style-switch/index.d.ts +2 -2
  150. package/distribution/component/style-switch/index.d.ts.map +1 -1
  151. package/distribution/component/style-switch/index.js +11 -18
  152. package/distribution/component/style-switch/index.js.map +1 -1
  153. package/distribution/component/style-switch/index.module.css +1 -36
  154. package/distribution/component/style-switch/index.module.scss +37 -0
  155. package/distribution/component/style-switch/type.d.ts +1 -1
  156. package/distribution/component/touchpoint/index.js +3 -3
  157. package/distribution/component/touchpoint/index.module.css +1 -85
  158. package/distribution/component/touchpoint/index.module.scss +75 -0
  159. package/distribution/component/touchpoint/plate/index.module.css +1 -136
  160. package/distribution/component/touchpoint/plate/index.module.scss +129 -0
  161. package/distribution/component/touchpoint/type.d.ts +1 -1
  162. package/distribution/component/wordmark/index.module.css +1 -23
  163. package/distribution/component/wordmark/index.module.scss +22 -0
  164. package/distribution/content/locale/index.d.ts +6 -0
  165. package/distribution/content/locale/index.d.ts.map +1 -0
  166. package/distribution/content/locale/index.js +7 -0
  167. package/distribution/content/locale/index.js.map +1 -0
  168. package/distribution/{utility → content}/locale/type.d.ts +3 -2
  169. package/distribution/content/locale/type.d.ts.map +1 -0
  170. package/distribution/{utility → content}/locale/type.js.map +1 -1
  171. package/distribution/content/style/index.d.ts +47 -43
  172. package/distribution/content/style/index.d.ts.map +1 -1
  173. package/distribution/content/style/index.js +20 -13
  174. package/distribution/content/style/index.js.map +1 -1
  175. package/distribution/utility/separate/index.d.ts +6 -1
  176. package/distribution/utility/separate/index.d.ts.map +1 -1
  177. package/distribution/utility/separate/index.js +8 -2
  178. package/distribution/utility/separate/index.js.map +1 -1
  179. package/llms.txt +10 -0
  180. package/package.json +37 -27
  181. package/distribution/component/consent/toggle/index.d.ts +0 -4
  182. package/distribution/component/consent/toggle/index.d.ts.map +0 -1
  183. package/distribution/component/consent/toggle/index.js +0 -7
  184. package/distribution/component/consent/toggle/index.js.map +0 -1
  185. package/distribution/component/consent/toggle/type.d.ts +0 -10
  186. package/distribution/component/consent/toggle/type.d.ts.map +0 -1
  187. package/distribution/component/consent/toggle/type.js.map +0 -1
  188. package/distribution/component/cursor/index.d.ts +0 -3
  189. package/distribution/component/cursor/index.d.ts.map +0 -1
  190. package/distribution/component/cursor/index.js +0 -45
  191. package/distribution/component/cursor/index.js.map +0 -1
  192. package/distribution/component/cursor/index.module.css +0 -55
  193. package/distribution/component/globe/arc/index.d.ts +0 -4
  194. package/distribution/component/globe/arc/index.d.ts.map +0 -1
  195. package/distribution/component/globe/arc/index.js +0 -29
  196. package/distribution/component/globe/arc/index.js.map +0 -1
  197. package/distribution/component/globe/arc/type.d.ts +0 -12
  198. package/distribution/component/globe/arc/type.d.ts.map +0 -1
  199. package/distribution/component/globe/arc/type.js +0 -2
  200. package/distribution/component/globe/arc/type.js.map +0 -1
  201. package/distribution/component/globe/color/index.d.ts +0 -4
  202. package/distribution/component/globe/color/index.d.ts.map +0 -1
  203. package/distribution/component/globe/color/index.js +0 -16
  204. package/distribution/component/globe/color/index.js.map +0 -1
  205. package/distribution/component/globe/color/type.d.ts +0 -13
  206. package/distribution/component/globe/color/type.d.ts.map +0 -1
  207. package/distribution/component/globe/color/type.js +0 -2
  208. package/distribution/component/globe/color/type.js.map +0 -1
  209. package/distribution/component/globe/dots/index.d.ts +0 -4
  210. package/distribution/component/globe/dots/index.d.ts.map +0 -1
  211. package/distribution/component/globe/dots/index.js +0 -38
  212. package/distribution/component/globe/dots/index.js.map +0 -1
  213. package/distribution/component/globe/dots/type.d.ts +0 -7
  214. package/distribution/component/globe/dots/type.d.ts.map +0 -1
  215. package/distribution/component/globe/dots/type.js +0 -2
  216. package/distribution/component/globe/dots/type.js.map +0 -1
  217. package/distribution/component/globe/marker/index.d.ts +0 -4
  218. package/distribution/component/globe/marker/index.d.ts.map +0 -1
  219. package/distribution/component/globe/marker/index.js +0 -21
  220. package/distribution/component/globe/marker/index.js.map +0 -1
  221. package/distribution/component/globe/marker/type.d.ts +0 -9
  222. package/distribution/component/globe/marker/type.d.ts.map +0 -1
  223. package/distribution/component/globe/marker/type.js +0 -2
  224. package/distribution/component/globe/marker/type.js.map +0 -1
  225. package/distribution/component/globe/shader/arc/index.d.ts +0 -6
  226. package/distribution/component/globe/shader/arc/index.d.ts.map +0 -1
  227. package/distribution/component/globe/shader/arc/index.js +0 -24
  228. package/distribution/component/globe/shader/arc/index.js.map +0 -1
  229. package/distribution/component/globe/shader/atmosphere/index.d.ts +0 -6
  230. package/distribution/component/globe/shader/atmosphere/index.d.ts.map +0 -1
  231. package/distribution/component/globe/shader/atmosphere/index.js +0 -15
  232. package/distribution/component/globe/shader/atmosphere/index.js.map +0 -1
  233. package/distribution/component/globe/shader/body/index.d.ts +0 -6
  234. package/distribution/component/globe/shader/body/index.d.ts.map +0 -1
  235. package/distribution/component/globe/shader/body/index.js +0 -15
  236. package/distribution/component/globe/shader/body/index.js.map +0 -1
  237. package/distribution/component/globe/shader/dot/index.d.ts +0 -6
  238. package/distribution/component/globe/shader/dot/index.d.ts.map +0 -1
  239. package/distribution/component/globe/shader/dot/index.js +0 -29
  240. package/distribution/component/globe/shader/dot/index.js.map +0 -1
  241. package/distribution/component/globe/shader/glow-vertex/index.d.ts +0 -3
  242. package/distribution/component/globe/shader/glow-vertex/index.d.ts.map +0 -1
  243. package/distribution/component/globe/shader/glow-vertex/index.js +0 -9
  244. package/distribution/component/globe/shader/glow-vertex/index.js.map +0 -1
  245. package/distribution/component/globe/world/index.d.ts +0 -4
  246. package/distribution/component/globe/world/index.d.ts.map +0 -1
  247. package/distribution/component/globe/world/index.js +0 -39
  248. package/distribution/component/globe/world/index.js.map +0 -1
  249. package/distribution/component/globe/world/type.d.ts +0 -10
  250. package/distribution/component/globe/world/type.d.ts.map +0 -1
  251. package/distribution/component/globe/world/type.js +0 -2
  252. package/distribution/component/globe/world/type.js.map +0 -1
  253. package/distribution/component/locale-link/index.d.ts +0 -4
  254. package/distribution/component/locale-link/index.d.ts.map +0 -1
  255. package/distribution/component/locale-link/index.js +0 -9
  256. package/distribution/component/locale-link/index.js.map +0 -1
  257. package/distribution/component/locale-link/type.d.ts +0 -10
  258. package/distribution/component/locale-link/type.d.ts.map +0 -1
  259. package/distribution/component/locale-link/type.js +0 -2
  260. package/distribution/component/locale-link/type.js.map +0 -1
  261. package/distribution/hook/globe-drag/index.d.ts +0 -10
  262. package/distribution/hook/globe-drag/index.d.ts.map +0 -1
  263. package/distribution/hook/globe-drag/index.js +0 -99
  264. package/distribution/hook/globe-drag/index.js.map +0 -1
  265. package/distribution/hook/globe-drag/type.d.ts +0 -11
  266. package/distribution/hook/globe-drag/type.d.ts.map +0 -1
  267. package/distribution/hook/globe-drag/type.js +0 -2
  268. package/distribution/hook/globe-drag/type.js.map +0 -1
  269. package/distribution/hook/land-points/index.d.ts +0 -3
  270. package/distribution/hook/land-points/index.d.ts.map +0 -1
  271. package/distribution/hook/land-points/index.js +0 -17
  272. package/distribution/hook/land-points/index.js.map +0 -1
  273. package/distribution/style/token/index.css +0 -1
  274. package/distribution/utility/hex-channel/index.d.ts +0 -3
  275. package/distribution/utility/hex-channel/index.d.ts.map +0 -1
  276. package/distribution/utility/hex-channel/index.js +0 -8
  277. package/distribution/utility/hex-channel/index.js.map +0 -1
  278. package/distribution/utility/latitude-longitude-to-vector/index.d.ts +0 -7
  279. package/distribution/utility/latitude-longitude-to-vector/index.d.ts.map +0 -1
  280. package/distribution/utility/latitude-longitude-to-vector/index.js +0 -12
  281. package/distribution/utility/latitude-longitude-to-vector/index.js.map +0 -1
  282. package/distribution/utility/locale/index.d.ts +0 -6
  283. package/distribution/utility/locale/index.d.ts.map +0 -1
  284. package/distribution/utility/locale/index.js +0 -8
  285. package/distribution/utility/locale/index.js.map +0 -1
  286. package/distribution/utility/locale/type.d.ts.map +0 -1
  287. package/distribution/utility/locale/type.js +0 -2
  288. package/distribution/utility/parse-contact/index.d.ts +0 -4
  289. package/distribution/utility/parse-contact/index.d.ts.map +0 -1
  290. package/distribution/utility/parse-contact/index.js +0 -23
  291. package/distribution/utility/parse-contact/index.js.map +0 -1
  292. package/distribution/utility/parse-contact/type.d.ts +0 -20
  293. package/distribution/utility/parse-contact/type.d.ts.map +0 -1
  294. package/distribution/utility/parse-contact/type.js +0 -2
  295. package/distribution/utility/parse-contact/type.js.map +0 -1
  296. package/distribution/utility/web-gl-support/index.d.ts +0 -3
  297. package/distribution/utility/web-gl-support/index.d.ts.map +0 -1
  298. package/distribution/utility/web-gl-support/index.js +0 -11
  299. package/distribution/utility/web-gl-support/index.js.map +0 -1
  300. /package/distribution/{component/consent/toggle → content/locale}/type.js +0 -0
@@ -1,84 +1 @@
1
- .heading {
2
- padding: clamp(72px, 10vw, 128px) var(--padding) 0;
3
- }
4
-
5
- /* Cells share hairlines: the grid's background shows through 1px gaps. */
6
- .grid {
7
- position: relative;
8
- display: grid;
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);
16
- }
17
- @media (max-width: 960px) {
18
- .grid {
19
- grid-template-columns: 1fr 1fr;
20
- }
21
- }
22
- @media (max-width: 640px) {
23
- .grid {
24
- grid-template-columns: 1fr;
25
- }
26
- }
27
-
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 {
53
- grid-column: span 2;
54
- }
55
- @media (max-width: 960px) {
56
- .mobile-application,
57
- .graphic-design,
58
- .social-media,
59
- .marketing-campaign {
60
- grid-column: auto;
61
- }
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
- }
1
+ .heading{padding:clamp(72px,10vw,128px) var(--padding) 0}.grid{position:relative;display:grid;grid-template-columns:repeat(6, 1fr);gap:1px;background:var(--line);border-top:1px solid var(--line)}.grid>div{background:var(--background)}@media(max-width: 960px){.grid{grid-template-columns:1fr 1fr}}@media(max-width: 640px){.grid{grid-template-columns:1fr}}.reveal{height:100%}.reveal>article{height:100%}.web-application{grid-column:span 4}@media(max-width: 960px){.web-application{grid-column:span 2}}@media(max-width: 640px){.web-application{grid-column:auto}}.mobile-application,.graphic-design,.social-media,.marketing-campaign{grid-column:span 2}@media(max-width: 960px){.mobile-application,.graphic-design,.social-media,.marketing-campaign{grid-column:auto}}.split{position:absolute;inset:0;display:grid;grid-template-columns:1.25fr 1fr}.split>*{position:relative !important;inset:auto !important}.split>*:last-child{border-left:1px dashed var(--line-2)}@media(max-width: 640px){.split{grid-template-columns:1fr}.split>*:last-child{display:none !important}}
@@ -0,0 +1,66 @@
1
+ @use "style/token" as *;
2
+
3
+ .heading {
4
+ padding: clamp(72px, 10vw, 128px) var(--padding) 0;
5
+ }
6
+ /* Cells share hairlines: the grid's background shows through 1px gaps. */
7
+ .grid {
8
+ position: relative;
9
+ display: grid;
10
+ grid-template-columns: repeat(6, 1fr);
11
+ gap: 1px;
12
+ background: var(--line);
13
+ border-top: 1px solid var(--line);
14
+ > div {
15
+ background: var(--background);
16
+ }
17
+ @include below(960px) {
18
+ grid-template-columns: 1fr 1fr;
19
+ }
20
+ @include below(640px) {
21
+ grid-template-columns: 1fr;
22
+ }
23
+ }
24
+ .reveal {
25
+ height: 100%;
26
+ > article {
27
+ height: 100%;
28
+ }
29
+ }
30
+ .web-application {
31
+ grid-column: span 4;
32
+ @include below(960px) {
33
+ grid-column: span 2;
34
+ }
35
+ @include below(640px) {
36
+ grid-column: auto;
37
+ }
38
+ }
39
+ .mobile-application,
40
+ .graphic-design,
41
+ .social-media,
42
+ .marketing-campaign {
43
+ grid-column: span 2;
44
+ @include below(960px) {
45
+ grid-column: auto;
46
+ }
47
+ }
48
+ .split {
49
+ position: absolute;
50
+ inset: 0;
51
+ display: grid;
52
+ grid-template-columns: 1.25fr 1fr;
53
+ > * {
54
+ position: relative !important;
55
+ inset: auto !important;
56
+ }
57
+ > *:last-child {
58
+ border-left: 1px dashed var(--line-2);
59
+ }
60
+ @include below(640px) {
61
+ grid-template-columns: 1fr;
62
+ > *:last-child {
63
+ display: none !important;
64
+ }
65
+ }
66
+ }
@@ -1 +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"}
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"}
@@ -2,6 +2,7 @@
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { useEffect, useState } from "react";
4
4
  import { SERVICES } from "@sharadox/sharadox-web-library/content/services";
5
+ import { classNames } from "@sharadox/web-library/class-name";
5
6
  import styles from "./index.module.css";
6
7
  /** A phone with business notifications sliding in. */
7
8
  export function MobileVisual({ locale }) {
@@ -12,6 +13,6 @@ export function MobileVisual({ locale }) {
12
13
  return () => clearInterval(timer);
13
14
  }, []);
14
15
  const shown = [0, 1, 2].map((slot) => items[(tick + slot) % items.length]);
15
- 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: `${styles.note} ${styles[`note${slot}`] ?? ""}`, children: [_jsx("span", { className: styles.icon }), _jsxs("span", { className: styles.text, children: [_jsx("b", { children: title }), _jsx("em", { children: detail })] })] }, `${tick}-${slot}`))) })] }) }));
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}`))) })] }) }));
16
17
  }
17
18
  //# sourceMappingURL=index.js.map
@@ -1 +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,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pC,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,104 +1 @@
1
- .visual {
2
- position: absolute;
3
- inset: 0;
4
- display: grid;
5
- place-items: center;
6
- }
7
-
8
- .phone {
9
- position: relative;
10
- width: 168px;
11
- height: 300px;
12
- margin-top: 70px;
13
- border-radius: 30px;
14
- border: 1px solid var(--line-2);
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;
20
- padding: 34px 10px 0;
21
- }
22
-
23
- .notch {
24
- position: absolute;
25
- top: 9px;
26
- left: 50%;
27
- width: 56px;
28
- height: 16px;
29
- margin-left: -28px;
30
- border-radius: 10px;
31
- background: var(--background);
32
- border: 1px solid var(--line-2);
33
- }
34
-
35
- .time {
36
- text-align: center;
37
- font-size: 26px;
38
- font-weight: 500;
39
- letter-spacing: -0.04em;
40
- margin: 4px 0 12px;
41
- }
42
-
43
- .notes {
44
- display: grid;
45
- gap: 7px;
46
- }
47
-
48
- .note {
49
- display: flex;
50
- gap: 8px;
51
- align-items: center;
52
- padding: 8px 9px;
53
- border-radius: 12px;
54
- background: color-mix(in srgb, var(--foreground) 7%, transparent);
55
- backdrop-filter: blur(4px);
56
- border: 1px solid var(--line);
57
- animation: note-in 0.6s var(--ease) both;
58
- }
59
-
60
- .note1 {
61
- opacity: 0.7;
62
- }
63
-
64
- .note2 {
65
- opacity: 0.4;
66
- }
67
-
68
- .icon {
69
- width: 20px;
70
- height: 20px;
71
- border-radius: 6px;
72
- background: var(--foreground);
73
- flex: none;
74
- }
75
-
76
- .text {
77
- display: grid;
78
- line-height: 1.25;
79
- min-width: 0;
80
- }
81
- .text b {
82
- font-size: 10.5px;
83
- font-weight: 600;
84
- }
85
- .text em {
86
- font-style: normal;
87
- font-size: 9.5px;
88
- color: var(--foreground-2);
89
- white-space: nowrap;
90
- overflow: hidden;
91
- text-overflow: ellipsis;
92
- }
93
-
94
- @keyframes note-in {
95
- from {
96
- opacity: 0;
97
- transform: translateY(-12px) scale(0.96);
98
- }
99
- }
100
- @keyframes hover {
101
- 50% {
102
- transform: rotateY(-8deg) rotateX(4deg) rotateZ(1deg) translateY(-8px);
103
- }
104
- }
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)}}
@@ -0,0 +1,93 @@
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,4 +1,4 @@
1
- import type { Locale } from "@sharadox/sharadox-web-library/utility/locale/type";
1
+ import type { Locale } from "@sharadox/sharadox-web-library/content/locale/type";
2
2
  export interface MobileVisualProperties {
3
3
  locale: Locale;
4
4
  }
@@ -1,46 +1 @@
1
- .visual {
2
- position: absolute;
3
- inset: 0;
4
- display: grid;
5
- place-items: center;
6
- }
7
- .visual svg {
8
- width: min(92%, 420px);
9
- height: auto;
10
- overflow: visible;
11
- }
12
-
13
- .edge {
14
- fill: none;
15
- stroke: var(--line-2);
16
- stroke-width: 1;
17
- stroke-dasharray: 3 4;
18
- }
19
-
20
- .packet {
21
- fill: var(--foreground);
22
- filter: drop-shadow(0 0 4px var(--foreground));
23
- }
24
-
25
- .core {
26
- fill: var(--surface);
27
- stroke: var(--foreground-3);
28
- }
29
-
30
- .coreLabel {
31
- fill: var(--foreground);
32
- font: 500 11px var(--monospace);
33
- text-anchor: middle;
34
- }
35
-
36
- .node {
37
- fill: var(--background);
38
- stroke: var(--foreground);
39
- stroke-width: 1.4;
40
- }
41
-
42
- .nodeLabel {
43
- fill: var(--foreground-2);
44
- font: 400 10.5px var(--monospace);
45
- text-anchor: middle;
46
- }
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}
@@ -0,0 +1,39 @@
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 +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"}
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,9 +1,10 @@
1
1
  "use client";
2
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";
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";
7
8
  import { SERVICES } from "@sharadox/sharadox-web-library/content/services";
8
9
  import styles from "./index.module.css";
9
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";
@@ -12,6 +13,6 @@ const POSTS = Array.from({ length: 9 }, (_, index) => index);
12
13
  export function SocialVisual({ locale }) {
13
14
  const [container, on] = useInView();
14
15
  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
+ 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 })] })] })] }));
16
17
  }
17
18
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/services/social-visual/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,UAAU,E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AAM,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,131 +1 @@
1
- .visual {
2
- position: absolute;
3
- inset: 0;
4
- display: grid;
5
- place-items: center;
6
- perspective: 900px;
7
- }
8
-
9
- .feed {
10
- position: absolute;
11
- right: 6%;
12
- top: 50%;
13
- width: 132px;
14
- display: grid;
15
- grid-template-columns: repeat(3, 1fr);
16
- gap: 5px;
17
- transform: translateY(-56%) rotateY(-28deg) rotateX(10deg) translateZ(-40px);
18
- }
19
- .feed span {
20
- aspect-ratio: 1;
21
- border-radius: 5px;
22
- border: 1px solid var(--line-2);
23
- background: linear-gradient(135deg, color-mix(in srgb, var(--foreground) 14%, transparent), color-mix(in srgb, var(--foreground) 3%, transparent));
24
- }
25
- .on .feed span {
26
- animation: pop 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
27
- }
28
- .feed span:nth-child(3n+2) {
29
- background: linear-gradient(135deg, color-mix(in srgb, var(--foreground) 28%, transparent), color-mix(in srgb, var(--foreground) 8%, transparent));
30
- }
31
-
32
- @keyframes pop {
33
- from {
34
- opacity: 0;
35
- transform: scale(0.6);
36
- }
37
- }
38
- .panel {
39
- position: relative;
40
- width: min(72%, 290px);
41
- margin-right: 22%;
42
- padding: 16px 16px 10px;
43
- border-radius: 14px;
44
- border: 1px solid var(--line-2);
45
- background: color-mix(in srgb, var(--background) 80%, transparent);
46
- backdrop-filter: blur(8px);
47
- box-shadow: 0 30px 60px -24px color-mix(in srgb, var(--background) 90%, transparent);
48
- transform: rotateY(10deg) rotateX(6deg) translateZ(30px);
49
- }
50
-
51
- .header {
52
- display: flex;
53
- justify-content: space-between;
54
- align-items: center;
55
- }
56
-
57
- .label {
58
- font-size: 10.5px;
59
- text-transform: uppercase;
60
- letter-spacing: 0.05em;
61
- color: var(--foreground-3);
62
- }
63
-
64
- .growth {
65
- font-size: 10.5px;
66
- padding: 2px 7px;
67
- border-radius: 99px;
68
- background: color-mix(in srgb, var(--foreground) 10%, transparent);
69
- }
70
-
71
- .count {
72
- display: block;
73
- margin: 2px 0 6px;
74
- font-size: 30px;
75
- font-weight: 600;
76
- letter-spacing: -0.04em;
77
- font-variant-numeric: tabular-nums;
78
- }
79
-
80
- .chart {
81
- display: block;
82
- width: 100%;
83
- height: auto;
84
- overflow: visible;
85
- }
86
-
87
- .gridLine {
88
- stroke: var(--line);
89
- stroke-dasharray: 3 3;
90
- }
91
-
92
- .line {
93
- fill: none;
94
- stroke: var(--foreground);
95
- stroke-width: 1.8;
96
- stroke-linecap: round;
97
- stroke-dasharray: 1;
98
- }
99
- .on .line {
100
- animation: draw-line 2.2s cubic-bezier(0.22, 1, 0.36, 1) both;
101
- }
102
-
103
- .on .area {
104
- animation: fade 2.2s ease both;
105
- }
106
-
107
- @keyframes draw-line {
108
- from {
109
- stroke-dashoffset: 1;
110
- }
111
- }
112
- @keyframes fade {
113
- from {
114
- opacity: 0;
115
- }
116
- }
117
- .dot {
118
- fill: var(--foreground);
119
- }
120
- .on .dot {
121
- animation: pulse 2s 2.2s ease-out infinite;
122
- }
123
-
124
- @keyframes pulse {
125
- 0% {
126
- filter: drop-shadow(0 0 0 var(--foreground));
127
- }
128
- 50% {
129
- filter: drop-shadow(0 0 6px var(--foreground));
130
- }
131
- }
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}.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}.on .area{animation:fade 2.2s ease both}@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))}}