@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,4 +1,4 @@
1
1
  import type { WorldProperties } from "@sharadox/sharadox-web-library/component/globe/world/type";
2
2
  /** The planet scene: body, atmosphere, land, arcs and markers. Rotation comes from the drag controller. */
3
- export declare function World({ data, drag }: WorldProperties): import("react").JSX.Element;
3
+ export declare function World({ data, drag, colors }: WorldProperties): 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/world/index.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2DAA2D,CAAC;AAEjG,2GAA2G;AAC3G,wBAAgB,KAAK,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,eAAe,+BAiDpD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/globe/world/index.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2DAA2D,CAAC;AAEjG,2GAA2G;AAC3G,wBAAgB,KAAK,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,eAAe,+BAsD5D"}
@@ -2,7 +2,7 @@
2
2
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
3
  import { useFrame } from "@react-three/fiber";
4
4
  import { useMemo, useRef } from "react";
5
- import { AdditiveBlending, BackSide, MathUtils, ShaderMaterial } from "three";
5
+ import { AdditiveBlending, BackSide, MathUtils, NormalBlending, ShaderMaterial } from "three";
6
6
  import { CITIES, HOME } from "@sharadox/sharadox-web-library/content/globe";
7
7
  import { ATMOSPHERE_SHADER } from "@sharadox/sharadox-web-library/component/globe/shader/atmosphere";
8
8
  import { BODY_SHADER } from "@sharadox/sharadox-web-library/component/globe/shader/body";
@@ -10,7 +10,7 @@ import { Arc } from "@sharadox/sharadox-web-library/component/globe/arc";
10
10
  import { Dots } from "@sharadox/sharadox-web-library/component/globe/dots";
11
11
  import { Marker } from "@sharadox/sharadox-web-library/component/globe/marker";
12
12
  /** The planet scene: body, atmosphere, land, arcs and markers. Rotation comes from the drag controller. */
13
- export function World({ data, drag }) {
13
+ export function World({ data, drag, colors }) {
14
14
  const group = useRef(null);
15
15
  useFrame((_, deltaSeconds) => {
16
16
  const planet = group.current;
@@ -20,16 +20,20 @@ export function World({ data, drag }) {
20
20
  planet.rotation.y = MathUtils.damp(planet.rotation.y, target.y, 6, deltaSeconds);
21
21
  planet.rotation.x = MathUtils.damp(planet.rotation.x, target.x, 6, deltaSeconds);
22
22
  });
23
- const body = useMemo(() => new ShaderMaterial({ vertexShader: BODY_SHADER.vertex, fragmentShader: BODY_SHADER.fragment }), []);
23
+ const body = useMemo(() => new ShaderMaterial({
24
+ vertexShader: BODY_SHADER.vertex,
25
+ fragmentShader: BODY_SHADER.fragment,
26
+ uniforms: { base: { value: colors.body }, rimColor: { value: colors.rim } },
27
+ }), [colors]);
24
28
  const atmosphere = useMemo(() => new ShaderMaterial({
25
29
  vertexShader: ATMOSPHERE_SHADER.vertex,
26
30
  fragmentShader: ATMOSPHERE_SHADER.fragment,
27
- uniforms: { strength: { value: 0.42 } },
31
+ uniforms: { strength: { value: colors.additive ? 0.42 : 0.2 }, color: { value: colors.ink } },
28
32
  side: BackSide,
29
33
  transparent: true,
30
- blending: AdditiveBlending,
34
+ blending: colors.additive ? AdditiveBlending : NormalBlending,
31
35
  depthWrite: false,
32
- }), []);
33
- return (_jsxs(_Fragment, { children: [_jsx("mesh", { scale: 1.16, material: atmosphere, children: _jsx("sphereGeometry", { args: [1, 64, 64] }) }), _jsxs("group", { ref: group, children: [_jsx("mesh", { material: body, children: _jsx("sphereGeometry", { args: [0.995, 96, 96] }) }), _jsx(Dots, { data: data }), CITIES.map((city, index) => (_jsx(Arc, { from: HOME, to: city, offset: index / CITIES.length }, index))), CITIES.map((city, index) => (_jsx(Marker, { latitude: city[0], longitude: city[1] }, `marker${index}`))), _jsx(Marker, { latitude: HOME.latitude, longitude: HOME.longitude, home: true })] })] }));
36
+ }), [colors]);
37
+ return (_jsxs(_Fragment, { children: [_jsx("mesh", { scale: 1.16, material: atmosphere, children: _jsx("sphereGeometry", { args: [1, 64, 64] }) }), _jsxs("group", { ref: group, children: [_jsx("mesh", { material: body, children: _jsx("sphereGeometry", { args: [0.995, 96, 96] }) }), _jsx(Dots, { data: data, colors: colors }), CITIES.map((city, index) => (_jsx(Arc, { from: HOME, to: city, offset: index / CITIES.length, colors: colors }, index))), CITIES.map((city, index) => (_jsx(Marker, { latitude: city[0], longitude: city[1], color: colors.inkHex }, `marker${index}`))), _jsx(Marker, { latitude: HOME.latitude, longitude: HOME.longitude, color: colors.inkHex, home: true })] })] }));
34
38
  }
35
39
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/globe/world/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,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAc,MAAM,OAAO,CAAC;AAC1F,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,8C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,GACpC,EACP,KAAC,IAAI,IAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,GAAI,EACnC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CAC3B,KAAC,GAAG,IAAa,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,IAA1E,KAAK,CAAyE,CACzF,CAAC,EACD,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CAC3B,KAAC,MAAM,IAAwB,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,IAA7E,SAAS,KAAK,EAAE,CAAiE,CAC/F,CAAC,EACF,KAAC,MAAM,IAAC,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,SAAG,IACnF,IACP,CACJ,CAAC;AACJ,CAAC"}
@@ -1,8 +1,10 @@
1
+ import type { GlobeColors } from "@sharadox/sharadox-web-library/component/globe/color/type";
1
2
  import type { GlobeDrag } from "@sharadox/sharadox-web-library/hook/globe-drag/type";
2
3
  export interface WorldProperties {
3
4
  /** Float32 [latitude, longitude] land pairs. */
4
5
  data: Float32Array;
5
6
  /** Supplies the rotation each frame. */
6
7
  drag: GlobeDrag;
8
+ colors: GlobeColors;
7
9
  }
8
10
  //# sourceMappingURL=type.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../source/component/globe/world/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qDAAqD,CAAC;AAErF,MAAM,WAAW,eAAe;IAC9B,gDAAgD;IAChD,IAAI,EAAE,YAAY,CAAC;IACnB,wCAAwC;IACxC,IAAI,EAAE,SAAS,CAAC;CACjB"}
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../source/component/globe/world/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2DAA2D,CAAC;AAC7F,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qDAAqD,CAAC;AAErF,MAAM,WAAW,eAAe;IAC9B,gDAAgD;IAChD,IAAI,EAAE,YAAY,CAAC;IACnB,wCAAwC;IACxC,IAAI,EAAE,SAAS,CAAC;IAChB,MAAM,EAAE,WAAW,CAAC;CACrB"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * The hero's blueprint: dashed column and row guides that draw themselves in, with beams of light running along
3
+ * a few of them.
4
+ */
5
+ export declare function HeroGuide(): import("react").JSX.Element;
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/hero/guide/index.tsx"],"names":[],"mappings":"AAKA;;;GAGG;AACH,wBAAgB,SAAS,gCAuBxB"}
@@ -0,0 +1,12 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import styles from "./index.module.css";
3
+ const COLUMNS = [1, 2, 3, 4, 5];
4
+ const ROWS = [1, 2, 3];
5
+ /**
6
+ * The hero's blueprint: dashed column and row guides that draw themselves in, with beams of light running along
7
+ * a few of them.
8
+ */
9
+ export function HeroGuide() {
10
+ return (_jsxs("div", { className: styles.guide, "aria-hidden": true, children: [COLUMNS.map((column) => (_jsx("span", { className: styles.column, style: { left: `${(column / 6) * 100}%`, animationDelay: `${column * 0.08}s` } }, `column${column}`))), ROWS.map((row) => (_jsx("span", { className: styles.row, style: { top: `${(row / 4) * 100}%`, animationDelay: `${0.3 + row * 0.1}s` } }, `row${row}`))), _jsx("span", { className: `${styles.beam} ${styles.down}`, style: { left: `${(2 / 6) * 100}%` } }), _jsx("span", { className: `${styles.beam} ${styles.down} ${styles.late}`, style: { left: `${(5 / 6) * 100}%` } }), _jsx("span", { className: `${styles.beam} ${styles.across}`, style: { top: "75%" } }), _jsx("span", { className: `${styles.beam} ${styles.across} ${styles.late}`, style: { top: "25%" } })] }));
11
+ }
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/hero/guide/index.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,MAAM,OAAO,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AAChC,MAAM,IAAI,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AAEvB;;;GAGG;AACH,MAAM,UAAU,SAAS;IACvB,OAAO,CACL,eAAK,SAAS,EAAE,MAAM,CAAC,KAAK,kCACzB,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CACvB,eAEE,SAAS,EAAE,MAAM,CAAC,MAAM,EACxB,KAAK,EAAE,EAAE,IAAI,EAAE,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,GAAG,GAAG,EAAE,cAAc,EAAE,GAAG,MAAM,GAAG,IAAI,GAAG,EAAE,IAFzE,SAAS,MAAM,EAAE,CAGtB,CACH,CAAC,EACD,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CACjB,eAEE,SAAS,EAAE,MAAM,CAAC,GAAG,EACrB,KAAK,EAAE,EAAE,GAAG,EAAE,GAAG,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,GAAG,GAAG,EAAE,cAAc,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,EAAE,IAFvE,MAAM,GAAG,EAAE,CAGhB,CACH,CAAC,EACF,eAAM,SAAS,EAAE,GAAG,MAAM,CAAC,IAAI,IAAI,MAAM,CAAC,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,GAAG,GAAG,EAAE,GAAI,EAC1F,eAAM,SAAS,EAAE,GAAG,MAAM,CAAC,IAAI,IAAI,MAAM,CAAC,IAAI,IAAI,MAAM,CAAC,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,GAAG,GAAG,EAAE,GAAI,EACzG,eAAM,SAAS,EAAE,GAAG,MAAM,CAAC,IAAI,IAAI,MAAM,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,GAAI,EAC7E,eAAM,SAAS,EAAE,GAAG,MAAM,CAAC,IAAI,IAAI,MAAM,CAAC,MAAM,IAAI,MAAM,CAAC,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,GAAI,IACxF,CACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1,97 @@
1
+ .guide {
2
+ position: absolute;
3
+ inset: 0;
4
+ z-index: 0;
5
+ overflow: hidden;
6
+ pointer-events: none;
7
+ mask-image: radial-gradient(75% 70% at 60% 45%, #000 30%, transparent 85%);
8
+ }
9
+
10
+ .column {
11
+ position: absolute;
12
+ top: 0;
13
+ bottom: 0;
14
+ width: 1px;
15
+ background: linear-gradient(180deg, var(--line-2) 50%, transparent 0) 0 0/1px 10px repeat-y;
16
+ transform-origin: top;
17
+ animation: grow-down 1.6s cubic-bezier(0.22, 1, 0.36, 1) both;
18
+ }
19
+
20
+ .row {
21
+ position: absolute;
22
+ left: 0;
23
+ right: 0;
24
+ height: 1px;
25
+ background: linear-gradient(90deg, var(--line-2) 50%, transparent 0) 0 0/10px 1px repeat-x;
26
+ transform-origin: left;
27
+ animation: grow-across 1.6s cubic-bezier(0.22, 1, 0.36, 1) both;
28
+ }
29
+
30
+ @keyframes grow-down {
31
+ from {
32
+ transform: scaleY(0);
33
+ }
34
+ }
35
+ @keyframes grow-across {
36
+ from {
37
+ transform: scaleX(0);
38
+ }
39
+ }
40
+ .beam {
41
+ position: absolute;
42
+ opacity: 0;
43
+ }
44
+
45
+ .down {
46
+ top: 0;
47
+ width: 1px;
48
+ height: 120px;
49
+ margin-left: -0.5px;
50
+ background: linear-gradient(180deg, transparent, var(--foreground));
51
+ animation: beam-down 7s 1.4s linear infinite;
52
+ }
53
+
54
+ .across {
55
+ left: 0;
56
+ height: 1px;
57
+ width: 160px;
58
+ margin-top: -0.5px;
59
+ background: linear-gradient(90deg, transparent, var(--foreground));
60
+ animation: beam-across 9s 2.2s linear infinite;
61
+ }
62
+
63
+ .late {
64
+ animation-delay: 4.6s;
65
+ }
66
+
67
+ @keyframes beam-down {
68
+ 0% {
69
+ opacity: 0;
70
+ transform: translateY(-120px);
71
+ }
72
+ 8% {
73
+ opacity: 1;
74
+ }
75
+ 45%, 100% {
76
+ opacity: 0;
77
+ transform: translateY(100vh);
78
+ }
79
+ }
80
+ @keyframes beam-across {
81
+ 0% {
82
+ opacity: 0;
83
+ transform: translateX(-160px);
84
+ }
85
+ 8% {
86
+ opacity: 1;
87
+ }
88
+ 50%, 100% {
89
+ opacity: 0;
90
+ transform: translateX(100vw);
91
+ }
92
+ }
93
+ @media (prefers-reduced-motion: reduce) {
94
+ .beam {
95
+ display: none;
96
+ }
97
+ }
@@ -1,4 +1,4 @@
1
1
  import type { HeroProperties } from "@sharadox/sharadox-web-library/component/hero/type";
2
- /** First screen: the slogan rising line by line beside the interactive globe. */
2
+ /** First screen, inside the grid frame: the slogan rising line by line beside the interactive globe. */
3
3
  export declare function Hero({ locale }: HeroProperties): import("react").JSX.Element;
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/hero/index.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oDAAoD,CAAC;AAQzF,iFAAiF;AACjF,wBAAgB,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,cAAc,+BA4D9C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/hero/index.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oDAAoD,CAAC;AAQzF,wGAAwG;AACxG,wBAAgB,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,cAAc,+BA8D9C"}
@@ -3,8 +3,10 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { motion } from "motion/react";
4
4
  import dynamic from "next/dynamic";
5
5
  import { Button } from "@sharadox/sharadox-web-library/component/button";
6
+ import { Cross } from "@sharadox/sharadox-web-library/component/cross";
6
7
  import { Eyebrow } from "@sharadox/sharadox-web-library/component/eyebrow";
7
8
  import { GlobePlaceholder } from "@sharadox/sharadox-web-library/component/globe/placeholder";
9
+ import { HeroGuide } from "@sharadox/sharadox-web-library/component/hero/guide";
8
10
  import { HERO } from "@sharadox/sharadox-web-library/content/hero";
9
11
  import { translate } from "@sharadox/web-library/internationalization/translate";
10
12
  import styles from "./index.module.css";
@@ -13,9 +15,9 @@ const Globe = dynamic(() => import("@sharadox/sharadox-web-library/component/glo
13
15
  loading: () => _jsx(GlobePlaceholder, {}),
14
16
  });
15
17
  const EASE = [0.22, 1, 0.36, 1];
16
- /** First screen: the slogan rising line by line beside the interactive globe. */
18
+ /** First screen, inside the grid frame: the slogan rising line by line beside the interactive globe. */
17
19
  export function Hero({ locale }) {
18
20
  const lines = HERO.lines[locale];
19
- return (_jsxs("section", { className: styles.hero, children: [_jsx("div", { className: styles.grid, "aria-hidden": true }), _jsxs("div", { className: styles.copy, children: [_jsx(motion.div, { initial: { opacity: 0 }, animate: { opacity: 1 }, transition: { duration: 1, delay: 0.1 }, children: _jsxs(Eyebrow, { children: [_jsx("span", { className: styles.live, "aria-hidden": true }), " ", translate(HERO.eyebrow, locale)] }) }), _jsx("h1", { className: styles.title, children: lines.map((line, index) => (_jsx("span", { className: styles.line, children: _jsx(motion.span, { className: index === lines.length - 1 ? `${styles.lineInner} ${styles.dim}` : styles.lineInner, initial: { y: "110%" }, animate: { y: "0%" }, transition: { duration: 1.1, delay: 0.2 + index * 0.12, ease: EASE }, children: line }) }, index))) }), _jsx(motion.p, { className: styles.subtitle, initial: { opacity: 0, y: 14 }, animate: { opacity: 1, y: 0 }, transition: { duration: 0.9, delay: 0.75, ease: EASE }, children: translate(HERO.subtitle, locale) }), _jsxs(motion.div, { className: styles.actions, initial: { opacity: 0, y: 14 }, animate: { opacity: 1, y: 0 }, transition: { duration: 0.9, delay: 0.9, ease: EASE }, children: [_jsx(Button, { href: "#contact", arrow: true, children: translate(HERO.primary, locale) }), _jsx(Button, { href: "#services", variant: "ghost", children: translate(HERO.secondary, locale) })] })] }), _jsxs(motion.div, { className: styles.globe, initial: { opacity: 0, scale: 0.92 }, animate: { opacity: 1, scale: 1 }, transition: { duration: 1.8, delay: 0.3, ease: EASE }, children: [_jsx(Globe, {}), _jsx("span", { className: `${styles.hint} monospace`, "aria-hidden": true, children: translate(HERO.drag, locale) })] })] }));
21
+ return (_jsxs("section", { className: styles.hero, children: [_jsx(HeroGuide, {}), _jsx(Cross, { corner: "bottom-left" }), _jsx(Cross, { corner: "bottom-right" }), _jsxs("div", { className: styles.copy, children: [_jsx(motion.div, { initial: { opacity: 0 }, animate: { opacity: 1 }, transition: { duration: 1, delay: 0.1 }, children: _jsxs(Eyebrow, { className: styles.eyebrow, children: [_jsx("span", { className: styles.live, "aria-hidden": true }), " ", translate(HERO.eyebrow, locale)] }) }), _jsx("h1", { className: styles.title, children: lines.map((line, index) => (_jsx("span", { className: styles.line, children: _jsx(motion.span, { className: index === lines.length - 1 ? `${styles.lineInner} ${styles.dim}` : styles.lineInner, initial: { y: "110%" }, animate: { y: "0%" }, transition: { duration: 1.1, delay: 0.2 + index * 0.12, ease: EASE }, children: line }) }, index))) }), _jsx(motion.p, { className: styles.subtitle, initial: { opacity: 0, y: 14 }, animate: { opacity: 1, y: 0 }, transition: { duration: 0.9, delay: 0.75, ease: EASE }, children: translate(HERO.subtitle, locale) }), _jsxs(motion.div, { className: styles.actions, initial: { opacity: 0, y: 14 }, animate: { opacity: 1, y: 0 }, transition: { duration: 0.9, delay: 0.9, ease: EASE }, children: [_jsx(Button, { href: "#contact", arrow: true, children: translate(HERO.primary, locale) }), _jsx(Button, { href: "#services", variant: "ghost", children: translate(HERO.secondary, locale) })] })] }), _jsxs(motion.div, { className: styles.globe, initial: { opacity: 0, scale: 0.92 }, animate: { opacity: 1, scale: 1 }, transition: { duration: 1.8, delay: 0.3, ease: EASE }, children: [_jsx(Globe, {}), _jsx("span", { className: `${styles.hint} monospace`, "aria-hidden": true, children: translate(HERO.drag, locale) })] })] }));
20
22
  }
21
23
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/hero/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,iDAAiD,CAAC;AACzE,OAAO,EAAE,OAAO,EAAE,MAAM,kDAAkD,CAAC;AAC3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,4DAA4D,CAAC;AAC9F,OAAO,EAAE,IAAI,EAAE,MAAM,6CAA6C,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,gDAAgD,CAAC,EAAE;IACpF,GAAG,EAAE,KAAK;IACV,OAAO,EAAE,GAAG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KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,aAErD,KAAC,KAAK,KAAG,EACT,eAAM,SAAS,EAAE,GAAG,MAAM,CAAC,IAAI,YAAY,iCACxC,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,GACxB,IACI,IACL,CACX,CAAC;AACJ,CAAC"}
@@ -1,11 +1,12 @@
1
1
  .hero {
2
2
  position: relative;
3
- min-height: 100svh;
4
- max-width: var(--maximum-width);
3
+ min-height: min(100svh, 980px);
4
+ width: min(100% - 2 * var(--gutter), var(--maximum-width));
5
5
  margin: 0 auto;
6
- padding: 96px var(--padding) 40px;
6
+ padding: 104px var(--padding) 56px;
7
+ border-inline: 1px solid var(--line);
7
8
  display: grid;
8
- grid-template-columns: 1fr 1.05fr;
9
+ grid-template-columns: 1fr 1fr;
9
10
  align-items: center;
10
11
  gap: 24px;
11
12
  }
@@ -17,47 +18,39 @@
17
18
  }
18
19
  }
19
20
 
20
- .grid {
21
- position: absolute;
22
- inset: 0 -50vw;
23
- z-index: -1;
24
- pointer-events: none;
25
- background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
26
- background-size: 72px 72px;
27
- mask-image: radial-gradient(60% 60% at 62% 50%, #000 10%, transparent 70%);
28
- opacity: 0.55;
29
- }
30
- @media (max-width: 900px) {
31
- .grid {
32
- mask-image: radial-gradient(70% 40% at 50% 28%, #000 10%, transparent 70%);
33
- }
34
- }
35
-
36
21
  .copy {
37
22
  position: relative;
38
23
  z-index: 2;
39
24
  }
40
25
 
26
+ .eyebrow {
27
+ padding: 6px 12px 6px 10px;
28
+ border: 1px solid var(--line-2);
29
+ border-radius: 99px;
30
+ background: color-mix(in srgb, var(--background) 60%, transparent);
31
+ backdrop-filter: blur(6px);
32
+ }
33
+
41
34
  .live {
42
35
  width: 7px;
43
36
  height: 7px;
44
37
  border-radius: 50%;
45
- background: #fff;
46
- box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6);
38
+ background: var(--foreground);
39
+ box-shadow: 0 0 0 0 color-mix(in srgb, var(--foreground) 60%, transparent);
47
40
  animation: live 2.4s infinite;
48
41
  }
49
42
 
50
43
  @keyframes live {
51
44
  70% {
52
- box-shadow: 0 0 0 9px rgba(255, 255, 255, 0);
45
+ box-shadow: 0 0 0 9px color-mix(in srgb, var(--foreground) 0%, transparent);
53
46
  }
54
47
  100% {
55
- box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
48
+ box-shadow: 0 0 0 0 color-mix(in srgb, var(--foreground) 0%, transparent);
56
49
  }
57
50
  }
58
51
  .title {
59
52
  margin: 26px 0 26px;
60
- font-size: clamp(3rem, 7.2vw, 6.6rem);
53
+ font-size: clamp(3rem, 7vw, 6.4rem);
61
54
  letter-spacing: -0.06em;
62
55
  line-height: 0.95;
63
56
  }
@@ -78,14 +71,14 @@
78
71
  }
79
72
 
80
73
  .dim {
81
- background: linear-gradient(180deg, #fff 10%, #6b6b6b 120%);
74
+ background: linear-gradient(180deg, var(--foreground) 10%, var(--foreground-3) 120%);
82
75
  -webkit-background-clip: text;
83
76
  background-clip: text;
84
77
  color: transparent;
85
78
  }
86
79
 
87
80
  .subtitle {
88
- max-width: 30rem;
81
+ max-width: 31rem;
89
82
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
90
83
  color: var(--foreground-2);
91
84
  line-height: 1.55;
@@ -100,9 +93,10 @@
100
93
 
101
94
  .globe {
102
95
  position: relative;
96
+ z-index: 1;
103
97
  aspect-ratio: 1;
104
- width: 132%;
105
- margin: -6% -26% -6% 0;
98
+ width: 128%;
99
+ margin: -6% -24% -6% 0;
106
100
  justify-self: end;
107
101
  }
108
102
  @media (max-width: 900px) {
@@ -1,4 +1,4 @@
1
1
  import type { LanguageSwitchProperties } from "@sharadox/sharadox-web-library/component/language-switch/type";
2
- /** EN/PT pill toggle. */
2
+ /** EN/PT pill toggle. A manual choice is remembered, so sharadox.com opens in that language next time. */
3
3
  export declare function LanguageSwitch({ locale }: LanguageSwitchProperties): import("react").JSX.Element;
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/language-switch/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,+DAA+D,CAAC;AAE9G,yBAAyB;AACzB,wBAAgB,cAAc,CAAC,EAAE,MAAM,EAAE,EAAE,wBAAwB,+BAUlE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/language-switch/index.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,+DAA+D,CAAC;AAE9G,0GAA0G;AAC1G,wBAAgB,cAAc,CAAC,EAAE,MAAM,EAAE,EAAE,wBAAwB,+BAUlE"}
@@ -1,9 +1,11 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import Link from "next/link";
2
+ import { translate } from "@sharadox/web-library/internationalization/translate";
3
+ import { LocaleLink } from "@sharadox/sharadox-web-library/component/locale-link";
4
+ import { NAVIGATION } from "@sharadox/sharadox-web-library/content/navigation";
3
5
  import { LOCALES } from "@sharadox/sharadox-web-library/utility/locale";
4
6
  import styles from "./index.module.css";
5
- /** EN/PT pill toggle. */
7
+ /** EN/PT pill toggle. A manual choice is remembered, so sharadox.com opens in that language next time. */
6
8
  export function LanguageSwitch({ locale }) {
7
- return (_jsx("div", { className: styles.switch, role: "group", "aria-label": "Language", children: LOCALES.map((other) => (_jsx(Link, { href: `/${other}`, hrefLang: other, "aria-current": other === locale ? "true" : undefined, children: other.toUpperCase() }, other))) }));
9
+ return (_jsx("div", { className: styles.switch, role: "group", "aria-label": translate(NAVIGATION.language, locale), children: LOCALES.map((other) => (_jsx(LocaleLink, { locale: other, current: other === locale, children: other.toUpperCase() }, other))) }));
8
10
  }
9
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/language-switch/index.tsx"],"names":[],"mappings":";AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAE,MAAM,+CAA+C,CAAC;AACxE,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC,yBAAyB;AACzB,MAAM,UAAU,cAAc,CAAC,EAAE,MAAM,EAA4B;IACjE,OAAO,CACL,cAAK,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,EAAC,OAAO,gBAAY,UAAU,YAC9D,OAAO,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CACtB,KAAC,IAAI,IAAa,IAAI,EAAE,IAAI,KAAK,EAAE,EAAE,QAAQ,EAAE,KAAK,kBAAgB,KAAK,KAAK,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,YACtG,KAAK,CAAC,WAAW,EAAE,IADX,KAAK,CAET,CACR,CAAC,GACE,CACP,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/language-switch/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,EAAE,UAAU,EAAE,MAAM,sDAAsD,CAAC;AAClF,OAAO,EAAE,UAAU,EAAE,MAAM,mDAAmD,CAAC;AAC/E,OAAO,EAAE,OAAO,EAAE,MAAM,+CAA+C,CAAC;AACxE,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC,0GAA0G;AAC1G,MAAM,UAAU,cAAc,CAAC,EAAE,MAAM,EAA4B;IACjE,OAAO,CACL,cAAK,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,EAAC,OAAO,gBAAa,SAAS,CAAC,UAAU,CAAC,QAAQ,EAAE,MAAM,CAAC,YAC3F,OAAO,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CACtB,KAAC,UAAU,IAAa,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,KAAK,MAAM,YAC7D,KAAK,CAAC,WAAW,EAAE,IADL,KAAK,CAET,CACd,CAAC,GACE,CACP,CAAC;AACJ,CAAC"}
@@ -6,12 +6,15 @@
6
6
  }
7
7
  .switch a {
8
8
  font: 500 11px/1 var(--monospace);
9
- padding: 6px 9px;
9
+ padding: 7.5px 9px;
10
10
  border-radius: 99px;
11
11
  color: var(--foreground-3);
12
12
  transition: color 0.2s, background 0.2s;
13
13
  }
14
+ .switch a:hover {
15
+ color: var(--foreground);
16
+ }
14
17
  .switch a[aria-current] {
15
- background: #fff;
16
- color: #000;
18
+ background: var(--foreground);
19
+ color: var(--background);
17
20
  }
@@ -0,0 +1,4 @@
1
+ import type { LocaleLinkProperties } from "@sharadox/sharadox-web-library/component/locale-link/type";
2
+ /** A link to the site in another language that remembers the choice, so sharadox.com opens in it next time. */
3
+ export declare function LocaleLink({ locale, current, children }: LocaleLinkProperties): import("react").JSX.Element;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/locale-link/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2DAA2D,CAAC;AAEtG,+GAA+G;AAC/G,wBAAgB,UAAU,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,oBAAoB,+BAW7E"}
@@ -0,0 +1,9 @@
1
+ "use client";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import Link from "next/link";
4
+ import { rememberLocale } from "@sharadox/web-library/internationalization/locale-preference";
5
+ /** A link to the site in another language that remembers the choice, so sharadox.com opens in it next time. */
6
+ export function LocaleLink({ locale, current, children }) {
7
+ return (_jsx(Link, { href: `/${locale}`, hrefLang: locale, "aria-current": current ? "true" : undefined, onClick: () => rememberLocale(locale), children: children }));
8
+ }
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/locale-link/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,cAAc,EAAE,MAAM,8DAA8D,CAAC;AAG9F,+GAA+G;AAC/G,MAAM,UAAU,UAAU,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAwB;IAC5E,OAAO,CACL,KAAC,IAAI,IACH,IAAI,EAAE,IAAI,MAAM,EAAE,EAClB,QAAQ,EAAE,MAAM,kBACF,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,EAC1C,OAAO,EAAE,GAAG,EAAE,CAAC,cAAc,CAAC,MAAM,CAAC,YAEpC,QAAQ,GACJ,CACR,CAAC;AACJ,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { ReactNode } from "react";
2
+ import type { Locale } from "@sharadox/sharadox-web-library/utility/locale/type";
3
+ export interface LocaleLinkProperties {
4
+ /** The language the link switches to. */
5
+ locale: Locale;
6
+ /** Marks the link for the language being shown. */
7
+ current?: boolean;
8
+ children: ReactNode;
9
+ }
10
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../source/component/locale-link/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oDAAoD,CAAC;AAEjF,MAAM,WAAW,oBAAoB;IACnC,yCAAyC;IACzC,MAAM,EAAE,MAAM,CAAC;IACf,mDAAmD;IACnD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,SAAS,CAAC;CACrB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.js","sourceRoot":"","sources":["../../../source/component/locale-link/type.ts"],"names":[],"mappings":""}
@@ -1,7 +1,11 @@
1
1
  .marquee {
2
2
  --marquee-gap: 12px;
3
+ position: relative;
4
+ width: min(100% - 2 * var(--gutter), var(--maximum-width));
5
+ margin-inline: auto;
3
6
  overflow: hidden;
4
- border-block: 1px solid var(--line);
7
+ border: 1px solid var(--line);
8
+ border-bottom: 0;
5
9
  padding: 22px 0;
6
10
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
7
11
  }
@@ -1,4 +1,4 @@
1
1
  import type { NavigationProperties } from "@sharadox/sharadox-web-library/component/navigation/type";
2
- /** Fixed top bar that frosts once the page scrolls. */
2
+ /** Fixed top bar that frosts once the page scrolls, with the style and language switches. */
3
3
  export declare function Navigation({ locale }: NavigationProperties): import("react").JSX.Element;
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/navigation/index.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0DAA0D,CAAC;AAErG,uDAAuD;AACvD,wBAAgB,UAAU,CAAC,EAAE,MAAM,EAAE,EAAE,oBAAoB,+BA0B1D"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/navigation/index.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0DAA0D,CAAC;AAIrG,6FAA6F;AAC7F,wBAAgB,UAAU,CAAC,EAAE,MAAM,EAAE,EAAE,oBAAoB,+BA6B1D"}
@@ -3,11 +3,13 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { useEffect, useState } from "react";
4
4
  import { Button } from "@sharadox/sharadox-web-library/component/button";
5
5
  import { LanguageSwitch } from "@sharadox/sharadox-web-library/component/language-switch";
6
+ import { StyleSwitch } from "@sharadox/sharadox-web-library/component/style-switch";
6
7
  import { Wordmark } from "@sharadox/sharadox-web-library/component/wordmark";
7
8
  import { NAVIGATION } from "@sharadox/sharadox-web-library/content/navigation";
8
9
  import { translate } from "@sharadox/web-library/internationalization/translate";
9
10
  import styles from "./index.module.css";
10
- /** Fixed top bar that frosts once the page scrolls. */
11
+ const LINKS = ["services", "capabilities", "process", "contact"];
12
+ /** Fixed top bar that frosts once the page scrolls, with the style and language switches. */
11
13
  export function Navigation({ locale }) {
12
14
  const [scrolled, setScrolled] = useState(false);
13
15
  useEffect(() => {
@@ -16,6 +18,6 @@ export function Navigation({ locale }) {
16
18
  addEventListener("scroll", update, { passive: true });
17
19
  return () => removeEventListener("scroll", update);
18
20
  }, []);
19
- return (_jsx("header", { className: [styles.navigation, scrolled && styles.scrolled].filter(Boolean).join(" "), children: _jsxs("div", { className: styles.inner, children: [_jsx(Wordmark, { href: `/${locale}` }), _jsxs("nav", { className: styles.links, "aria-label": "Main", children: [_jsx("a", { href: "#services", children: translate(NAVIGATION.services, locale) }), _jsx("a", { href: "#process", children: translate(NAVIGATION.process, locale) }), _jsx("a", { href: "#contact", children: translate(NAVIGATION.contact, locale) })] }), _jsxs("div", { className: styles.end, children: [_jsx(LanguageSwitch, { locale: locale }), _jsx(Button, { href: "#contact", size: "small", className: styles.callToAction, children: translate(NAVIGATION.callToAction, locale) })] })] }) }));
21
+ return (_jsx("header", { className: [styles.navigation, scrolled && styles.scrolled].filter(Boolean).join(" "), children: _jsxs("div", { className: styles.inner, children: [_jsx(Wordmark, { href: `/${locale}` }), _jsx("nav", { className: styles.links, "aria-label": "Main", children: LINKS.map((link) => (_jsx("a", { href: `#${link}`, children: translate(NAVIGATION[link], locale) }, link))) }), _jsxs("div", { className: styles.end, children: [_jsx(StyleSwitch, { locale: locale, className: styles.style }), _jsx(LanguageSwitch, { locale: locale }), _jsx(Button, { href: "#contact", size: "small", className: styles.callToAction, children: translate(NAVIGATION.callToAction, locale) })] })] }) }));
20
22
  }
21
23
  //# sourceMappingURL=index.js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