@sharadox/sharadox-web-library 0.0.0-stage → 0.1.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 (352) hide show
  1. package/LICENCA.md +89 -0
  2. package/LICENSE.md +89 -0
  3. package/NOTICE.md +3 -0
  4. package/README.md +14 -2
  5. package/distribution/action/send-contact/index.d.ts +9 -0
  6. package/distribution/action/send-contact/index.d.ts.map +1 -0
  7. package/distribution/action/send-contact/index.js +49 -0
  8. package/distribution/action/send-contact/index.js.map +1 -0
  9. package/distribution/action/send-contact/type.d.ts +5 -0
  10. package/distribution/action/send-contact/type.d.ts.map +1 -0
  11. package/distribution/action/send-contact/type.js +2 -0
  12. package/distribution/action/send-contact/type.js.map +1 -0
  13. package/distribution/asset/font/Geist-Regular.ttf +0 -0
  14. package/distribution/asset/font/Geist-SemiBold.ttf +0 -0
  15. package/distribution/asset/font/GeistMono-Regular.ttf +0 -0
  16. package/distribution/component/button/index.d.ts +4 -0
  17. package/distribution/component/button/index.d.ts.map +1 -0
  18. package/distribution/component/button/index.js +11 -0
  19. package/distribution/component/button/index.js.map +1 -0
  20. package/distribution/component/button/index.module.css +55 -0
  21. package/distribution/component/button/type.d.ts +13 -0
  22. package/distribution/component/button/type.d.ts.map +1 -0
  23. package/distribution/component/button/type.js +2 -0
  24. package/distribution/component/button/type.js.map +1 -0
  25. package/distribution/component/contact/form/index.d.ts +4 -0
  26. package/distribution/component/contact/form/index.d.ts.map +1 -0
  27. package/distribution/component/contact/form/index.js +23 -0
  28. package/distribution/component/contact/form/index.js.map +1 -0
  29. package/distribution/component/contact/form/index.module.css +108 -0
  30. package/distribution/component/contact/form/type.d.ts +8 -0
  31. package/distribution/component/contact/form/type.d.ts.map +1 -0
  32. package/distribution/component/contact/form/type.js +2 -0
  33. package/distribution/component/contact/form/type.js.map +1 -0
  34. package/distribution/component/contact/index.d.ts +4 -0
  35. package/distribution/component/contact/index.d.ts.map +1 -0
  36. package/distribution/component/contact/index.js +14 -0
  37. package/distribution/component/contact/index.js.map +1 -0
  38. package/distribution/component/contact/index.module.css +56 -0
  39. package/distribution/component/contact/type.d.ts +8 -0
  40. package/distribution/component/contact/type.d.ts.map +1 -0
  41. package/distribution/component/contact/type.js +2 -0
  42. package/distribution/component/contact/type.js.map +1 -0
  43. package/distribution/component/cursor/index.d.ts +3 -0
  44. package/distribution/component/cursor/index.d.ts.map +1 -0
  45. package/distribution/component/cursor/index.js +45 -0
  46. package/distribution/component/cursor/index.js.map +1 -0
  47. package/distribution/component/cursor/index.module.css +53 -0
  48. package/distribution/component/eyebrow/index.d.ts +4 -0
  49. package/distribution/component/eyebrow/index.d.ts.map +1 -0
  50. package/distribution/component/eyebrow/index.js +7 -0
  51. package/distribution/component/eyebrow/index.js.map +1 -0
  52. package/distribution/component/eyebrow/index.module.css +9 -0
  53. package/distribution/component/eyebrow/type.d.ts +6 -0
  54. package/distribution/component/eyebrow/type.d.ts.map +1 -0
  55. package/distribution/component/eyebrow/type.js +2 -0
  56. package/distribution/component/eyebrow/type.js.map +1 -0
  57. package/distribution/component/footer/index.d.ts +4 -0
  58. package/distribution/component/footer/index.d.ts.map +1 -0
  59. package/distribution/component/footer/index.js +12 -0
  60. package/distribution/component/footer/index.js.map +1 -0
  61. package/distribution/component/footer/index.module.css +59 -0
  62. package/distribution/component/footer/type.d.ts +5 -0
  63. package/distribution/component/footer/type.d.ts.map +1 -0
  64. package/distribution/component/footer/type.js +2 -0
  65. package/distribution/component/footer/type.js.map +1 -0
  66. package/distribution/component/globe/arc/index.d.ts +4 -0
  67. package/distribution/component/globe/arc/index.d.ts.map +1 -0
  68. package/distribution/component/globe/arc/index.js +29 -0
  69. package/distribution/component/globe/arc/index.js.map +1 -0
  70. package/distribution/component/globe/arc/type.d.ts +10 -0
  71. package/distribution/component/globe/arc/type.d.ts.map +1 -0
  72. package/distribution/component/globe/arc/type.js +2 -0
  73. package/distribution/component/globe/arc/type.js.map +1 -0
  74. package/distribution/component/globe/dots/index.d.ts +4 -0
  75. package/distribution/component/globe/dots/index.d.ts.map +1 -0
  76. package/distribution/component/globe/dots/index.js +34 -0
  77. package/distribution/component/globe/dots/index.js.map +1 -0
  78. package/distribution/component/globe/dots/type.d.ts +5 -0
  79. package/distribution/component/globe/dots/type.d.ts.map +1 -0
  80. package/distribution/component/globe/dots/type.js +2 -0
  81. package/distribution/component/globe/dots/type.js.map +1 -0
  82. package/distribution/component/globe/index.d.ts +6 -0
  83. package/distribution/component/globe/index.d.ts.map +1 -0
  84. package/distribution/component/globe/index.js +34 -0
  85. package/distribution/component/globe/index.js.map +1 -0
  86. package/distribution/component/globe/index.module.css +25 -0
  87. package/distribution/component/globe/marker/index.d.ts +4 -0
  88. package/distribution/component/globe/marker/index.d.ts.map +1 -0
  89. package/distribution/component/globe/marker/index.js +21 -0
  90. package/distribution/component/globe/marker/index.js.map +1 -0
  91. package/distribution/component/globe/marker/type.d.ts +7 -0
  92. package/distribution/component/globe/marker/type.d.ts.map +1 -0
  93. package/distribution/component/globe/marker/type.js +2 -0
  94. package/distribution/component/globe/marker/type.js.map +1 -0
  95. package/distribution/component/globe/placeholder/index.d.ts +3 -0
  96. package/distribution/component/globe/placeholder/index.d.ts.map +1 -0
  97. package/distribution/component/globe/placeholder/index.js +7 -0
  98. package/distribution/component/globe/placeholder/index.js.map +1 -0
  99. package/distribution/component/globe/shader/arc/index.d.ts +6 -0
  100. package/distribution/component/globe/shader/arc/index.d.ts.map +1 -0
  101. package/distribution/component/globe/shader/arc/index.js +23 -0
  102. package/distribution/component/globe/shader/arc/index.js.map +1 -0
  103. package/distribution/component/globe/shader/atmosphere/index.d.ts +6 -0
  104. package/distribution/component/globe/shader/atmosphere/index.d.ts.map +1 -0
  105. package/distribution/component/globe/shader/atmosphere/index.js +14 -0
  106. package/distribution/component/globe/shader/atmosphere/index.js.map +1 -0
  107. package/distribution/component/globe/shader/body/index.d.ts +6 -0
  108. package/distribution/component/globe/shader/body/index.d.ts.map +1 -0
  109. package/distribution/component/globe/shader/body/index.js +13 -0
  110. package/distribution/component/globe/shader/body/index.js.map +1 -0
  111. package/distribution/component/globe/shader/dot/index.d.ts +6 -0
  112. package/distribution/component/globe/shader/dot/index.d.ts.map +1 -0
  113. package/distribution/component/globe/shader/dot/index.js +28 -0
  114. package/distribution/component/globe/shader/dot/index.js.map +1 -0
  115. package/distribution/component/globe/shader/glow-vertex/index.d.ts +3 -0
  116. package/distribution/component/globe/shader/glow-vertex/index.d.ts.map +1 -0
  117. package/distribution/component/globe/shader/glow-vertex/index.js +9 -0
  118. package/distribution/component/globe/shader/glow-vertex/index.js.map +1 -0
  119. package/distribution/component/globe/world/index.d.ts +4 -0
  120. package/distribution/component/globe/world/index.d.ts.map +1 -0
  121. package/distribution/component/globe/world/index.js +35 -0
  122. package/distribution/component/globe/world/index.js.map +1 -0
  123. package/distribution/component/globe/world/type.d.ts +8 -0
  124. package/distribution/component/globe/world/type.d.ts.map +1 -0
  125. package/distribution/component/globe/world/type.js +2 -0
  126. package/distribution/component/globe/world/type.js.map +1 -0
  127. package/distribution/component/hero/index.d.ts +4 -0
  128. package/distribution/component/hero/index.d.ts.map +1 -0
  129. package/distribution/component/hero/index.js +21 -0
  130. package/distribution/component/hero/index.js.map +1 -0
  131. package/distribution/component/hero/index.module.css +127 -0
  132. package/distribution/component/hero/type.d.ts +5 -0
  133. package/distribution/component/hero/type.d.ts.map +1 -0
  134. package/distribution/component/hero/type.js +2 -0
  135. package/distribution/component/hero/type.js.map +1 -0
  136. package/distribution/component/language-switch/index.d.ts +4 -0
  137. package/distribution/component/language-switch/index.d.ts.map +1 -0
  138. package/distribution/component/language-switch/index.js +9 -0
  139. package/distribution/component/language-switch/index.js.map +1 -0
  140. package/distribution/component/language-switch/index.module.css +17 -0
  141. package/distribution/component/language-switch/type.d.ts +5 -0
  142. package/distribution/component/language-switch/type.d.ts.map +1 -0
  143. package/distribution/component/language-switch/type.js +2 -0
  144. package/distribution/component/language-switch/type.js.map +1 -0
  145. package/distribution/component/marquee/index.d.ts +3 -0
  146. package/distribution/component/marquee/index.d.ts.map +1 -0
  147. package/distribution/component/marquee/index.js +9 -0
  148. package/distribution/component/marquee/index.js.map +1 -0
  149. package/distribution/component/marquee/index.module.css +28 -0
  150. package/distribution/component/navigation/index.d.ts +4 -0
  151. package/distribution/component/navigation/index.d.ts.map +1 -0
  152. package/distribution/component/navigation/index.js +21 -0
  153. package/distribution/component/navigation/index.js.map +1 -0
  154. package/distribution/component/navigation/index.module.css +53 -0
  155. package/distribution/component/navigation/type.d.ts +5 -0
  156. package/distribution/component/navigation/type.d.ts.map +1 -0
  157. package/distribution/component/navigation/type.js +2 -0
  158. package/distribution/component/navigation/type.js.map +1 -0
  159. package/distribution/component/process/index.d.ts +4 -0
  160. package/distribution/component/process/index.d.ts.map +1 -0
  161. package/distribution/component/process/index.js +19 -0
  162. package/distribution/component/process/index.js.map +1 -0
  163. package/distribution/component/process/index.module.css +43 -0
  164. package/distribution/component/process/step/index.d.ts +4 -0
  165. package/distribution/component/process/step/index.d.ts.map +1 -0
  166. package/distribution/component/process/step/index.js +12 -0
  167. package/distribution/component/process/step/index.js.map +1 -0
  168. package/distribution/component/process/step/index.module.css +33 -0
  169. package/distribution/component/process/step/type.d.ts +10 -0
  170. package/distribution/component/process/step/type.d.ts.map +1 -0
  171. package/distribution/component/process/step/type.js +2 -0
  172. package/distribution/component/process/step/type.js.map +1 -0
  173. package/distribution/component/process/type.d.ts +5 -0
  174. package/distribution/component/process/type.d.ts.map +1 -0
  175. package/distribution/component/process/type.js +2 -0
  176. package/distribution/component/process/type.js.map +1 -0
  177. package/distribution/component/section/index.d.ts +4 -0
  178. package/distribution/component/section/index.d.ts.map +1 -0
  179. package/distribution/component/section/index.js +7 -0
  180. package/distribution/component/section/index.js.map +1 -0
  181. package/distribution/component/section/index.module.css +6 -0
  182. package/distribution/component/section/type.d.ts +7 -0
  183. package/distribution/component/section/type.d.ts.map +1 -0
  184. package/distribution/component/section/type.js +2 -0
  185. package/distribution/component/section/type.js.map +1 -0
  186. package/distribution/component/section-heading/index.d.ts +4 -0
  187. package/distribution/component/section-heading/index.d.ts.map +1 -0
  188. package/distribution/component/section-heading/index.js +9 -0
  189. package/distribution/component/section-heading/index.js.map +1 -0
  190. package/distribution/component/section-heading/index.module.css +7 -0
  191. package/distribution/component/section-heading/type.d.ts +5 -0
  192. package/distribution/component/section-heading/type.d.ts.map +1 -0
  193. package/distribution/component/section-heading/type.js +2 -0
  194. package/distribution/component/section-heading/type.js.map +1 -0
  195. package/distribution/component/services/application-visual/index.d.ts +4 -0
  196. package/distribution/component/services/application-visual/index.d.ts.map +1 -0
  197. package/distribution/component/services/application-visual/index.js +17 -0
  198. package/distribution/component/services/application-visual/index.js.map +1 -0
  199. package/distribution/component/services/application-visual/index.module.css +95 -0
  200. package/distribution/component/services/application-visual/type.d.ts +5 -0
  201. package/distribution/component/services/application-visual/type.d.ts.map +1 -0
  202. package/distribution/component/services/application-visual/type.js +2 -0
  203. package/distribution/component/services/application-visual/type.js.map +1 -0
  204. package/distribution/component/services/card/index.d.ts +4 -0
  205. package/distribution/component/services/card/index.d.ts.map +1 -0
  206. package/distribution/component/services/card/index.js +10 -0
  207. package/distribution/component/services/card/index.js.map +1 -0
  208. package/distribution/component/services/card/index.module.css +92 -0
  209. package/distribution/component/services/card/type.d.ts +12 -0
  210. package/distribution/component/services/card/type.d.ts.map +1 -0
  211. package/distribution/component/services/card/type.js +2 -0
  212. package/distribution/component/services/card/type.js.map +1 -0
  213. package/distribution/component/services/index.d.ts +4 -0
  214. package/distribution/component/services/index.d.ts.map +1 -0
  215. package/distribution/component/services/index.js +21 -0
  216. package/distribution/component/services/index.js.map +1 -0
  217. package/distribution/component/services/index.module.css +19 -0
  218. package/distribution/component/services/platform-visual/index.d.ts +3 -0
  219. package/distribution/component/services/platform-visual/index.d.ts.map +1 -0
  220. package/distribution/component/services/platform-visual/index.js +16 -0
  221. package/distribution/component/services/platform-visual/index.js.map +1 -0
  222. package/distribution/component/services/platform-visual/index.module.css +46 -0
  223. package/distribution/component/services/type.d.ts +5 -0
  224. package/distribution/component/services/type.d.ts.map +1 -0
  225. package/distribution/component/services/type.js +2 -0
  226. package/distribution/component/services/type.js.map +1 -0
  227. package/distribution/component/services/web-visual/index.d.ts +3 -0
  228. package/distribution/component/services/web-visual/index.d.ts.map +1 -0
  229. package/distribution/component/services/web-visual/index.js +25 -0
  230. package/distribution/component/services/web-visual/index.js.map +1 -0
  231. package/distribution/component/services/web-visual/index.module.css +134 -0
  232. package/distribution/component/share-image/index.d.ts +5 -0
  233. package/distribution/component/share-image/index.d.ts.map +1 -0
  234. package/distribution/component/share-image/index.js +66 -0
  235. package/distribution/component/share-image/index.js.map +1 -0
  236. package/distribution/component/share-image/type.d.ts +7 -0
  237. package/distribution/component/share-image/type.d.ts.map +1 -0
  238. package/distribution/component/share-image/type.js +2 -0
  239. package/distribution/component/share-image/type.js.map +1 -0
  240. package/distribution/component/statement/index.d.ts +4 -0
  241. package/distribution/component/statement/index.d.ts.map +1 -0
  242. package/distribution/component/statement/index.js +9 -0
  243. package/distribution/component/statement/index.js.map +1 -0
  244. package/distribution/component/statement/index.module.css +13 -0
  245. package/distribution/component/statement/type.d.ts +4 -0
  246. package/distribution/component/statement/type.d.ts.map +1 -0
  247. package/distribution/component/statement/type.js +2 -0
  248. package/distribution/component/statement/type.js.map +1 -0
  249. package/distribution/component/structured-data/index.d.ts +4 -0
  250. package/distribution/component/structured-data/index.d.ts.map +1 -0
  251. package/distribution/component/structured-data/index.js +36 -0
  252. package/distribution/component/structured-data/index.js.map +1 -0
  253. package/distribution/component/structured-data/type.d.ts +5 -0
  254. package/distribution/component/structured-data/type.d.ts.map +1 -0
  255. package/distribution/component/structured-data/type.js +2 -0
  256. package/distribution/component/structured-data/type.js.map +1 -0
  257. package/distribution/component/wordmark/index.d.ts +4 -0
  258. package/distribution/component/wordmark/index.d.ts.map +1 -0
  259. package/distribution/component/wordmark/index.js +7 -0
  260. package/distribution/component/wordmark/index.js.map +1 -0
  261. package/distribution/component/wordmark/index.module.css +23 -0
  262. package/distribution/component/wordmark/type.d.ts +4 -0
  263. package/distribution/component/wordmark/type.d.ts.map +1 -0
  264. package/distribution/component/wordmark/type.js +2 -0
  265. package/distribution/component/wordmark/type.js.map +1 -0
  266. package/distribution/content/contact/index.d.ts +62 -0
  267. package/distribution/content/contact/index.d.ts.map +1 -0
  268. package/distribution/content/contact/index.js +35 -0
  269. package/distribution/content/contact/index.js.map +1 -0
  270. package/distribution/content/footer/index.d.ts +12 -0
  271. package/distribution/content/footer/index.d.ts.map +1 -0
  272. package/distribution/content/footer/index.js +6 -0
  273. package/distribution/content/footer/index.js.map +1 -0
  274. package/distribution/content/globe/index.d.ts +8 -0
  275. package/distribution/content/globe/index.d.ts.map +1 -0
  276. package/distribution/content/globe/index.js +18 -0
  277. package/distribution/content/globe/index.js.map +1 -0
  278. package/distribution/content/hero/index.d.ts +28 -0
  279. package/distribution/content/hero/index.d.ts.map +1 -0
  280. package/distribution/content/hero/index.js +16 -0
  281. package/distribution/content/hero/index.js.map +1 -0
  282. package/distribution/content/navigation/index.d.ts +20 -0
  283. package/distribution/content/navigation/index.d.ts.map +1 -0
  284. package/distribution/content/navigation/index.js +8 -0
  285. package/distribution/content/navigation/index.js.map +1 -0
  286. package/distribution/content/process/index.d.ts +53 -0
  287. package/distribution/content/process/index.d.ts.map +1 -0
  288. package/distribution/content/process/index.js +31 -0
  289. package/distribution/content/process/index.js.map +1 -0
  290. package/distribution/content/services/index.d.ts +62 -0
  291. package/distribution/content/services/index.d.ts.map +1 -0
  292. package/distribution/content/services/index.js +52 -0
  293. package/distribution/content/services/index.js.map +1 -0
  294. package/distribution/content/site/index.d.ts +19 -0
  295. package/distribution/content/site/index.d.ts.map +1 -0
  296. package/distribution/content/site/index.js +19 -0
  297. package/distribution/content/site/index.js.map +1 -0
  298. package/distribution/content/stack/index.d.ts +3 -0
  299. package/distribution/content/stack/index.d.ts.map +1 -0
  300. package/distribution/content/stack/index.js +16 -0
  301. package/distribution/content/stack/index.js.map +1 -0
  302. package/distribution/content/statement/index.d.ts +6 -0
  303. package/distribution/content/statement/index.d.ts.map +1 -0
  304. package/distribution/content/statement/index.js +6 -0
  305. package/distribution/content/statement/index.js.map +1 -0
  306. package/distribution/hook/globe-drag/index.d.ts +10 -0
  307. package/distribution/hook/globe-drag/index.d.ts.map +1 -0
  308. package/distribution/hook/globe-drag/index.js +99 -0
  309. package/distribution/hook/globe-drag/index.js.map +1 -0
  310. package/distribution/hook/globe-drag/type.d.ts +11 -0
  311. package/distribution/hook/globe-drag/type.d.ts.map +1 -0
  312. package/distribution/hook/globe-drag/type.js +2 -0
  313. package/distribution/hook/globe-drag/type.js.map +1 -0
  314. package/distribution/hook/land-points/index.d.ts +3 -0
  315. package/distribution/hook/land-points/index.d.ts.map +1 -0
  316. package/distribution/hook/land-points/index.js +17 -0
  317. package/distribution/hook/land-points/index.js.map +1 -0
  318. package/distribution/style/token/index.css +1 -0
  319. package/distribution/style/token/index.scss +18 -0
  320. package/distribution/utility/horizon-dots/index.d.ts +4 -0
  321. package/distribution/utility/horizon-dots/index.d.ts.map +1 -0
  322. package/distribution/utility/horizon-dots/index.js +17 -0
  323. package/distribution/utility/horizon-dots/index.js.map +1 -0
  324. package/distribution/utility/horizon-dots/type.d.ts +7 -0
  325. package/distribution/utility/horizon-dots/type.d.ts.map +1 -0
  326. package/distribution/utility/horizon-dots/type.js +2 -0
  327. package/distribution/utility/horizon-dots/type.js.map +1 -0
  328. package/distribution/utility/latitude-longitude-to-vector/index.d.ts +7 -0
  329. package/distribution/utility/latitude-longitude-to-vector/index.d.ts.map +1 -0
  330. package/distribution/utility/latitude-longitude-to-vector/index.js +12 -0
  331. package/distribution/utility/latitude-longitude-to-vector/index.js.map +1 -0
  332. package/distribution/utility/locale/index.d.ts +6 -0
  333. package/distribution/utility/locale/index.d.ts.map +1 -0
  334. package/distribution/utility/locale/index.js +8 -0
  335. package/distribution/utility/locale/index.js.map +1 -0
  336. package/distribution/utility/locale/type.d.ts +6 -0
  337. package/distribution/utility/locale/type.d.ts.map +1 -0
  338. package/distribution/utility/locale/type.js +2 -0
  339. package/distribution/utility/locale/type.js.map +1 -0
  340. package/distribution/utility/parse-contact/index.d.ts +4 -0
  341. package/distribution/utility/parse-contact/index.d.ts.map +1 -0
  342. package/distribution/utility/parse-contact/index.js +19 -0
  343. package/distribution/utility/parse-contact/index.js.map +1 -0
  344. package/distribution/utility/parse-contact/type.d.ts +17 -0
  345. package/distribution/utility/parse-contact/type.d.ts.map +1 -0
  346. package/distribution/utility/parse-contact/type.js +2 -0
  347. package/distribution/utility/parse-contact/type.js.map +1 -0
  348. package/distribution/utility/web-gl-support/index.d.ts +3 -0
  349. package/distribution/utility/web-gl-support/index.d.ts.map +1 -0
  350. package/distribution/utility/web-gl-support/index.js +11 -0
  351. package/distribution/utility/web-gl-support/index.js.map +1 -0
  352. package/package.json +96 -3
@@ -0,0 +1,56 @@
1
+ .contact {
2
+ display: grid;
3
+ grid-template-columns: 1fr 1.1fr;
4
+ gap: clamp(40px, 6vw, 96px);
5
+ align-items: start;
6
+ }
7
+ @media (max-width: 860px) {
8
+ .contact {
9
+ grid-template-columns: 1fr;
10
+ }
11
+ }
12
+
13
+ .glow {
14
+ position: absolute;
15
+ left: 50%;
16
+ top: 40%;
17
+ width: 80vw;
18
+ max-width: 1000px;
19
+ aspect-ratio: 2;
20
+ transform: translate(-50%, -50%);
21
+ background: radial-gradient(closest-side, rgba(255, 255, 255, 0.07), transparent);
22
+ pointer-events: none;
23
+ z-index: -1;
24
+ }
25
+
26
+ .heading h2 {
27
+ margin: 16px 0 22px;
28
+ }
29
+
30
+ .text {
31
+ color: var(--foreground-2);
32
+ font-size: 1.1rem;
33
+ max-width: 30ch;
34
+ }
35
+
36
+ .direct {
37
+ margin-top: 40px;
38
+ display: grid;
39
+ gap: 6px;
40
+ }
41
+ .direct :global(.monospace) {
42
+ font-size: 12px;
43
+ color: var(--foreground-3);
44
+ text-transform: uppercase;
45
+ letter-spacing: 0.04em;
46
+ }
47
+ .direct a {
48
+ font-size: clamp(1.3rem, 2.4vw, 1.8rem);
49
+ letter-spacing: -0.03em;
50
+ width: fit-content;
51
+ background: linear-gradient(#fff, #fff) left bottom/0 1px no-repeat;
52
+ transition: background-size 0.5s var(--ease);
53
+ }
54
+ .direct a:hover {
55
+ background-size: 100% 1px;
56
+ }
@@ -0,0 +1,8 @@
1
+ import type { ContactState } from "@sharadox/sharadox-web-library/action/send-contact/type";
2
+ import type { Locale } from "@sharadox/sharadox-web-library/utility/locale/type";
3
+ export interface ContactProperties {
4
+ locale: Locale;
5
+ /** The application's server action, which calls `sendContact`. */
6
+ action: (state: ContactState, form: FormData) => Promise<ContactState>;
7
+ }
8
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../source/component/contact/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yDAAyD,CAAC;AAC5F,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oDAAoD,CAAC;AAEjF,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,kEAAkE;IAClE,MAAM,EAAE,CAAC,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,KAAK,OAAO,CAAC,YAAY,CAAC,CAAC;CACxE"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.js","sourceRoot":"","sources":["../../../source/component/contact/type.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ /** Custom cursor on fine pointers: a dot plus a lagging ring that grows over links and the globe. */
2
+ export declare function Cursor(): import("react").JSX.Element;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/cursor/index.tsx"],"names":[],"mappings":"AAIA,qGAAqG;AACrG,wBAAgB,MAAM,gCAwCrB"}
@@ -0,0 +1,45 @@
1
+ "use client";
2
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { useEffect, useRef } from "react";
4
+ import styles from "./index.module.css";
5
+ /** Custom cursor on fine pointers: a dot plus a lagging ring that grows over links and the globe. */
6
+ export function Cursor() {
7
+ const dot = useRef(null);
8
+ const ring = useRef(null);
9
+ useEffect(() => {
10
+ if (!window.matchMedia("(pointer: fine)").matches)
11
+ return;
12
+ const root = document.documentElement;
13
+ root.classList.add("has-cursor");
14
+ let x = innerWidth / 2;
15
+ let y = innerHeight / 2;
16
+ let ringX = x;
17
+ let ringY = y;
18
+ let frame = 0;
19
+ const move = (event) => {
20
+ x = event.clientX;
21
+ y = event.clientY;
22
+ const target = event.target;
23
+ ring.current?.classList.toggle(styles.hot, !!target.closest("a, button, input, textarea, label, [data-hot]"));
24
+ ring.current?.classList.toggle(styles.grab, !!target.closest("canvas"));
25
+ };
26
+ const loop = () => {
27
+ ringX += (x - ringX) * 0.18;
28
+ ringY += (y - ringY) * 0.18;
29
+ if (dot.current)
30
+ dot.current.style.transform = `translate3d(${x}px, ${y}px, 0)`;
31
+ if (ring.current)
32
+ ring.current.style.transform = `translate3d(${ringX}px, ${ringY}px, 0)`;
33
+ frame = requestAnimationFrame(loop);
34
+ };
35
+ addEventListener("pointermove", move);
36
+ frame = requestAnimationFrame(loop);
37
+ return () => {
38
+ removeEventListener("pointermove", move);
39
+ cancelAnimationFrame(frame);
40
+ root.classList.remove("has-cursor");
41
+ };
42
+ }, []);
43
+ return (_jsxs(_Fragment, { children: [_jsx("div", { ref: ring, className: styles.ring, "aria-hidden": true }), _jsx("div", { ref: dot, className: styles.dot, "aria-hidden": true })] }));
44
+ }
45
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/cursor/index.t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B,KAAK,IAAI,CAAC,CAAC,GAAG,KAAK,CAAC,GAAG,IAAI,CAAC;YAC5B,KAAK,IAAI,CAAC,CAAC,GAAG,KAAK,CAAC,GAAG,IAAI,CAAC;YAC5B,IAAI,GAAG,CAAC,OAAO;gBAAE,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,SAAS,GAAG,eAAe,CAAC,OAAO,CAAC,QAAQ,CAAC;YAChF,IAAI,IAAI,CAAC,OAAO;gBAAE,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,SAAS,GAAG,eAAe,KAAK,OAAO,KAAK,QAAQ,CAAC;YAC1F,KAAK,GAAG,qBAAqB,CAAC,IAAI,CAAC,CAAC;QACtC,CAAC,CAAC;QACF,gBAAgB,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC;QACtC,KAAK,GAAG,qBAAqB,CAAC,IAAI,CAAC,CAAC;QACpC,OAAO,GAAG,EAAE;YACV,mBAAmB,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC;YACzC,oBAAoB,CAAC,KAAK,CAAC,CAAC;YAC5B,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;QACtC,CAAC,CAAC;IACJ,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,OAAO,CACL,8BACE,cAAK,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,CAAC,IAAI,wBAAgB,EACtD,cAAK,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,CAAC,GAAG,wBAAgB,IACnD,CACJ,CAAC;AACJ,CAAC"}
@@ -0,0 +1,53 @@
1
+ :global(.has-cursor),
2
+ :global(.has-cursor) a,
3
+ :global(.has-cursor) button {
4
+ cursor: none;
5
+ }
6
+
7
+ :global(.has-cursor) canvas {
8
+ cursor: none !important;
9
+ }
10
+
11
+ .dot,
12
+ .ring {
13
+ position: fixed;
14
+ left: 0;
15
+ top: 0;
16
+ z-index: 1000;
17
+ pointer-events: none;
18
+ border-radius: 50%;
19
+ mix-blend-mode: difference;
20
+ }
21
+ :global(html:not(.has-cursor)) .dot,
22
+ :global(html:not(.has-cursor)) .ring {
23
+ display: none;
24
+ }
25
+
26
+ .dot {
27
+ width: 6px;
28
+ height: 6px;
29
+ margin: -3px 0 0 -3px;
30
+ background: #fff;
31
+ }
32
+
33
+ .ring {
34
+ width: 34px;
35
+ height: 34px;
36
+ margin: -17px 0 0 -17px;
37
+ border: 1px solid rgba(255, 255, 255, 0.6);
38
+ transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), background 0.35s;
39
+ }
40
+
41
+ .hot {
42
+ width: 60px;
43
+ height: 60px;
44
+ margin: -30px 0 0 -30px;
45
+ background: rgba(255, 255, 255, 0.12);
46
+ }
47
+
48
+ .grab {
49
+ width: 76px;
50
+ height: 76px;
51
+ margin: -38px 0 0 -38px;
52
+ border-style: dashed;
53
+ }
@@ -0,0 +1,4 @@
1
+ import type { EyebrowProperties } from "@sharadox/sharadox-web-library/component/eyebrow/type";
2
+ /** Small uppercase monospace label above a heading. */
3
+ export declare function Eyebrow({ children, className }: EyebrowProperties): import("react").JSX.Element;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/eyebrow/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uDAAuD,CAAC;AAE/F,uDAAuD;AACvD,wBAAgB,OAAO,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,iBAAiB,+BAEjE"}
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import styles from "./index.module.css";
3
+ /** Small uppercase monospace label above a heading. */
4
+ export function Eyebrow({ children, className }) {
5
+ return _jsx("p", { className: [styles.eyebrow, "monospace", className].filter(Boolean).join(" "), children: children });
6
+ }
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/eyebrow/index.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC,uDAAuD;AACvD,MAAM,UAAU,OAAO,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAqB;IAChE,OAAO,YAAG,SAAS,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,WAAW,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,YAAG,QAAQ,GAAK,CAAC;AAC1G,CAAC"}
@@ -0,0 +1,9 @@
1
+ .eyebrow {
2
+ display: inline-flex;
3
+ align-items: center;
4
+ gap: 10px;
5
+ font-size: 12.5px;
6
+ letter-spacing: 0.04em;
7
+ text-transform: uppercase;
8
+ color: var(--foreground-2);
9
+ }
@@ -0,0 +1,6 @@
1
+ import type { ReactNode } from "react";
2
+ export interface EyebrowProperties {
3
+ children: ReactNode;
4
+ className?: string;
5
+ }
6
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../source/component/eyebrow/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.js","sourceRoot":"","sources":["../../../source/component/eyebrow/type.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import type { FooterProperties } from "@sharadox/sharadox-web-library/component/footer/type";
2
+ /** Slogan, links, the big gradient wordmark and the legal line. */
3
+ export declare function Footer({ locale }: FooterProperties): import("react").JSX.Element;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/footer/index.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sDAAsD,CAAC;AAE7F,mEAAmE;AACnE,wBAAgB,MAAM,CAAC,EAAE,MAAM,EAAE,EAAE,gBAAgB,+BA8BlD"}
@@ -0,0 +1,12 @@
1
+ import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
2
+ import Link from "next/link";
3
+ import { FOOTER } from "@sharadox/sharadox-web-library/content/footer";
4
+ import { SITE } from "@sharadox/sharadox-web-library/content/site";
5
+ import { LOCALES } from "@sharadox/sharadox-web-library/utility/locale";
6
+ import { translate } from "@sharadox/web-library/internationalization/translate";
7
+ import styles from "./index.module.css";
8
+ /** Slogan, links, the big gradient wordmark and the legal line. */
9
+ export function Footer({ locale }) {
10
+ return (_jsxs("footer", { className: styles.footer, children: [_jsxs("div", { className: styles.top, children: [_jsxs("p", { className: styles.slogan, children: [translate(SITE.slogan, locale), "."] }), _jsxs("div", { className: styles.links, children: [_jsx("a", { href: `mailto:${SITE.email}`, children: SITE.email }), _jsx("span", { className: styles.languages, children: LOCALES.map((other) => (_jsx(Link, { href: `/${other}`, hrefLang: other, "aria-current": other === locale ? "true" : undefined, children: other === "en" ? "English" : "Português" }, other))) }), _jsxs("a", { href: "#top", children: [translate(FOOTER.top, locale), " \u2191"] })] })] }), _jsx("div", { className: styles.mark, "aria-hidden": true, children: "Sharadox" }), _jsxs("p", { className: `${styles.legal} monospace`, children: ["\u00A9 ", new Date().getFullYear(), " Sharadox \u00B7 ", translate(FOOTER.rights, locale)] })] }));
11
+ }
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/footer/index.tsx"],"names":[],"mappings":";AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,MAAM,EAAE,MAAM,+CAA+C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EAAE,MAAM,CAAC,IACvE,IACG,CACV,CAAC;AACJ,CAAC"}
@@ -0,0 +1,59 @@
1
+ .footer {
2
+ max-width: var(--maximum-width);
3
+ margin: 0 auto;
4
+ padding: 60px var(--padding) 32px;
5
+ border-top: 1px solid var(--line);
6
+ overflow: hidden;
7
+ }
8
+
9
+ .top {
10
+ display: flex;
11
+ flex-wrap: wrap;
12
+ justify-content: space-between;
13
+ gap: 24px;
14
+ }
15
+
16
+ .slogan {
17
+ font-size: 1.1rem;
18
+ font-weight: 500;
19
+ letter-spacing: -0.03em;
20
+ }
21
+
22
+ .links {
23
+ display: flex;
24
+ flex-wrap: wrap;
25
+ gap: 14px 28px;
26
+ color: var(--foreground-2);
27
+ font-size: 14px;
28
+ }
29
+ .links a:hover {
30
+ color: var(--foreground);
31
+ }
32
+
33
+ .languages {
34
+ display: flex;
35
+ gap: 14px;
36
+ }
37
+ .languages a[aria-current] {
38
+ color: var(--foreground);
39
+ }
40
+
41
+ .mark {
42
+ margin: 50px 0 18px;
43
+ font-size: clamp(4rem, 17vw, 15rem);
44
+ font-weight: 600;
45
+ letter-spacing: -0.075em;
46
+ line-height: 0.8;
47
+ text-align: center;
48
+ background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.05) 85%);
49
+ -webkit-background-clip: text;
50
+ background-clip: text;
51
+ color: transparent;
52
+ user-select: none;
53
+ }
54
+
55
+ .legal {
56
+ font-size: 12px;
57
+ color: var(--foreground-3);
58
+ text-align: center;
59
+ }
@@ -0,0 +1,5 @@
1
+ import type { Locale } from "@sharadox/sharadox-web-library/utility/locale/type";
2
+ export interface FooterProperties {
3
+ locale: Locale;
4
+ }
5
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../source/component/footer/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oDAAoD,CAAC;AAEjF,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAC;CAChB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.js","sourceRoot":"","sources":["../../../source/component/footer/type.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import type { ArcProperties } from "@sharadox/sharadox-web-library/component/globe/arc/type";
2
+ /** A light arc lifting off the surface between two places, with a pulse running along it. */
3
+ export declare function Arc({ from, to, offset }: ArcProperties): import("react").JSX.Element;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/globe/arc/index.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yDAAyD,CAAC;AAE7F,6FAA6F;AAC7F,wBAAgB,GAAG,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,aAAa,+BA8BtD"}
@@ -0,0 +1,29 @@
1
+ "use client";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { useFrame } from "@react-three/fiber";
4
+ import { useMemo, useRef } from "react";
5
+ import { AdditiveBlending, QuadraticBezierCurve3, TubeGeometry } from "three";
6
+ import { ARC_SHADER } from "@sharadox/sharadox-web-library/component/globe/shader/arc";
7
+ import { latitudeLongitudeToVector } from "@sharadox/sharadox-web-library/utility/latitude-longitude-to-vector";
8
+ /** A light arc lifting off the surface between two places, with a pulse running along it. */
9
+ export function Arc({ from, to, offset }) {
10
+ const material = useRef(null);
11
+ const geometry = useMemo(() => {
12
+ const start = latitudeLongitudeToVector(from.latitude, from.longitude, 1.002);
13
+ const end = latitudeLongitudeToVector(to[0], to[1], 1.002);
14
+ const middle = start
15
+ .clone()
16
+ .add(end)
17
+ .multiplyScalar(0.5)
18
+ .normalize()
19
+ .multiplyScalar(1 + start.distanceTo(end) * 0.38);
20
+ return new TubeGeometry(new QuadraticBezierCurve3(start, middle, end), 90, 0.0032, 6, false);
21
+ }, [from, to]);
22
+ const uniforms = useMemo(() => ({ time: { value: 0 }, offset: { value: offset } }), [offset]);
23
+ useFrame((_, deltaSeconds) => {
24
+ if (material.current)
25
+ material.current.uniforms.time.value += deltaSeconds;
26
+ });
27
+ return (_jsx("mesh", { geometry: geometry, children: _jsx("shaderMaterial", { ref: material, vertexShader: ARC_SHADER.vertex, fragmentShader: ARC_SHADER.fragment, uniforms: uniforms, transparent: true, depthWrite: false, blending: AdditiveBlending }) }));
28
+ }
29
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/globe/arc/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,YAAY,EAAuB,MAAM,OAAO,CAAC;AACnG,OAAO,EAAE,UAAU,EAAE,MAAM,2DAA2D,CAAC;AACvF,OAAO,EAAE,yBAAyB,EAAE,MAAM,qEAAqE,CAAC;AAGhH,6FAA6F;AAC7F,MAAM,UAAU,GAAG,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM,EAAiB;IACrD,MAAM,QAAQ,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;IAC9C,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,EAAE;QAC5B,MAAM,KAAK,GAAG,yBAAyB,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;QAC9E,MAAM,GAAG,GAAG,yBAAyB,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;QAC3D,MAAM,MAAM,GAAG,KAAK;aACjB,KAAK,EAAE;aACP,GAAG,CAAC,GAAG,CAAC;aACR,cAAc,CAAC,GAAG,CAAC;aACnB,SAAS,EAAE;aACX,cAAc,CAAC,CAAC,GAAG,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;QACpD,OAAO,IAAI,YAAY,CAAC,IAAI,qBAAqB,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC;IAC/F,CAAC,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC;IACf,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IAC9F,QAAQ,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,EAAE;QAC3B,IAAI,QAAQ,CAAC,OAAO;YAAE,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAK,CAAC,KAAK,IAAI,YAAY,CAAC;IAC9E,CAAC,CAAC,CAAC;IACH,OAAO,CACL,eAAM,QAAQ,EAAE,QAAQ,YACtB,yBACE,GAAG,EAAE,QAAQ,EACb,YAAY,EAAE,UAAU,CAAC,MAAM,EAC/B,cAAc,EAAE,UAAU,CAAC,QAAQ,EACnC,QAAQ,EAAE,QAAQ,EAClB,WAAW,QACX,UAAU,EAAE,KAAK,EACjB,QAAQ,EAAE,gBAAgB,GAC1B,GACG,CACR,CAAC;AACJ,CAAC"}
@@ -0,0 +1,10 @@
1
+ export interface ArcProperties {
2
+ from: {
3
+ latitude: number;
4
+ longitude: number;
5
+ };
6
+ to: readonly [number, number];
7
+ /** Phase of the travelling pulse, 0–1, so arcs don't pulse in sync. */
8
+ offset: number;
9
+ }
10
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../source/component/globe/arc/type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC;IAC9C,EAAE,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,uEAAuE;IACvE,MAAM,EAAE,MAAM,CAAC;CAChB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../source/component/globe/arc/type.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import type { DotsProperties } from "@sharadox/sharadox-web-library/component/globe/dots/type";
2
+ /** The land, drawn as twinkling points that fade towards the globe's edge. */
3
+ export declare function Dots({ data }: DotsProperties): import("react").JSX.Element;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/globe/dots/index.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0DAA0D,CAAC;AAE/F,8EAA8E;AAC9E,wBAAgB,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE,cAAc,+BAoC5C"}
@@ -0,0 +1,34 @@
1
+ "use client";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { pseudoRandom } from "@sharadox/web-library/math/pseudo-random";
4
+ import { useFrame, useThree } from "@react-three/fiber";
5
+ import { useMemo, useRef } from "react";
6
+ import { BufferAttribute, BufferGeometry } from "three";
7
+ import { DOT_SHADER } from "@sharadox/sharadox-web-library/component/globe/shader/dot";
8
+ import { latitudeLongitudeToVector } from "@sharadox/sharadox-web-library/utility/latitude-longitude-to-vector";
9
+ /** The land, drawn as twinkling points that fade towards the globe's edge. */
10
+ export function Dots({ data }) {
11
+ const { gl } = useThree();
12
+ const material = useRef(null);
13
+ const geometry = useMemo(() => {
14
+ const count = data.length / 2;
15
+ const position = new Float32Array(count * 3);
16
+ const seed = new Float32Array(count);
17
+ for (let index = 0; index < count; index++) {
18
+ const point = latitudeLongitudeToVector(data[index * 2], data[index * 2 + 1], 1.001);
19
+ position.set([point.x, point.y, point.z], index * 3);
20
+ seed[index] = pseudoRandom(index);
21
+ }
22
+ const points = new BufferGeometry();
23
+ points.setAttribute("position", new BufferAttribute(position, 3));
24
+ points.setAttribute("seed", new BufferAttribute(seed, 1));
25
+ return points;
26
+ }, [data]);
27
+ const uniforms = useMemo(() => ({ time: { value: 0 }, pointSize: { value: 2.6 * Math.min(gl.getPixelRatio(), 2) } }), [gl]);
28
+ useFrame((_, deltaSeconds) => {
29
+ if (material.current)
30
+ material.current.uniforms.time.value += deltaSeconds;
31
+ });
32
+ return (_jsx("points", { geometry: geometry, children: _jsx("shaderMaterial", { ref: material, vertexShader: DOT_SHADER.vertex, fragmentShader: DOT_SHADER.fragment, uniforms: uniforms, transparent: true, depthWrite: false }) }));
33
+ }
34
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/globe/dots/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAC;AACxE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,cAAc,EAAuB,MAAM,OAAO,CAAC;AAC7E,OAAO,EAAE,UAAU,EAAE,MAAM,2DAA2D,CAAC;AACvF,OAAO,EAAE,yBAAyB,EAAE,MAAM,qEAAqE,CAAC;A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,OAAO,CACtB,GAAG,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,SAAS,EAAE,EAAE,KAAK,EAAE,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,EAC3F,CAAC,EAAE,CAAC,CACL,CAAC;IACF,QAAQ,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,EAAE;QAC3B,IAAI,QAAQ,CAAC,OAAO;YAAE,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAK,CAAC,KAAK,IAAI,YAAY,CAAC;IAC9E,CAAC,CAAC,CAAC;IACH,OAAO,CACL,iBAAQ,QAAQ,EAAE,QAAQ,YACxB,yBACE,GAAG,EAAE,QAAQ,EACb,YAAY,EAAE,UAAU,CAAC,MAAM,EAC/B,cAAc,EAAE,UAAU,CAAC,QAAQ,EACnC,QAAQ,EAAE,QAAQ,EAClB,WAAW,QACX,UAAU,EAAE,KAAK,GACjB,GACK,CACV,CAAC;AACJ,CAAC"}
@@ -0,0 +1,5 @@
1
+ export interface DotsProperties {
2
+ /** Float32 [latitude, longitude] pairs. */
3
+ data: Float32Array;
4
+ }
5
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../source/component/globe/dots/type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,2CAA2C;IAC3C,IAAI,EAAE,YAAY,CAAC;CACpB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../source/component/globe/dots/type.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Interactive dot globe (default export so the hero can load it lazily).
3
+ * Pauses rendering when off-screen and falls back to a static sphere without WebGL.
4
+ */
5
+ export default function Globe(): import("react").JSX.Element;
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/globe/index.tsx"],"names":[],"mappings":"AAWA;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,KAAK,gCAsC5B"}
@@ -0,0 +1,34 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { Canvas } from "@react-three/fiber";
4
+ import { useEffect, useState } from "react";
5
+ import { HOME } from "@sharadox/sharadox-web-library/content/globe";
6
+ import { useGlobeDrag } from "@sharadox/sharadox-web-library/hook/globe-drag";
7
+ import { useLandPoints } from "@sharadox/sharadox-web-library/hook/land-points";
8
+ import { radians } from "@sharadox/web-library/math/radians";
9
+ import { supportsWebGl } from "@sharadox/sharadox-web-library/utility/web-gl-support";
10
+ import styles from "./index.module.css";
11
+ import { World } from "@sharadox/sharadox-web-library/component/globe/world";
12
+ /**
13
+ * Interactive dot globe (default export so the hero can load it lazily).
14
+ * Pauses rendering when off-screen and falls back to a static sphere without WebGL.
15
+ */
16
+ export default function Globe() {
17
+ const data = useLandPoints();
18
+ const [visible, setVisible] = useState(true);
19
+ // Client-only component (loaded without server rendering), so the browser APIs are safe here.
20
+ const [webGl] = useState(supportsWebGl);
21
+ const [reduced] = useState(() => window.matchMedia("(prefers-reduced-motion: reduce)").matches);
22
+ // Start over Europe/Africa; auto-rotation drifts west.
23
+ const [wrapper, drag] = useGlobeDrag({ y: -radians(HOME.longitude) - 0.5, x: radians(HOME.latitude) * 0.62 }, !reduced);
24
+ useEffect(() => {
25
+ const observer = new IntersectionObserver(([entry]) => setVisible(!!entry?.isIntersecting), {
26
+ rootMargin: "100px",
27
+ });
28
+ if (wrapper.current)
29
+ observer.observe(wrapper.current);
30
+ return () => observer.disconnect();
31
+ }, [wrapper]);
32
+ return (_jsxs("div", { ref: wrapper, className: styles.globe, children: [_jsx("div", { className: styles.halo, "aria-hidden": true }), webGl && data ? (_jsx(Canvas, { dpr: [1, 2], camera: { position: [0, 0, 3.7], fov: 38 }, gl: { antialias: true, alpha: true, powerPreference: "high-performance" }, frameloop: visible ? "always" : "never", "aria-label": "Interactive globe", children: _jsx(World, { data: data, drag: drag }) })) : (_jsx("div", { className: styles.fallback, "aria-hidden": true }))] }));
33
+ }
34
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/globe/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,8CAA8C,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,MAAM,gDAAgD,CAAC;AAC9E,OAAO,EAAE,aAAa,EAAE,MAAM,iDAAiD,CAAC;AAChF,OAAO,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,uDAAuD,CAAC;AACtF,OAAO,MAAM,MAAM,qBAAqB,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,sDAAsD,CAAC;AAE7E;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,KAAK;IAC3B,MAAM,IAAI,GAAG,aAAa,EAAE,CAAC;IAC7B,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC7C,8FAA8F;IAC9F,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,aAAa,CAAC,CAAC;IACxC,MAAM,CAAC,OAAO,CAAC,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,UAAU,CAAC,kCAAkC,CAAC,CAAC,OAAO,CAAC,CAAC;IAChG,uDAA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E,IAAI,EAAE,IAAI,GAAI,GAC1B,CACV,CAAC,CAAC,CAAC,CACF,cAAK,SAAS,EAAE,MAAM,CAAC,QAAQ,wBAAgB,CAChD,IACG,CACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1,25 @@
1
+ .globe {
2
+ position: absolute;
3
+ inset: 0;
4
+ }
5
+ .globe canvas {
6
+ display: block;
7
+ touch-action: pan-y;
8
+ }
9
+
10
+ .halo {
11
+ position: absolute;
12
+ inset: 14%;
13
+ border-radius: 50%;
14
+ background: radial-gradient(closest-side, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04) 60%, transparent);
15
+ filter: blur(30px);
16
+ pointer-events: none;
17
+ }
18
+
19
+ .fallback {
20
+ position: absolute;
21
+ inset: 18%;
22
+ border-radius: 50%;
23
+ background: radial-gradient(circle at 35% 30%, #1a1a1a, #000 70%);
24
+ box-shadow: 0 0 120px 10px rgba(255, 255, 255, 0.08), inset 0 0 40px rgba(255, 255, 255, 0.08);
25
+ }
@@ -0,0 +1,4 @@
1
+ import type { MarkerProperties } from "@sharadox/sharadox-web-library/component/globe/marker/type";
2
+ /** A city dot lying flat on the surface. */
3
+ export declare function Marker({ latitude, longitude, home }: MarkerProperties): import("react").JSX.Element;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/globe/marker/index.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4DAA4D,CAAC;AAEnG,4CAA4C;AAC5C,wBAAgB,MAAM,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,IAAY,EAAE,EAAE,gBAAgB,+BA2B7E"}
@@ -0,0 +1,21 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { useFrame } from "@react-three/fiber";
4
+ import { useMemo, useRef } from "react";
5
+ import { Quaternion, Vector3 } from "three";
6
+ import { latitudeLongitudeToVector } from "@sharadox/sharadox-web-library/utility/latitude-longitude-to-vector";
7
+ /** A city dot lying flat on the surface. */
8
+ export function Marker({ latitude, longitude, home = false }) {
9
+ const ring = useRef(null);
10
+ const position = useMemo(() => latitudeLongitudeToVector(latitude, longitude, 1.004), [latitude, longitude]);
11
+ const quaternion = useMemo(() => new Quaternion().setFromUnitVectors(new Vector3(0, 0, 1), position.clone().normalize()), [position]);
12
+ useFrame(({ clock }) => {
13
+ if (!ring.current)
14
+ return;
15
+ const progress = (clock.elapsedTime * 0.6) % 1;
16
+ ring.current.scale.setScalar(1 + progress * 5);
17
+ ring.current.material.opacity = (1 - progress) * 0.8;
18
+ });
19
+ return (_jsxs("group", { position: position, quaternion: quaternion, children: [_jsxs("mesh", { children: [_jsx("circleGeometry", { args: [home ? 0.014 : 0.008, 20] }), _jsx("meshBasicMaterial", { color: "#fff", transparent: true, opacity: home ? 1 : 0.85 })] }), home && (_jsxs("mesh", { ref: ring, children: [_jsx("ringGeometry", { args: [0.014, 0.018, 40] }), _jsx("meshBasicMaterial", { color: "#fff", transparent: true, opacity: 0.8, depthWrite: false })] }))] }));
20
+ }
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/globe/marker/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,OAAO,EAAqC,MAAM,OAAO,CAAC;AAC/E,OAAO,EAAE,yBAAyB,EAAE,MAAM,qEAAqE,CAAC;AAGhH,4CAA4C;AAC5C,MAAM,UAAU,MAAM,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,IAAI,GAAG,KAAK,EAAoB;IAC5E,MAAM,IAAI,GAAG,MAAM,CAAO,IAAI,CAAC,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AAE,EAAE,CAAC,GAAI,EAC1C,4BAAmB,KAAK,EAAC,MAAM,EAAC,WAAW,QAAC,OAAO,EAAE,GAAG,EAAE,UAAU,EAAE,KAAK,GAAI,IAC1E,CACR,IACK,CACT,CAAC;AACJ,CAAC"}
@@ -0,0 +1,7 @@
1
+ export interface MarkerProperties {
2
+ latitude: number;
3
+ longitude: number;
4
+ /** The home marker is larger and sends out a pulsing ring. */
5
+ home?: boolean;
6
+ }
7
+ //# sourceMappingURL=type.d.ts.map