@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
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @sharadox/sharadox-web-library
2
2
 
3
- Everything sharadox.com is made of — content, components (hero with the interactive globe, services, process, contact, navigation, footer…), the contact action and the design tokens — imported by [sharadox-web-application](https://github.com/Sharadox/sharadox-web-application), which keeps only its routes, global styles and configuration.
3
+ Everything sharadox.com is made of — content, components (hero with the interactive globe, the five services with live visuals, the 3D touchpoint stack, capabilities, process, contact, navigation, footer…), the contact action, the styles and the design helpers — imported by [sharadox-web-application](https://github.com/Sharadox/sharadox-web-application), which keeps only its routes, global styles and configuration.
4
4
 
5
5
  Generic pieces come from [`@sharadox/web-library`](https://github.com/Sharadox/web-library) and email from [`@sharadox/email-web-library`](https://github.com/Sharadox/email-web-library).
6
6
 
@@ -8,7 +8,9 @@ Generic pieces come from [`@sharadox/web-library`](https://github.com/Sharadox/w
8
8
 
9
9
  - Components: `import { Hero } from "@sharadox/sharadox-web-library/component/hero"`.
10
10
  - Contact: the application's server action reads the visitor's ip address and calls `sendContact(form, ip)` from `action/send-contact`; `<Contact action={…} />` receives that action.
11
- - Design tokens in Sass: add `node_modules/@sharadox/sharadox-web-library/distribution` to the Sass load path, then `@use "style/token" as *;`.
11
+ - Styles (themes): `content/style` holds every style — Black (dark, the fallback) and White (its inverse) — with their palettes. Add a dark or light style there and it appears in the style switch. Put `<StyleScript configuration={STYLE_CONFIGURATION} />` from `@sharadox/web-library/style/style-script` in `<head>`.
12
+ - The text separator (•) lives in `content/separator`; join labels with `separate()`.
13
+ - Design helpers in Sass: add `node_modules/@sharadox/sharadox-web-library/distribution` to the Sass load path, then `@use "style/token" as *;`.
12
14
 
13
15
  ## Licence
14
16
 
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/action/send-contact/index.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yDAAyD,CAAC;AAI5F;;;;;GAKG;AACH,wBAAsB,WAAW,CAAC,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CAkCnF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/action/send-contact/index.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yDAAyD,CAAC;AAI5F;;;;;GAKG;AACH,wBAAsB,WAAW,CAAC,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CAoCnF"}
@@ -1,6 +1,7 @@
1
1
  import { separate } from "@sharadox/sharadox-web-library/utility/separate";
2
2
  import { createEmailSender, EmailError, readEmailServerConfiguration } from "@sharadox/email-web-library";
3
3
  import { CONTACT } from "@sharadox/sharadox-web-library/content/contact";
4
+ import { SERVICES } from "@sharadox/sharadox-web-library/content/services";
4
5
  import { SITE } from "@sharadox/sharadox-web-library/content/site";
5
6
  import { escapeHtml } from "@sharadox/web-library/html/escape";
6
7
  import { parseContact } from "@sharadox/sharadox-web-library/utility/parse-contact";
@@ -19,14 +20,16 @@ export async function sendContact(form, ip) {
19
20
  return { status: "sent" };
20
21
  if (parsed.kind === "invalid")
21
22
  return { status: "invalid" };
22
- const { name, email, company, message, locale } = parsed.value;
23
+ const { name, email, company, message, locale, services } = parsed.value;
23
24
  if (!allow(ip))
24
25
  return { status: "rate-limited" };
25
- const subject = separate("New project enquiry", company ? `${name} (${company})` : name);
26
- const text = `Name: ${name}\nEmail: ${email}\nCompany: ${company || "—"}\nLanguage: ${locale}\nIP: ${ip}\n\n${message}`;
26
+ const subject = separate(CONTACT.subject, company ? `${name} (${company})` : name);
27
+ const needs = SERVICES.items.filter((service) => services.includes(service.key)).map((service) => service.title.en);
28
+ const text = `Name: ${name}\nEmail: ${email}\nCompany: ${company || "—"}\nServices: ${needs.join(", ") || "—"}\nLanguage: ${locale}\nIP: ${ip}\n\n${message}`;
27
29
  const html = `<div style="font-family:-apple-system,Segoe UI,sans-serif;font-size:15px;line-height:1.6;color:#111">
28
30
  <p style="color:#666;font-size:13px;margin:0 0 16px">New enquiry from sharadox.com (${escapeHtml(locale)})</p>
29
31
  <p style="margin:0">${separate(`<b>${escapeHtml(name)}</b>`, company && escapeHtml(company))}<br><a href="mailto:${escapeHtml(email)}">${escapeHtml(email)}</a></p>
32
+ ${needs.length ? `<p style="margin:12px 0 0;color:#444">${escapeHtml(separate(...needs))}</p>` : ""}
30
33
  <hr style="border:0;border-top:1px solid #eee;margin:18px 0">
31
34
  <p style="white-space:pre-wrap;margin:0">${escapeHtml(message)}</p></div>`;
32
35
  try {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/action/send-contact/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAC;AAC1G,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AACzE,OAAO,EAAE,IAAI,EAAE,MAAM,6CAA6C,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,sDAAsD,CAAC;AACpF,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAu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AAI,KAAK,YAAY,UAAU,IAAI,KAAK,CAAC,IAAI,KAAK,iBAAiB;YAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;QAClG,OAAO,CAAC,KAAK,CAAC,yBAAyB,EAAE,KAAK,CAAC,CAAC;QAChD,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC;IAC9B,CAAC;AACH,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import type { ButtonProperties } from "@sharadox/sharadox-web-library/component/button/type";
2
- /** Pill button or link. */
2
+ /** Pill button or link: solid (the foreground colour) or ghost (outlined). */
3
3
  export declare function Button({ children, href, variant, size, arrow, disabled, className, }: ButtonProperties): import("react").JSX.Element;
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/button/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sDAAsD,CAAC;AAE7F,2BAA2B;AAC3B,wBAAgB,MAAM,CAAC,EACrB,QAAQ,EACR,IAAI,EACJ,OAAiB,EACjB,IAAe,EACf,KAAK,EACL,QAAQ,EACR,SAAS,GACV,EAAE,gBAAgB,+BAuBlB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/button/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sDAAsD,CAAC;AAE7F,8EAA8E;AAC9E,wBAAgB,MAAM,CAAC,EACrB,QAAQ,EACR,IAAI,EACJ,OAAiB,EACjB,IAAe,EACf,KAAK,EACL,QAAQ,EACR,SAAS,GACV,EAAE,gBAAgB,+BAuBlB"}
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import styles from "./index.module.css";
3
- /** Pill button or link. */
4
- export function Button({ children, href, variant = "white", size = "medium", arrow, disabled, className, }) {
3
+ /** Pill button or link: solid (the foreground colour) or ghost (outlined). */
4
+ export function Button({ children, href, variant = "solid", size = "medium", arrow, disabled, className, }) {
5
5
  const classNames = [styles.button, styles[variant], size !== "medium" && styles[size], className]
6
6
  .filter(Boolean)
7
7
  .join(" ");
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/button/index.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC,2BAA2B;AAC3B,MAAM,UAAU,MAAM,CAAC,EACrB,QAAQ,EACR,IAAI,EACJ,OAAO,GAAG,OAAO,EACjB,IAAI,GAAG,QAAQ,EACf,KAAK,EACL,QAAQ,EACR,SAAS,GACQ;IACjB,MAAM,UAAU,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE,IAAI,KAAK,QAAQ,IAAI,MAAM,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC;SAC9F,MAAM,CAAC,OAAO,CAAC;SACf,IAAI,CAAC,GAAG,CAAC,CAAC;IACb,MAAM,OAAO,GAAG,CACd,8BACG,QAAQ,EACR,KAAK,IAAI,CACR,eAAM,SAAS,EAAE,MAAM,CAAC,KAAK,4CAEtB,CACR,IACA,CACJ,CAAC;IACF,OAAO,IAAI,CAAC,CAAC,CAAC,CACZ,YAAG,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,YACjC,OAAO,GACN,CACL,CAAC,CAAC,CAAC,CACF,iBAAQ,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,YAC9C,OAAO,GACD,CACV,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/button/index.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC,8EAA8E;AAC9E,MAAM,UAAU,MAAM,CAAC,EACrB,QAAQ,EACR,IAAI,EACJ,OAAO,GAAG,OAAO,EACjB,IAAI,GAAG,QAAQ,EACf,KAAK,EACL,QAAQ,EACR,SAAS,GACQ;IACjB,MAAM,UAAU,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE,IAAI,KAAK,QAAQ,IAAI,MAAM,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC;SAC9F,MAAM,CAAC,OAAO,CAAC;SACf,IAAI,CAAC,GAAG,CAAC,CAAC;IACb,MAAM,OAAO,GAAG,CACd,8BACG,QAAQ,EACR,KAAK,IAAI,CACR,eAAM,SAAS,EAAE,MAAM,CAAC,KAAK,4CAEtB,CACR,IACA,CACJ,CAAC;IACF,OAAO,IAAI,CAAC,CAAC,CAAC,CACZ,YAAG,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,YACjC,OAAO,GACN,CACL,CAAC,CAAC,CAAC,CACF,iBAAQ,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,YAC9C,OAAO,GACD,CACV,CAAC;AACJ,CAAC"}
@@ -9,7 +9,7 @@
9
9
  font-weight: 500;
10
10
  font-size: 15px;
11
11
  border: 1px solid transparent;
12
- transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.4s var(--ease);
12
+ transition: background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.4s var(--ease);
13
13
  white-space: nowrap;
14
14
  }
15
15
  .button:active {
@@ -22,21 +22,24 @@
22
22
  transform: translateX(4px);
23
23
  }
24
24
 
25
- .white {
26
- background: #fff;
27
- color: #000;
25
+ .solid {
26
+ background: var(--foreground);
27
+ color: var(--background);
28
+ box-shadow: 0 0 0 0 color-mix(in srgb, var(--foreground) 0%, transparent);
28
29
  }
29
- .white:hover {
30
- background: #e6e6e6;
30
+ .solid:hover {
31
+ background: color-mix(in srgb, var(--foreground) 88%, transparent);
32
+ box-shadow: 0 0 0 5px color-mix(in srgb, var(--foreground) 10%, transparent);
31
33
  }
32
34
 
33
35
  .ghost {
34
36
  border-color: var(--line-2);
35
37
  color: var(--foreground);
38
+ background: color-mix(in srgb, var(--background) 40%, transparent);
36
39
  }
37
40
  .ghost:hover {
38
- background: rgba(255, 255, 255, 0.06);
39
- border-color: rgba(255, 255, 255, 0.3);
41
+ background: color-mix(in srgb, var(--foreground) 6%, transparent);
42
+ border-color: color-mix(in srgb, var(--foreground) 30%, transparent);
40
43
  }
41
44
 
42
45
  .small {
@@ -3,7 +3,7 @@ export interface ButtonProperties {
3
3
  children: ReactNode;
4
4
  /** Renders a link when set, otherwise a button. */
5
5
  href?: string;
6
- variant?: "white" | "ghost";
6
+ variant?: "solid" | "ghost";
7
7
  size?: "medium" | "small" | "block";
8
8
  /** Adds an arrow that nudges right on hover. */
9
9
  arrow?: boolean;
@@ -0,0 +1,4 @@
1
+ import type { CapabilityProperties } from "@sharadox/sharadox-web-library/component/capability/type";
2
+ /** "Capabilities": every deliverable of every discipline, as columns of a ruled sheet. */
3
+ export declare function Capability({ locale }: CapabilityProperties): import("react").JSX.Element;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/capability/index.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0DAA0D,CAAC;AAErG,0FAA0F;AAC1F,wBAAgB,UAAU,CAAC,EAAE,MAAM,EAAE,EAAE,oBAAoB,+BA2B1D"}
@@ -0,0 +1,13 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Reveal } from "@sharadox/web-library/animation/reveal";
3
+ import { translate } from "@sharadox/web-library/internationalization/translate";
4
+ import { Section } from "@sharadox/sharadox-web-library/component/section";
5
+ import { SectionHeading } from "@sharadox/sharadox-web-library/component/section-heading";
6
+ import { CAPABILITY } from "@sharadox/sharadox-web-library/content/capability";
7
+ import { SERVICES } from "@sharadox/sharadox-web-library/content/services";
8
+ import styles from "./index.module.css";
9
+ /** "Capabilities": every deliverable of every discipline, as columns of a ruled sheet. */
10
+ export function Capability({ locale }) {
11
+ return (_jsxs(Section, { id: "capabilities", padded: false, children: [_jsx("div", { className: styles.heading, children: _jsx(SectionHeading, { eyebrow: translate(CAPABILITY.eyebrow, locale), title: translate(CAPABILITY.title, locale) }) }), _jsx("div", { className: styles.sheet, children: SERVICES.items.map((service, column) => (_jsxs("div", { className: styles.column, children: [_jsxs("a", { href: `#${service.key}`, className: styles.title, children: [_jsx("span", { className: "monospace", children: service.number }), translate(service.title, locale)] }), _jsx("ul", { children: service.capabilities[locale].map((capability, row) => (_jsx("li", { children: _jsx(Reveal, { delay: column * 0.05 + row * 0.04, y: 8, blur: 0, margin: "-5% 0px", children: capability }) }, capability))) })] }, service.key))) })] }));
12
+ }
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/capability/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,wCAAwC,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,EAAE,OAAO,EAAE,MAAM,kDAAkD,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,0DAA0D,CAAC;AAC1F,OAAO,EAAE,UAAU,EAAE,MAAM,mDAAmD,CAAC;AAC/E,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAC3E,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC,0FAA0F;AAC1F,MAAM,UAAU,UAAU,CAAC,EAAE,MAAM,EAAwB;IACzD,OAAO,CACL,MAAC,OAAO,IAAC,EAAE,EAAC,cAAc,EAAC,MAAM,EAAE,KAAK,aACtC,cAAK,SAAS,EAAE,MAAM,CAAC,OAAO,YAC5B,KAAC,cAAc,IAAC,OAAO,EAAE,SAAS,CAAC,UAAU,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,KAAK,EAAE,SAAS,CAAC,UAAU,CAAC,KAAK,EAAE,MAAM,CAAC,GAAI,GAC1G,EACN,cAAK,SAAS,EAAE,MAAM,CAAC,KAAK,YACzB,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC,CACvC,eAAuB,SAAS,EAAE,MAAM,CAAC,MAAM,aAC7C,aAAG,IAAI,EAAE,IAAI,OAAO,CAAC,GAAG,EAAE,EAAE,SAAS,EAAE,MAAM,CAAC,KAAK,aACjD,eAAM,SAAS,EAAC,WAAW,YAAE,OAAO,CAAC,MAAM,GAAQ,EAClD,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,IAC/B,EACJ,uBACG,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,GAAG,EAAE,EAAE,CAAC,CACrD,uBACE,KAAC,MAAM,IAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,GAAG,GAAG,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAC,SAAS,YACvE,UAAU,GACJ,IAHF,UAAU,CAId,CACN,CAAC,GACC,KAbG,OAAO,CAAC,GAAG,CAcf,CACP,CAAC,GACE,IACE,CACX,CAAC;AACJ,CAAC"}
@@ -0,0 +1,83 @@
1
+ .heading {
2
+ padding: clamp(72px, 10vw, 128px) var(--padding) 0;
3
+ }
4
+
5
+ .sheet {
6
+ display: grid;
7
+ grid-template-columns: repeat(5, 1fr);
8
+ border-top: 1px solid var(--line);
9
+ }
10
+ @media (max-width: 960px) {
11
+ .sheet {
12
+ grid-template-columns: repeat(2, 1fr);
13
+ }
14
+ }
15
+ @media (max-width: 600px) {
16
+ .sheet {
17
+ grid-template-columns: 1fr;
18
+ }
19
+ }
20
+
21
+ .column {
22
+ position: relative;
23
+ }
24
+ .column:not(:last-child)::after {
25
+ content: "";
26
+ position: absolute;
27
+ top: 0;
28
+ bottom: 0;
29
+ right: 0;
30
+ width: 1px;
31
+ background: linear-gradient(180deg, var(--line-2) 50%, transparent 0) 0 0/1px 8px repeat-y;
32
+ }
33
+ .column ul {
34
+ margin: 0;
35
+ padding: 0;
36
+ list-style: none;
37
+ }
38
+ .column li {
39
+ position: relative;
40
+ padding: 13px 20px;
41
+ font-size: 14.5px;
42
+ color: var(--foreground-2);
43
+ transition: color 0.25s;
44
+ }
45
+ .column li::after {
46
+ content: "";
47
+ position: absolute;
48
+ left: 0;
49
+ right: 0;
50
+ bottom: 0;
51
+ height: 1px;
52
+ background: linear-gradient(90deg, var(--line) 50%, transparent 0) 0 0/8px 1px repeat-x;
53
+ }
54
+ .column li:hover {
55
+ color: var(--foreground);
56
+ }
57
+ @media (max-width: 960px) {
58
+ .column {
59
+ border-bottom: 1px solid var(--line);
60
+ }
61
+ .column:nth-child(2n)::after {
62
+ display: none;
63
+ }
64
+ }
65
+ @media (max-width: 600px) {
66
+ .column::after {
67
+ display: none;
68
+ }
69
+ }
70
+
71
+ .title {
72
+ display: grid;
73
+ gap: 6px;
74
+ padding: 22px 20px 18px;
75
+ font-weight: 600;
76
+ letter-spacing: -0.02em;
77
+ border-bottom: 1px solid var(--line);
78
+ }
79
+ .title span {
80
+ font-size: 11.5px;
81
+ font-weight: 400;
82
+ color: var(--foreground-3);
83
+ }
@@ -1,5 +1,5 @@
1
1
  import type { Locale } from "@sharadox/sharadox-web-library/utility/locale/type";
2
- export interface AppVisualProperties {
2
+ export interface CapabilityProperties {
3
3
  locale: Locale;
4
4
  }
5
5
  //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../source/component/capability/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oDAAoD,CAAC;AAEjF,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,MAAM,CAAC;CAChB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.js","sourceRoot":"","sources":["../../../source/component/capability/type.ts"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/contact/form/index.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4DAA4D,CAAC;AAExG,sGAAsG;AACtG,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,qBAAqB,+BA4EhF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/contact/form/index.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4DAA4D,CAAC;AAExG,sGAAsG;AACtG,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,qBAAqB,+BAqFhF"}
@@ -4,6 +4,7 @@ import { AnimatePresence, motion } from "motion/react";
4
4
  import { useActionState, useEffect, useRef } from "react";
5
5
  import { Button } from "@sharadox/sharadox-web-library/component/button";
6
6
  import { CONTACT } from "@sharadox/sharadox-web-library/content/contact";
7
+ import { SERVICES } from "@sharadox/sharadox-web-library/content/services";
7
8
  import { SITE } from "@sharadox/sharadox-web-library/content/site";
8
9
  import { useSpotlight } from "@sharadox/web-library/pointer/spotlight";
9
10
  import { translate } from "@sharadox/web-library/internationalization/translate";
@@ -18,6 +19,6 @@ export function ContactForm({ locale, action: sendAction }) {
18
19
  startedAt.current.value = String(Date.now());
19
20
  }, []);
20
21
  const spotlight = useSpotlight();
21
- return (_jsx(AnimatePresence, { mode: "wait", children: state.status === "sent" ? (_jsxs(motion.div, { className: `${styles.form} ${styles.done}`, initial: { opacity: 0, scale: 0.98 }, animate: { opacity: 1, scale: 1 }, role: "status", children: [_jsxs("svg", { viewBox: "0 0 48 48", className: styles.check, "aria-hidden": true, children: [_jsx("circle", { cx: "24", cy: "24", r: "22" }), _jsx("path", { d: "M14 24.5l7 7 13-14" })] }), _jsx("p", { children: translate(CONTACT.sent, locale) })] }, "sent")) : (_jsxs(motion.form, { ref: spotlight, action: action, className: styles.form, exit: { opacity: 0, scale: 0.98 }, children: [_jsx("input", { ref: startedAt, type: "hidden", name: "started-at", defaultValue: "0" }), _jsx("input", { type: "hidden", name: "locale", value: locale }), _jsx("div", { className: styles.honeypot, "aria-hidden": true, children: _jsxs("label", { children: ["Website", _jsx("input", { name: "website", tabIndex: -1, autoComplete: "off" })] }) }), _jsxs("div", { className: styles.row, children: [_jsxs("label", { className: styles.field, children: [_jsx("span", { children: translate(CONTACT.name, locale) }), _jsx("input", { name: "name", required: true, autoComplete: "name", maxLength: 120 })] }), _jsxs("label", { className: styles.field, children: [_jsx("span", { children: translate(CONTACT.company, locale) }), _jsx("input", { name: "company", autoComplete: "organization", maxLength: 160 })] })] }), _jsxs("label", { className: styles.field, children: [_jsx("span", { children: translate(CONTACT.email, locale) }), _jsx("input", { name: "email", type: "email", required: true, autoComplete: "email", maxLength: 200 })] }), _jsxs("label", { className: styles.field, children: [_jsx("span", { children: translate(CONTACT.message, locale) }), _jsx("textarea", { name: "message", required: true, rows: 5, maxLength: 5000 })] }), state.status !== "idle" && (_jsx("p", { className: styles.error, role: "alert", children: state.status === "failed" ? (_jsxs(_Fragment, { children: [translate(CONTACT.errors.failed, locale), " ", _jsx("a", { href: `mailto:${SITE.email}`, children: SITE.email }), "."] })) : (translate(CONTACT.errors[state.status], locale)) })), _jsx(Button, { size: "block", disabled: pending, arrow: !pending, children: pending ? translate(CONTACT.sending, locale) : translate(CONTACT.send, locale) })] }, "form")) }));
22
+ return (_jsx(AnimatePresence, { mode: "wait", children: state.status === "sent" ? (_jsxs(motion.div, { className: `${styles.form} ${styles.done}`, initial: { opacity: 0, scale: 0.98 }, animate: { opacity: 1, scale: 1 }, role: "status", children: [_jsxs("svg", { viewBox: "0 0 48 48", className: styles.check, "aria-hidden": true, children: [_jsx("circle", { cx: "24", cy: "24", r: "22" }), _jsx("path", { d: "M14 24.5l7 7 13-14" })] }), _jsx("p", { children: translate(CONTACT.sent, locale) })] }, "sent")) : (_jsxs(motion.form, { ref: spotlight, action: action, className: styles.form, exit: { opacity: 0, scale: 0.98 }, children: [_jsx("input", { ref: startedAt, type: "hidden", name: "started-at", defaultValue: "0" }), _jsx("input", { type: "hidden", name: "locale", value: locale }), _jsx("div", { className: styles.honeypot, "aria-hidden": true, children: _jsxs("label", { children: ["Website", _jsx("input", { name: "website", tabIndex: -1, autoComplete: "off" })] }) }), _jsxs("div", { className: styles.row, children: [_jsxs("label", { className: styles.field, children: [_jsx("span", { children: translate(CONTACT.name, locale) }), _jsx("input", { name: "name", required: true, autoComplete: "name", maxLength: 120 })] }), _jsxs("label", { className: styles.field, children: [_jsx("span", { children: translate(CONTACT.company, locale) }), _jsx("input", { name: "company", autoComplete: "organization", maxLength: 160 })] })] }), _jsxs("label", { className: styles.field, children: [_jsx("span", { children: translate(CONTACT.email, locale) }), _jsx("input", { name: "email", type: "email", required: true, autoComplete: "email", maxLength: 200 })] }), _jsxs("fieldset", { className: styles.services, children: [_jsx("legend", { children: translate(CONTACT.services, locale) }), SERVICES.items.map((service) => (_jsxs("label", { className: styles.chip, children: [_jsx("input", { type: "checkbox", name: "service", value: service.key }), _jsx("span", { children: translate(service.title, locale) })] }, service.key)))] }), _jsxs("label", { className: styles.field, children: [_jsx("span", { children: translate(CONTACT.message, locale) }), _jsx("textarea", { name: "message", required: true, rows: 5, maxLength: 5000 })] }), state.status !== "idle" && (_jsx("p", { className: styles.error, role: "alert", children: state.status === "failed" ? (_jsxs(_Fragment, { children: [translate(CONTACT.errors.failed, locale), " ", _jsx("a", { href: `mailto:${SITE.email}`, children: SITE.email }), "."] })) : (translate(CONTACT.errors[state.status], locale)) })), _jsx(Button, { size: "block", disabled: pending, arrow: !pending, children: pending ? translate(CONTACT.sending, locale) : translate(CONTACT.send, locale) })] }, "form")) }));
22
23
  }
23
24
  //# sourceMappingURL=index.js.map
@@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,OAAO,CAAC,GAAG,CAGf,CACT,CAAC,IACO,EACX,iBAAO,SAAS,EAAE,MAAM,CAAC,KAAK,aAC5B,yBAAO,SAAS,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,GAAQ,EACjD,mBAAU,IAAI,EAAC,SAAS,EAAC,QAAQ,QAAC,IAAI,EAAE,CAAC,EAAE,SAAS,EAAE,IAAI,GAAI,IACxD,EACP,KAAK,CAAC,MAAM,KAAK,MAAM,IAAI,CAC1B,YAAG,SAAS,EAAE,MAAM,CAAC,KAAK,EAAE,IAAI,EAAC,OAAO,YACrC,KAAK,CAAC,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,CAC3B,8BACG,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,OAAE,YAAG,IAAI,EAAE,UAAU,IAAI,CAAC,KAAK,EAAE,YAAG,IAAI,CAAC,KAAK,GAAK,SAC3F,CACJ,CAAC,CAAC,CAAC,CACF,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAChD,GACC,CACL,EACD,KAAC,MAAM,IAAC,IAAI,EAAC,OAAO,EAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,OAAO,YACpD,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,GACxE,KAtDL,MAAM,CAuDE,CACf,GACe,CACnB,CAAC;AACJ,CAAC"}
@@ -5,7 +5,7 @@
5
5
  display: grid;
6
6
  gap: 14px;
7
7
  padding: clamp(22px, 3vw, 34px);
8
- border-radius: 22px;
8
+ border-radius: 18px;
9
9
  background: var(--card);
10
10
  border: 1px solid var(--line);
11
11
  isolation: isolate;
@@ -16,7 +16,7 @@
16
16
  inset: 0;
17
17
  z-index: -1;
18
18
  border-radius: inherit;
19
- background: radial-gradient(500px circle at var(--pointer-x) var(--pointer-y), rgba(255, 255, 255, 0.05), transparent 60%);
19
+ background: radial-gradient(500px circle at var(--pointer-x) var(--pointer-y), color-mix(in srgb, var(--foreground) 5%, transparent), transparent 60%);
20
20
  }
21
21
 
22
22
  .row {
@@ -44,7 +44,7 @@
44
44
  font: inherit;
45
45
  font-size: 15px;
46
46
  color: var(--foreground);
47
- background: #000;
47
+ background: var(--background);
48
48
  border: 1px solid var(--line-2);
49
49
  border-radius: 12px;
50
50
  padding: 13px 14px;
@@ -54,8 +54,68 @@
54
54
  .field input:focus,
55
55
  .field textarea:focus {
56
56
  outline: none;
57
- border-color: rgba(255, 255, 255, 0.5);
58
- box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06);
57
+ border-color: color-mix(in srgb, var(--foreground) 50%, transparent);
58
+ box-shadow: 0 0 0 4px color-mix(in srgb, var(--foreground) 6%, transparent);
59
+ }
60
+
61
+ .services {
62
+ display: flex;
63
+ flex-wrap: wrap;
64
+ gap: 8px;
65
+ margin: 4px 0 2px;
66
+ padding: 0;
67
+ border: 0;
68
+ }
69
+ .services legend {
70
+ float: left;
71
+ padding: 0;
72
+ width: 100%;
73
+ margin-bottom: 9px;
74
+ font-size: 13px;
75
+ color: var(--foreground-2);
76
+ }
77
+
78
+ .chip {
79
+ position: relative;
80
+ }
81
+ .chip input {
82
+ position: absolute;
83
+ opacity: 0;
84
+ inset: 0;
85
+ margin: 0;
86
+ cursor: pointer;
87
+ }
88
+ .chip span {
89
+ display: inline-flex;
90
+ align-items: center;
91
+ gap: 7px;
92
+ padding: 8px 13px;
93
+ border-radius: 99px;
94
+ border: 1px solid var(--line-2);
95
+ font-size: 13.5px;
96
+ color: var(--foreground-2);
97
+ transition: color 0.2s, background 0.2s, border-color 0.2s;
98
+ }
99
+ .chip span::before {
100
+ content: "+";
101
+ font-family: var(--monospace);
102
+ transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
103
+ }
104
+ .chip:hover span {
105
+ color: var(--foreground);
106
+ border-color: color-mix(in srgb, var(--foreground) 30%, transparent);
107
+ }
108
+ .chip input:checked + span {
109
+ background: var(--foreground);
110
+ border-color: var(--foreground);
111
+ color: var(--background);
112
+ }
113
+ .chip input:checked + span::before {
114
+ transform: rotate(45deg);
115
+ }
116
+ .chip input:focus-visible + span {
117
+ outline: 2px solid var(--foreground);
118
+ outline-offset: 2px;
59
119
  }
60
120
 
61
121
  .honeypot {
@@ -68,7 +128,7 @@
68
128
 
69
129
  .error {
70
130
  font-size: 14px;
71
- color: #ff8a8a;
131
+ color: var(--error);
72
132
  }
73
133
  .error a {
74
134
  text-decoration: underline;
@@ -90,7 +150,7 @@
90
150
  width: 56px;
91
151
  height: 56px;
92
152
  fill: none;
93
- stroke: #fff;
153
+ stroke: var(--foreground);
94
154
  stroke-width: 1.6;
95
155
  stroke-linecap: round;
96
156
  stroke-linejoin: round;
@@ -18,7 +18,7 @@
18
18
  max-width: 1000px;
19
19
  aspect-ratio: 2;
20
20
  transform: translate(-50%, -50%);
21
- background: radial-gradient(closest-side, rgba(255, 255, 255, 0.07), transparent);
21
+ background: radial-gradient(closest-side, color-mix(in srgb, var(--foreground) 7%, transparent), transparent);
22
22
  pointer-events: none;
23
23
  z-index: -1;
24
24
  }
@@ -48,7 +48,7 @@
48
48
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
49
49
  letter-spacing: -0.03em;
50
50
  width: fit-content;
51
- background: linear-gradient(#fff, #fff) left bottom/0 1px no-repeat;
51
+ background: linear-gradient(var(--foreground), var(--foreground)) left bottom/0 1px no-repeat;
52
52
  transition: background-size 0.5s var(--ease);
53
53
  }
54
54
  .direct a:hover {
@@ -0,0 +1,4 @@
1
+ import type { CrossProperties } from "@sharadox/sharadox-web-library/component/cross/type";
2
+ /** The "+" that marks where grid lines meet, centred on a corner of its positioned parent. */
3
+ export declare function Cross({ corner, className }: CrossProperties): import("react").JSX.Element;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/cross/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qDAAqD,CAAC;AAE3F,8FAA8F;AAC9F,wBAAgB,KAAK,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,eAAe,+BAE3D"}
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import styles from "./index.module.css";
3
+ /** The "+" that marks where grid lines meet, centred on a corner of its positioned parent. */
4
+ export function Cross({ corner, className }) {
5
+ return _jsx("span", { className: [styles.cross, styles[corner], className].filter(Boolean).join(" "), "aria-hidden": true });
6
+ }
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/cross/index.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC,8FAA8F;AAC9F,MAAM,UAAU,KAAK,CAAC,EAAE,MAAM,EAAE,SAAS,EAAmB;IAC1D,OAAO,eAAM,SAAS,EAAE,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,wBAAgB,CAAC;AAC9G,CAAC"}
@@ -0,0 +1,53 @@
1
+ .cross {
2
+ --cross-size: 21px;
3
+ position: absolute;
4
+ z-index: 3;
5
+ width: var(--cross-size);
6
+ height: var(--cross-size);
7
+ margin: calc(var(--cross-size) / -2);
8
+ pointer-events: none;
9
+ }
10
+ .cross::before, .cross::after {
11
+ content: "";
12
+ position: absolute;
13
+ background: var(--foreground-3);
14
+ }
15
+ .cross::before {
16
+ left: 50%;
17
+ top: 0;
18
+ bottom: 0;
19
+ width: 1px;
20
+ transform: translateX(-0.5px);
21
+ }
22
+ .cross::after {
23
+ top: 50%;
24
+ left: 0;
25
+ right: 0;
26
+ height: 1px;
27
+ transform: translateY(-0.5px);
28
+ }
29
+
30
+ .top-left {
31
+ top: -0.5px;
32
+ left: -0.5px;
33
+ }
34
+
35
+ .top-right {
36
+ top: -0.5px;
37
+ right: -0.5px;
38
+ margin-right: calc(var(--cross-size) / -2);
39
+ margin-left: 0;
40
+ }
41
+
42
+ .bottom-left {
43
+ bottom: -0.5px;
44
+ left: -0.5px;
45
+ margin-bottom: calc(var(--cross-size) / -2);
46
+ margin-top: 0;
47
+ }
48
+
49
+ .bottom-right {
50
+ bottom: -0.5px;
51
+ right: -0.5px;
52
+ margin: 0 calc(var(--cross-size) / -2) calc(var(--cross-size) / -2) 0;
53
+ }
@@ -0,0 +1,6 @@
1
+ export interface CrossProperties {
2
+ /** Which corner of the positioned parent the cross sits on (its centre on the corner). */
3
+ corner: "top-left" | "top-right" | "bottom-left" | "bottom-right";
4
+ className?: string;
5
+ }
6
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../source/component/cross/type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,0FAA0F;IAC1F,MAAM,EAAE,UAAU,GAAG,WAAW,GAAG,aAAa,GAAG,cAAc,CAAC;IAClE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.js","sourceRoot":"","sources":["../../../source/component/cross/type.ts"],"names":[],"mappings":""}
@@ -30,6 +30,7 @@
30
30
  background: #fff;
31
31
  }
32
32
 
33
+ /* White with "difference" blending inverts whatever is underneath, so the cursor shows on every style. */
33
34
  .ring {
34
35
  width: 34px;
35
36
  height: 34px;
@@ -1,4 +1,4 @@
1
1
  import type { FooterProperties } from "@sharadox/sharadox-web-library/component/footer/type";
2
- /** Slogan, links, the big gradient wordmark and the legal line. */
2
+ /** Columns of links in the grid, the style and language switches, the big gradient wordmark and the legal line. */
3
3
  export declare function Footer({ locale }: FooterProperties): import("react").JSX.Element;
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/footer/index.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sDAAsD,CAAC;AAE7F,mEAAmE;AACnE,wBAAgB,MAAM,CAAC,EAAE,MAAM,EAAE,EAAE,gBAAgB,+BA8BlD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/footer/index.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sDAAsD,CAAC;AAI7F,mHAAmH;AACnH,wBAAgB,MAAM,CAAC,EAAE,MAAM,EAAE,EAAE,gBAAgB,+BAiDlD"}
@@ -1,13 +1,20 @@
1
- import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { separate } from "@sharadox/sharadox-web-library/utility/separate";
3
- import Link from "next/link";
3
+ import { translate } from "@sharadox/web-library/internationalization/translate";
4
+ import { Cross } from "@sharadox/sharadox-web-library/component/cross";
5
+ import { LocaleLink } from "@sharadox/sharadox-web-library/component/locale-link";
6
+ import { StyleSwitch } from "@sharadox/sharadox-web-library/component/style-switch";
7
+ import { Wordmark } from "@sharadox/sharadox-web-library/component/wordmark";
4
8
  import { FOOTER } from "@sharadox/sharadox-web-library/content/footer";
9
+ import { NAVIGATION } from "@sharadox/sharadox-web-library/content/navigation";
10
+ import { SERVICES } from "@sharadox/sharadox-web-library/content/services";
11
+ import { STYLE } from "@sharadox/sharadox-web-library/content/style";
5
12
  import { SITE } from "@sharadox/sharadox-web-library/content/site";
6
13
  import { LOCALES } from "@sharadox/sharadox-web-library/utility/locale";
7
- import { translate } from "@sharadox/web-library/internationalization/translate";
8
14
  import styles from "./index.module.css";
9
- /** Slogan, links, the big gradient wordmark and the legal line. */
15
+ const LANGUAGE_NAMES = { en: "English", pt: "Português" };
16
+ /** Columns of links in the grid, the style and language switches, the big gradient wordmark and the legal line. */
10
17
  export function Footer({ locale }) {
11
- return (_jsxs("footer", { className: styles.footer, children: [_jsxs("div", { className: styles.top, children: [_jsxs("p", { className: styles.slogan, children: [translate(SITE.slogan, locale), "."] }), _jsxs("div", { className: styles.links, children: [_jsx("a", { href: `mailto:${SITE.email}`, children: SITE.email }), _jsx("span", { className: styles.languages, children: LOCALES.map((other) => (_jsx(Link, { href: `/${other}`, hrefLang: other, "aria-current": other === locale ? "true" : undefined, children: other === "en" ? "English" : "Português" }, other))) }), _jsxs("a", { href: "#top", children: [translate(FOOTER.top, locale), " \u2191"] })] })] }), _jsx("div", { className: styles.mark, "aria-hidden": true, children: "Sharadox" }), _jsx("p", { className: `${styles.legal} monospace`, children: separate(`© ${new Date().getFullYear()} Sharadox`, translate(FOOTER.rights, locale)) })] }));
18
+ return (_jsxs("footer", { className: styles.footer, children: [_jsx(Cross, { corner: "top-left" }), _jsx(Cross, { corner: "top-right" }), _jsxs("div", { className: styles.columns, children: [_jsxs("div", { className: styles.brand, children: [_jsx(Wordmark, { href: `/${locale}` }), _jsxs("p", { className: styles.slogan, children: [translate(SITE.slogan, locale), "."] }), _jsx("a", { href: `mailto:${SITE.email}`, className: styles.email, children: SITE.email })] }), _jsxs("nav", { "aria-label": translate(FOOTER.services, locale), children: [_jsx("h2", { className: "monospace", children: translate(FOOTER.services, locale) }), SERVICES.items.map((service) => (_jsx("a", { href: `#${service.key}`, children: translate(service.title, locale) }, service.key)))] }), _jsxs("nav", { "aria-label": translate(FOOTER.studio, locale), children: [_jsx("h2", { className: "monospace", children: translate(FOOTER.studio, locale) }), _jsx("a", { href: "#capabilities", children: translate(NAVIGATION.capabilities, locale) }), _jsx("a", { href: "#process", children: translate(NAVIGATION.process, locale) }), _jsx("a", { href: "#contact", children: translate(NAVIGATION.contact, locale) }), _jsxs("a", { href: "#top", children: [translate(FOOTER.top, locale), " \u2191"] })] }), _jsxs("div", { className: styles.settings, children: [_jsx("h2", { className: "monospace", children: translate(FOOTER.language, locale) }), _jsx("span", { className: styles.languages, children: LOCALES.map((other) => (_jsx(LocaleLink, { locale: other, current: other === locale, children: LANGUAGE_NAMES[other] }, other))) }), _jsx("h2", { className: "monospace", children: translate(STYLE.label, locale) }), _jsx(StyleSwitch, { locale: locale, className: styles.style })] })] }), _jsx("div", { className: styles.mark, "aria-hidden": true, children: "Sharadox" }), _jsx("p", { className: `${styles.legal} monospace`, children: separate(`© ${new Date().getFullYear()} Sharadox`, translate(FOOTER.rights, locale)) })] }));
12
19
  }
13
20
  //# sourceMappingURL=index.js.map