@sharadox/sharadox-web-library 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (303) hide show
  1. package/README.md +4 -2
  2. package/distribution/action/send-contact/index.d.ts.map +1 -1
  3. package/distribution/action/send-contact/index.js +6 -3
  4. package/distribution/action/send-contact/index.js.map +1 -1
  5. package/distribution/component/button/index.d.ts +1 -1
  6. package/distribution/component/button/index.d.ts.map +1 -1
  7. package/distribution/component/button/index.js +2 -2
  8. package/distribution/component/button/index.js.map +1 -1
  9. package/distribution/component/button/index.module.css +11 -8
  10. package/distribution/component/button/type.d.ts +1 -1
  11. package/distribution/component/capability/index.d.ts +4 -0
  12. package/distribution/component/capability/index.d.ts.map +1 -0
  13. package/distribution/component/capability/index.js +13 -0
  14. package/distribution/component/capability/index.js.map +1 -0
  15. package/distribution/component/capability/index.module.css +83 -0
  16. package/distribution/component/{services/application-visual → capability}/type.d.ts +1 -1
  17. package/distribution/component/capability/type.d.ts.map +1 -0
  18. package/distribution/component/capability/type.js.map +1 -0
  19. package/distribution/component/contact/form/index.d.ts.map +1 -1
  20. package/distribution/component/contact/form/index.js +2 -1
  21. package/distribution/component/contact/form/index.js.map +1 -1
  22. package/distribution/component/contact/form/index.module.css +67 -7
  23. package/distribution/component/contact/index.module.css +2 -2
  24. package/distribution/component/cross/index.d.ts +4 -0
  25. package/distribution/component/cross/index.d.ts.map +1 -0
  26. package/distribution/component/cross/index.js +7 -0
  27. package/distribution/component/cross/index.js.map +1 -0
  28. package/distribution/component/cross/index.module.css +53 -0
  29. package/distribution/component/cross/type.d.ts +6 -0
  30. package/distribution/component/cross/type.d.ts.map +1 -0
  31. package/distribution/component/cross/type.js.map +1 -0
  32. package/distribution/component/cursor/index.module.css +1 -0
  33. package/distribution/component/footer/index.d.ts +1 -1
  34. package/distribution/component/footer/index.d.ts.map +1 -1
  35. package/distribution/component/footer/index.js +12 -5
  36. package/distribution/component/footer/index.js.map +1 -1
  37. package/distribution/component/footer/index.module.css +88 -22
  38. package/distribution/component/globe/arc/index.d.ts +1 -1
  39. package/distribution/component/globe/arc/index.d.ts.map +1 -1
  40. package/distribution/component/globe/arc/index.js +4 -4
  41. package/distribution/component/globe/arc/index.js.map +1 -1
  42. package/distribution/component/globe/arc/type.d.ts +2 -0
  43. package/distribution/component/globe/arc/type.d.ts.map +1 -1
  44. package/distribution/component/globe/color/index.d.ts +4 -0
  45. package/distribution/component/globe/color/index.d.ts.map +1 -0
  46. package/distribution/component/globe/color/index.js +16 -0
  47. package/distribution/component/globe/color/index.js.map +1 -0
  48. package/distribution/component/globe/color/type.d.ts +13 -0
  49. package/distribution/component/globe/color/type.d.ts.map +1 -0
  50. package/distribution/component/globe/color/type.js +2 -0
  51. package/distribution/component/globe/color/type.js.map +1 -0
  52. package/distribution/component/globe/dots/index.d.ts +1 -1
  53. package/distribution/component/globe/dots/index.d.ts.map +1 -1
  54. package/distribution/component/globe/dots/index.js +6 -2
  55. package/distribution/component/globe/dots/index.js.map +1 -1
  56. package/distribution/component/globe/dots/type.d.ts +2 -0
  57. package/distribution/component/globe/dots/type.d.ts.map +1 -1
  58. package/distribution/component/globe/index.d.ts +1 -1
  59. package/distribution/component/globe/index.d.ts.map +1 -1
  60. package/distribution/component/globe/index.js +8 -3
  61. package/distribution/component/globe/index.js.map +1 -1
  62. package/distribution/component/globe/index.module.css +3 -3
  63. package/distribution/component/globe/marker/index.d.ts +1 -1
  64. package/distribution/component/globe/marker/index.d.ts.map +1 -1
  65. package/distribution/component/globe/marker/index.js +2 -2
  66. package/distribution/component/globe/marker/index.js.map +1 -1
  67. package/distribution/component/globe/marker/type.d.ts +2 -0
  68. package/distribution/component/globe/marker/type.d.ts.map +1 -1
  69. package/distribution/component/globe/shader/arc/index.d.ts.map +1 -1
  70. package/distribution/component/globe/shader/arc/index.js +2 -1
  71. package/distribution/component/globe/shader/arc/index.js.map +1 -1
  72. package/distribution/component/globe/shader/atmosphere/index.d.ts.map +1 -1
  73. package/distribution/component/globe/shader/atmosphere/index.js +2 -1
  74. package/distribution/component/globe/shader/atmosphere/index.js.map +1 -1
  75. package/distribution/component/globe/shader/body/index.d.ts +1 -1
  76. package/distribution/component/globe/shader/body/index.d.ts.map +1 -1
  77. package/distribution/component/globe/shader/body/index.js +4 -2
  78. package/distribution/component/globe/shader/body/index.js.map +1 -1
  79. package/distribution/component/globe/shader/dot/index.d.ts.map +1 -1
  80. package/distribution/component/globe/shader/dot/index.js +2 -1
  81. package/distribution/component/globe/shader/dot/index.js.map +1 -1
  82. package/distribution/component/globe/world/index.d.ts +1 -1
  83. package/distribution/component/globe/world/index.d.ts.map +1 -1
  84. package/distribution/component/globe/world/index.js +11 -7
  85. package/distribution/component/globe/world/index.js.map +1 -1
  86. package/distribution/component/globe/world/type.d.ts +2 -0
  87. package/distribution/component/globe/world/type.d.ts.map +1 -1
  88. package/distribution/component/hero/guide/index.d.ts +6 -0
  89. package/distribution/component/hero/guide/index.d.ts.map +1 -0
  90. package/distribution/component/hero/guide/index.js +12 -0
  91. package/distribution/component/hero/guide/index.js.map +1 -0
  92. package/distribution/component/hero/guide/index.module.css +97 -0
  93. package/distribution/component/hero/index.d.ts +1 -1
  94. package/distribution/component/hero/index.d.ts.map +1 -1
  95. package/distribution/component/hero/index.js +4 -2
  96. package/distribution/component/hero/index.js.map +1 -1
  97. package/distribution/component/hero/index.module.css +23 -29
  98. package/distribution/component/language-switch/index.d.ts +1 -1
  99. package/distribution/component/language-switch/index.d.ts.map +1 -1
  100. package/distribution/component/language-switch/index.js +5 -3
  101. package/distribution/component/language-switch/index.js.map +1 -1
  102. package/distribution/component/language-switch/index.module.css +6 -3
  103. package/distribution/component/locale-link/index.d.ts +4 -0
  104. package/distribution/component/locale-link/index.d.ts.map +1 -0
  105. package/distribution/component/locale-link/index.js +9 -0
  106. package/distribution/component/locale-link/index.js.map +1 -0
  107. package/distribution/component/locale-link/type.d.ts +10 -0
  108. package/distribution/component/locale-link/type.d.ts.map +1 -0
  109. package/distribution/component/locale-link/type.js +2 -0
  110. package/distribution/component/locale-link/type.js.map +1 -0
  111. package/distribution/component/marquee/index.module.css +5 -1
  112. package/distribution/component/navigation/index.d.ts +1 -1
  113. package/distribution/component/navigation/index.d.ts.map +1 -1
  114. package/distribution/component/navigation/index.js +4 -2
  115. package/distribution/component/navigation/index.js.map +1 -1
  116. package/distribution/component/navigation/index.module.css +32 -7
  117. package/distribution/component/process/index.module.css +3 -3
  118. package/distribution/component/process/step/index.module.css +2 -2
  119. package/distribution/component/section/index.d.ts +5 -2
  120. package/distribution/component/section/index.d.ts.map +1 -1
  121. package/distribution/component/section/index.js +8 -4
  122. package/distribution/component/section/index.js.map +1 -1
  123. package/distribution/component/section/index.module.css +32 -3
  124. package/distribution/component/section/type.d.ts +5 -1
  125. package/distribution/component/section/type.d.ts.map +1 -1
  126. package/distribution/component/service-index/index.d.ts +4 -0
  127. package/distribution/component/service-index/index.d.ts.map +1 -0
  128. package/distribution/component/service-index/index.js +11 -0
  129. package/distribution/component/service-index/index.js.map +1 -0
  130. package/distribution/component/service-index/index.module.css +88 -0
  131. package/distribution/component/service-index/type.d.ts +5 -0
  132. package/distribution/component/service-index/type.d.ts.map +1 -0
  133. package/distribution/component/service-index/type.js +2 -0
  134. package/distribution/component/service-index/type.js.map +1 -0
  135. package/distribution/component/services/campaign-visual/index.d.ts +4 -0
  136. package/distribution/component/services/campaign-visual/index.d.ts.map +1 -0
  137. package/distribution/component/services/campaign-visual/index.js +18 -0
  138. package/distribution/component/services/campaign-visual/index.js.map +1 -0
  139. package/distribution/component/services/campaign-visual/index.module.css +128 -0
  140. package/distribution/component/services/campaign-visual/stage/index.d.ts +4 -0
  141. package/distribution/component/services/campaign-visual/stage/index.d.ts.map +1 -0
  142. package/distribution/component/services/campaign-visual/stage/index.js +11 -0
  143. package/distribution/component/services/campaign-visual/stage/index.js.map +1 -0
  144. package/distribution/component/services/campaign-visual/stage/type.d.ts +10 -0
  145. package/distribution/component/services/campaign-visual/stage/type.d.ts.map +1 -0
  146. package/distribution/component/services/campaign-visual/stage/type.js +2 -0
  147. package/distribution/component/services/campaign-visual/stage/type.js.map +1 -0
  148. package/distribution/component/services/campaign-visual/type.d.ts +5 -0
  149. package/distribution/component/services/campaign-visual/type.d.ts.map +1 -0
  150. package/distribution/component/services/campaign-visual/type.js +2 -0
  151. package/distribution/component/services/campaign-visual/type.js.map +1 -0
  152. package/distribution/component/services/cell/index.d.ts +7 -0
  153. package/distribution/component/services/cell/index.d.ts.map +1 -0
  154. package/distribution/component/services/cell/index.js +15 -0
  155. package/distribution/component/services/cell/index.js.map +1 -0
  156. package/distribution/component/services/cell/index.module.css +86 -0
  157. package/distribution/component/services/cell/type.d.ts +14 -0
  158. package/distribution/component/services/cell/type.d.ts.map +1 -0
  159. package/distribution/component/services/cell/type.js +2 -0
  160. package/distribution/component/services/cell/type.js.map +1 -0
  161. package/distribution/component/services/design-visual/index.d.ts +5 -0
  162. package/distribution/component/services/design-visual/index.d.ts.map +1 -0
  163. package/distribution/component/services/design-visual/index.js +20 -0
  164. package/distribution/component/services/design-visual/index.js.map +1 -0
  165. package/distribution/component/services/design-visual/index.module.css +130 -0
  166. package/distribution/component/services/index.d.ts +1 -1
  167. package/distribution/component/services/index.d.ts.map +1 -1
  168. package/distribution/component/services/index.js +16 -10
  169. package/distribution/component/services/index.js.map +1 -1
  170. package/distribution/component/services/index.module.css +73 -8
  171. package/distribution/component/services/mobile-visual/index.d.ts +4 -0
  172. package/distribution/component/services/mobile-visual/index.d.ts.map +1 -0
  173. package/distribution/component/services/{application-visual → mobile-visual}/index.js +1 -1
  174. package/distribution/component/services/mobile-visual/index.js.map +1 -0
  175. package/distribution/component/services/{application-visual → mobile-visual}/index.module.css +15 -6
  176. package/distribution/component/services/mobile-visual/type.d.ts +5 -0
  177. package/distribution/component/services/mobile-visual/type.d.ts.map +1 -0
  178. package/distribution/component/services/mobile-visual/type.js +2 -0
  179. package/distribution/component/services/mobile-visual/type.js.map +1 -0
  180. package/distribution/component/services/platform-visual/index.js +1 -1
  181. package/distribution/component/services/platform-visual/index.js.map +1 -1
  182. package/distribution/component/services/platform-visual/index.module.css +8 -8
  183. package/distribution/component/services/social-visual/index.d.ts +4 -0
  184. package/distribution/component/services/social-visual/index.d.ts.map +1 -0
  185. package/distribution/component/services/social-visual/index.js +17 -0
  186. package/distribution/component/services/social-visual/index.js.map +1 -0
  187. package/distribution/component/services/social-visual/index.module.css +131 -0
  188. package/distribution/component/services/social-visual/type.d.ts +5 -0
  189. package/distribution/component/services/social-visual/type.d.ts.map +1 -0
  190. package/distribution/component/services/social-visual/type.js +2 -0
  191. package/distribution/component/services/social-visual/type.js.map +1 -0
  192. package/distribution/component/services/web-visual/index.module.css +19 -11
  193. package/distribution/component/statement/index.d.ts.map +1 -1
  194. package/distribution/component/statement/index.js +2 -1
  195. package/distribution/component/statement/index.js.map +1 -1
  196. package/distribution/component/statement/index.module.css +1 -3
  197. package/distribution/component/structured-data/index.d.ts +1 -1
  198. package/distribution/component/structured-data/index.d.ts.map +1 -1
  199. package/distribution/component/structured-data/index.js +28 -2
  200. package/distribution/component/structured-data/index.js.map +1 -1
  201. package/distribution/component/style-switch/index.d.ts +7 -0
  202. package/distribution/component/style-switch/index.d.ts.map +1 -0
  203. package/distribution/component/style-switch/index.js +24 -0
  204. package/distribution/component/style-switch/index.js.map +1 -0
  205. package/distribution/component/style-switch/index.module.css +45 -0
  206. package/distribution/component/style-switch/type.d.ts +6 -0
  207. package/distribution/component/style-switch/type.d.ts.map +1 -0
  208. package/distribution/component/style-switch/type.js +2 -0
  209. package/distribution/component/style-switch/type.js.map +1 -0
  210. package/distribution/component/touchpoint/index.d.ts +7 -0
  211. package/distribution/component/touchpoint/index.d.ts.map +1 -0
  212. package/distribution/component/touchpoint/index.js +25 -0
  213. package/distribution/component/touchpoint/index.js.map +1 -0
  214. package/distribution/component/touchpoint/index.module.css +86 -0
  215. package/distribution/component/touchpoint/plate/index.d.ts +4 -0
  216. package/distribution/component/touchpoint/plate/index.d.ts.map +1 -0
  217. package/distribution/component/touchpoint/plate/index.js +9 -0
  218. package/distribution/component/touchpoint/plate/index.js.map +1 -0
  219. package/distribution/component/touchpoint/plate/index.module.css +136 -0
  220. package/distribution/component/touchpoint/plate/type.d.ts +8 -0
  221. package/distribution/component/touchpoint/plate/type.d.ts.map +1 -0
  222. package/distribution/component/touchpoint/plate/type.js +2 -0
  223. package/distribution/component/touchpoint/plate/type.js.map +1 -0
  224. package/distribution/component/touchpoint/type.d.ts +5 -0
  225. package/distribution/component/touchpoint/type.d.ts.map +1 -0
  226. package/distribution/component/touchpoint/type.js +2 -0
  227. package/distribution/component/touchpoint/type.js.map +1 -0
  228. package/distribution/component/wordmark/index.module.css +2 -2
  229. package/distribution/content/capability/index.d.ts +12 -0
  230. package/distribution/content/capability/index.d.ts.map +1 -0
  231. package/distribution/content/capability/index.js +6 -0
  232. package/distribution/content/capability/index.js.map +1 -0
  233. package/distribution/content/contact/index.d.ts +10 -4
  234. package/distribution/content/contact/index.d.ts.map +1 -1
  235. package/distribution/content/contact/index.js +6 -3
  236. package/distribution/content/contact/index.js.map +1 -1
  237. package/distribution/content/footer/index.d.ts +12 -0
  238. package/distribution/content/footer/index.d.ts.map +1 -1
  239. package/distribution/content/footer/index.js +3 -0
  240. package/distribution/content/footer/index.js.map +1 -1
  241. package/distribution/content/hero/index.d.ts +4 -4
  242. package/distribution/content/hero/index.js +3 -3
  243. package/distribution/content/hero/index.js.map +1 -1
  244. package/distribution/content/navigation/index.d.ts +8 -0
  245. package/distribution/content/navigation/index.d.ts.map +1 -1
  246. package/distribution/content/navigation/index.js +2 -0
  247. package/distribution/content/navigation/index.js.map +1 -1
  248. package/distribution/content/process/index.d.ts +7 -7
  249. package/distribution/content/process/index.d.ts.map +1 -1
  250. package/distribution/content/process/index.js +8 -5
  251. package/distribution/content/process/index.js.map +1 -1
  252. package/distribution/content/separator/index.d.ts +2 -5
  253. package/distribution/content/separator/index.d.ts.map +1 -1
  254. package/distribution/content/separator/index.js +2 -5
  255. package/distribution/content/separator/index.js.map +1 -1
  256. package/distribution/content/services/index.d.ts +120 -29
  257. package/distribution/content/services/index.d.ts.map +1 -1
  258. package/distribution/content/services/index.js +146 -21
  259. package/distribution/content/services/index.js.map +1 -1
  260. package/distribution/content/site/index.d.ts.map +1 -1
  261. package/distribution/content/site/index.js +28 -4
  262. package/distribution/content/site/index.js.map +1 -1
  263. package/distribution/content/stack/index.d.ts +2 -2
  264. package/distribution/content/stack/index.d.ts.map +1 -1
  265. package/distribution/content/stack/index.js +8 -1
  266. package/distribution/content/stack/index.js.map +1 -1
  267. package/distribution/content/statement/index.d.ts +2 -2
  268. package/distribution/content/statement/index.js +2 -2
  269. package/distribution/content/statement/index.js.map +1 -1
  270. package/distribution/content/style/index.d.ts +59 -0
  271. package/distribution/content/style/index.d.ts.map +1 -0
  272. package/distribution/content/style/index.js +48 -0
  273. package/distribution/content/style/index.js.map +1 -0
  274. package/distribution/content/touchpoint/index.d.ts +37 -0
  275. package/distribution/content/touchpoint/index.d.ts.map +1 -0
  276. package/distribution/content/touchpoint/index.js +17 -0
  277. package/distribution/content/touchpoint/index.js.map +1 -0
  278. package/distribution/style/token/index.scss +33 -2
  279. package/distribution/utility/hex-channel/index.d.ts +3 -0
  280. package/distribution/utility/hex-channel/index.d.ts.map +1 -0
  281. package/distribution/utility/hex-channel/index.js +8 -0
  282. package/distribution/utility/hex-channel/index.js.map +1 -0
  283. package/distribution/utility/parse-contact/index.d.ts.map +1 -1
  284. package/distribution/utility/parse-contact/index.js +4 -0
  285. package/distribution/utility/parse-contact/index.js.map +1 -1
  286. package/distribution/utility/parse-contact/type.d.ts +3 -0
  287. package/distribution/utility/parse-contact/type.d.ts.map +1 -1
  288. package/package.json +2 -2
  289. package/distribution/component/services/application-visual/index.d.ts +0 -4
  290. package/distribution/component/services/application-visual/index.d.ts.map +0 -1
  291. package/distribution/component/services/application-visual/index.js.map +0 -1
  292. package/distribution/component/services/application-visual/type.d.ts.map +0 -1
  293. package/distribution/component/services/application-visual/type.js.map +0 -1
  294. package/distribution/component/services/card/index.d.ts +0 -4
  295. package/distribution/component/services/card/index.d.ts.map +0 -1
  296. package/distribution/component/services/card/index.js +0 -10
  297. package/distribution/component/services/card/index.js.map +0 -1
  298. package/distribution/component/services/card/index.module.css +0 -92
  299. package/distribution/component/services/card/type.d.ts +0 -12
  300. package/distribution/component/services/card/type.d.ts.map +0 -1
  301. package/distribution/component/services/card/type.js.map +0 -1
  302. /package/distribution/component/{services/application-visual → capability}/type.js +0 -0
  303. /package/distribution/component/{services/card → cross}/type.js +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/footer/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAC3E,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,MAAM,EAAE,MAAM,+CAA+C,CAAC;AACvE,OAAO,EAAE,IAAI,EAAE,MAAM,6CAA6C,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,+CAA+C,CAAC;AACxE,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC,mEAAmE;AACnE,MAAM,UAAU,MAAM,CAAC,EAAE,MAAM,EAAoB;IACjD,OAAO,CACL,kBAAQ,SAAS,EAAE,MAAM,CAAC,MAAM,aAC9B,eAAK,SAAS,EAAE,MAAM,CAAC,GAAG,aACxB,aAAG,SAAS,EAAE,MAAM,CAAC,MAAM,aAAG,SAAS,CAAC,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,SAAM,EAClE,eAAK,SAAS,EAAE,MAAM,CAAC,KAAK,aAC1B,YAAG,IAAI,EAAE,UAAU,IAAI,CAAC,KAAK,EAAE,YAAG,IAAI,CAAC,KAAK,GAAK,EACjD,eAAM,SAAS,EAAE,MAAM,CAAC,S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AAI,EAAE,CAAC,WAAW,EAAE,WAAW,EAAE,SAAS,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GACnF,IACG,CACV,CAAC;AACJ,CAAC"}
@@ -1,58 +1,124 @@
1
1
  .footer {
2
- max-width: var(--maximum-width);
2
+ position: relative;
3
+ width: min(100% - 2 * var(--gutter), var(--maximum-width));
3
4
  margin: 0 auto;
4
- padding: 60px var(--padding) 32px;
5
- border-top: 1px solid var(--line);
6
- overflow: hidden;
5
+ border: 1px solid var(--line);
6
+ border-bottom: 0;
7
7
  }
8
8
 
9
- .top {
10
- display: flex;
11
- flex-wrap: wrap;
12
- justify-content: space-between;
13
- gap: 24px;
9
+ .columns {
10
+ display: grid;
11
+ grid-template-columns: 1.6fr 1fr 1fr 1fr;
12
+ border-bottom: 1px solid var(--line);
13
+ }
14
+ .columns > * {
15
+ position: relative;
16
+ display: grid;
17
+ align-content: start;
18
+ gap: 10px;
19
+ padding: 36px var(--padding) 40px;
20
+ font-size: 14px;
21
+ color: var(--foreground-2);
22
+ }
23
+ .columns > *:not(:last-child)::after {
24
+ content: "";
25
+ position: absolute;
26
+ top: 0;
27
+ bottom: 0;
28
+ right: 0;
29
+ width: 1px;
30
+ background: linear-gradient(180deg, var(--line-2) 50%, transparent 0) 0 0/1px 8px repeat-y;
31
+ }
32
+ .columns h2 {
33
+ margin-bottom: 6px;
34
+ font-size: 11.5px;
35
+ font-weight: 400;
36
+ letter-spacing: 0.05em;
37
+ text-transform: uppercase;
38
+ color: var(--foreground-3);
39
+ }
40
+ .columns a {
41
+ width: fit-content;
42
+ transition: color 0.2s;
43
+ }
44
+ .columns a:hover {
45
+ color: var(--foreground);
46
+ }
47
+ @media (max-width: 900px) {
48
+ .columns {
49
+ grid-template-columns: 1fr 1fr;
50
+ }
51
+ .columns > *:nth-child(2n)::after {
52
+ display: none;
53
+ }
54
+ .columns > *:nth-child(-n+2) {
55
+ border-bottom: 1px dashed var(--line-2);
56
+ }
57
+ }
58
+ @media (max-width: 520px) {
59
+ .columns {
60
+ grid-template-columns: 1fr;
61
+ }
62
+ .columns > *::after {
63
+ display: none;
64
+ }
65
+ .columns > *:not(:last-child) {
66
+ border-bottom: 1px dashed var(--line-2);
67
+ }
68
+ }
69
+
70
+ .brand {
71
+ gap: 14px !important;
72
+ }
73
+ .brand > a:first-child {
74
+ color: var(--foreground);
14
75
  }
15
76
 
16
77
  .slogan {
17
- font-size: 1.1rem;
78
+ color: var(--foreground);
79
+ font-size: 1.05rem;
18
80
  font-weight: 500;
19
81
  letter-spacing: -0.03em;
82
+ max-width: 24ch;
20
83
  }
21
84
 
22
- .links {
23
- display: flex;
24
- flex-wrap: wrap;
25
- gap: 14px 28px;
85
+ .email {
26
86
  color: var(--foreground-2);
27
- font-size: 14px;
28
- }
29
- .links a:hover {
30
- color: var(--foreground);
31
87
  }
32
88
 
33
89
  .languages {
34
- display: flex;
35
- gap: 14px;
90
+ display: grid;
91
+ gap: 10px;
36
92
  }
37
93
  .languages a[aria-current] {
38
94
  color: var(--foreground);
39
95
  }
40
96
 
97
+ .style {
98
+ width: fit-content;
99
+ }
100
+
101
+ .settings h2:not(:first-child) {
102
+ margin-top: 18px;
103
+ }
104
+
41
105
  .mark {
42
- margin: 50px 0 18px;
106
+ padding: 40px 0 10px;
43
107
  font-size: clamp(4rem, 17vw, 15rem);
44
108
  font-weight: 600;
45
109
  letter-spacing: -0.075em;
46
110
  line-height: 0.8;
47
111
  text-align: center;
48
- background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.05) 85%);
112
+ background: linear-gradient(180deg, var(--foreground) 0%, transparent 85%);
49
113
  -webkit-background-clip: text;
50
114
  background-clip: text;
51
115
  color: transparent;
52
116
  user-select: none;
117
+ overflow: hidden;
53
118
  }
54
119
 
55
120
  .legal {
121
+ padding: 18px var(--padding) 28px;
56
122
  font-size: 12px;
57
123
  color: var(--foreground-3);
58
124
  text-align: center;
@@ -1,4 +1,4 @@
1
1
  import type { ArcProperties } from "@sharadox/sharadox-web-library/component/globe/arc/type";
2
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;
3
+ export declare function Arc({ from, to, offset, colors }: ArcProperties): import("react").JSX.Element;
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +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"}
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,MAAM,EAAE,EAAE,aAAa,+BAiC9D"}
@@ -2,11 +2,11 @@
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import { useFrame } from "@react-three/fiber";
4
4
  import { useMemo, useRef } from "react";
5
- import { AdditiveBlending, QuadraticBezierCurve3, TubeGeometry } from "three";
5
+ import { AdditiveBlending, NormalBlending, QuadraticBezierCurve3, TubeGeometry } from "three";
6
6
  import { ARC_SHADER } from "@sharadox/sharadox-web-library/component/globe/shader/arc";
7
7
  import { latitudeLongitudeToVector } from "@sharadox/sharadox-web-library/utility/latitude-longitude-to-vector";
8
8
  /** A light arc lifting off the surface between two places, with a pulse running along it. */
9
- export function Arc({ from, to, offset }) {
9
+ export function Arc({ from, to, offset, colors }) {
10
10
  const material = useRef(null);
11
11
  const geometry = useMemo(() => {
12
12
  const start = latitudeLongitudeToVector(from.latitude, from.longitude, 1.002);
@@ -19,11 +19,11 @@ export function Arc({ from, to, offset }) {
19
19
  .multiplyScalar(1 + start.distanceTo(end) * 0.38);
20
20
  return new TubeGeometry(new QuadraticBezierCurve3(start, middle, end), 90, 0.0032, 6, false);
21
21
  }, [from, to]);
22
- const uniforms = useMemo(() => ({ time: { value: 0 }, offset: { value: offset } }), [offset]);
22
+ const uniforms = useMemo(() => ({ time: { value: 0 }, offset: { value: offset }, color: { value: colors.ink } }), [offset, colors]);
23
23
  useFrame((_, deltaSeconds) => {
24
24
  if (material.current)
25
25
  material.current.uniforms.time.value += deltaSeconds;
26
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 }) }));
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: colors.additive ? AdditiveBlending : NormalBlending }) }));
28
28
  }
29
29
  //# sourceMappingURL=index.js.map
@@ -1 +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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C,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,CACtB,GAAG,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,GAAG,EAAE,EAAE,CAAC,EACvF,CAAC,MAAM,EAAE,MAAM,CAAC,CACjB,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,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,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,cAAc,GAC7D,GACG,CACR,CAAC;AACJ,CAAC"}
@@ -1,4 +1,6 @@
1
+ import type { GlobeColors } from "@sharadox/sharadox-web-library/component/globe/color/type";
1
2
  export interface ArcProperties {
3
+ colors: GlobeColors;
2
4
  from: {
3
5
  latitude: number;
4
6
  longitude: number;
@@ -1 +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"}
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../source/component/globe/arc/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2DAA2D,CAAC;AAE7F,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,WAAW,CAAC;IACpB,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,4 @@
1
+ import type { GlobeColors } from "@sharadox/sharadox-web-library/component/globe/color/type";
2
+ /** The globe's colours, taken from a style's palette (`foreground`, `globe-body`, `globe-rim`). */
3
+ export declare function globeColors(styleName: string): GlobeColors;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/globe/color/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2DAA2D,CAAC;AAE7F,mGAAmG;AACnG,wBAAgB,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,WAAW,CAW1D"}
@@ -0,0 +1,16 @@
1
+ import { findStyle } from "@sharadox/web-library/style/definition";
2
+ import { STYLE_CONFIGURATION } from "@sharadox/sharadox-web-library/content/style";
3
+ import { hexChannel } from "@sharadox/sharadox-web-library/utility/hex-channel";
4
+ /** The globe's colours, taken from a style's palette (`foreground`, `globe-body`, `globe-rim`). */
5
+ export function globeColors(styleName) {
6
+ const style = findStyle(STYLE_CONFIGURATION, styleName) ?? findStyle(STYLE_CONFIGURATION, STYLE_CONFIGURATION.defaults.dark);
7
+ const palette = style.palette;
8
+ return {
9
+ ink: hexChannel(palette.foreground),
10
+ inkHex: palette.foreground,
11
+ body: hexChannel(palette["globe-body"]),
12
+ rim: hexChannel(palette["globe-rim"]),
13
+ additive: style.scheme === "dark",
14
+ };
15
+ }
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/globe/color/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,wCAAwC,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AACnF,OAAO,EAAE,UAAU,EAAE,MAAM,oDAAoD,CAAC;AAGhF,mGAAmG;AACnG,MAAM,UAAU,WAAW,CAAC,SAAiB;IAC3C,MAAM,KAAK,GACT,SAAS,CAAC,mBAAmB,EAAE,SAAS,CAAC,IAAI,SAAS,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,QAAQ,CAAC,IAAI,CAAE,CAAC;IAClH,MAAM,OAAO,GAAG,KAAK,CAAC,OAAiC,CAAC;IACxD,OAAO;QACL,GAAG,EAAE,UAAU,CAAC,OAAO,CAAC,UAAW,CAAC;QACpC,MAAM,EAAE,OAAO,CAAC,UAAW;QAC3B,IAAI,EAAE,UAAU,CAAC,OAAO,CAAC,YAAY,CAAE,CAAC;QACxC,GAAG,EAAE,UAAU,CAAC,OAAO,CAAC,WAAW,CAAE,CAAC;QACtC,QAAQ,EAAE,KAAK,CAAC,MAAM,KAAK,MAAM;KAClC,CAAC;AACJ,CAAC"}
@@ -0,0 +1,13 @@
1
+ /** The globe's colours for the style in use. Channels run from 0 to 1. */
2
+ export interface GlobeColors {
3
+ /** Land dots, arcs and markers: the style's foreground. */
4
+ ink: [number, number, number];
5
+ /** The same, as "#rrggbb", for standard three.js materials. */
6
+ inkHex: string;
7
+ /** The planet body, and its rim where it turns away. */
8
+ body: [number, number, number];
9
+ rim: [number, number, number];
10
+ /** Light adds up on dark styles; on light styles the ink is drawn normally (dark on light). */
11
+ additive: boolean;
12
+ }
13
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../source/component/globe/color/type.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,MAAM,WAAW,WAAW;IAC1B,2DAA2D;IAC3D,GAAG,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,+DAA+D;IAC/D,MAAM,EAAE,MAAM,CAAC;IACf,wDAAwD;IACxD,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B,GAAG,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,+FAA+F;IAC/F,QAAQ,EAAE,OAAO,CAAC;CACnB"}
@@ -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/color/type.ts"],"names":[],"mappings":""}
@@ -1,4 +1,4 @@
1
1
  import type { DotsProperties } from "@sharadox/sharadox-web-library/component/globe/dots/type";
2
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;
3
+ export declare function Dots({ data, colors }: DotsProperties): import("react").JSX.Element;
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +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"}
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,MAAM,EAAE,EAAE,cAAc,+BAwCpD"}
@@ -7,7 +7,7 @@ import { BufferAttribute, BufferGeometry } from "three";
7
7
  import { DOT_SHADER } from "@sharadox/sharadox-web-library/component/globe/shader/dot";
8
8
  import { latitudeLongitudeToVector } from "@sharadox/sharadox-web-library/utility/latitude-longitude-to-vector";
9
9
  /** The land, drawn as twinkling points that fade towards the globe's edge. */
10
- export function Dots({ data }) {
10
+ export function Dots({ data, colors }) {
11
11
  const { gl } = useThree();
12
12
  const material = useRef(null);
13
13
  const geometry = useMemo(() => {
@@ -24,7 +24,11 @@ export function Dots({ data }) {
24
24
  points.setAttribute("seed", new BufferAttribute(seed, 1));
25
25
  return points;
26
26
  }, [data]);
27
- const uniforms = useMemo(() => ({ time: { value: 0 }, pointSize: { value: 2.6 * Math.min(gl.getPixelRatio(), 2) } }), [gl]);
27
+ const uniforms = useMemo(() => ({
28
+ time: { value: 0 },
29
+ pointSize: { value: 2.6 * Math.min(gl.getPixelRatio(), 2) },
30
+ color: { value: colors.ink },
31
+ }), [gl, colors]);
28
32
  useFrame((_, deltaSeconds) => {
29
33
  if (material.current)
30
34
  material.current.uniforms.time.value += deltaSeconds;
@@ -1 +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,O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I,EAAE,CAAC,CAAC,CAAC,CAAC;QAC1D,OAAO,MAAM,CAAC;IAChB,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;IACX,MAAM,QAAQ,GAAG,OAAO,CACtB,GAAG,EAAE,CAAC,CAAC;QACL,IAAI,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE;QAClB,SAAS,EAAE,EAAE,KAAK,EAAE,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC,EAAE;QAC3D,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,GAAG,EAAE;KAC7B,CAAC,EACF,CAAC,EAAE,EAAE,MAAM,CAAC,CACb,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"}
@@ -1,4 +1,6 @@
1
+ import type { GlobeColors } from "@sharadox/sharadox-web-library/component/globe/color/type";
1
2
  export interface DotsProperties {
3
+ colors: GlobeColors;
2
4
  /** Float32 [latitude, longitude] pairs. */
3
5
  data: Float32Array;
4
6
  }
@@ -1 +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"}
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../source/component/globe/dots/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2DAA2D,CAAC;AAE7F,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,WAAW,CAAC;IACpB,2CAA2C;IAC3C,IAAI,EAAE,YAAY,CAAC;CACpB"}
@@ -1,6 +1,6 @@
1
1
  /**
2
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.
3
+ * Drawn in the colours of the style in use. Pauses rendering when off-screen and falls back to a static sphere without WebGL.
4
4
  */
5
5
  export default function Globe(): import("react").JSX.Element;
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/globe/index.tsx"],"names":[],"mappings":"AAcA;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,KAAK,gCAwC5B"}
@@ -1,7 +1,10 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { Canvas } from "@react-three/fiber";
4
- import { useEffect, useState } from "react";
4
+ import { useEffect, useMemo, useState } from "react";
5
+ import { useStyle } from "@sharadox/web-library/style/use-style";
6
+ import { globeColors } from "@sharadox/sharadox-web-library/component/globe/color";
7
+ import { STYLE_CONFIGURATION } from "@sharadox/sharadox-web-library/content/style";
5
8
  import { HOME } from "@sharadox/sharadox-web-library/content/globe";
6
9
  import { useGlobeDrag } from "@sharadox/sharadox-web-library/hook/globe-drag";
7
10
  import { useLandPoints } from "@sharadox/sharadox-web-library/hook/land-points";
@@ -11,10 +14,12 @@ import styles from "./index.module.css";
11
14
  import { World } from "@sharadox/sharadox-web-library/component/globe/world";
12
15
  /**
13
16
  * 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.
17
+ * Drawn in the colours of the style in use. Pauses rendering when off-screen and falls back to a static sphere without WebGL.
15
18
  */
16
19
  export default function Globe() {
17
20
  const data = useLandPoints();
21
+ const { style } = useStyle(STYLE_CONFIGURATION);
22
+ const colors = useMemo(() => globeColors(style), [style]);
18
23
  const [visible, setVisible] = useState(true);
19
24
  // Client-only component (loaded without server rendering), so the browser APIs are safe here.
20
25
  const [webGl] = useState(supportsWebGl);
@@ -29,6 +34,6 @@ export default function Globe() {
29
34
  observer.observe(wrapper.current);
30
35
  return () => observer.disconnect();
31
36
  }, [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 }))] }));
37
+ 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, colors: colors }) })) : (_jsx("div", { className: styles.fallback, "aria-hidden": true }))] }));
33
38
  }
34
39
  //# sourceMappingURL=index.js.map
@@ -1 +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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: 50%;
14
- background: radial-gradient(closest-side, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04) 60%, transparent);
14
+ background: radial-gradient(closest-side, color-mix(in srgb, var(--foreground) 14%, transparent), color-mix(in srgb, var(--foreground) 4%, transparent) 60%, transparent);
15
15
  filter: blur(30px);
16
16
  pointer-events: none;
17
17
  }
@@ -20,6 +20,6 @@
20
20
  position: absolute;
21
21
  inset: 18%;
22
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);
23
+ background: radial-gradient(circle at 35% 30%, var(--surface), var(--background) 70%);
24
+ box-shadow: 0 0 120px 10px color-mix(in srgb, var(--foreground) 8%, transparent), inset 0 0 40px color-mix(in srgb, var(--foreground) 8%, transparent);
25
25
  }
@@ -1,4 +1,4 @@
1
1
  import type { MarkerProperties } from "@sharadox/sharadox-web-library/component/globe/marker/type";
2
2
  /** A city dot lying flat on the surface. */
3
- export declare function Marker({ latitude, longitude, home }: MarkerProperties): import("react").JSX.Element;
3
+ export declare function Marker({ latitude, longitude, color, home }: MarkerProperties): import("react").JSX.Element;
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +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"}
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,KAAK,EAAE,IAAY,EAAE,EAAE,gBAAgB,+BA2BpF"}
@@ -5,7 +5,7 @@ import { useMemo, useRef } from "react";
5
5
  import { Quaternion, Vector3 } from "three";
6
6
  import { latitudeLongitudeToVector } from "@sharadox/sharadox-web-library/utility/latitude-longitude-to-vector";
7
7
  /** A city dot lying flat on the surface. */
8
- export function Marker({ latitude, longitude, home = false }) {
8
+ export function Marker({ latitude, longitude, color, home = false }) {
9
9
  const ring = useRef(null);
10
10
  const position = useMemo(() => latitudeLongitudeToVector(latitude, longitude, 1.004), [latitude, longitude]);
11
11
  const quaternion = useMemo(() => new Quaternion().setFromUnitVectors(new Vector3(0, 0, 1), position.clone().normalize()), [position]);
@@ -16,6 +16,6 @@ export function Marker({ latitude, longitude, home = false }) {
16
16
  ring.current.scale.setScalar(1 + progress * 5);
17
17
  ring.current.material.opacity = (1 - progress) * 0.8;
18
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 })] }))] }));
19
+ return (_jsxs("group", { position: position, quaternion: quaternion, children: [_jsxs("mesh", { children: [_jsx("circleGeometry", { args: [home ? 0.014 : 0.008, 20] }), _jsx("meshBasicMaterial", { color: color, transparent: true, opacity: home ? 1 : 0.85 })] }), home && (_jsxs("mesh", { ref: ring, children: [_jsx("ringGeometry", { args: [0.014, 0.018, 40] }), _jsx("meshBasicMaterial", { color: color, transparent: true, opacity: 0.8, depthWrite: false })] }))] }));
20
20
  }
21
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","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,CACT,CAAC;AACJ,CAAC"}
@@ -1,4 +1,6 @@
1
1
  export interface MarkerProperties {
2
+ /** "#rrggbb". */
3
+ color: string;
2
4
  latitude: number;
3
5
  longitude: number;
4
6
  /** The home marker is larger and sends out a pulsing ring. */
@@ -1 +1 @@
1
- {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../source/component/globe/marker/type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,8DAA8D;IAC9D,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB"}
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../source/component/globe/marker/type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,iBAAiB;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,8DAA8D;IAC9D,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../source/component/globe/shader/arc/index.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,eAAO,MAAM,UAAU;;;CAoBtB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../source/component/globe/shader/arc/index.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,eAAO,MAAM,UAAU;;;CAqBtB,CAAC"}
@@ -10,13 +10,14 @@ export const ARC_SHADER = {
10
10
  fragment: /* glsl */ `
11
11
  uniform float time;
12
12
  uniform float offset;
13
+ uniform vec3 color;
13
14
  varying float alongArc;
14
15
  void main() {
15
16
  float phase = fract(time * 0.16 + offset);
16
17
  float pulse = smoothstep(0.0, 0.16, 0.16 - abs(alongArc - phase * 1.3 + 0.15));
17
18
  float base = 0.10;
18
19
  float ends = smoothstep(0.0, 0.04, alongArc) * smoothstep(1.0, 0.96, alongArc);
19
- gl_FragColor = vec4(vec3(1.0), (base + pulse * 0.95) * ends);
20
+ gl_FragColor = vec4(color, (base + pulse * 0.95) * ends);
20
21
  }
21
22
  `,
22
23
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../source/component/globe/shader/arc/index.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,MAAM,EAAE,UAAU,CAAC;;;;;;GAMlB;IACD,QAAQ,EAAE,UAAU,CAAC;;;;;;;;;;;GAWpB;CACF,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../source/component/globe/shader/arc/index.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,MAAM,EAAE,UAAU,CAAC;;;;;;GAMlB;IACD,QAAQ,EAAE,UAAU,CAAC;;;;;;;;;;;;GAYpB;CACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../source/component/globe/shader/atmosphere/index.ts"],"names":[],"mappings":"AAEA,yGAAyG;AACzG,eAAO,MAAM,iBAAiB;;;CAU7B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../source/component/globe/shader/atmosphere/index.ts"],"names":[],"mappings":"AAEA,yGAAyG;AACzG,eAAO,MAAM,iBAAiB;;;CAW7B,CAAC"}
@@ -5,9 +5,10 @@ export const ATMOSPHERE_SHADER = {
5
5
  fragment: /* glsl */ `
6
6
  varying vec3 viewNormal;
7
7
  uniform float strength;
8
+ uniform vec3 color;
8
9
  void main() {
9
10
  float intensity = smoothstep(0.0, 0.55, -viewNormal.z);
10
- gl_FragColor = vec4(vec3(1.0), intensity * intensity * strength);
11
+ gl_FragColor = vec4(color, intensity * intensity * strength);
11
12
  }
12
13
  `,
13
14
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../source/component/globe/shader/atmosphere/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mEAAmE,CAAC;AAEhG,yGAAyG;AACzG,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,MAAM,EAAE,WAAW;IACnB,QAAQ,EAAE,UAAU,CAAC;;;;;;;GAOpB;CACF,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../source/component/globe/shader/atmosphere/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mEAAmE,CAAC;AAEhG,yGAAyG;AACzG,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,MAAM,EAAE,WAAW;IACnB,QAAQ,EAAE,UAAU,CAAC;;;;;;;;GAQpB;CACF,CAAC"}
@@ -1,4 +1,4 @@
1
- /** The dark planet body with a fresnel rim. */
1
+ /** The planet body with a fresnel rim, in the style's colours. */
2
2
  export declare const BODY_SHADER: {
3
3
  vertex: string;
4
4
  fragment: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../source/component/globe/shader/body/index.ts"],"names":[],"mappings":"AAEA,+CAA+C;AAC/C,eAAO,MAAM,WAAW;;;CASvB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../source/component/globe/shader/body/index.ts"],"names":[],"mappings":"AAEA,kEAAkE;AAClE,eAAO,MAAM,WAAW;;;CAWvB,CAAC"}
@@ -1,12 +1,14 @@
1
1
  import { GLOW_VERTEX } from "@sharadox/sharadox-web-library/component/globe/shader/glow-vertex";
2
- /** The dark planet body with a fresnel rim. */
2
+ /** The planet body with a fresnel rim, in the style's colours. */
3
3
  export const BODY_SHADER = {
4
4
  vertex: GLOW_VERTEX,
5
5
  fragment: /* glsl */ `
6
6
  varying vec3 viewNormal;
7
+ uniform vec3 base;
8
+ uniform vec3 rimColor;
7
9
  void main() {
8
10
  float rim = pow(1.0 - abs(viewNormal.z), 3.0);
9
- gl_FragColor = vec4(vec3(0.02) + vec3(0.32) * rim, 1.0);
11
+ gl_FragColor = vec4(mix(base, rimColor, rim), 1.0);
10
12
  }
11
13
  `,
12
14
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../source/component/globe/shader/body/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mEAAmE,CAAC;AAEhG,+CAA+C;AAC/C,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,MAAM,EAAE,WAAW;IACnB,QAAQ,EAAE,UAAU,CAAC;;;;;;GAMpB;CACF,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../source/component/globe/shader/body/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mEAAmE,CAAC;AAEhG,kEAAkE;AAClE,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,MAAM,EAAE,WAAW;IACnB,QAAQ,EAAE,UAAU,CAAC;;;;;;;;GAQpB;CACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../source/component/globe/shader/dot/index.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,eAAO,MAAM,UAAU;;;CAyBtB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../source/component/globe/shader/dot/index.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,eAAO,MAAM,UAAU;;;CA0BtB,CAAC"}
@@ -16,12 +16,13 @@ export const DOT_SHADER = {
16
16
  }
17
17
  `,
18
18
  fragment: /* glsl */ `
19
+ uniform vec3 color;
19
20
  varying float opacity;
20
21
  void main() {
21
22
  vec2 fromCenter = gl_PointCoord - 0.5;
22
23
  float distanceFromCenter = length(fromCenter);
23
24
  if (distanceFromCenter > 0.5) discard;
24
- gl_FragColor = vec4(vec3(1.0), smoothstep(0.5, 0.1, distanceFromCenter) * opacity);
25
+ gl_FragColor = vec4(color, smoothstep(0.5, 0.1, distanceFromCenter) * opacity);
25
26
  }
26
27
  `,
27
28
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../source/component/globe/shader/dot/index.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,MAAM,EAAE,UAAU,CAAC;;;;;;;;;;;;;;GAclB;IACD,QAAQ,EAAE,UAAU,CAAC;;;;;;;;GAQpB;CACF,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../source/component/globe/shader/dot/index.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,MAAM,EAAE,UAAU,CAAC;;;;;;;;;;;;;;GAclB;IACD,QAAQ,EAAE,UAAU,CAAC;;;;;;;;;GASpB;CACF,CAAC"}