@sharadox/sharadox-web-library 0.3.0 → 0.5.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.
- package/README.md +4 -2
- package/distribution/action/send-contact/index.d.ts.map +1 -1
- package/distribution/action/send-contact/index.js +5 -3
- package/distribution/action/send-contact/index.js.map +1 -1
- package/distribution/component/button/index.d.ts +1 -1
- package/distribution/component/button/index.d.ts.map +1 -1
- package/distribution/component/button/index.js +2 -2
- package/distribution/component/button/index.js.map +1 -1
- package/distribution/component/button/index.module.css +11 -8
- package/distribution/component/button/type.d.ts +1 -1
- package/distribution/component/capability/index.d.ts +4 -0
- package/distribution/component/capability/index.d.ts.map +1 -0
- package/distribution/component/capability/index.js +14 -0
- package/distribution/component/capability/index.js.map +1 -0
- package/distribution/component/capability/index.module.css +94 -0
- package/distribution/component/{services/application-visual → capability}/type.d.ts +1 -1
- package/distribution/component/capability/type.d.ts.map +1 -0
- package/distribution/component/capability/type.js.map +1 -0
- package/distribution/component/contact/form/index.d.ts.map +1 -1
- package/distribution/component/contact/form/index.js +1 -1
- package/distribution/component/contact/form/index.js.map +1 -1
- package/distribution/component/contact/form/index.module.css +67 -7
- package/distribution/component/contact/index.module.css +2 -2
- package/distribution/component/cross/index.d.ts +4 -0
- package/distribution/component/cross/index.d.ts.map +1 -0
- package/distribution/component/cross/index.js +7 -0
- package/distribution/component/cross/index.js.map +1 -0
- package/distribution/component/cross/index.module.css +53 -0
- package/distribution/component/cross/type.d.ts +6 -0
- package/distribution/component/cross/type.d.ts.map +1 -0
- package/distribution/component/cross/type.js.map +1 -0
- package/distribution/component/cursor/index.js +1 -1
- package/distribution/component/cursor/index.js.map +1 -1
- package/distribution/component/cursor/index.module.css +3 -1
- package/distribution/component/footer/index.d.ts +1 -1
- package/distribution/component/footer/index.d.ts.map +1 -1
- package/distribution/component/footer/index.js +12 -5
- package/distribution/component/footer/index.js.map +1 -1
- package/distribution/component/footer/index.module.css +88 -22
- package/distribution/component/globe/arc/index.d.ts +1 -1
- package/distribution/component/globe/arc/index.d.ts.map +1 -1
- package/distribution/component/globe/arc/index.js +4 -4
- package/distribution/component/globe/arc/index.js.map +1 -1
- package/distribution/component/globe/arc/type.d.ts +2 -0
- package/distribution/component/globe/arc/type.d.ts.map +1 -1
- package/distribution/component/globe/color/index.d.ts +4 -0
- package/distribution/component/globe/color/index.d.ts.map +1 -0
- package/distribution/component/globe/color/index.js +16 -0
- package/distribution/component/globe/color/index.js.map +1 -0
- package/distribution/component/globe/color/type.d.ts +13 -0
- package/distribution/component/globe/color/type.d.ts.map +1 -0
- package/distribution/component/globe/color/type.js +2 -0
- package/distribution/component/globe/color/type.js.map +1 -0
- package/distribution/component/globe/dots/index.d.ts +1 -1
- package/distribution/component/globe/dots/index.d.ts.map +1 -1
- package/distribution/component/globe/dots/index.js +6 -2
- package/distribution/component/globe/dots/index.js.map +1 -1
- package/distribution/component/globe/dots/type.d.ts +2 -0
- package/distribution/component/globe/dots/type.d.ts.map +1 -1
- package/distribution/component/globe/index.d.ts +1 -1
- package/distribution/component/globe/index.d.ts.map +1 -1
- package/distribution/component/globe/index.js +8 -3
- package/distribution/component/globe/index.js.map +1 -1
- package/distribution/component/globe/index.module.css +3 -3
- package/distribution/component/globe/marker/index.d.ts +1 -1
- package/distribution/component/globe/marker/index.d.ts.map +1 -1
- package/distribution/component/globe/marker/index.js +2 -2
- package/distribution/component/globe/marker/index.js.map +1 -1
- package/distribution/component/globe/marker/type.d.ts +2 -0
- package/distribution/component/globe/marker/type.d.ts.map +1 -1
- package/distribution/component/globe/shader/arc/index.d.ts.map +1 -1
- package/distribution/component/globe/shader/arc/index.js +2 -1
- package/distribution/component/globe/shader/arc/index.js.map +1 -1
- package/distribution/component/globe/shader/atmosphere/index.d.ts.map +1 -1
- package/distribution/component/globe/shader/atmosphere/index.js +2 -1
- package/distribution/component/globe/shader/atmosphere/index.js.map +1 -1
- package/distribution/component/globe/shader/body/index.d.ts +1 -1
- package/distribution/component/globe/shader/body/index.d.ts.map +1 -1
- package/distribution/component/globe/shader/body/index.js +4 -2
- package/distribution/component/globe/shader/body/index.js.map +1 -1
- package/distribution/component/globe/shader/dot/index.d.ts.map +1 -1
- package/distribution/component/globe/shader/dot/index.js +2 -1
- package/distribution/component/globe/shader/dot/index.js.map +1 -1
- package/distribution/component/globe/world/index.d.ts +1 -1
- package/distribution/component/globe/world/index.d.ts.map +1 -1
- package/distribution/component/globe/world/index.js +11 -7
- package/distribution/component/globe/world/index.js.map +1 -1
- package/distribution/component/globe/world/type.d.ts +2 -0
- package/distribution/component/globe/world/type.d.ts.map +1 -1
- package/distribution/component/hero/guide/index.d.ts +6 -0
- package/distribution/component/hero/guide/index.d.ts.map +1 -0
- package/distribution/component/hero/guide/index.js +12 -0
- package/distribution/component/hero/guide/index.js.map +1 -0
- package/distribution/component/hero/guide/index.module.css +97 -0
- package/distribution/component/hero/index.d.ts +1 -1
- package/distribution/component/hero/index.d.ts.map +1 -1
- package/distribution/component/hero/index.js +4 -2
- package/distribution/component/hero/index.js.map +1 -1
- package/distribution/component/hero/index.module.css +23 -29
- package/distribution/component/language-switch/index.d.ts +1 -1
- package/distribution/component/language-switch/index.d.ts.map +1 -1
- package/distribution/component/language-switch/index.js +5 -3
- package/distribution/component/language-switch/index.js.map +1 -1
- package/distribution/component/language-switch/index.module.css +6 -3
- package/distribution/component/locale-link/index.d.ts +4 -0
- package/distribution/component/locale-link/index.d.ts.map +1 -0
- package/distribution/component/locale-link/index.js +9 -0
- package/distribution/component/locale-link/index.js.map +1 -0
- package/distribution/component/locale-link/type.d.ts +10 -0
- package/distribution/component/locale-link/type.d.ts.map +1 -0
- package/distribution/component/locale-link/type.js +2 -0
- package/distribution/component/locale-link/type.js.map +1 -0
- package/distribution/component/marquee/index.d.ts +2 -2
- package/distribution/component/marquee/index.d.ts.map +1 -1
- package/distribution/component/marquee/index.js +6 -3
- package/distribution/component/marquee/index.js.map +1 -1
- package/distribution/component/marquee/index.module.css +17 -14
- package/distribution/component/navigation/index.d.ts +1 -1
- package/distribution/component/navigation/index.d.ts.map +1 -1
- package/distribution/component/navigation/index.js +4 -2
- package/distribution/component/navigation/index.js.map +1 -1
- package/distribution/component/navigation/index.module.css +32 -7
- package/distribution/component/process/index.module.css +3 -3
- package/distribution/component/process/step/index.module.css +2 -2
- package/distribution/component/section/index.d.ts +5 -2
- package/distribution/component/section/index.d.ts.map +1 -1
- package/distribution/component/section/index.js +8 -4
- package/distribution/component/section/index.js.map +1 -1
- package/distribution/component/section/index.module.css +32 -3
- package/distribution/component/section/type.d.ts +5 -1
- package/distribution/component/section/type.d.ts.map +1 -1
- package/distribution/component/service-index/index.d.ts +4 -0
- package/distribution/component/service-index/index.d.ts.map +1 -0
- package/distribution/component/service-index/index.js +11 -0
- package/distribution/component/service-index/index.js.map +1 -0
- package/distribution/component/service-index/index.module.css +88 -0
- package/distribution/component/service-index/type.d.ts +5 -0
- package/distribution/component/service-index/type.d.ts.map +1 -0
- package/distribution/component/service-index/type.js +2 -0
- package/distribution/component/service-index/type.js.map +1 -0
- package/distribution/component/services/campaign-visual/index.d.ts +4 -0
- package/distribution/component/services/campaign-visual/index.d.ts.map +1 -0
- package/distribution/component/services/campaign-visual/index.js +18 -0
- package/distribution/component/services/campaign-visual/index.js.map +1 -0
- package/distribution/component/services/campaign-visual/index.module.css +128 -0
- package/distribution/component/services/campaign-visual/stage/index.d.ts +4 -0
- package/distribution/component/services/campaign-visual/stage/index.d.ts.map +1 -0
- package/distribution/component/services/campaign-visual/stage/index.js +11 -0
- package/distribution/component/services/campaign-visual/stage/index.js.map +1 -0
- package/distribution/component/services/campaign-visual/stage/type.d.ts +10 -0
- package/distribution/component/services/campaign-visual/stage/type.d.ts.map +1 -0
- package/distribution/component/services/campaign-visual/stage/type.js +2 -0
- package/distribution/component/services/campaign-visual/stage/type.js.map +1 -0
- package/distribution/component/services/campaign-visual/type.d.ts +5 -0
- package/distribution/component/services/campaign-visual/type.d.ts.map +1 -0
- package/distribution/component/services/campaign-visual/type.js +2 -0
- package/distribution/component/services/campaign-visual/type.js.map +1 -0
- package/distribution/component/services/cell/index.d.ts +7 -0
- package/distribution/component/services/cell/index.d.ts.map +1 -0
- package/distribution/component/services/cell/index.js +15 -0
- package/distribution/component/services/cell/index.js.map +1 -0
- package/distribution/component/services/cell/index.module.css +86 -0
- package/distribution/component/services/cell/type.d.ts +14 -0
- package/distribution/component/services/cell/type.d.ts.map +1 -0
- package/distribution/component/services/cell/type.js +2 -0
- package/distribution/component/services/cell/type.js.map +1 -0
- package/distribution/component/services/design-visual/index.d.ts +5 -0
- package/distribution/component/services/design-visual/index.d.ts.map +1 -0
- package/distribution/component/services/design-visual/index.js +20 -0
- package/distribution/component/services/design-visual/index.js.map +1 -0
- package/distribution/component/services/design-visual/index.module.css +130 -0
- package/distribution/component/services/index.d.ts +1 -1
- package/distribution/component/services/index.d.ts.map +1 -1
- package/distribution/component/services/index.js +16 -10
- package/distribution/component/services/index.js.map +1 -1
- package/distribution/component/services/index.module.css +73 -8
- package/distribution/component/services/mobile-visual/index.d.ts +4 -0
- package/distribution/component/services/mobile-visual/index.d.ts.map +1 -0
- package/distribution/component/services/{application-visual → mobile-visual}/index.js +1 -1
- package/distribution/component/services/mobile-visual/index.js.map +1 -0
- package/distribution/component/services/{application-visual → mobile-visual}/index.module.css +15 -6
- package/distribution/component/services/mobile-visual/type.d.ts +5 -0
- package/distribution/component/services/mobile-visual/type.d.ts.map +1 -0
- package/distribution/component/services/mobile-visual/type.js +2 -0
- package/distribution/component/services/mobile-visual/type.js.map +1 -0
- package/distribution/component/services/platform-visual/index.js +1 -1
- package/distribution/component/services/platform-visual/index.js.map +1 -1
- package/distribution/component/services/platform-visual/index.module.css +8 -8
- package/distribution/component/services/social-visual/index.d.ts +4 -0
- package/distribution/component/services/social-visual/index.d.ts.map +1 -0
- package/distribution/component/services/social-visual/index.js +17 -0
- package/distribution/component/services/social-visual/index.js.map +1 -0
- package/distribution/component/services/social-visual/index.module.css +131 -0
- package/distribution/component/services/social-visual/type.d.ts +5 -0
- package/distribution/component/services/social-visual/type.d.ts.map +1 -0
- package/distribution/component/services/social-visual/type.js +2 -0
- package/distribution/component/services/social-visual/type.js.map +1 -0
- package/distribution/component/services/web-visual/index.module.css +19 -11
- package/distribution/component/statement/index.d.ts.map +1 -1
- package/distribution/component/statement/index.js +2 -1
- package/distribution/component/statement/index.js.map +1 -1
- package/distribution/component/statement/index.module.css +1 -3
- package/distribution/component/structured-data/index.d.ts +1 -1
- package/distribution/component/structured-data/index.d.ts.map +1 -1
- package/distribution/component/structured-data/index.js +28 -2
- package/distribution/component/structured-data/index.js.map +1 -1
- package/distribution/component/style-switch/index.d.ts +7 -0
- package/distribution/component/style-switch/index.d.ts.map +1 -0
- package/distribution/component/style-switch/index.js +34 -0
- package/distribution/component/style-switch/index.js.map +1 -0
- package/distribution/component/style-switch/index.module.css +36 -0
- package/distribution/component/style-switch/type.d.ts +6 -0
- package/distribution/component/style-switch/type.d.ts.map +1 -0
- package/distribution/component/style-switch/type.js +2 -0
- package/distribution/component/style-switch/type.js.map +1 -0
- package/distribution/component/touchpoint/index.d.ts +7 -0
- package/distribution/component/touchpoint/index.d.ts.map +1 -0
- package/distribution/component/touchpoint/index.js +25 -0
- package/distribution/component/touchpoint/index.js.map +1 -0
- package/distribution/component/touchpoint/index.module.css +85 -0
- package/distribution/component/touchpoint/plate/index.d.ts +4 -0
- package/distribution/component/touchpoint/plate/index.d.ts.map +1 -0
- package/distribution/component/touchpoint/plate/index.js +9 -0
- package/distribution/component/touchpoint/plate/index.js.map +1 -0
- package/distribution/component/touchpoint/plate/index.module.css +136 -0
- package/distribution/component/touchpoint/plate/type.d.ts +8 -0
- package/distribution/component/touchpoint/plate/type.d.ts.map +1 -0
- package/distribution/component/touchpoint/plate/type.js +2 -0
- package/distribution/component/touchpoint/plate/type.js.map +1 -0
- package/distribution/component/touchpoint/type.d.ts +5 -0
- package/distribution/component/touchpoint/type.d.ts.map +1 -0
- package/distribution/component/touchpoint/type.js +2 -0
- package/distribution/component/touchpoint/type.js.map +1 -0
- package/distribution/component/wordmark/index.module.css +2 -2
- package/distribution/content/capability/index.d.ts +12 -0
- package/distribution/content/capability/index.d.ts.map +1 -0
- package/distribution/content/capability/index.js +6 -0
- package/distribution/content/capability/index.js.map +1 -0
- package/distribution/content/contact/index.d.ts +46 -6
- package/distribution/content/contact/index.d.ts.map +1 -1
- package/distribution/content/contact/index.js +19 -4
- package/distribution/content/contact/index.js.map +1 -1
- package/distribution/content/footer/index.d.ts +12 -0
- package/distribution/content/footer/index.d.ts.map +1 -1
- package/distribution/content/footer/index.js +3 -0
- package/distribution/content/footer/index.js.map +1 -1
- package/distribution/content/hero/index.d.ts +6 -6
- package/distribution/content/hero/index.js +4 -4
- package/distribution/content/hero/index.js.map +1 -1
- package/distribution/content/navigation/index.d.ts +10 -2
- package/distribution/content/navigation/index.d.ts.map +1 -1
- package/distribution/content/navigation/index.js +3 -1
- package/distribution/content/navigation/index.js.map +1 -1
- package/distribution/content/process/index.d.ts +7 -7
- package/distribution/content/process/index.d.ts.map +1 -1
- package/distribution/content/process/index.js +8 -5
- package/distribution/content/process/index.js.map +1 -1
- package/distribution/content/separator/index.d.ts +2 -5
- package/distribution/content/separator/index.d.ts.map +1 -1
- package/distribution/content/separator/index.js +2 -5
- package/distribution/content/separator/index.js.map +1 -1
- package/distribution/content/services/index.d.ts +120 -29
- package/distribution/content/services/index.d.ts.map +1 -1
- package/distribution/content/services/index.js +146 -21
- package/distribution/content/services/index.js.map +1 -1
- package/distribution/content/site/index.d.ts.map +1 -1
- package/distribution/content/site/index.js +28 -4
- package/distribution/content/site/index.js.map +1 -1
- package/distribution/content/stack/index.d.ts +2 -2
- package/distribution/content/stack/index.d.ts.map +1 -1
- package/distribution/content/stack/index.js +8 -1
- package/distribution/content/stack/index.js.map +1 -1
- package/distribution/content/statement/index.d.ts +2 -2
- package/distribution/content/statement/index.js +2 -2
- package/distribution/content/statement/index.js.map +1 -1
- package/distribution/content/style/index.d.ts +59 -0
- package/distribution/content/style/index.d.ts.map +1 -0
- package/distribution/content/style/index.js +48 -0
- package/distribution/content/style/index.js.map +1 -0
- package/distribution/content/touchpoint/index.d.ts +37 -0
- package/distribution/content/touchpoint/index.d.ts.map +1 -0
- package/distribution/content/touchpoint/index.js +17 -0
- package/distribution/content/touchpoint/index.js.map +1 -0
- package/distribution/style/token/index.scss +33 -2
- package/distribution/utility/hex-channel/index.d.ts +3 -0
- package/distribution/utility/hex-channel/index.d.ts.map +1 -0
- package/distribution/utility/hex-channel/index.js +8 -0
- package/distribution/utility/hex-channel/index.js.map +1 -0
- package/distribution/utility/parse-contact/index.d.ts.map +1 -1
- package/distribution/utility/parse-contact/index.js +4 -0
- package/distribution/utility/parse-contact/index.js.map +1 -1
- package/distribution/utility/parse-contact/type.d.ts +3 -0
- package/distribution/utility/parse-contact/type.d.ts.map +1 -1
- package/package.json +2 -2
- package/distribution/component/services/application-visual/index.d.ts +0 -4
- package/distribution/component/services/application-visual/index.d.ts.map +0 -1
- package/distribution/component/services/application-visual/index.js.map +0 -1
- package/distribution/component/services/application-visual/type.d.ts.map +0 -1
- package/distribution/component/services/application-visual/type.js.map +0 -1
- package/distribution/component/services/card/index.d.ts +0 -4
- package/distribution/component/services/card/index.d.ts.map +0 -1
- package/distribution/component/services/card/index.js +0 -10
- package/distribution/component/services/card/index.js.map +0 -1
- package/distribution/component/services/card/index.module.css +0 -92
- package/distribution/component/services/card/type.d.ts +0 -12
- package/distribution/component/services/card/type.d.ts.map +0 -1
- package/distribution/component/services/card/type.js.map +0 -1
- /package/distribution/component/{services/application-visual → capability}/type.js +0 -0
- /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
|
|
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
|
-
-
|
|
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,
|
|
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,CAoCnF"}
|
|
@@ -19,14 +19,16 @@ export async function sendContact(form, ip) {
|
|
|
19
19
|
return { status: "sent" };
|
|
20
20
|
if (parsed.kind === "invalid")
|
|
21
21
|
return { status: "invalid" };
|
|
22
|
-
const { name, email, company, message, locale } = parsed.value;
|
|
22
|
+
const { name, email, company, message, locale, needs } = parsed.value;
|
|
23
23
|
if (!allow(ip))
|
|
24
24
|
return { status: "rate-limited" };
|
|
25
|
-
const subject = separate(
|
|
26
|
-
const
|
|
25
|
+
const subject = separate(CONTACT.subject, company ? `${name} (${company})` : name);
|
|
26
|
+
const needed = CONTACT.needs.options.filter((need) => needs.includes(need.key)).map((need) => need.en);
|
|
27
|
+
const text = `Name: ${name}\nEmail: ${email}\nCompany: ${company || "—"}\nNeeds: ${needed.join(", ") || "—"}\nLanguage: ${locale}\nIP: ${ip}\n\n${message}`;
|
|
27
28
|
const html = `<div style="font-family:-apple-system,Segoe UI,sans-serif;font-size:15px;line-height:1.6;color:#111">
|
|
28
29
|
<p style="color:#666;font-size:13px;margin:0 0 16px">New enquiry from sharadox.com (${escapeHtml(locale)})</p>
|
|
29
30
|
<p style="margin:0">${separate(`<b>${escapeHtml(name)}</b>`, company && escapeHtml(company))}<br><a href="mailto:${escapeHtml(email)}">${escapeHtml(email)}</a></p>
|
|
31
|
+
${needed.length ? `<p style="margin:12px 0 0;color:#444">${escapeHtml(separate(...needed))}</p>` : ""}
|
|
30
32
|
<hr style="border:0;border-top:1px solid #eee;margin:18px 0">
|
|
31
33
|
<p style="white-space:pre-wrap;margin:0">${escapeHtml(message)}</p></div>`;
|
|
32
34
|
try {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/action/send-contact/index.ts"],"names":[],"mappings":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,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,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,
|
|
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 = "
|
|
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,
|
|
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
|
-
.
|
|
26
|
-
background:
|
|
27
|
-
color:
|
|
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
|
-
.
|
|
30
|
-
background:
|
|
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:
|
|
39
|
-
border-color:
|
|
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?: "
|
|
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":"AAQA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0DAA0D,CAAC;AAErG,0FAA0F;AAC1F,wBAAgB,UAAU,CAAC,EAAE,MAAM,EAAE,EAAE,oBAAoB,+BA4B1D"}
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
const rows = 1 + Math.max(...SERVICES.items.map((service) => service.capabilities[locale].length));
|
|
12
|
+
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, style: { "--rows": rows }, 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", { role: "list", 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))) })] }));
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/capability/index.tsx"],"names":[],"mappings":";AACA,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,MAAM,IAAI,GAAG,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;IACnG,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,EAAE,KAAK,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAmB,YACrE,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,aAAI,IAAI,EAAC,MAAM,YACZ,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,94 @@
|
|
|
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
|
+
/* Each column spans the title row plus one row per capability, shared by all columns, so lines line up. */
|
|
9
|
+
grid-auto-rows: auto;
|
|
10
|
+
border-top: 1px solid var(--line);
|
|
11
|
+
}
|
|
12
|
+
@media (max-width: 960px) {
|
|
13
|
+
.sheet {
|
|
14
|
+
grid-template-columns: repeat(2, 1fr);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
@media (max-width: 600px) {
|
|
18
|
+
.sheet {
|
|
19
|
+
grid-template-columns: 1fr;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.column {
|
|
24
|
+
position: relative;
|
|
25
|
+
display: grid;
|
|
26
|
+
grid-row: span var(--rows);
|
|
27
|
+
grid-template-rows: subgrid;
|
|
28
|
+
}
|
|
29
|
+
@media (max-width: 600px) {
|
|
30
|
+
.column {
|
|
31
|
+
grid-row: auto;
|
|
32
|
+
grid-template-rows: none;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
.column:not(:last-child)::after {
|
|
36
|
+
content: "";
|
|
37
|
+
position: absolute;
|
|
38
|
+
top: 0;
|
|
39
|
+
bottom: 0;
|
|
40
|
+
right: 0;
|
|
41
|
+
width: 1px;
|
|
42
|
+
background: linear-gradient(180deg, var(--line-2) 50%, transparent 0) 0 0/1px 8px repeat-y;
|
|
43
|
+
}
|
|
44
|
+
.column ul {
|
|
45
|
+
display: contents;
|
|
46
|
+
}
|
|
47
|
+
.column li {
|
|
48
|
+
position: relative;
|
|
49
|
+
display: flex;
|
|
50
|
+
align-items: center;
|
|
51
|
+
padding: 13px 20px;
|
|
52
|
+
font-size: 14.5px;
|
|
53
|
+
color: var(--foreground-2);
|
|
54
|
+
transition: color 0.25s;
|
|
55
|
+
}
|
|
56
|
+
.column li::after {
|
|
57
|
+
content: "";
|
|
58
|
+
position: absolute;
|
|
59
|
+
left: 0;
|
|
60
|
+
right: 0;
|
|
61
|
+
bottom: 0;
|
|
62
|
+
height: 1px;
|
|
63
|
+
background: linear-gradient(90deg, var(--line) 50%, transparent 0) 0 0/8px 1px repeat-x;
|
|
64
|
+
}
|
|
65
|
+
.column li:hover {
|
|
66
|
+
color: var(--foreground);
|
|
67
|
+
}
|
|
68
|
+
@media (max-width: 960px) {
|
|
69
|
+
.column {
|
|
70
|
+
border-bottom: 1px solid var(--line);
|
|
71
|
+
}
|
|
72
|
+
.column:nth-child(2n)::after {
|
|
73
|
+
display: none;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
@media (max-width: 600px) {
|
|
77
|
+
.column::after {
|
|
78
|
+
display: none;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.title {
|
|
83
|
+
display: grid;
|
|
84
|
+
gap: 6px;
|
|
85
|
+
padding: 22px 20px 18px;
|
|
86
|
+
font-weight: 600;
|
|
87
|
+
letter-spacing: -0.02em;
|
|
88
|
+
border-bottom: 1px solid var(--line);
|
|
89
|
+
}
|
|
90
|
+
.title span {
|
|
91
|
+
font-size: 11.5px;
|
|
92
|
+
font-weight: 400;
|
|
93
|
+
color: var(--foreground-3);
|
|
94
|
+
}
|
|
@@ -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,+
|
|
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,+BAqFhF"}
|
|
@@ -18,6 +18,6 @@ export function ContactForm({ locale, action: sendAction }) {
|
|
|
18
18
|
startedAt.current.value = String(Date.now());
|
|
19
19
|
}, []);
|
|
20
20
|
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")) }));
|
|
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("fieldset", { className: styles.services, children: [_jsx("legend", { children: translate(CONTACT.needs.label, locale) }), CONTACT.needs.options.map((need) => (_jsxs("label", { className: styles.chip, children: [_jsx("input", { type: "checkbox", name: "need", value: need.key }), _jsx("span", { children: need[locale] })] }, need.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
22
|
}
|
|
23
23
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/contact/form/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE1D,OAAO,EAAE,MAAM,EAAE,MAAM,iDAAiD,CAAC;AACzE,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AACzE,OAAO,EAAE,IAAI,EAAE,MAAM,6CAA6C,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC,sGAAsG;AACtG,MAAM,UAAU,WAAW,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAyB;IAC/E,MAAM,CAAC,KAAK,EAAE,MAAM,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AQ,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:
|
|
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),
|
|
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:
|
|
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:
|
|
58
|
-
box-shadow: 0 0 0 4px
|
|
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:
|
|
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:
|
|
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,
|
|
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(
|
|
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 @@
|
|
|
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":""}
|
|
@@ -21,7 +21,7 @@ export function Cursor() {
|
|
|
21
21
|
y = event.clientY;
|
|
22
22
|
const target = event.target;
|
|
23
23
|
ring.current?.classList.toggle(styles.hot, !!target.closest("a, button, input, textarea, label, [data-hot]"));
|
|
24
|
-
ring.current?.classList.toggle(styles.grab, !!target.closest("canvas"));
|
|
24
|
+
ring.current?.classList.toggle(styles.grab, !!target.closest("canvas, [data-grab]"));
|
|
25
25
|
};
|
|
26
26
|
const loop = () => {
|
|
27
27
|
ringX += (x - ringX) * 0.18;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/cursor/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,qGAAqG;AACrG,MAAM,UAAU,MAAM;IACpB,MAAM,GAAG,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;IACzC,MAAM,IAAI,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;IAC1C,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,iBAAiB,CAAC,CAAC,OAAO;YAAE,OAAO;QAC1D,MAAM,IAAI,GAAG,QAAQ,CAAC,eAAe,CAAC;QACtC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;QACjC,IAAI,CAAC,GAAG,UAAU,GAAG,CAAC,CAAC;QACvB,IAAI,CAAC,GAAG,WAAW,GAAG,CAAC,CAAC;QACxB,IAAI,KAAK,GAAG,CAAC,CAAC;QACd,IAAI,KAAK,GAAG,CAAC,CAAC;QACd,IAAI,KAAK,GAAG,CAAC,CAAC;QACd,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C;IACJ,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,OAAO,CACL,8BACE,cAAK,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,CAAC,IAAI,wBAAgB,EACtD,cAAK,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,CAAC,GAAG,wBAAgB,IACnD,CACJ,CAAC;AACJ,CAAC"}
|
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
cursor: none;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
:global(.has-cursor) canvas
|
|
7
|
+
:global(.has-cursor) canvas,
|
|
8
|
+
:global(.has-cursor) [data-grab] {
|
|
8
9
|
cursor: none !important;
|
|
9
10
|
}
|
|
10
11
|
|
|
@@ -30,6 +31,7 @@
|
|
|
30
31
|
background: #fff;
|
|
31
32
|
}
|
|
32
33
|
|
|
34
|
+
/* White with "difference" blending inverts whatever is underneath, so the cursor shows on every style. */
|
|
33
35
|
.ring {
|
|
34
36
|
width: 34px;
|
|
35
37
|
height: 34px;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { FooterProperties } from "@sharadox/sharadox-web-library/component/footer/type";
|
|
2
|
-
/**
|
|
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":"
|
|
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"}
|