@sharadox/sharadox-web-library 0.20.1 → 0.21.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 (102) hide show
  1. package/README.md +5 -4
  2. package/distribution/action/send-contact/index.d.ts +3 -1
  3. package/distribution/action/send-contact/index.d.ts.map +1 -1
  4. package/distribution/action/send-contact/index.js +7 -1
  5. package/distribution/action/send-contact/index.js.map +1 -1
  6. package/distribution/component/contact/form/index.d.ts +5 -1
  7. package/distribution/component/contact/form/index.d.ts.map +1 -1
  8. package/distribution/component/contact/form/index.js +39 -5
  9. package/distribution/component/contact/form/index.js.map +1 -1
  10. package/distribution/component/contact/form/index.module.css +1 -1
  11. package/distribution/component/contact/form/index.module.scss +18 -0
  12. package/distribution/component/footer/index.d.ts +2 -2
  13. package/distribution/component/footer/index.d.ts.map +1 -1
  14. package/distribution/component/footer/index.js +3 -3
  15. package/distribution/component/footer/index.js.map +1 -1
  16. package/distribution/component/footer/index.module.css +1 -1
  17. package/distribution/component/footer/index.module.scss +42 -57
  18. package/distribution/component/service-card/index.d.ts +3 -2
  19. package/distribution/component/service-card/index.d.ts.map +1 -1
  20. package/distribution/component/service-card/index.js +4 -3
  21. package/distribution/component/service-card/index.js.map +1 -1
  22. package/distribution/component/service-card/index.module.css +1 -1
  23. package/distribution/component/service-card/index.module.scss +54 -0
  24. package/distribution/component/service-card/type.d.ts +2 -0
  25. package/distribution/component/service-card/type.d.ts.map +1 -1
  26. package/distribution/component/service-object/application-programming-interface/index.d.ts +6 -0
  27. package/distribution/component/service-object/application-programming-interface/index.d.ts.map +1 -0
  28. package/distribution/component/service-object/application-programming-interface/index.js +11 -0
  29. package/distribution/component/service-object/application-programming-interface/index.js.map +1 -0
  30. package/distribution/component/service-object/application-programming-interface/index.module.css +1 -0
  31. package/distribution/component/service-object/application-programming-interface/index.module.scss +154 -0
  32. package/distribution/component/service-object/content-management-system/index.d.ts +6 -0
  33. package/distribution/component/service-object/content-management-system/index.d.ts.map +1 -0
  34. package/distribution/component/service-object/content-management-system/index.js +10 -0
  35. package/distribution/component/service-object/content-management-system/index.js.map +1 -0
  36. package/distribution/component/service-object/content-management-system/index.module.css +1 -0
  37. package/distribution/component/service-object/content-management-system/index.module.scss +181 -0
  38. package/distribution/component/service-object/index.js +4 -4
  39. package/distribution/component/service-object/index.js.map +1 -1
  40. package/distribution/component/service-object/index.module.css +1 -1
  41. package/distribution/component/service-object/index.module.scss +2 -2
  42. package/distribution/component/service-object/progressive-web-application/index.d.ts +4 -1
  43. package/distribution/component/service-object/progressive-web-application/index.d.ts.map +1 -1
  44. package/distribution/component/service-object/progressive-web-application/index.js +19 -2
  45. package/distribution/component/service-object/progressive-web-application/index.js.map +1 -1
  46. package/distribution/component/service-object/progressive-web-application/index.module.css +1 -1
  47. package/distribution/component/service-object/progressive-web-application/index.module.scss +151 -63
  48. package/distribution/component/service-object/social-media-strategy/index.d.ts +4 -1
  49. package/distribution/component/service-object/social-media-strategy/index.d.ts.map +1 -1
  50. package/distribution/component/service-object/social-media-strategy/index.js +9 -2
  51. package/distribution/component/service-object/social-media-strategy/index.js.map +1 -1
  52. package/distribution/component/service-object/social-media-strategy/index.module.css +1 -1
  53. package/distribution/component/service-object/social-media-strategy/index.module.scss +177 -53
  54. package/distribution/component/service-unlisted/index.d.ts +10 -0
  55. package/distribution/component/service-unlisted/index.d.ts.map +1 -0
  56. package/distribution/component/service-unlisted/index.js +20 -0
  57. package/distribution/component/service-unlisted/index.js.map +1 -0
  58. package/distribution/component/service-unlisted/index.module.css +1 -0
  59. package/distribution/component/service-unlisted/index.module.scss +28 -0
  60. package/distribution/component/service-unlisted/type.d.ts +5 -0
  61. package/distribution/component/service-unlisted/type.d.ts.map +1 -0
  62. package/distribution/component/service-unlisted/type.js +2 -0
  63. package/distribution/component/service-unlisted/type.js.map +1 -0
  64. package/distribution/component/services/index.d.ts +3 -2
  65. package/distribution/component/services/index.d.ts.map +1 -1
  66. package/distribution/component/services/index.js +5 -3
  67. package/distribution/component/services/index.js.map +1 -1
  68. package/distribution/component/services/index.module.css +1 -1
  69. package/distribution/component/services/index.module.scss +4 -0
  70. package/distribution/component/structured-data/index.d.ts.map +1 -1
  71. package/distribution/component/structured-data/index.js +4 -2
  72. package/distribution/component/structured-data/index.js.map +1 -1
  73. package/distribution/content/contact/index.d.ts +84 -34
  74. package/distribution/content/contact/index.d.ts.map +1 -1
  75. package/distribution/content/contact/index.js +34 -5
  76. package/distribution/content/contact/index.js.map +1 -1
  77. package/distribution/content/services/index.d.ts +103 -60
  78. package/distribution/content/services/index.d.ts.map +1 -1
  79. package/distribution/content/services/index.js +84 -49
  80. package/distribution/content/services/index.js.map +1 -1
  81. package/distribution/content/site/index.d.ts.map +1 -1
  82. package/distribution/content/site/index.js +8 -4
  83. package/distribution/content/site/index.js.map +1 -1
  84. package/distribution/style/token/index.scss +3 -1
  85. package/distribution/utility/contact-problem/index.d.ts +13 -0
  86. package/distribution/utility/contact-problem/index.d.ts.map +1 -0
  87. package/distribution/utility/contact-problem/index.js +23 -0
  88. package/distribution/utility/contact-problem/index.js.map +1 -0
  89. package/llms.txt +2 -1
  90. package/package.json +2 -2
  91. package/distribution/component/service-object/android-application/index.d.ts +0 -3
  92. package/distribution/component/service-object/android-application/index.d.ts.map +0 -1
  93. package/distribution/component/service-object/android-application/index.js +0 -8
  94. package/distribution/component/service-object/android-application/index.js.map +0 -1
  95. package/distribution/component/service-object/android-application/index.module.css +0 -1
  96. package/distribution/component/service-object/android-application/index.module.scss +0 -90
  97. package/distribution/component/service-object/ios-application/index.d.ts +0 -3
  98. package/distribution/component/service-object/ios-application/index.d.ts.map +0 -1
  99. package/distribution/component/service-object/ios-application/index.js +0 -8
  100. package/distribution/component/service-object/ios-application/index.js.map +0 -1
  101. package/distribution/component/service-object/ios-application/index.module.css +0 -1
  102. package/distribution/component/service-object/ios-application/index.module.scss +0 -93
package/README.md CHANGED
@@ -34,16 +34,17 @@ Everything generic comes from the open-source Sharadox libraries, configured her
34
34
  - **One source for shared copy:** text used in more than one place lives in its own content module and is imported, never retyped.
35
35
  - **`component/`:** the page's branded parts:
36
36
  - grid frame, `Cross` marks, navigation (below 1100px its links open in a menu under the bar, in the bar's frosted background, scrolling when it doesn't fit, as on a phone held sideways) and footer
37
- - hero and its guides, service index, statement, and Services: four groups of cards, each card with its own animated 3D object (`service-object`, in CSS 3D, turning towards the pointer), a description and a button that starts that project
37
+ - hero and its guides, service index, statement, and Services: four groups of cards (Web Applications, Desktop and Mobile Applications, Creative Services, Marketing Campaigns), each card with its own animated 3D object (`service-object`, in CSS 3D, turning towards the pointer), a description and a button that starts that project; a card alone in its group lies wide, with its numbered `points`; then `ServiceUnlisted`, the invitation for ideas none of them name
38
38
  - the 3D touchpoint stack, capabilities sheet, process, contact, section indicator, style switch
39
39
  - `Consent`, the Sharadox cookie panel (reopened by the footer's Cookie Preferences), and the footer's legal parts: Portugal's complaints book and the Algarve's consumer dispute notice (CIMAAL)
40
40
  - the Sharadox wrapper around the shared globe, structured data, share image, `llmsText()` for `/llms.txt`
41
41
  - `PrivacyPage`: the privacy policy's body (`content/privacy`, written by `@sharadox/privacy-web-library`), at `/<locale>/privacy`, linked from the footer
42
42
  - `License`: the license page's body, rendered from the license's Markdown
43
43
  - `NotFound`: the 404 screen, a giant 404 whose zero is the live globe, with the failed request and the way back (put `ServiceIndex base="/<locale>"` under it)
44
- - **Service card buttons:** each card's button scrolls to the contact form and ticks that card's choice (`requestContactNeeds`, the card's `key` in `content/services`), which glows for a moment. The form's choices come from the same cards, grouped like the services.
45
- - **`action/send-contact`:** `sendContact(form, ip)`, the shared contact action set up for Sharadox ("Contact · Name (Company)" subjects, sent to contact@sharadox.com as "Sharadox Web Application").
46
- - **`utility/`:** `separate()` (the Sharadox separator) and the share card's horizon dots.
44
+ - **Service card buttons:** each card's button scrolls to the contact form and ticks that card's choice (`requestContactNeeds`, the card's `key` in `content/services`), which glows for a moment. The form's choices come from the same cards, grouped like the services, then Something Else ("I don't know what I need", "What I need is not listed", which the invitation after the services ticks).
45
+ - **Contact form checks:** it needs a name, an email or a phone (or both, each valid), at least one choice and a message of at least 20 characters (`utility/contact-problem`, the same rules the server applies). It says what's missing under each field before anything is sent.
46
+ - **`action/send-contact`:** `sendContact(form, ip)`, the shared contact action set up for Sharadox ("Contact · Name (Company)" subjects, sent to contact@sharadox.com as "Sharadox Web Application"), with the form's rules, 5 messages an hour per address and 50 emails a day from everyone together, so a flood can't run up the email bill.
47
+ - **`utility/`:** `separate()` (the Sharadox separator), `contactProblems()` (what the contact form still lacks), `requestContactNeeds()` and the share card's horizon dots.
47
48
  - **`style/token`:** Sass helpers (`tint()`, `shade()`, `dashed()`, `on-scroll()`, `below()`, `skip-entrance()`) used by every component's styles. `skip-entrance` marks a time-based entrance animation so it shows its final state at once after a language switch.
48
49
  - **Language switch:** the page is rebuilt in place without replaying entrances (hero, 404, guides, service row and visuals), the globe keeps turning from where it was, and changed text animates (the application adds `LocaleTransitionStyle` in `<head>`).
49
50
 
@@ -2,7 +2,9 @@
2
2
  * The contact form's work, called by the application's server action (which adds the visitor's IP address). It
3
3
  * emails contact@sharadox.com from the sending subdomain (`EMAIL_SENDER_ADDRESS`, through Amazon SES over SMTP:
4
4
  * `EMAIL_SERVER_*`) as "Sharadox Web Application", with the visitor as reply-to and the subject
5
- * "Contact · Name (Company)".
5
+ * "Contact · Name (Company)". It needs a name, an email or a phone, at least one choice and a message of at least
6
+ * `CONTACT.minimumMessageLength` characters. Each address may send 5 messages an hour and everyone together 50
7
+ * emails a day, which caps what a flood can cost.
6
8
  */
7
9
  export declare const sendContact: (form: FormData, ip: string) => Promise<import("@sharadox/form-web-library/contact-action/type").ContactState>;
8
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/action/send-contact/index.ts"],"names":[],"mappings":"AAKA;;;;;GAKG;AACH,eAAO,MAAM,WAAW,gHAOtB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/action/send-contact/index.ts"],"names":[],"mappings":"AAKA;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,gHAWtB,CAAC"}
@@ -6,7 +6,9 @@ import { separate } from "@sharadox/sharadox-web-library/utility/separate";
6
6
  * The contact form's work, called by the application's server action (which adds the visitor's IP address). It
7
7
  * emails contact@sharadox.com from the sending subdomain (`EMAIL_SENDER_ADDRESS`, through Amazon SES over SMTP:
8
8
  * `EMAIL_SERVER_*`) as "Sharadox Web Application", with the visitor as reply-to and the subject
9
- * "Contact · Name (Company)".
9
+ * "Contact · Name (Company)". It needs a name, an email or a phone, at least one choice and a message of at least
10
+ * `CONTACT.minimumMessageLength` characters. Each address may send 5 messages an hour and everyone together 50
11
+ * emails a day, which caps what a flood can cost.
10
12
  */
11
13
  export const sendContact = createContactAction({
12
14
  to: SITE.email,
@@ -14,5 +16,9 @@ export const sendContact = createContactAction({
14
16
  site: "sharadox.com",
15
17
  subject: (message) => separate(CONTACT.subject, message.company ? `${message.name} (${message.company})` : message.name),
16
18
  choices: Object.fromEntries(CONTACT.needs.options.map((need) => [need.key, need.en])),
19
+ // The same rules the form checks before sending.
20
+ reach: "email-or-phone",
21
+ requireChoice: true,
22
+ minimumMessageLength: CONTACT.minimumMessageLength,
17
23
  });
18
24
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/action/send-contact/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAChF,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AACzE,OAAO,EAAE,IAAI,EAAE,MAAM,6CAA6C,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAE3E;;;;;GAKG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,mBAAmB,CAAC;IAC7C,EAAE,EAAE,IAAI,CAAC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,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;IACrF,iDAAiD;IACjD,KAAK,EAAE,gBAAgB;IACvB,aAAa,EAAE,IAAI;IACnB,oBAAoB,EAAE,OAAO,CAAC,oBAAoB;CACnD,CAAC,CAAC"}
@@ -1,4 +1,8 @@
1
1
  import type { ContactFormProperties } from "@sharadox/sharadox-web-library/component/contact/form/type";
2
- /** The enquiry form: honeypot and fill-time spam checks, inline errors, and an animated thank-you. */
2
+ /**
3
+ * The enquiry form: name, company, email and phone (one of them is enough), the choices grouped like the services, and
4
+ * a message. It checks itself before sending (`contactProblems`, the same rules as the server) and shows what's
5
+ * missing under each field; honeypot and fill-time spam checks, server errors, and an animated thank-you.
6
+ */
3
7
  export declare function ContactForm({ locale, action: sendAction }: ContactFormProperties): import("react").JSX.Element;
4
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/contact/form/index.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4DAA4D,CAAC;AAExG,sGAAsG;AACtG,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,qBAAqB,+BAmHhF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/contact/form/index.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4DAA4D,CAAC;AAExG;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,qBAAqB,+BA4KhF"}
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
3
  import { AnimatePresence, motion } from "motion/react";
4
- import { useActionState, useEffect, useRef } from "react";
4
+ import { useActionState, useEffect, useRef, useState } 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
7
  import { SITE } from "@sharadox/sharadox-web-library/content/site";
@@ -9,8 +9,13 @@ import { useSpotlight } from "@sharadox/pointer-web-library/spotlight";
9
9
  import { translate } from "@sharadox/internationalization-web-library/translate";
10
10
  import { CONTACT_NEED_EVENT } from "@sharadox/sharadox-web-library/utility/contact-need";
11
11
  import { Chip } from "@sharadox/sharadox-web-library/component/contact/form/chip";
12
+ import { contactProblems } from "@sharadox/sharadox-web-library/utility/contact-problem";
12
13
  import styles from "./index.module.css";
13
- /** The enquiry form: honeypot and fill-time spam checks, inline errors, and an animated thank-you. */
14
+ /**
15
+ * The enquiry form: name, company, email and phone (one of them is enough), the choices grouped like the services, and
16
+ * a message. It checks itself before sending (`contactProblems`, the same rules as the server) and shows what's
17
+ * missing under each field; honeypot and fill-time spam checks, server errors, and an animated thank-you.
18
+ */
14
19
  export function ContactForm({ locale, action: sendAction }) {
15
20
  const [state, action, pending] = useActionState(sendAction, { status: "idle" });
16
21
  // When the visitor started filling the form; bots submit faster than humans can.
@@ -39,8 +44,37 @@ export function ContactForm({ locale, action: sendAction }) {
39
44
  startedAt.current = Date.now();
40
45
  }, []);
41
46
  const spotlight = useSpotlight();
42
- 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, onSubmit: (event) => {
43
- event.currentTarget.elements.namedItem("started-at").value = String(startedAt.current);
44
- }, className: styles.form, exit: { opacity: 0, scale: 0.98 }, children: [_jsx("input", { 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", { ref: needs, className: styles.services, children: [_jsx("legend", { children: translate(CONTACT.needs.label, locale) }), CONTACT.needs.groups.map((group) => (_jsxs("div", { className: styles.group, role: "group", "aria-label": translate(group.title, locale), children: [_jsx("span", { className: "monospace", children: translate(group.title, locale) }), group.options.map((need) => (_jsx(Chip, { need: need.key, label: need[locale] }, need.key)))] }, group.key))), _jsx("div", { className: styles.group, children: _jsx(Chip, { need: CONTACT.needs.other.key, label: CONTACT.needs.other[locale] }) })] }), _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")) }));
47
+ // What the visitor still has to fill in; shown once they try to send, then updated as they type.
48
+ const [problems, setProblems] = useState(null);
49
+ // After a refused send, the first field that needs attention takes the focus once it's marked.
50
+ const formElement = useRef(null);
51
+ const [refusals, setRefusals] = useState(0);
52
+ useEffect(() => {
53
+ if (refusals)
54
+ formElement.current?.querySelector("[aria-invalid], [data-invalid] input")?.focus();
55
+ }, [refusals]);
56
+ const has = (problem) => problems?.includes(problem) ?? false;
57
+ const problem = (key) => has(key) && (_jsx("span", { id: `contact-${key}-problem`, className: styles.problem, children: translate(CONTACT.problems[key], locale) }));
58
+ const described = (...keys) => {
59
+ const shown = keys.filter(has);
60
+ return shown.length
61
+ ? { "aria-invalid": true, "aria-describedby": shown.map((key) => `contact-${key}-problem`).join(" ") }
62
+ : {};
63
+ };
64
+ 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, noValidate: true, onSubmit: (event) => {
65
+ const form = event.currentTarget;
66
+ const found = contactProblems(new FormData(form));
67
+ setProblems(found);
68
+ if (found.length) {
69
+ event.preventDefault();
70
+ formElement.current = form;
71
+ setRefusals((count) => count + 1);
72
+ return;
73
+ }
74
+ form.elements.namedItem("started-at").value = String(startedAt.current);
75
+ }, onChange: (event) => {
76
+ if (problems)
77
+ setProblems(contactProblems(new FormData(event.currentTarget)));
78
+ }, className: styles.form, exit: { opacity: 0, scale: 0.98 }, children: [_jsx("input", { 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, ...described("name") }), problem("name")] }), _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", autoComplete: "email", maxLength: 200, ...described("reach", "email") }), problem("email")] }), _jsxs("label", { className: styles.field, children: [_jsx("span", { children: translate(CONTACT.phone, locale) }), _jsx("input", { name: "phone", type: "tel", autoComplete: "tel", maxLength: 40, ...described("reach", "phone") }), problem("phone")] }), has("reach") ? problem("reach") : _jsx("span", { className: styles.hint, children: translate(CONTACT.reach, locale) }), _jsxs("fieldset", { ref: needs, className: styles.services, "data-invalid": has("needs") || undefined, "aria-describedby": has("needs") ? "contact-needs-problem" : undefined, children: [_jsx("legend", { children: translate(CONTACT.needs.label, locale) }), CONTACT.needs.groups.map((group) => (_jsxs("div", { className: styles.group, role: "group", "aria-label": translate(group.title, locale), children: [_jsx("span", { className: "monospace", children: translate(group.title, locale) }), group.options.map((need) => (_jsx(Chip, { need: need.key, label: need[locale] }, need.key)))] }, group.key))), _jsxs("div", { className: styles.group, role: "group", "aria-label": translate(CONTACT.needs.unsure.title, locale), children: [_jsx("span", { className: "monospace", children: translate(CONTACT.needs.unsure.title, locale) }), CONTACT.needs.unsure.options.map((need) => (_jsx(Chip, { need: need.key, label: need[locale] }, need.key)))] }), problem("needs")] }), _jsxs("label", { className: styles.field, children: [_jsx("span", { children: translate(CONTACT.message, locale) }), _jsx("textarea", { name: "message", required: true, rows: 5, minLength: CONTACT.minimumMessageLength, maxLength: 5000, ...described("message") }), problem("message")] }), 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")) }));
45
79
  }
46
80
  //# 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,EAAE,kBAAkB,EAAE,MAAM,qDAAqD,CAAC;AACzF,OAAO,EAAE,IAAI,EAAE,MAAM,4DAA4D,CAAC;AAClF,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,EAAE,OAAO,CAAC,GAAG,cAAc,CAAyB,UAAU,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IACxG,iFAAiF;IACjF,mHAAmH;IACnH,0FAA0F;IAC1F,MAAM,SAAS,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,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,KArGL,MAAM,CAsGE,CACf,GACe,CACnB,CAAC;AACJ,CAAC"}
@@ -1 +1 @@
1
- .form{--pointer-x: -500px;--pointer-y: -500px;position:relative;display:grid;gap:14px;padding:clamp(22px,3vw,34px);border-radius:18px;background:var(--card);border:1px solid var(--line);isolation:isolate}.form::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:radial-gradient(500px circle at var(--pointer-x) var(--pointer-y), color-mix(in srgb, var(--foreground) 5%, transparent), transparent 60%)}.row{display:grid;grid-template-columns:1fr 1fr;gap:14px}@media(max-width: 860px){.row{grid-template-columns:1fr}}.field{display:grid;gap:7px}.field span{font-size:13px;color:var(--foreground-2)}.field input,.field textarea{width:100%;font:inherit;font-size:15px;color:var(--foreground);background:var(--background);border:1px solid var(--line-2);border-radius:12px;padding:13px 14px;transition:border-color .25s,box-shadow .25s;resize:vertical}.field input:focus,.field textarea:focus{outline:none;border-color:color-mix(in srgb, var(--foreground) 50%, transparent);box-shadow:0 0 0 4px color-mix(in srgb, var(--foreground) 6%, transparent)}.services{display:grid;gap:12px;margin:4px 0 2px;padding:0;border:0}.services legend{float:left;padding:0;width:100%;margin-bottom:9px;font-size:13px;color:var(--foreground-2)}.honeypot{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.error{font-size:14px;color:var(--error)}.error a{text-decoration:underline}.done{min-height:380px;place-items:center;text-align:center;align-content:center;gap:18px}.done p{max-width:30ch;color:var(--foreground-2)}.check{width:56px;height:56px;fill:none;stroke:var(--foreground);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.check path{stroke-dasharray:40;stroke-dashoffset:40;animation:draw .8s .2s var(--ease) forwards}@keyframes draw{to{stroke-dashoffset:0}}.group{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.group>span{flex-basis:100%;font-size:11px;letter-spacing:.05em;text-transform:uppercase;color:var(--foreground-3)}
1
+ .form{--pointer-x: -500px;--pointer-y: -500px;position:relative;display:grid;gap:14px;padding:clamp(22px,3vw,34px);border-radius:18px;background:var(--card);border:1px solid var(--line);isolation:isolate}.form::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:radial-gradient(500px circle at var(--pointer-x) var(--pointer-y), color-mix(in srgb, var(--foreground) 5%, transparent), transparent 60%)}.row{display:grid;grid-template-columns:1fr 1fr;gap:14px}@media(max-width: 860px){.row{grid-template-columns:1fr}}.field{display:grid;align-content:start;gap:7px}.field span{font-size:13px;color:var(--foreground-2)}.field input,.field textarea{width:100%;font:inherit;font-size:15px;color:var(--foreground);background:var(--background);border:1px solid var(--line-2);border-radius:12px;padding:13px 14px;transition:border-color .25s,box-shadow .25s;resize:vertical}.field input:focus,.field textarea:focus{outline:none;border-color:color-mix(in srgb, var(--foreground) 50%, transparent);box-shadow:0 0 0 4px color-mix(in srgb, var(--foreground) 6%, transparent)}.services{display:grid;gap:12px;margin:4px 0 2px;padding:0;border:0}.services legend{float:left;padding:0;width:100%;margin-bottom:9px;font-size:13px;color:var(--foreground-2)}.honeypot{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.error{font-size:14px;color:var(--error)}.error a{text-decoration:underline}.done{min-height:380px;place-items:center;text-align:center;align-content:center;gap:18px}.done p{max-width:30ch;color:var(--foreground-2)}.check{width:56px;height:56px;fill:none;stroke:var(--foreground);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.check path{stroke-dasharray:40;stroke-dashoffset:40;animation:draw .8s .2s var(--ease) forwards}@keyframes draw{to{stroke-dashoffset:0}}.group{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.group>span{flex-basis:100%;font-size:11px;letter-spacing:.05em;text-transform:uppercase;color:var(--foreground-3)}.problem{font-size:13px;color:var(--error) !important}.hint{margin-top:-6px;font-size:13px;color:var(--foreground-3)}.field input[aria-invalid],.field textarea[aria-invalid]{border-color:var(--error)}.services[data-invalid] .group label>span{border-color:color-mix(in srgb, var(--error) 55%, transparent)}
@@ -30,6 +30,7 @@
30
30
  }
31
31
  .field {
32
32
  display: grid;
33
+ align-content: start;
33
34
  gap: 7px;
34
35
  span {
35
36
  font-size: 13px;
@@ -130,3 +131,20 @@
130
131
  color: var(--foreground-3);
131
132
  }
132
133
  }
134
+ /* What a field still needs, under it. */
135
+ .problem {
136
+ font-size: 13px;
137
+ color: var(--error) !important;
138
+ }
139
+ .hint {
140
+ margin-top: -6px;
141
+ font-size: 13px;
142
+ color: var(--foreground-3);
143
+ }
144
+ .field input[aria-invalid],
145
+ .field textarea[aria-invalid] {
146
+ border-color: var(--error);
147
+ }
148
+ .services[data-invalid] .group label > span {
149
+ border-color: color-mix(in srgb, var(--error) 55%, transparent);
150
+ }
@@ -1,8 +1,8 @@
1
1
  import type { FooterProperties } from "@sharadox/sharadox-web-library/component/footer/type";
2
2
  /**
3
3
  * The footer, in the grid frame: the brand (slogan, email), the services, the studio's sections with Start a Project,
4
- * and the language and style; then everything legal in one section: the links (license, privacy, cookie preferences,
5
- * Portugal's complaints book), the consumer dispute notice and the copyright, with the way back up.
4
+ * and the language and style; then everything legal in one row on the same columns: the copyright, the links (license,
5
+ * privacy, cookie preferences, Portugal's complaints book) with the consumer dispute notice, and the way back up.
6
6
  */
7
7
  export declare function Footer({ locale, path }: FooterProperties): import("react").JSX.Element;
8
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/footer/index.tsx"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sDAAsD,CAAC;AAE7F;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,EAAE,MAAM,EAAE,IAAS,EAAE,EAAE,gBAAgB,+BAgF7D"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/footer/index.tsx"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sDAAsD,CAAC;AAE7F;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,EAAE,MAAM,EAAE,IAAS,EAAE,EAAE,gBAAgB,+BA+E7D"}
@@ -27,12 +27,12 @@ import { LOCALES } from "@sharadox/sharadox-web-library/content/locale";
27
27
  import styles from "./index.module.css";
28
28
  /**
29
29
  * The footer, in the grid frame: the brand (slogan, email), the services, the studio's sections with Start a Project,
30
- * and the language and style; then everything legal in one section: the links (license, privacy, cookie preferences,
31
- * Portugal's complaints book), the consumer dispute notice and the copyright, with the way back up.
30
+ * and the language and style; then everything legal in one row on the same columns: the copyright, the links (license,
31
+ * privacy, cookie preferences, Portugal's complaints book) with the consumer dispute notice, and the way back up.
32
32
  */
33
33
  export function Footer({ locale, path = "" }) {
34
34
  const home = path ? `/${locale}` : "";
35
35
  const studio = [SECTION.touchpoints, SECTION.capabilities, SECTION.process, SECTION.contact];
36
- 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}` }), _jsx("p", { className: styles.slogan, children: translate(SLOGAN, locale) }), _jsx("a", { href: `mailto:${SITE.email}`, className: styles.email, children: SITE.email })] }), _jsxs("nav", { "aria-label": translate(SECTION.services, locale), children: [_jsx("h2", { className: "monospace", children: translate(SECTION.services, locale) }), SERVICES.items.map((service) => (_jsx("a", { href: `${home}#${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) }), studio.map((section) => (_jsx("a", { href: `${home}#${section.id}`, children: translate(section, locale) }, section.id))), _jsx(Button, { href: `${home}#${SECTION.contact.id}`, size: "small", arrow: true, className: styles.start, children: translate(ACTION.startProject, locale) })] }), _jsxs("div", { className: styles.settings, children: [_jsx("h2", { className: "monospace", children: translate(LANGUAGE.label, locale) }), _jsx("span", { className: styles.languages, children: LOCALES.locales.map((other) => (_jsx(LocaleLink, { locale: other, href: `/${other}${path}`, current: other === locale, children: LANGUAGE.names[other] }, other))) }), _jsx("h2", { className: "monospace", children: translate(STYLE.label, locale) }), _jsx(StyleSwitch, { locale: locale, className: styles.style })] })] }), _jsxs("section", { className: styles.legal, "aria-labelledby": "footer-legal", children: [_jsxs("div", { className: styles.legalStart, children: [_jsx("h2", { id: "footer-legal", className: "monospace", children: translate(FOOTER.legal, locale) }), _jsxs("p", { className: `monospace ${styles.copyright}`, children: ["\u00A9 ", _jsx(CopyrightYears, { since: FOUNDED }), " ", separate("Sharadox", translate(FOOTER.rights, locale))] })] }), _jsxs("div", { className: styles.legalEnd, children: [_jsxs("nav", { "aria-label": translate(FOOTER.legal, locale), className: styles.links, children: [_jsx("a", { href: `/${locale}${LICENSE.path}`, "aria-current": path === LICENSE.path ? "page" : undefined, children: translate(LICENSE.title, locale) }), _jsx("a", { href: `/${locale}${PRIVACY_PAGE.path}`, "aria-current": path === PRIVACY_PAGE.path ? "page" : undefined, children: translate(PRIVACY_PAGE.title, locale) }), _jsx(PreferencesLink, { label: translate(CONSENT.preferences, locale) }), _jsx(ComplaintsBookLink, { locale: locale })] }), _jsx("p", { className: styles.disputes, children: _jsx(DisputeNotice, { center: DISPUTE_RESOLUTION_CENTERS.algarve, locale: locale }) })] }), _jsxs("a", { href: "#top", className: styles.top, children: [translate(FOOTER.top, locale), _jsx("span", { className: styles.circle, "aria-hidden": true, children: _jsx(Icon, { name: "chevron-up", strokeWidth: 1.8 }) })] })] })] }));
36
+ 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}` }), _jsx("p", { className: styles.slogan, children: translate(SLOGAN, locale) }), _jsx("a", { href: `mailto:${SITE.email}`, className: styles.email, children: SITE.email })] }), _jsxs("nav", { "aria-label": translate(SECTION.services, locale), children: [_jsx("h2", { className: "monospace", children: translate(SECTION.services, locale) }), SERVICES.items.map((service) => (_jsx("a", { href: `${home}#${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) }), studio.map((section) => (_jsx("a", { href: `${home}#${section.id}`, children: translate(section, locale) }, section.id))), _jsx(Button, { href: `${home}#${SECTION.contact.id}`, size: "small", arrow: true, className: styles.start, children: translate(ACTION.startProject, locale) })] }), _jsxs("div", { className: styles.settings, children: [_jsx("h2", { className: "monospace", children: translate(LANGUAGE.label, locale) }), _jsx("span", { className: styles.languages, children: LOCALES.locales.map((other) => (_jsx(LocaleLink, { locale: other, href: `/${other}${path}`, current: other === locale, children: LANGUAGE.names[other] }, other))) }), _jsx("h2", { className: "monospace", children: translate(STYLE.label, locale) }), _jsx(StyleSwitch, { locale: locale, className: styles.style })] })] }), _jsxs("div", { className: styles.legal, children: [_jsxs("p", { className: `monospace ${styles.copyright}`, children: ["\u00A9 ", _jsx(CopyrightYears, { since: FOUNDED }), " ", separate("Sharadox", translate(FOOTER.rights, locale))] }), _jsxs("div", { className: styles.legalLinks, children: [_jsxs("nav", { "aria-label": translate(FOOTER.legal, locale), className: styles.links, children: [_jsx("a", { href: `/${locale}${LICENSE.path}`, "aria-current": path === LICENSE.path ? "page" : undefined, children: translate(LICENSE.title, locale) }), _jsx("a", { href: `/${locale}${PRIVACY_PAGE.path}`, "aria-current": path === PRIVACY_PAGE.path ? "page" : undefined, children: translate(PRIVACY_PAGE.title, locale) }), _jsx(PreferencesLink, { label: translate(CONSENT.preferences, locale) }), _jsx(ComplaintsBookLink, { locale: locale })] }), _jsx("p", { className: styles.disputes, children: _jsx(DisputeNotice, { center: DISPUTE_RESOLUTION_CENTERS.algarve, locale: locale }) })] }), _jsx("div", { className: styles.back, children: _jsxs("a", { href: "#top", className: styles.top, children: [translate(FOOTER.top, locale), _jsx("span", { className: styles.circle, "aria-hidden": true, children: _jsx(Icon, { name: "chevron-up", strokeWidth: 1.8 }) })] }) })] })] }));
37
37
  }
38
38
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/footer/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,iCAAiC,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAC3E,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,EAAE,KAAK,EAAE,MAAM,gDAAgD,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,wDAAwD,CAAC;AACpF,OAAO,EAAE,WAAW,EAAE,MAAM,uDAAuD,CAAC;AACpF,OAAO,EAAE,QAAQ,EAAE,MAAM,mDAAmD,CAAC;AAC7E,OAAO,EAAE,MAAM,EAAE,MAAM,iDAAiD,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,mEAAmE,CAAC;AACpG,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kDAAkD,CAAC;AACtF,OAAO,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAC3E,OAAO,EAAE,0BAA0B,EAAE,MAAM,gDAAgD,CAAC;AAC5F,OAAO,EAAE,MAAM,EAAE,MAAM,+CAA+C,CAAC;AACvE,OAAO,EAAE,MAAM,EAAE,MAAM,+CAA+C,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,MAAM,gDAAgD,CAAC;AAC9E,O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min(100% - 2*var(--gutter),var(--maximum-width));margin:0 auto;border:1px solid var(--line);border-bottom:0}.columns{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;border-bottom:1px solid var(--line)}.columns>*{position:relative;display:grid;align-content:start;gap:10px;padding:36px var(--padding) 40px;font-size:14px;color:var(--foreground-2)}.columns>*:not(:last-child)::after{content:"";position:absolute;top:0;bottom:0;right:0;width:1px;background:linear-gradient(180deg, var(--line-2) 50%, transparent 0) 0 0/1px 8px repeat-y}.columns h2{margin-bottom:6px;font-size:11.5px;font-weight:400;letter-spacing:.05em;text-transform:uppercase;color:var(--foreground-3)}.columns a{width:fit-content}.columns a:not(.start){transition:color .2s}.columns a:not(.start):hover{color:var(--foreground)}@media(max-width: 900px){.columns{grid-template-columns:1fr 1fr}.columns>*:nth-child(2n)::after{display:none}.columns>*:nth-child(-n+2){border-bottom:1px dashed var(--line-2)}}@media(max-width: 520px){.columns{grid-template-columns:1fr}.columns>*::after{display:none}.columns>*:not(:last-child){border-bottom:1px dashed var(--line-2)}}.brand{gap:14px !important}.brand>a:first-child{color:var(--foreground)}.slogan{color:var(--foreground);font-size:1.05rem;font-weight:500;letter-spacing:-0.03em;max-width:24ch}.email{color:var(--foreground-2)}.languages{display:grid;gap:10px}.languages a[aria-current]{color:var(--foreground)}.style{width:fit-content}.settings h2:not(:first-child){margin-top:18px}.start{margin-top:10px}.legal{position:relative;display:grid;grid-template-columns:1.6fr 2.4fr auto;font-size:13px;color:var(--foreground-2)}.legal::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:linear-gradient(90deg, var(--line-2) 50%, transparent 0) 0 0/8px 1px repeat-x}.legal h2{font-size:11.5px;font-weight:400;letter-spacing:.05em;text-transform:uppercase;color:var(--foreground-3)}@media(max-width: 900px){.legal{grid-template-columns:1fr auto}.legal .legalEnd{grid-column:1/-1;grid-row:2;border-top:1px dashed var(--line-2)}.legal .legalStart::after{display:none}}.legalStart,.legalEnd{position:relative;display:grid;align-content:start;gap:12px;padding:30px var(--padding) 34px}.legalStart::after{content:"";position:absolute;top:0;bottom:0;right:0;width:1px;background:linear-gradient(180deg, var(--line-2) 50%, transparent 0) 0 0/1px 8px repeat-y}.copyright{font-size:12px;color:var(--foreground-3)}.links{display:flex;flex-wrap:wrap;align-items:center;gap:8px 22px}.links a,.links [data-preferences-link]{position:relative;padding:0;border:0;background:none;font:inherit;color:var(--foreground-2);text-align:left;justify-self:start;transition:color .2s}.links>*+*::before{content:"";position:absolute;left:-13px;top:50%;width:3px;height:3px;margin-top:-1.5px;border-radius:50%;background:var(--foreground-3)}.links a:hover,.links [data-preferences-link]:hover,.links a[aria-current]{color:var(--foreground)}@media(max-width: 640px){.links{display:grid;grid-template-columns:1fr 1fr;gap:12px 18px}.links>*+*::before{display:none}}.disputes{max-width:72ch;font-size:12px;line-height:1.6;color:var(--foreground-3);text-wrap:pretty}.disputes a{color:var(--foreground-2);transition:color .2s}.disputes a:hover{color:var(--foreground)}.top{display:inline-flex;align-items:center;align-self:start;padding:26px var(--padding) 0 0;gap:10px;color:var(--foreground-2);transition:color .2s}.top:hover{color:var(--foreground)}.top:hover .circle{border-color:var(--foreground);transform:translateY(-2px)}.circle{display:grid;place-items:center;width:30px;height:30px;border:1px solid var(--line);border-radius:50%;transition:border-color .3s,transform .4s cubic-bezier(0.22, 1, 0.36, 1)}
1
+ .footer{position:relative;width:min(100% - 2*var(--gutter),var(--maximum-width));margin:0 auto;border:1px solid var(--line);border-bottom:0}.columns{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;border-bottom:1px solid var(--line)}.columns>*{position:relative;display:grid;align-content:start;gap:10px;padding:36px var(--padding) 40px;font-size:14px;color:var(--foreground-2)}.columns>*:not(:last-child)::after{content:"";position:absolute;top:0;bottom:0;right:0;width:1px;background:linear-gradient(180deg, var(--line-2) 50%, transparent 0) 0 0/1px 8px repeat-y}.columns h2{margin-bottom:6px;font-size:11.5px;font-weight:400;letter-spacing:.05em;text-transform:uppercase;color:var(--foreground-3)}.columns a{width:fit-content}.columns a:not(.start){transition:color .2s}.columns a:not(.start):hover{color:var(--foreground)}@media(max-width: 900px){.columns{grid-template-columns:1fr 1fr}.columns>*:nth-child(2n)::after{display:none}.columns>*:nth-child(-n+2){border-bottom:1px dashed var(--line-2)}}@media(max-width: 520px){.columns{grid-template-columns:1fr}.columns>*::after{display:none}.columns>*:not(:last-child){border-bottom:1px dashed var(--line-2)}}.brand{gap:14px !important}.brand>a:first-child{color:var(--foreground)}.slogan{color:var(--foreground);font-size:1.05rem;font-weight:500;letter-spacing:-0.03em;max-width:24ch}.email{color:var(--foreground-2)}.languages{display:grid;gap:10px}.languages a[aria-current]{color:var(--foreground)}.style{width:fit-content}.settings h2:not(:first-child){margin-top:18px}.start{margin-top:10px}.legal{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;border-bottom:1px solid var(--line);font-size:13px;color:var(--foreground-2)}.legal>*{position:relative;display:grid;align-content:start;gap:12px;padding:28px var(--padding) 32px}.legal>*:not(:last-child)::after{content:"";position:absolute;top:0;bottom:0;right:0;width:1px;background:linear-gradient(180deg, var(--line-2) 50%, transparent 0) 0 0/1px 8px repeat-y}@media(max-width: 900px){.legal{grid-template-columns:1fr 1fr}.legal .legalLinks{grid-column:1/-1;grid-row:1;border-bottom:1px dashed var(--line-2)}.legal .legalLinks::after{display:none}}@media(max-width: 520px){.legal{grid-template-columns:1fr}.legal>*::after{display:none}.legal .copyright{border-bottom:1px dashed var(--line-2)}}.legalLinks{grid-column:span 2}.legal>.back{padding-top:22px}.legal>.copyright{display:block}.copyright{font-size:12px;color:var(--foreground-3)}.links{display:flex;flex-wrap:wrap;align-items:center;gap:8px 24px}.links a,.links [data-preferences-link]{padding:0;border:0;background:none;font:inherit;color:var(--foreground-2);text-align:left;transition:color .2s}.links a:hover,.links [data-preferences-link]:hover,.links a[aria-current]{color:var(--foreground)}@media(max-width: 640px){.links{display:grid;grid-template-columns:1fr 1fr;gap:12px 18px}}.disputes{max-width:72ch;font-size:12px;line-height:1.6;color:var(--foreground-3);text-wrap:pretty}.disputes a{color:var(--foreground-2);transition:color .2s}.disputes a:hover{color:var(--foreground)}.top{display:inline-flex;align-items:center;width:fit-content;gap:10px;color:var(--foreground-2);transition:color .2s}.top:hover{color:var(--foreground)}.top:hover .circle{border-color:var(--foreground);transform:translateY(-2px)}.circle{display:grid;place-items:center;width:30px;height:30px;border:1px solid var(--line);border-radius:50%;transition:border-color .3s,transform .4s cubic-bezier(0.22, 1, 0.36, 1)}
@@ -97,92 +97,81 @@
97
97
  .start {
98
98
  margin-top: 10px;
99
99
  }
100
- /* Everything legal in one section, ruled like the columns above: the title and copyright under the brand, the links
101
- and the dispute notice across the rest, the way back up at the end. */
100
+ /* Everything legal in one row on the columns above (the same widths, dividers and padding), so every line meets. */
102
101
  .legal {
103
- position: relative;
104
102
  display: grid;
105
- grid-template-columns: 1.6fr 2.4fr auto;
103
+ grid-template-columns: 1.6fr 1fr 1fr 1fr;
104
+ border-bottom: 1px solid var(--line);
106
105
  font-size: 13px;
107
106
  color: var(--foreground-2);
108
- &::after {
107
+ > * {
108
+ position: relative;
109
+ display: grid;
110
+ align-content: start;
111
+ gap: 12px;
112
+ padding: 28px var(--padding) 32px;
113
+ }
114
+ > *:not(:last-child)::after {
109
115
  content: "";
110
116
  position: absolute;
111
- left: 0;
112
- right: 0;
117
+ top: 0;
113
118
  bottom: 0;
114
- height: 1px;
115
- @include dashed(horizontal);
116
- }
117
- h2 {
118
- font-size: 11.5px;
119
- font-weight: 400;
120
- letter-spacing: 0.05em;
121
- text-transform: uppercase;
122
- color: var(--foreground-3);
119
+ right: 0;
120
+ width: 1px;
121
+ @include dashed(vertical);
123
122
  }
124
123
  @include below(900px) {
125
- grid-template-columns: 1fr auto;
126
- .legalEnd {
124
+ grid-template-columns: 1fr 1fr;
125
+ .legalLinks {
127
126
  grid-column: 1 / -1;
128
- grid-row: 2;
129
- border-top: 1px dashed var(--line-2);
127
+ grid-row: 1;
128
+ border-bottom: 1px dashed var(--line-2);
129
+ &::after {
130
+ display: none;
131
+ }
130
132
  }
131
- .legalStart::after {
133
+ }
134
+ @include below(520px) {
135
+ grid-template-columns: 1fr;
136
+ > *::after {
132
137
  display: none;
133
138
  }
139
+ .copyright {
140
+ border-bottom: 1px dashed var(--line-2);
141
+ }
134
142
  }
135
143
  }
136
- .legalStart,
137
- .legalEnd {
138
- position: relative;
139
- display: grid;
140
- align-content: start;
141
- gap: 12px;
142
- padding: 30px var(--padding) 34px;
143
- }
144
- .legalStart::after {
145
- content: "";
146
- position: absolute;
147
- top: 0;
148
- bottom: 0;
149
- right: 0;
150
- width: 1px;
151
- @include dashed(vertical);
144
+ .legalLinks {
145
+ grid-column: span 2;
146
+ }
147
+ /* The circle is taller than a line of text: start it higher, so its words sit on the row's first line. */
148
+ .legal > .back {
149
+ padding-top: 22px;
150
+ }
151
+ /* One line of text, not a grid of its pieces. */
152
+ .legal > .copyright {
153
+ display: block;
152
154
  }
153
155
  .copyright {
154
156
  font-size: 12px;
155
157
  color: var(--foreground-3);
156
158
  }
157
- /* The legal links, a small dot between each; on phones, two to a row without dots. */
159
+ /* The legal links, wrapping as they need; on phones, two to a row. */
158
160
  .links {
159
161
  display: flex;
160
162
  flex-wrap: wrap;
161
163
  align-items: center;
162
- gap: 8px 22px;
164
+ gap: 8px 24px;
163
165
  a,
164
166
  [data-preferences-link] {
165
- position: relative;
166
167
  padding: 0;
167
168
  border: 0;
168
169
  background: none;
169
170
  font: inherit;
170
171
  color: var(--foreground-2);
171
172
  text-align: left;
172
- justify-self: start;
173
173
  transition: color 0.2s;
174
174
  }
175
- > * + *::before {
176
- content: "";
177
- position: absolute;
178
- left: -13px;
179
- top: 50%;
180
- width: 3px;
181
- height: 3px;
182
- margin-top: -1.5px;
183
- border-radius: 50%;
184
- background: var(--foreground-3);
185
- }
186
175
  a:hover,
187
176
  [data-preferences-link]:hover,
188
177
  a[aria-current] {
@@ -192,9 +181,6 @@
192
181
  display: grid;
193
182
  grid-template-columns: 1fr 1fr;
194
183
  gap: 12px 18px;
195
- > * + *::before {
196
- display: none;
197
- }
198
184
  }
199
185
  }
200
186
  .disputes {
@@ -214,8 +200,7 @@
214
200
  .top {
215
201
  display: inline-flex;
216
202
  align-items: center;
217
- align-self: start;
218
- padding: 26px var(--padding) 0 0;
203
+ width: fit-content;
219
204
  gap: 10px;
220
205
  color: var(--foreground-2);
221
206
  transition: color 0.2s;
@@ -1,10 +1,11 @@
1
1
  import type { ServiceCardProperties } from "@sharadox/sharadox-web-library/component/service-card/type";
2
2
  /**
3
3
  * One service: its 3D object (which turns towards the pointer anywhere on the card), name, description, and a button
4
- * that scrolls to the contact form with this service ticked. A soft light follows the pointer.
4
+ * that scrolls to the contact form with this service ticked, and its `points` when it has them. A soft light follows
5
+ * the pointer. A `wide` card puts the object beside the words.
5
6
  *
6
7
  * @example
7
8
  * <ServiceCard locale="en" card={SERVICES.items[0].cards[0]} />
8
9
  */
9
- export declare function ServiceCard({ locale, card }: ServiceCardProperties): import("react").JSX.Element;
10
+ export declare function ServiceCard({ locale, card, wide }: ServiceCardProperties): import("react").JSX.Element;
10
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/service-card/index.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4DAA4D,CAAC;AAExG;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,qBAAqB,+BAyBlE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/service-card/index.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4DAA4D,CAAC;AAExG;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,IAAY,EAAE,EAAE,qBAAqB,+BAoChF"}
@@ -10,14 +10,15 @@ import { requestContactNeeds } from "@sharadox/sharadox-web-library/utility/cont
10
10
  import styles from "./index.module.css";
11
11
  /**
12
12
  * One service: its 3D object (which turns towards the pointer anywhere on the card), name, description, and a button
13
- * that scrolls to the contact form with this service ticked. A soft light follows the pointer.
13
+ * that scrolls to the contact form with this service ticked, and its `points` when it has them. A soft light follows
14
+ * the pointer. A `wide` card puts the object beside the words.
14
15
  *
15
16
  * @example
16
17
  * <ServiceCard locale="en" card={SERVICES.items[0].cards[0]} />
17
18
  */
18
- export function ServiceCard({ locale, card }) {
19
+ export function ServiceCard({ locale, card, wide = false }) {
19
20
  const spotlight = useSpotlight();
20
21
  const tilt = useTilt(16);
21
- return (_jsx("article", { ref: spotlight, className: styles.card, children: _jsxs("div", { ref: tilt, className: styles.inner, children: [_jsx("div", { className: styles.visual, children: _jsx(ServiceObject, { kind: card.key }) }), _jsxs("div", { className: styles.copy, children: [_jsx("h4", { children: translate(card.title, locale) }), _jsx("p", { children: translate(card.text, locale) }), _jsx(Button, { href: `#${SECTION.contact.id}`, size: "small", arrow: true, className: styles.action, onClick: () => requestContactNeeds([card.key]), children: translate(card.action, locale) })] })] }) }));
22
+ return (_jsx("article", { ref: spotlight, className: styles.card, "data-wide": wide || undefined, children: _jsxs("div", { ref: tilt, className: styles.inner, children: [_jsx("div", { className: styles.visual, children: _jsx(ServiceObject, { kind: card.key }) }), _jsxs("div", { className: styles.copy, children: [_jsx("h4", { children: translate(card.title, locale) }), _jsx("p", { children: translate(card.text, locale) }), "points" in card && (_jsx("ol", { className: styles.points, children: card.points.map((point, index) => (_jsxs("li", { children: [_jsx("span", { className: "monospace", children: String(index + 1).padStart(2, "0") }), _jsx("strong", { children: translate(point.title, locale) }), _jsx("span", { children: translate(point.text, locale) })] }, point.title.en))) })), _jsx(Button, { href: `#${SECTION.contact.id}`, size: "small", arrow: true, className: styles.action, onClick: () => requestContactNeeds([card.key]), children: translate(card.action, locale) })] })] }) }));
22
23
  }
23
24
  //# sourceMappingURL=index.js.map
@@ -1 +1 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AAS,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,GAAM,EACxC,sBAAI,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,GAAK,EACpC,QAAQ,IAAI,IAAI,IAAI,CACnB,aAAI,SAAS,EAAE,MAAM,CAAC,MAAM,YACzB,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,CACjC,yBACE,eAAM,SAAS,EAAC,WAAW,YAAE,MAAM,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,GAAQ,EACvE,2BAAS,SAAS,CAAC,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,GAAU,EACjD,yBAAO,SAAS,CAAC,KAAK,CAAC,IAAI,EAAE,MAAM,CAAC,GAAQ,KAHrC,KAAK,CAAC,KAAK,CAAC,EAAE,CAIlB,CACN,CAAC,GACC,CACN,EACD,KAAC,MAAM,IACL,IAAI,EAAE,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE,EAAE,EAC9B,IAAI,EAAC,OAAO,EACZ,KAAK,QACL,SAAS,EAAE,MAAM,CAAC,MAAM,EACxB,OAAO,EAAE,GAAG,EAAE,CAAC,mBAAmB,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,YAE7C,SAAS,CAAC,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,GACxB,IACL,IACF,GACE,CACX,CAAC;AACJ,CAAC"}
@@ -1 +1 @@
1
- .card{--pointer-x: -500px;--pointer-y: -500px;position:relative;height:100%;background:var(--background);isolation:isolate}.card::before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(420px circle at var(--pointer-x) var(--pointer-y), color-mix(in srgb, var(--foreground) 7%, transparent), transparent 60%)}.inner{--tilt-x: 0deg;--tilt-y: 0deg;display:flex;flex-direction:column;height:100%}.visual{position:relative;height:270px;border-bottom:1px dashed var(--line-2);background:radial-gradient(90% 80% at 50% 45%, color-mix(in srgb, var(--foreground) 6%, transparent), transparent 70%),radial-gradient(circle, var(--line-2) 1px, transparent 1.4px) 0 0/18px 18px}@media(max-width: 640px){.visual{height:250px}}.copy{flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:24px 26px 28px}.copy h4{margin:0;font-size:1.3rem;font-weight:600;letter-spacing:-0.03em}.copy p{margin-bottom:14px;color:var(--foreground-2);max-width:44ch;text-wrap:pretty}.action{margin-top:auto}
1
+ .card{--pointer-x: -500px;--pointer-y: -500px;position:relative;height:100%;background:var(--background);isolation:isolate}.card::before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(420px circle at var(--pointer-x) var(--pointer-y), color-mix(in srgb, var(--foreground) 7%, transparent), transparent 60%)}.inner{--tilt-x: 0deg;--tilt-y: 0deg;display:flex;flex-direction:column;height:100%}.visual{position:relative;height:270px;border-bottom:1px dashed var(--line-2);background:radial-gradient(90% 80% at 50% 45%, color-mix(in srgb, var(--foreground) 6%, transparent), transparent 70%),radial-gradient(circle, var(--line-2) 1px, transparent 1.4px) 0 0/18px 18px}@media(max-width: 640px){.visual{height:250px}}.copy{flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:24px 26px 28px}.copy h4{margin:0;font-size:1.3rem;font-weight:600;letter-spacing:-0.03em}.copy p{margin-bottom:14px;color:var(--foreground-2);max-width:44ch;text-wrap:pretty}.action{margin-top:auto}.points{display:grid;gap:14px;margin:0 0 22px;padding:0;list-style:none}.points li{display:grid;grid-template-columns:auto 1fr;gap:2px 14px;padding-top:14px;border-top:1px dashed var(--line-2)}.points li>span:first-child{grid-row:span 2;font-size:12px;color:var(--foreground-3);line-height:1.7}.points li strong{font-weight:600}.points li>span:last-child{color:var(--foreground-2);text-wrap:pretty}@media(min-width: 961px){.card[data-wide] .inner{display:grid;grid-template-columns:1fr 1fr}.card[data-wide] .visual{--object-scale: 1.5;height:auto;min-height:440px;border-bottom:0;border-right:1px dashed var(--line-2)}.card[data-wide] .copy{justify-content:center;padding:40px clamp(28px,4vw,56px)}.card[data-wide] .copy p{max-width:56ch}.card[data-wide] .action{margin-top:0}}