@sharadox/sharadox-web-library 0.11.2 → 0.13.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 (69) hide show
  1. package/README.md +3 -1
  2. package/distribution/component/button/index.d.ts +1 -1
  3. package/distribution/component/button/index.d.ts.map +1 -1
  4. package/distribution/component/button/index.js +4 -5
  5. package/distribution/component/button/index.js.map +1 -1
  6. package/distribution/component/button/type.d.ts +1 -0
  7. package/distribution/component/button/type.d.ts.map +1 -1
  8. package/distribution/component/contact/form/index.d.ts.map +1 -1
  9. package/distribution/component/contact/form/index.js +20 -1
  10. package/distribution/component/contact/form/index.js.map +1 -1
  11. package/distribution/component/contact/form/index.module.css +1 -1
  12. package/distribution/component/contact/form/index.module.scss +12 -0
  13. package/distribution/component/hero/guide/index.module.css +1 -1
  14. package/distribution/component/hero/guide/index.module.scss +2 -0
  15. package/distribution/component/hero/index.d.ts.map +1 -1
  16. package/distribution/component/hero/index.js +5 -1
  17. package/distribution/component/hero/index.js.map +1 -1
  18. package/distribution/component/not-found/index.d.ts.map +1 -1
  19. package/distribution/component/not-found/index.js +7 -3
  20. package/distribution/component/not-found/index.js.map +1 -1
  21. package/distribution/component/section-indicator/index.module.css +1 -1
  22. package/distribution/component/section-indicator/index.module.scss +1 -0
  23. package/distribution/component/service-action/index.d.ts +10 -0
  24. package/distribution/component/service-action/index.d.ts.map +1 -0
  25. package/distribution/component/service-action/index.js +18 -0
  26. package/distribution/component/service-action/index.js.map +1 -0
  27. package/distribution/component/service-action/index.module.css +1 -0
  28. package/distribution/component/service-action/index.module.scss +6 -0
  29. package/distribution/component/service-action/type.d.ts +7 -0
  30. package/distribution/component/service-action/type.d.ts.map +1 -0
  31. package/distribution/component/service-action/type.js +2 -0
  32. package/distribution/component/service-action/type.js.map +1 -0
  33. package/distribution/component/service-index/index.module.css +1 -1
  34. package/distribution/component/service-index/index.module.scss +1 -0
  35. package/distribution/component/services/campaign-visual/index.module.css +1 -1
  36. package/distribution/component/services/campaign-visual/index.module.scss +3 -0
  37. package/distribution/component/services/cell/index.d.ts +1 -1
  38. package/distribution/component/services/cell/index.d.ts.map +1 -1
  39. package/distribution/component/services/cell/index.js +2 -2
  40. package/distribution/component/services/cell/index.js.map +1 -1
  41. package/distribution/component/services/cell/type.d.ts +2 -0
  42. package/distribution/component/services/cell/type.d.ts.map +1 -1
  43. package/distribution/component/services/design-visual/index.module.css +1 -1
  44. package/distribution/component/services/design-visual/index.module.scss +2 -0
  45. package/distribution/component/services/index.d.ts.map +1 -1
  46. package/distribution/component/services/index.js +2 -1
  47. package/distribution/component/services/index.js.map +1 -1
  48. package/distribution/component/services/social-visual/index.module.css +1 -1
  49. package/distribution/component/services/social-visual/index.module.scss +3 -0
  50. package/distribution/component/services/web-visual/index.module.css +1 -1
  51. package/distribution/component/services/web-visual/index.module.scss +1 -0
  52. package/distribution/content/contact/index.d.ts +6 -6
  53. package/distribution/content/contact/index.js +2 -2
  54. package/distribution/content/contact/index.js.map +1 -1
  55. package/distribution/content/services/index.d.ts +46 -0
  56. package/distribution/content/services/index.d.ts.map +1 -1
  57. package/distribution/content/services/index.js +21 -0
  58. package/distribution/content/services/index.js.map +1 -1
  59. package/distribution/content/services/type.d.ts +8 -0
  60. package/distribution/content/services/type.d.ts.map +1 -0
  61. package/distribution/content/services/type.js +2 -0
  62. package/distribution/content/services/type.js.map +1 -0
  63. package/distribution/style/token/index.scss +13 -0
  64. package/distribution/utility/contact-need/index.d.ts +12 -0
  65. package/distribution/utility/contact-need/index.d.ts.map +1 -0
  66. package/distribution/utility/contact-need/index.js +13 -0
  67. package/distribution/utility/contact-need/index.js.map +1 -0
  68. package/llms.txt +2 -0
  69. package/package.json +5 -5
package/README.md CHANGED
@@ -36,9 +36,11 @@ Everything generic comes from the open-source Sharadox libraries, configured her
36
36
  - Sharadox wrappers around the shared globe and cookie panel, structured data, share image
37
37
  - `License`: the license page's body, rendered from the license's Markdown
38
38
  - `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)
39
+ - **Service card buttons:** each card's `actions` (in `content/services`) scroll to the contact form and tick the matching choice (`requestContactNeeds`), which glows for a moment.
39
40
  - **`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").
40
41
  - **`utility/`:** `separate()` (the Sharadox separator) and the share card's horizon dots.
41
- - **`style/token`:** Sass helpers (`tint()`, `shade()`, `dashed()`, `on-scroll()`, `below()`) used by every component's styles.
42
+ - **`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.
43
+ - **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>`).
42
44
 
43
45
  ## Use in the application
44
46
 
@@ -1,4 +1,4 @@
1
1
  import type { ButtonProperties } from "@sharadox/sharadox-web-library/component/button/type";
2
2
  /** Pill button or link: solid (the foreground color) or ghost (outlined). */
3
- export declare function Button({ children, href, variant, size, arrow, disabled, className, }: ButtonProperties): import("react").JSX.Element;
3
+ export declare function Button({ children, href, variant, size, arrow, disabled, className, onClick, }: 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,6EAA6E;AAC7E,wBAAgB,MAAM,CAAC,EACrB,QAAQ,EACR,IAAI,EACJ,OAAiB,EACjB,IAAe,EACf,KAAK,EACL,QAAQ,EACR,SAAS,GACV,EAAE,gBAAgB,+BAuBlB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/button/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sDAAsD,CAAC;AAE7F,6EAA6E;AAC7E,wBAAgB,MAAM,CAAC,EACrB,QAAQ,EACR,IAAI,EACJ,OAAiB,EACjB,IAAe,EACf,KAAK,EACL,QAAQ,EACR,SAAS,EACT,OAAO,GACR,EAAE,gBAAgB,+BAqBlB"}
@@ -1,11 +1,10 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { classNames } from "@sharadox/web-library/class-name";
2
3
  import styles from "./index.module.css";
3
4
  /** Pill button or link: solid (the foreground color) or ghost (outlined). */
4
- export function Button({ children, href, variant = "solid", size = "medium", arrow, disabled, className, }) {
5
- const classNames = [styles.button, styles[variant], size !== "medium" && styles[size], className]
6
- .filter(Boolean)
7
- .join(" ");
5
+ export function Button({ children, href, variant = "solid", size = "medium", arrow, disabled, className, onClick, }) {
6
+ const names = classNames(styles.button, styles[variant], size !== "medium" && styles[size], className);
8
7
  const content = (_jsxs(_Fragment, { children: [children, arrow && (_jsx("span", { className: styles.arrow, "aria-hidden": true, children: "\u2192" }))] }));
9
- return href ? (_jsx("a", { href: href, className: classNames, children: content })) : (_jsx("button", { className: classNames, disabled: disabled, children: content }));
8
+ return href ? (_jsx("a", { href: href, className: names, onClick: onClick, children: content })) : (_jsx("button", { className: names, disabled: disabled, onClick: onClick, children: content }));
10
9
  }
11
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/button/index.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC,6EAA6E;AAC7E,MAAM,UAAU,MAAM,CAAC,EACrB,QAAQ,EACR,IAAI,EACJ,OAAO,GAAG,OAAO,EACjB,IAAI,GAAG,QAAQ,EACf,KAAK,EACL,QAAQ,EACR,SAAS,GACQ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AAC,CACZ,YAAG,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,YAC9C,OAAO,GACN,CACL,CAAC,CAAC,CAAC,CACF,iBAAQ,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,YAC3D,OAAO,GACD,CACV,CAAC;AACJ,CAAC"}
@@ -8,6 +8,7 @@ export interface ButtonProperties {
8
8
  /** Adds an arrow that nudges right on hover. */
9
9
  arrow?: boolean;
10
10
  disabled?: boolean;
11
+ onClick?: () => void;
11
12
  className?: string;
12
13
  }
13
14
  //# sourceMappingURL=type.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../source/component/button/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,SAAS,CAAC;IACpB,mDAAmD;IACnD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IAC5B,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,OAAO,CAAC;IACpC,gDAAgD;IAChD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../source/component/button/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,SAAS,CAAC;IACpB,mDAAmD;IACnD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IAC5B,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,OAAO,CAAC;IACpC,gDAAgD;IAChD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
@@ -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,+BAsFhF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/contact/form/index.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4DAA4D,CAAC;AAExG,sGAAsG;AACtG,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,qBAAqB,+BAuGhF"}
@@ -7,17 +7,36 @@ import { CONTACT } from "@sharadox/sharadox-web-library/content/contact";
7
7
  import { SITE } from "@sharadox/sharadox-web-library/content/site";
8
8
  import { useSpotlight } from "@sharadox/pointer-web-library/spotlight";
9
9
  import { translate } from "@sharadox/internationalization-web-library/translate";
10
+ import { CONTACT_NEED_EVENT } from "@sharadox/sharadox-web-library/utility/contact-need";
10
11
  import styles from "./index.module.css";
11
12
  /** The enquiry form: honeypot and fill-time spam checks, inline errors, and an animated thank-you. */
12
13
  export function ContactForm({ locale, action: sendAction }) {
13
14
  const [state, action, pending] = useActionState(sendAction, { status: "idle" });
14
15
  // When the visitor started filling the form; bots submit faster than humans can.
15
16
  const startedAt = useRef(null);
17
+ const needs = useRef(null);
18
+ // Buttons elsewhere (the service cards) ask for choices: tick them and make them glow for a moment.
19
+ useEffect(() => {
20
+ const tick = (event) => {
21
+ for (const need of event.detail) {
22
+ const input = needs.current?.querySelector(`input[value="${need}"]`);
23
+ if (!input)
24
+ continue;
25
+ input.checked = true;
26
+ const chip = input.closest("label");
27
+ chip.removeAttribute("data-requested");
28
+ void chip.offsetWidth; // restart the glow when the same choice is asked for again
29
+ chip.setAttribute("data-requested", "");
30
+ }
31
+ };
32
+ addEventListener(CONTACT_NEED_EVENT, tick);
33
+ return () => removeEventListener(CONTACT_NEED_EVENT, tick);
34
+ }, []);
16
35
  useEffect(() => {
17
36
  // The form is always what mounts first, so the field exists.
18
37
  startedAt.current.value = String(Date.now());
19
38
  }, []);
20
39
  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("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")) }));
40
+ 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", { ref: needs, 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
41
  }
23
42
  //# 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,O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KAAK,CAAC,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,CAC3B,8BACG,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,OAAE,YAAG,IAAI,EAAE,UAAU,IAAI,CAAC,KAAK,EAAE,YAAG,IAAI,CAAC,KAAK,GAAK,SAC3F,CACJ,CAAC,CAAC,CAAC,CACF,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAChD,GACC,CACL,EACD,KAAC,MAAM,IAAC,IAAI,EAAC,OAAO,EAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,OAAO,YACpD,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,GACxE,KAtDL,MAAM,CAuDE,CACf,GACe,CACnB,CAAC;AACJ,CAAC"}
@@ -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:flex;flex-wrap:wrap;gap:8px;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)}.chip{position:relative}.chip input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}.chip span{display:inline-flex;align-items:center;gap:7px;padding:8px 13px;border-radius:99px;border:1px solid var(--line-2);font-size:13.5px;color:var(--foreground-2);transition:color .2s,background .2s,border-color .2s}.chip span::before{content:"+";font-family:var(--monospace);transition:transform .3s cubic-bezier(0.22, 1, 0.36, 1)}.chip:hover span{color:var(--foreground);border-color:color-mix(in srgb, var(--foreground) 30%, transparent)}.chip input:checked+span{background:var(--foreground);border-color:var(--foreground);color:var(--background)}.chip input:checked+span::before{transform:rotate(45deg)}.chip input:focus-visible+span{outline:2px solid var(--foreground);outline-offset:2px}.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}}
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:flex;flex-wrap:wrap;gap:8px;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)}.chip{position:relative}.chip input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}.chip span{display:inline-flex;align-items:center;gap:7px;padding:8px 13px;border-radius:99px;border:1px solid var(--line-2);font-size:13.5px;color:var(--foreground-2);transition:color .2s,background .2s,border-color .2s}.chip span::before{content:"+";font-family:var(--monospace);transition:transform .3s cubic-bezier(0.22, 1, 0.36, 1)}.chip:hover span{color:var(--foreground);border-color:color-mix(in srgb, var(--foreground) 30%, transparent)}.chip input:checked+span{background:var(--foreground);border-color:var(--foreground);color:var(--background)}.chip input:checked+span::before{transform:rotate(45deg)}.chip input:focus-visible+span{outline:2px solid var(--foreground);outline-offset:2px}.chip[data-requested] span{animation:requested 1.4s .5s cubic-bezier(0.22, 1, 0.36, 1) both}@keyframes requested{0%{box-shadow:0 0 0 0 color-mix(in srgb, var(--foreground) 55%, transparent)}100%{box-shadow:0 0 0 14px color-mix(in srgb, var(--foreground) 0%, transparent)}}.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}}
@@ -116,6 +116,18 @@
116
116
  outline: 2px solid var(--foreground);
117
117
  outline-offset: 2px;
118
118
  }
119
+ /* Ticked by a button elsewhere on the page: a ring that grows and fades, so the visitor sees what was chosen. */
120
+ &[data-requested] span {
121
+ animation: requested 1.4s 0.5s $ease both;
122
+ }
123
+ }
124
+ @keyframes requested {
125
+ 0% {
126
+ box-shadow: 0 0 0 0 tint(55%);
127
+ }
128
+ 100% {
129
+ box-shadow: 0 0 0 14px tint(0%);
130
+ }
119
131
  }
120
132
  .honeypot {
121
133
  position: absolute;
@@ -1 +1 @@
1
- .guide{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none;mask-image:radial-gradient(75% 70% at 60% 45%, #000 30%, transparent 85%)}.column{position:absolute;top:0;bottom:0;width:1px;background:linear-gradient(180deg, var(--line-2) 50%, transparent 0) 0 0/1px 10px repeat-y;transform-origin:top;animation:grow-down 1.6s cubic-bezier(0.22, 1, 0.36, 1) both}.row{position:absolute;left:0;right:0;height:1px;background:linear-gradient(90deg, var(--line-2) 50%, transparent 0) 0 0/10px 1px repeat-x;transform-origin:left;animation:grow-across 1.6s cubic-bezier(0.22, 1, 0.36, 1) both}@keyframes grow-down{from{transform:scaleY(0)}}@keyframes grow-across{from{transform:scaleX(0)}}.beam{position:absolute;opacity:0}.down{top:0;width:1px;height:120px;margin-left:-0.5px;background:linear-gradient(180deg, transparent, var(--foreground));animation:beam-down 7s 1.4s linear infinite}.across{left:0;height:1px;width:160px;margin-top:-0.5px;background:linear-gradient(90deg, transparent, var(--foreground));animation:beam-across 9s 2.2s linear infinite}.late{animation-delay:4.6s}@keyframes beam-down{0%{opacity:0;transform:translateY(-120px)}8%{opacity:1}45%,100%{opacity:0;transform:translateY(100vh)}}@keyframes beam-across{0%{opacity:0;transform:translateX(-160px)}8%{opacity:1}50%,100%{opacity:0;transform:translateX(100vw)}}@media(prefers-reduced-motion: reduce){.beam{display:none}}
1
+ .guide{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none;mask-image:radial-gradient(75% 70% at 60% 45%, #000 30%, transparent 85%)}.column{position:absolute;top:0;bottom:0;width:1px;background:linear-gradient(180deg, var(--line-2) 50%, transparent 0) 0 0/1px 10px repeat-y;transform-origin:top;animation:grow-down 1.6s cubic-bezier(0.22, 1, 0.36, 1) both}:global(:root[data-soft-navigation]) .column{animation-duration:0s !important;animation-delay:0s !important}.row{position:absolute;left:0;right:0;height:1px;background:linear-gradient(90deg, var(--line-2) 50%, transparent 0) 0 0/10px 1px repeat-x;transform-origin:left;animation:grow-across 1.6s cubic-bezier(0.22, 1, 0.36, 1) both}:global(:root[data-soft-navigation]) .row{animation-duration:0s !important;animation-delay:0s !important}@keyframes grow-down{from{transform:scaleY(0)}}@keyframes grow-across{from{transform:scaleX(0)}}.beam{position:absolute;opacity:0}.down{top:0;width:1px;height:120px;margin-left:-0.5px;background:linear-gradient(180deg, transparent, var(--foreground));animation:beam-down 7s 1.4s linear infinite}.across{left:0;height:1px;width:160px;margin-top:-0.5px;background:linear-gradient(90deg, transparent, var(--foreground));animation:beam-across 9s 2.2s linear infinite}.late{animation-delay:4.6s}@keyframes beam-down{0%{opacity:0;transform:translateY(-120px)}8%{opacity:1}45%,100%{opacity:0;transform:translateY(100vh)}}@keyframes beam-across{0%{opacity:0;transform:translateX(-160px)}8%{opacity:1}50%,100%{opacity:0;transform:translateX(100vw)}}@media(prefers-reduced-motion: reduce){.beam{display:none}}
@@ -16,6 +16,7 @@
16
16
  @include dashed(vertical, var(--line-2), 5px, 5px);
17
17
  transform-origin: top;
18
18
  animation: grow-down 1.6s $ease both;
19
+ @include skip-entrance;
19
20
  }
20
21
  .row {
21
22
  position: absolute;
@@ -25,6 +26,7 @@
25
26
  @include dashed(horizontal, var(--line-2), 5px, 5px);
26
27
  transform-origin: left;
27
28
  animation: grow-across 1.6s $ease both;
29
+ @include skip-entrance;
28
30
  }
29
31
  @keyframes grow-down {
30
32
  from {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/hero/index.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oDAAoD,CAAC;AAQzF,wGAAwG;AACxG,wBAAgB,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,cAAc,+BA8D9C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/hero/index.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oDAAoD,CAAC;AAQzF,wGAAwG;AACxG,wBAAgB,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,cAAc,+BAoE9C"}
@@ -1,6 +1,8 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { motion } from "motion/react";
4
+ import { useState } from "react";
5
+ import { isSoftNavigation } from "@sharadox/web-library/navigation/soft-navigation";
4
6
  import dynamic from "next/dynamic";
5
7
  import { Button } from "@sharadox/sharadox-web-library/component/button";
6
8
  import { Cross } from "@sharadox/sharadox-web-library/component/cross";
@@ -20,7 +22,9 @@ const Globe = dynamic(() => import("@sharadox/sharadox-web-library/component/glo
20
22
  const EASE = [0.22, 1, 0.36, 1];
21
23
  /** First screen, inside the grid frame: the slogan rising line by line beside the interactive globe. */
22
24
  export function Hero({ locale }) {
25
+ // After a language switch the page is rebuilt in place: show it as it was, without replaying the entrance.
26
+ const [settled] = useState(isSoftNavigation);
23
27
  const lines = SLOGAN_LINES[locale];
24
- return (_jsxs("section", { id: SECTION.home.id, className: styles.hero, children: [_jsx(HeroGuide, {}), _jsx(Cross, { corner: "bottom-left" }), _jsx(Cross, { corner: "bottom-right" }), _jsxs("div", { className: styles.copy, children: [_jsx(motion.div, { initial: { opacity: 0 }, animate: { opacity: 1 }, transition: { duration: 1, delay: 0.1 }, children: _jsxs(Eyebrow, { className: styles.eyebrow, children: [_jsx("span", { className: styles.live, "aria-hidden": true }), " ", translate(HERO.eyebrow, locale)] }) }), _jsx("h1", { className: styles.title, children: lines.map((line, index) => (_jsx("span", { className: styles.line, children: _jsx(motion.span, { className: index === lines.length - 1 ? `${styles.lineInner} ${styles.dim}` : styles.lineInner, initial: { y: "110%" }, animate: { y: "0%" }, transition: { duration: 1.1, delay: 0.2 + index * 0.12, ease: EASE }, children: line }) }, index))) }), _jsx(motion.p, { className: styles.subtitle, initial: { opacity: 0, y: 14 }, animate: { opacity: 1, y: 0 }, transition: { duration: 0.9, delay: 0.75, ease: EASE }, children: translate(HERO.subtitle, locale) }), _jsxs(motion.div, { className: styles.actions, initial: { opacity: 0, y: 14 }, animate: { opacity: 1, y: 0 }, transition: { duration: 0.9, delay: 0.9, ease: EASE }, children: [_jsx(Button, { href: `#${SECTION.contact.id}`, arrow: true, children: translate(ACTION.startProject, locale) }), _jsx(Button, { href: `#${SECTION.services.id}`, variant: "ghost", children: translate(HERO.secondary, locale) })] })] }), _jsxs(motion.div, { className: styles.globe, initial: { opacity: 0, scale: 0.92 }, animate: { opacity: 1, scale: 1 }, transition: { duration: 1.8, delay: 0.3, ease: EASE }, children: [_jsx(Globe, {}), _jsx("span", { className: `${styles.hint} monospace`, "aria-hidden": true, children: translate(HERO.drag, locale) })] })] }));
28
+ return (_jsxs("section", { id: SECTION.home.id, className: styles.hero, children: [_jsx(HeroGuide, {}), _jsx(Cross, { corner: "bottom-left" }), _jsx(Cross, { corner: "bottom-right" }), _jsxs("div", { className: styles.copy, children: [_jsx(motion.div, { initial: settled ? false : { opacity: 0 }, animate: { opacity: 1 }, transition: { duration: 1, delay: 0.1 }, children: _jsxs(Eyebrow, { className: styles.eyebrow, children: [_jsx("span", { className: styles.live, "aria-hidden": true }), " ", translate(HERO.eyebrow, locale)] }) }), _jsx("h1", { className: styles.title, children: lines.map((line, index) => (_jsx("span", { className: styles.line, children: _jsx(motion.span, { className: index === lines.length - 1 ? `${styles.lineInner} ${styles.dim}` : styles.lineInner, initial: settled ? false : { y: "110%" }, animate: { y: "0%" }, transition: { duration: 1.1, delay: 0.2 + index * 0.12, ease: EASE }, children: line }) }, index))) }), _jsx(motion.p, { className: styles.subtitle, initial: settled ? false : { opacity: 0, y: 14 }, animate: { opacity: 1, y: 0 }, transition: { duration: 0.9, delay: 0.75, ease: EASE }, children: translate(HERO.subtitle, locale) }), _jsxs(motion.div, { className: styles.actions, initial: settled ? false : { opacity: 0, y: 14 }, animate: { opacity: 1, y: 0 }, transition: { duration: 0.9, delay: 0.9, ease: EASE }, children: [_jsx(Button, { href: `#${SECTION.contact.id}`, arrow: true, children: translate(ACTION.startProject, locale) }), _jsx(Button, { href: `#${SECTION.services.id}`, variant: "ghost", children: translate(HERO.secondary, locale) })] })] }), _jsxs(motion.div, { className: styles.globe, initial: settled ? false : { opacity: 0, scale: 0.92 }, animate: { opacity: 1, scale: 1 }, transition: { duration: 1.8, delay: 0.3, ease: EASE }, children: [_jsx(Globe, {}), _jsx("span", { className: `${styles.hint} monospace`, "aria-hidden": true, children: translate(HERO.drag, locale) })] })] }));
25
29
  }
26
30
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/hero/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,iDAAiD,CAAC;AACzE,OAAO,EAAE,KAAK,EAAE,MAAM,gDAAgD,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,kDAAkD,CAAC;AAC3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,4DAA4D,CAAC;AAC9F,OAAO,EAAE,SAAS,EAAE,MAAM,qDAAqD,CAAC;AAChF,OAAO,EAAE,IAAI,EAAE,MAAM,6CAA6C,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,EAAE,MAAM,EAAE,MAAM,+CAA+C,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,MAA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,EAAE,GAAG,MAAM,CAAC,IAAI,YAAY,iCACxC,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,GACxB,IACI,IACL,CACX,CAAC;AACJ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/not-found/index.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yDAAyD,CAAC;AAclG;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,kBAAkB,+BA2D5D"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/not-found/index.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yDAAyD,CAAC;AAclG;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,kBAAkB,+BA6D5D"}
@@ -1,6 +1,8 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { motion } from "motion/react";
4
+ import { useState } from "react";
5
+ import { isSoftNavigation } from "@sharadox/web-library/navigation/soft-navigation";
4
6
  import dynamic from "next/dynamic";
5
7
  import { translate } from "@sharadox/internationalization-web-library/translate";
6
8
  import { Button } from "@sharadox/sharadox-web-library/component/button";
@@ -17,8 +19,8 @@ const Globe = dynamic(() => import("@sharadox/sharadox-web-library/component/glo
17
19
  loading: () => _jsx(GlobePlaceholder, {}),
18
20
  });
19
21
  const EASE = [0.22, 1, 0.36, 1];
20
- const rise = (delay) => ({
21
- initial: { opacity: 0, y: 18 },
22
+ const rise = (delay, settled) => ({
23
+ initial: settled ? false : { opacity: 0, y: 18 },
22
24
  animate: { opacity: 1, y: 0 },
23
25
  transition: { duration: 0.9, delay, ease: EASE },
24
26
  });
@@ -30,6 +32,8 @@ const rise = (delay) => ({
30
32
  * <NotFound locale="en" path="/en/old-page" />
31
33
  */
32
34
  export function NotFound({ locale, path }) {
33
- return (_jsxs(Section, { className: styles.notFound, padded: false, children: [_jsx("div", { className: styles.glow, "aria-hidden": true }), _jsx(motion.div, { ...rise(0.05), children: _jsxs(Eyebrow, { className: styles.eyebrow, children: [_jsx("span", { className: styles.live, "aria-hidden": true }), " ", separate(translate(NOT_FOUND.error, locale), "404")] }) }), _jsxs("div", { className: styles.code, "aria-hidden": true, children: [_jsx(motion.span, { className: styles.digit, ...rise(0.15), children: "4" }), _jsx(motion.span, { className: styles.world, initial: { opacity: 0, scale: 0.6, rotate: -20 }, animate: { opacity: 1, scale: 1, rotate: 0 }, transition: { duration: 1.6, delay: 0.25, ease: EASE }, children: _jsx(Globe, {}) }), _jsx(motion.span, { className: styles.digit, ...rise(0.35), children: "4" })] }), _jsx("h1", { className: styles.title, children: _jsx("span", { className: styles.line, children: _jsx(motion.span, { className: styles.lineInner, initial: { y: "110%" }, animate: { y: "0%" }, transition: { duration: 1.1, delay: 0.5, ease: EASE }, children: translate(NOT_FOUND.heading, locale) }) }) }), _jsx(motion.p, { className: styles.text, ...rise(0.7), children: translate(NOT_FOUND.text, locale) }), _jsxs(motion.p, { className: `${styles.request} monospace`, ...rise(0.8), children: [_jsx("span", { className: styles.method, children: "GET" }), _jsx("span", { className: styles.path, children: path }), _jsx("span", { className: styles.status, children: "\u2192 404" }), _jsx("span", { className: styles.caret, "aria-hidden": true })] }), _jsxs(motion.div, { className: styles.actions, ...rise(0.9), children: [_jsx(Button, { href: `/${locale}`, arrow: true, children: translate(NOT_FOUND.home, locale) }), _jsx(Button, { href: `/${locale}#${SECTION.contact.id}`, variant: "ghost", children: translate(ACTION.startProject, locale) })] }), _jsxs(motion.p, { className: `${styles.explore} monospace`, ...rise(1), children: [translate(NOT_FOUND.explore, locale), " \u2193"] })] }));
35
+ // After a language switch the page is rebuilt in place: show it as it was, without replaying the entrance.
36
+ const [settled] = useState(isSoftNavigation);
37
+ return (_jsxs(Section, { className: styles.notFound, padded: false, children: [_jsx("div", { className: styles.glow, "aria-hidden": true }), _jsx(motion.div, { ...rise(0.05, settled), children: _jsxs(Eyebrow, { className: styles.eyebrow, children: [_jsx("span", { className: styles.live, "aria-hidden": true }), " ", separate(translate(NOT_FOUND.error, locale), "404")] }) }), _jsxs("div", { className: styles.code, "aria-hidden": true, children: [_jsx(motion.span, { className: styles.digit, ...rise(0.15, settled), children: "4" }), _jsx(motion.span, { className: styles.world, initial: settled ? false : { opacity: 0, scale: 0.6, rotate: -20 }, animate: { opacity: 1, scale: 1, rotate: 0 }, transition: { duration: 1.6, delay: 0.25, ease: EASE }, children: _jsx(Globe, {}) }), _jsx(motion.span, { className: styles.digit, ...rise(0.35, settled), children: "4" })] }), _jsx("h1", { className: styles.title, children: _jsx("span", { className: styles.line, children: _jsx(motion.span, { className: styles.lineInner, initial: settled ? false : { y: "110%" }, animate: { y: "0%" }, transition: { duration: 1.1, delay: 0.5, ease: EASE }, children: translate(NOT_FOUND.heading, locale) }) }) }), _jsx(motion.p, { className: styles.text, ...rise(0.7, settled), children: translate(NOT_FOUND.text, locale) }), _jsxs(motion.p, { className: `${styles.request} monospace`, ...rise(0.8, settled), children: [_jsx("span", { className: styles.method, children: "GET" }), _jsx("span", { className: styles.path, children: path }), _jsx("span", { className: styles.status, children: "\u2192 404" }), _jsx("span", { className: styles.caret, "aria-hidden": true })] }), _jsxs(motion.div, { className: styles.actions, ...rise(0.9, settled), children: [_jsx(Button, { href: `/${locale}`, arrow: true, children: translate(NOT_FOUND.home, locale) }), _jsx(Button, { href: `/${locale}#${SECTION.contact.id}`, variant: "ghost", children: translate(ACTION.startProject, locale) })] }), _jsxs(motion.p, { className: `${styles.explore} monospace`, ...rise(1, settled), children: [translate(NOT_FOUND.explore, locale), " \u2193"] })] }));
34
38
  }
35
39
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/not-found/index.tsx"],"names":[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I,YAAG,IAAI,GAAQ,EAC3C,eAAM,SAAS,EAAE,MAAM,CAAC,MAAM,2BAAc,EAC5C,eAAM,SAAS,EAAE,MAAM,CAAC,KAAK,wBAAgB,IACpC,EACX,MAAC,MAAM,CAAC,GAAG,IAAC,SAAS,EAAE,MAAM,CAAC,OAAO,KAAM,IAAI,CAAC,GAAG,EAAE,OAAO,CAAC,aAC3D,KAAC,MAAM,IAAC,IAAI,EAAE,IAAI,MAAM,EAAE,EAAE,KAAK,kBAC9B,SAAS,CAAC,SAAS,CAAC,IAAI,EAAE,MAAM,CAAC,GAC3B,EACT,KAAC,MAAM,IAAC,IAAI,EAAE,IAAI,MAAM,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE,EAAE,EAAE,OAAO,EAAC,OAAO,YAC9D,SAAS,CAAC,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,GAChC,IACE,EACb,MAAC,MAAM,CAAC,CAAC,IAAC,SAAS,EAAE,GAAG,MAAM,CAAC,OAAO,YAAY,KAAM,IAAI,CAAC,CAAC,EAAE,OAAO,CAAC,aACrE,SAAS,CAAC,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC,eAC5B,IACH,CACX,CAAC;AACJ,CAAC"}
@@ -1 +1 @@
1
- .indicator{--page: 0;--within: 0;position:fixed;z-index:40;right:max(14px,(100vw - var(--maximum-width))/2 - 92px);top:50%;transform:translateY(-50%);padding:14px 0;animation:enter 1s 1.2s cubic-bezier(0.22, 1, 0.36, 1) both}.indicator ol{position:relative;display:grid;gap:14px;margin:0;padding:0;list-style:none}@media(max-width: 1180px){.indicator{display:none}}@keyframes enter{from{opacity:0;transform:translate(16px, -50%)}}.rail{position:absolute;right:0;top:0;bottom:0;width:1px;background:linear-gradient(180deg, var(--line-2) 50%, transparent 0) 0 0/1px 6px repeat-y}.rail span{position:absolute;inset:0 0 auto;height:calc(var(--page)*100%);background:linear-gradient(180deg, transparent, var(--foreground));box-shadow:0 0 8px color-mix(in srgb, var(--foreground) 60%, transparent)}.indicator a{position:relative;display:flex;align-items:center;justify-content:flex-end;gap:10px;height:26px;padding-right:0;color:var(--foreground-3);transition:color .3s}.indicator a:hover{color:var(--foreground)}.number{font-size:10.5px;letter-spacing:.04em;transition:color .3s}.tick{position:relative;width:12px;height:1px;background:var(--line-2);transition:width .6s cubic-bezier(0.22, 1, 0.36, 1),background .3s}.tick span{position:absolute;inset:0 auto 0 0;width:0;background:var(--foreground)}.name{position:absolute;right:64px;padding:5px 11px;border-radius:99px;border:1px solid var(--line-2);background:color-mix(in srgb, var(--background) 75%, transparent);backdrop-filter:blur(10px);color:var(--foreground);font-size:12.5px;font-weight:500;letter-spacing:-0.01em;white-space:nowrap;opacity:0;transform:translateX(8px);filter:blur(4px);pointer-events:none;transition:opacity .35s,transform .5s cubic-bezier(0.22, 1, 0.36, 1),filter .35s}.indicator:hover .name{opacity:1;transform:none;filter:none}.current{color:var(--foreground) !important}.current .tick{width:34px;background:color-mix(in srgb, var(--foreground) 25%, transparent)}.current .tick span{width:calc(var(--within)*100%);box-shadow:0 0 8px color-mix(in srgb, var(--foreground) 70%, transparent)}.current .name{animation:flash 2.2s cubic-bezier(0.22, 1, 0.36, 1) both}@keyframes flash{0%{opacity:0;transform:translateX(10px);filter:blur(4px)}15%,70%{opacity:1;transform:none;filter:none}100%{opacity:0;transform:translateX(4px);filter:blur(2px)}}.indicator:hover .current .name{animation:none}
1
+ .indicator{--page: 0;--within: 0;position:fixed;z-index:40;right:max(14px,(100vw - var(--maximum-width))/2 - 92px);top:50%;transform:translateY(-50%);padding:14px 0;animation:enter 1s 1.2s cubic-bezier(0.22, 1, 0.36, 1) both}:global(:root[data-soft-navigation]) .indicator{animation-duration:0s !important;animation-delay:0s !important}.indicator ol{position:relative;display:grid;gap:14px;margin:0;padding:0;list-style:none}@media(max-width: 1180px){.indicator{display:none}}@keyframes enter{from{opacity:0;transform:translate(16px, -50%)}}.rail{position:absolute;right:0;top:0;bottom:0;width:1px;background:linear-gradient(180deg, var(--line-2) 50%, transparent 0) 0 0/1px 6px repeat-y}.rail span{position:absolute;inset:0 0 auto;height:calc(var(--page)*100%);background:linear-gradient(180deg, transparent, var(--foreground));box-shadow:0 0 8px color-mix(in srgb, var(--foreground) 60%, transparent)}.indicator a{position:relative;display:flex;align-items:center;justify-content:flex-end;gap:10px;height:26px;padding-right:0;color:var(--foreground-3);transition:color .3s}.indicator a:hover{color:var(--foreground)}.number{font-size:10.5px;letter-spacing:.04em;transition:color .3s}.tick{position:relative;width:12px;height:1px;background:var(--line-2);transition:width .6s cubic-bezier(0.22, 1, 0.36, 1),background .3s}.tick span{position:absolute;inset:0 auto 0 0;width:0;background:var(--foreground)}.name{position:absolute;right:64px;padding:5px 11px;border-radius:99px;border:1px solid var(--line-2);background:color-mix(in srgb, var(--background) 75%, transparent);backdrop-filter:blur(10px);color:var(--foreground);font-size:12.5px;font-weight:500;letter-spacing:-0.01em;white-space:nowrap;opacity:0;transform:translateX(8px);filter:blur(4px);pointer-events:none;transition:opacity .35s,transform .5s cubic-bezier(0.22, 1, 0.36, 1),filter .35s}.indicator:hover .name{opacity:1;transform:none;filter:none}.current{color:var(--foreground) !important}.current .tick{width:34px;background:color-mix(in srgb, var(--foreground) 25%, transparent)}.current .tick span{width:calc(var(--within)*100%);box-shadow:0 0 8px color-mix(in srgb, var(--foreground) 70%, transparent)}.current .name{animation:flash 2.2s cubic-bezier(0.22, 1, 0.36, 1) both}@keyframes flash{0%{opacity:0;transform:translateX(10px);filter:blur(4px)}15%,70%{opacity:1;transform:none;filter:none}100%{opacity:0;transform:translateX(4px);filter:blur(2px)}}.indicator:hover .current .name{animation:none}
@@ -10,6 +10,7 @@
10
10
  transform: translateY(-50%);
11
11
  padding: 14px 0;
12
12
  animation: enter 1s 1.2s $ease both;
13
+ @include skip-entrance;
13
14
  ol {
14
15
  position: relative;
15
16
  display: grid;
@@ -0,0 +1,10 @@
1
+ import type { ServiceActionsProperties } from "@sharadox/sharadox-web-library/component/service-action/type";
2
+ /**
3
+ * A service card's calls to action: each scrolls to the contact form and ticks its choice there. The first is solid,
4
+ * the others outlined.
5
+ *
6
+ * @example
7
+ * <ServiceActions locale="en" actions={[{ need: "website", label: { en: "Get a Website", pt: "Pedir um Website" } }]} />
8
+ */
9
+ export declare function ServiceActions({ locale, actions }: ServiceActionsProperties): import("react").JSX.Element;
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/service-action/index.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,8DAA8D,CAAC;AAE7G;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,wBAAwB,+BAiB3E"}
@@ -0,0 +1,18 @@
1
+ "use client";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { translate } from "@sharadox/internationalization-web-library/translate";
4
+ import { Button } from "@sharadox/sharadox-web-library/component/button";
5
+ import { SECTION } from "@sharadox/sharadox-web-library/content/section";
6
+ import { requestContactNeeds } from "@sharadox/sharadox-web-library/utility/contact-need";
7
+ import styles from "./index.module.css";
8
+ /**
9
+ * A service card's calls to action: each scrolls to the contact form and ticks its choice there. The first is solid,
10
+ * the others outlined.
11
+ *
12
+ * @example
13
+ * <ServiceActions locale="en" actions={[{ need: "website", label: { en: "Get a Website", pt: "Pedir um Website" } }]} />
14
+ */
15
+ export function ServiceActions({ locale, actions }) {
16
+ return (_jsx("div", { className: styles.actions, children: actions.map((action, index) => (_jsx(Button, { href: `#${SECTION.contact.id}`, size: "small", variant: index === 0 ? "solid" : "ghost", arrow: index === 0, onClick: () => requestContactNeeds([action.need]), children: translate(action.label, locale) }, action.need))) }));
17
+ }
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/service-action/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,EAAE,MAAM,EAAE,MAAM,iDAAiD,CAAC;AACzE,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AACzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,qDAAqD,CAAC;AAC1F,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC;;;;;;GAMG;AACH,MAAM,UAAU,cAAc,CAAC,EAAE,MAAM,EAAE,OAAO,EAA4B;IAC1E,OAAO,CACL,cAAK,SAAS,EAAE,MAAM,CAAC,OAAO,YAC3B,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,CAC9B,KAAC,MAAM,IAEL,IAAI,EAAE,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE,EAAE,EAC9B,IAAI,EAAC,OAAO,EACZ,OAAO,EAAE,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,EACxC,KAAK,EAAE,KAAK,KAAK,CAAC,EAClB,OAAO,EAAE,GAAG,EAAE,CAAC,mBAAmB,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,YAEhD,SAAS,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,IAP3B,MAAM,CAAC,IAAI,CAQT,CACV,CAAC,GACE,CACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1 @@
1
+ .actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}
@@ -0,0 +1,6 @@
1
+ .actions {
2
+ display: flex;
3
+ flex-wrap: wrap;
4
+ gap: 10px;
5
+ margin-top: 24px;
6
+ }
@@ -0,0 +1,7 @@
1
+ import type { ServiceAction } from "@sharadox/sharadox-web-library/content/services/type";
2
+ import type { Locale } from "@sharadox/sharadox-web-library/content/locale/type";
3
+ export interface ServiceActionsProperties {
4
+ locale: Locale;
5
+ actions: readonly ServiceAction[];
6
+ }
7
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../source/component/service-action/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sDAAsD,CAAC;AAC1F,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oDAAoD,CAAC;AAEjF,MAAM,WAAW,wBAAwB;IACvC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,SAAS,aAAa,EAAE,CAAC;CACnC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.js","sourceRoot":"","sources":["../../../source/component/service-action/type.ts"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- .index{position:relative;width:min(100% - 2*var(--gutter),var(--maximum-width));margin:0 auto;display:grid;grid-template-columns:repeat(5, 1fr);border:1px solid var(--line)}@media(max-width: 960px){.index{grid-template-columns:repeat(2, 1fr)}}.cell{position:relative;display:grid;align-content:start;gap:6px;padding:22px 22px 24px;overflow:hidden;animation:rise .9s cubic-bezier(0.22, 1, 0.36, 1) both}.cell:not(:last-of-type){border-right:1px solid var(--line)}.cell::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg, color-mix(in srgb, var(--foreground) 7%, transparent), transparent);opacity:0;transition:opacity .4s}.cell:hover::before{opacity:1}.cell:hover .arrow{opacity:1;transform:none}@media(max-width: 960px){.cell{border-right:0 !important;border-bottom:1px solid var(--line)}.cell:nth-of-type(odd){border-right:1px solid var(--line) !important}.cell:last-of-type{grid-column:span 2;border-bottom:0;border-right:0 !important}}@keyframes rise{from{opacity:0;transform:translateY(10px)}}.number{font-size:11.5px;color:var(--foreground-3)}.title{font-weight:600;letter-spacing:-0.02em;font-size:15.5px}.kinds{font-size:11.5px;color:var(--foreground-2)}.arrow{position:absolute;top:18px;right:18px;font-size:14px;opacity:0;transform:translate(-4px, -4px);transition:opacity .3s,transform .4s cubic-bezier(0.22, 1, 0.36, 1)}
1
+ .index{position:relative;width:min(100% - 2*var(--gutter),var(--maximum-width));margin:0 auto;display:grid;grid-template-columns:repeat(5, 1fr);border:1px solid var(--line)}@media(max-width: 960px){.index{grid-template-columns:repeat(2, 1fr)}}.cell{position:relative;display:grid;align-content:start;gap:6px;padding:22px 22px 24px;overflow:hidden;animation:rise .9s cubic-bezier(0.22, 1, 0.36, 1) both}:global(:root[data-soft-navigation]) .cell{animation-duration:0s !important;animation-delay:0s !important}.cell:not(:last-of-type){border-right:1px solid var(--line)}.cell::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg, color-mix(in srgb, var(--foreground) 7%, transparent), transparent);opacity:0;transition:opacity .4s}.cell:hover::before{opacity:1}.cell:hover .arrow{opacity:1;transform:none}@media(max-width: 960px){.cell{border-right:0 !important;border-bottom:1px solid var(--line)}.cell:nth-of-type(odd){border-right:1px solid var(--line) !important}.cell:last-of-type{grid-column:span 2;border-bottom:0;border-right:0 !important}}@keyframes rise{from{opacity:0;transform:translateY(10px)}}.number{font-size:11.5px;color:var(--foreground-3)}.title{font-weight:600;letter-spacing:-0.02em;font-size:15.5px}.kinds{font-size:11.5px;color:var(--foreground-2)}.arrow{position:absolute;top:18px;right:18px;font-size:14px;opacity:0;transform:translate(-4px, -4px);transition:opacity .3s,transform .4s cubic-bezier(0.22, 1, 0.36, 1)}
@@ -19,6 +19,7 @@
19
19
  padding: 22px 22px 24px;
20
20
  overflow: hidden;
21
21
  animation: rise 0.9s $ease both;
22
+ @include skip-entrance;
22
23
  &:not(:last-of-type) {
23
24
  border-right: 1px solid var(--line);
24
25
  }
@@ -1 +1 @@
1
- .visual{position:absolute;inset:0;display:grid;grid-template-columns:1.2fr 1fr;align-items:center;perspective:1000px}.scene{position:relative;justify-self:center;width:150px;height:150px;transform-style:preserve-3d;transform:rotateX(62deg) rotateZ(-38deg);animation:turn 16s linear infinite}@keyframes turn{to{transform:rotateX(62deg) rotateZ(322deg)}}.plate{position:absolute;inset:0;margin:auto;border-radius:16px;border:1px solid var(--foreground-3);background:color-mix(in srgb, var(--foreground) 6%, transparent);box-shadow:0 0 40px -10px color-mix(in srgb, var(--foreground) 30%, transparent)}.plate0{width:150px;height:150px;transform:translateZ(0)}.on .plate0{animation:lift-0 1.4s cubic-bezier(0.22, 1, 0.36, 1) both}.plate1{width:104px;height:104px;transform:translateZ(34px);background:color-mix(in srgb, var(--foreground) 12%, transparent)}.on .plate1{animation:lift-1 1.4s .15s cubic-bezier(0.22, 1, 0.36, 1) both}.plate2{width:58px;height:58px;transform:translateZ(68px);background:var(--foreground);border-color:var(--foreground)}.on .plate2{animation:lift-2 1.4s .3s cubic-bezier(0.22, 1, 0.36, 1) both}@keyframes lift-0{from{transform:translateZ(0);opacity:0}}@keyframes lift-1{from{transform:translateZ(0);opacity:0}}@keyframes lift-2{from{transform:translateZ(0);opacity:0}}.ring{position:absolute;inset:0;margin:auto;width:58px;height:58px;border-radius:16px;border:1px solid var(--foreground);transform:translateZ(68px);animation:ripple 2.6s ease-out infinite}@keyframes ripple{from{transform:translateZ(68px) scale(1);opacity:.8}to{transform:translateZ(68px) scale(3.2);opacity:0}}.legend{margin:0;display:grid;gap:14px;padding-right:22px}.stage{padding-left:12px;border-left:1px dashed var(--line-2)}.stage dt{font-size:10.5px;text-transform:uppercase;letter-spacing:.05em;color:var(--foreground-3)}.stage dd{margin:0;font-size:22px;font-weight:600;letter-spacing:-0.03em;font-variant-numeric:tabular-nums}
1
+ .visual{position:absolute;inset:0;display:grid;grid-template-columns:1.2fr 1fr;align-items:center;perspective:1000px}.scene{position:relative;justify-self:center;width:150px;height:150px;transform-style:preserve-3d;transform:rotateX(62deg) rotateZ(-38deg);animation:turn 16s linear infinite}@keyframes turn{to{transform:rotateX(62deg) rotateZ(322deg)}}.plate{position:absolute;inset:0;margin:auto;border-radius:16px;border:1px solid var(--foreground-3);background:color-mix(in srgb, var(--foreground) 6%, transparent);box-shadow:0 0 40px -10px color-mix(in srgb, var(--foreground) 30%, transparent)}.plate0{width:150px;height:150px;transform:translateZ(0)}.on .plate0{animation:lift-0 1.4s cubic-bezier(0.22, 1, 0.36, 1) both}:global(:root[data-soft-navigation]) .on .plate0{animation-duration:0s !important;animation-delay:0s !important}.plate1{width:104px;height:104px;transform:translateZ(34px);background:color-mix(in srgb, var(--foreground) 12%, transparent)}.on .plate1{animation:lift-1 1.4s .15s cubic-bezier(0.22, 1, 0.36, 1) both}:global(:root[data-soft-navigation]) .on .plate1{animation-duration:0s !important;animation-delay:0s !important}.plate2{width:58px;height:58px;transform:translateZ(68px);background:var(--foreground);border-color:var(--foreground)}.on .plate2{animation:lift-2 1.4s .3s cubic-bezier(0.22, 1, 0.36, 1) both}:global(:root[data-soft-navigation]) .on .plate2{animation-duration:0s !important;animation-delay:0s !important}@keyframes lift-0{from{transform:translateZ(0);opacity:0}}@keyframes lift-1{from{transform:translateZ(0);opacity:0}}@keyframes lift-2{from{transform:translateZ(0);opacity:0}}.ring{position:absolute;inset:0;margin:auto;width:58px;height:58px;border-radius:16px;border:1px solid var(--foreground);transform:translateZ(68px);animation:ripple 2.6s ease-out infinite}@keyframes ripple{from{transform:translateZ(68px) scale(1);opacity:.8}to{transform:translateZ(68px) scale(3.2);opacity:0}}.legend{margin:0;display:grid;gap:14px;padding-right:22px}.stage{padding-left:12px;border-left:1px dashed var(--line-2)}.stage dt{font-size:10.5px;text-transform:uppercase;letter-spacing:.05em;color:var(--foreground-3)}.stage dd{margin:0;font-size:22px;font-weight:600;letter-spacing:-0.03em;font-variant-numeric:tabular-nums}
@@ -37,6 +37,7 @@
37
37
  transform: translateZ(0);
38
38
  .on & {
39
39
  animation: lift-0 1.4s $ease both;
40
+ @include skip-entrance;
40
41
  }
41
42
  }
42
43
  .plate1 {
@@ -46,6 +47,7 @@
46
47
  background: tint(12%);
47
48
  .on & {
48
49
  animation: lift-1 1.4s 0.15s $ease both;
50
+ @include skip-entrance;
49
51
  }
50
52
  }
51
53
  .plate2 {
@@ -56,6 +58,7 @@
56
58
  border-color: var(--foreground);
57
59
  .on & {
58
60
  animation: lift-2 1.4s 0.3s $ease both;
61
+ @include skip-entrance;
59
62
  }
60
63
  }
61
64
  @keyframes lift-0 {
@@ -3,5 +3,5 @@ import type { CellProperties } from "@sharadox/sharadox-web-library/component/se
3
3
  * One discipline in the services grid: its live visual (which tilts in 3D towards the pointer), number, kinds and
4
4
  * copy, with a light that follows the pointer.
5
5
  */
6
- export declare function Cell({ id, visual, number, kinds, title, lead, text, className }: CellProperties): import("react").JSX.Element;
6
+ export declare function Cell({ id, visual, number, kinds, title, lead, text, actions, className }: CellProperties): import("react").JSX.Element;
7
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/services/cell/index.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6DAA6D,CAAC;AAElG;;;GAGG;AACH,wBAAgB,IAAI,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,cAAc,+BAyB/F"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/services/cell/index.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6DAA6D,CAAC;AAElG;;;GAGG;AACH,wBAAgB,IAAI,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,cAAc,+BA0BxG"}
@@ -8,9 +8,9 @@ import styles from "./index.module.css";
8
8
  * One discipline in the services grid: its live visual (which tilts in 3D towards the pointer), number, kinds and
9
9
  * copy, with a light that follows the pointer.
10
10
  */
11
- export function Cell({ id, visual, number, kinds, title, lead, text, className }) {
11
+ export function Cell({ id, visual, number, kinds, title, lead, text, actions, className }) {
12
12
  const spotlight = useSpotlight();
13
13
  const tilt = useTilt(5);
14
- return (_jsxs("article", { id: id, ref: spotlight, className: classNames(styles.cell, className), children: [_jsx("div", { ref: tilt, className: styles.visual, children: _jsx("div", { className: styles.stage, children: visual }) }), _jsxs("div", { className: styles.copy, children: [_jsxs("div", { className: styles.meta, children: [_jsx("span", { className: `monospace ${styles.number}`, children: number }), _jsx("ul", { className: styles.kinds, children: kinds.map((kind) => (_jsx("li", { className: "monospace", children: kind }, kind))) })] }), _jsx("h3", { children: title }), _jsx("p", { className: styles.lead, children: lead }), _jsx("p", { children: text })] })] }));
14
+ return (_jsxs("article", { id: id, ref: spotlight, className: classNames(styles.cell, className), children: [_jsx("div", { ref: tilt, className: styles.visual, children: _jsx("div", { className: styles.stage, children: visual }) }), _jsxs("div", { className: styles.copy, children: [_jsxs("div", { className: styles.meta, children: [_jsx("span", { className: `monospace ${styles.number}`, children: number }), _jsx("ul", { className: styles.kinds, children: kinds.map((kind) => (_jsx("li", { className: "monospace", children: kind }, kind))) })] }), _jsx("h3", { children: title }), _jsx("p", { className: styles.lead, children: lead }), _jsx("p", { children: text }), actions] })] }));
15
15
  }
16
16
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/services/cell/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAC;AAC7D,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC;;;GAGG;AACH,MAAM,UAAU,IAAI,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,SA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AAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAkB;IACvG,MAAM,SAAS,GAAG,YAAY,EAAe,CAAC;IAC9C,MAAM,IAAI,GAAG,OAAO,CAAiB,CAAC,CAAC,CAAC;IACxC,OAAO,CACL,mBAAS,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI,EAAE,SAAS,CAAC,aAC5E,cAAK,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,CAAC,MAAM,YACtC,cAAK,SAAS,EAAE,MAAM,CAAC,KAAK,YAAG,MAAM,GAAO,GACxC,EACN,eAAK,SAAS,EAAE,MAAM,CAAC,IAAI,aACzB,eAAK,SAAS,EAAE,MAAM,CAAC,IAAI,aACzB,eAAM,SAAS,EAAE,aAAa,MAAM,CAAC,MAAM,EAAE,YAAG,MAAM,GAAQ,EAC9D,aAAI,SAAS,EAAE,MAAM,CAAC,KAAK,YACxB,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CACnB,aAAe,SAAS,EAAC,WAAW,YACjC,IAAI,IADE,IAAI,CAER,CACN,CAAC,GACC,IACD,EACN,uBAAK,KAAK,GAAM,EAChB,YAAG,SAAS,EAAE,MAAM,CAAC,IAAI,YAAG,IAAI,GAAK,EACrC,sBAAI,IAAI,GAAK,EACZ,OAAO,IACJ,IACE,CACX,CAAC;AACJ,CAAC"}
@@ -9,6 +9,8 @@ export interface CellProperties {
9
9
  title: string;
10
10
  lead: string;
11
11
  text: string;
12
+ /** Calls to action under the copy. */
13
+ actions?: ReactNode;
12
14
  className?: string;
13
15
  }
14
16
  //# sourceMappingURL=type.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../source/component/services/cell/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,cAAc;IAC7B,qDAAqD;IACrD,EAAE,EAAE,MAAM,CAAC;IACX,8BAA8B;IAC9B,MAAM,EAAE,SAAS,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../source/component/services/cell/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,cAAc;IAC7B,qDAAqD;IACrD,EAAE,EAAE,MAAM,CAAC;IACX,8BAA8B;IAC9B,MAAM,EAAE,SAAS,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,sCAAsC;IACtC,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
@@ -1 +1 @@
1
- .visual{position:absolute;inset:0;display:grid;place-items:center;perspective:900px}.scene{position:relative;width:150px;height:190px;transform-style:preserve-3d;animation:sway 10s ease-in-out infinite}@keyframes sway{0%,100%{transform:rotateX(12deg) rotateY(-16deg)}50%{transform:rotateX(6deg) rotateY(14deg)}}.card{position:absolute;inset:0;border-radius:14px;border:1px solid var(--line-2);background:var(--card);box-shadow:0 30px 60px -20px color-mix(in srgb, var(--background) 90%, transparent)}.palette{transform:translate3d(-110px, 6px, -70px) rotateY(24deg);display:grid;grid-template-rows:repeat(4, 1fr);padding:10px;gap:6px}.palette span{border-radius:6px;border:1px solid var(--line);transform-origin:left}.on .palette span{animation:fill-in .8s cubic-bezier(0.22, 1, 0.36, 1) both}@keyframes fill-in{from{transform:scaleX(0)}}.type{transform:translate3d(110px, -6px, -50px) rotateY(-24deg);display:grid;align-content:center;justify-items:center;gap:4px}.specimen{font-size:64px;font-weight:600;letter-spacing:-0.06em;line-height:1}.caption{font-size:10px;color:var(--foreground-2)}.glyphs{margin-top:8px;font-size:10px;color:var(--foreground-3);letter-spacing:.2em}.mark{transform:translateZ(40px);display:grid;place-items:center;background:var(--background)}.mark svg{width:120px;height:120px;overflow:visible}.guides{fill:none;stroke:var(--line-2);stroke-width:.6;stroke-dasharray:2 2}.outer,.inner{fill:none;stroke:var(--foreground);stroke-width:2.4;stroke-dasharray:1;stroke-dashoffset:0}.on .outer,.on .inner{animation:draw-line 1.8s .2s cubic-bezier(0.22, 1, 0.36, 1) both}.inner{stroke-width:1.8}.on .inner{animation-delay:.6s}@keyframes draw-line{from{stroke-dashoffset:1}}.anchor{fill:var(--background);stroke:var(--foreground-2);stroke-width:.8}
1
+ .visual{position:absolute;inset:0;display:grid;place-items:center;perspective:900px}.scene{position:relative;width:150px;height:190px;transform-style:preserve-3d;animation:sway 10s ease-in-out infinite}@keyframes sway{0%,100%{transform:rotateX(12deg) rotateY(-16deg)}50%{transform:rotateX(6deg) rotateY(14deg)}}.card{position:absolute;inset:0;border-radius:14px;border:1px solid var(--line-2);background:var(--card);box-shadow:0 30px 60px -20px color-mix(in srgb, var(--background) 90%, transparent)}.palette{transform:translate3d(-110px, 6px, -70px) rotateY(24deg);display:grid;grid-template-rows:repeat(4, 1fr);padding:10px;gap:6px}.palette span{border-radius:6px;border:1px solid var(--line);transform-origin:left}.on .palette span{animation:fill-in .8s cubic-bezier(0.22, 1, 0.36, 1) both}:global(:root[data-soft-navigation]) .on .palette span{animation-duration:0s !important;animation-delay:0s !important}@keyframes fill-in{from{transform:scaleX(0)}}.type{transform:translate3d(110px, -6px, -50px) rotateY(-24deg);display:grid;align-content:center;justify-items:center;gap:4px}.specimen{font-size:64px;font-weight:600;letter-spacing:-0.06em;line-height:1}.caption{font-size:10px;color:var(--foreground-2)}.glyphs{margin-top:8px;font-size:10px;color:var(--foreground-3);letter-spacing:.2em}.mark{transform:translateZ(40px);display:grid;place-items:center;background:var(--background)}.mark svg{width:120px;height:120px;overflow:visible}.guides{fill:none;stroke:var(--line-2);stroke-width:.6;stroke-dasharray:2 2}.outer,.inner{fill:none;stroke:var(--foreground);stroke-width:2.4;stroke-dasharray:1;stroke-dashoffset:0}.on .outer,.on .inner{animation:draw-line 1.8s .2s cubic-bezier(0.22, 1, 0.36, 1) both}:global(:root[data-soft-navigation]) .on .outer,:global(:root[data-soft-navigation]) .on .inner{animation-duration:0s !important;animation-delay:0s !important}.inner{stroke-width:1.8}.on .inner{animation-delay:.6s}@keyframes draw-line{from{stroke-dashoffset:1}}.anchor{fill:var(--background);stroke:var(--foreground-2);stroke-width:.8}
@@ -40,6 +40,7 @@
40
40
  transform-origin: left;
41
41
  .on & {
42
42
  animation: fill-in 0.8s $ease both;
43
+ @include skip-entrance;
43
44
  }
44
45
  }
45
46
  }
@@ -97,6 +98,7 @@
97
98
  stroke-dashoffset: 0;
98
99
  .on & {
99
100
  animation: draw-line 1.8s 0.2s $ease both;
101
+ @include skip-entrance;
100
102
  }
101
103
  }
102
104
  .inner {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/services/index.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wDAAwD,CAAC;AAEjG,wFAAwF;AACxF,wBAAgB,QAAQ,CAAC,EAAE,MAAM,EAAE,EAAE,kBAAkB,+BAwCtD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/services/index.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wDAAwD,CAAC;AAEjG,wFAAwF;AACxF,wBAAgB,QAAQ,CAAC,EAAE,MAAM,EAAE,EAAE,kBAAkB,+BAyCtD"}
@@ -13,6 +13,7 @@ import { SocialVisual } from "@sharadox/sharadox-web-library/component/services/
13
13
  import { WebVisual } from "@sharadox/sharadox-web-library/component/services/web-visual";
14
14
  import { SERVICES } from "@sharadox/sharadox-web-library/content/services";
15
15
  import { SECTION } from "@sharadox/sharadox-web-library/content/section";
16
+ import { ServiceActions } from "@sharadox/sharadox-web-library/component/service-action";
16
17
  import styles from "./index.module.css";
17
18
  /** "What we do": the five disciplines as cells of one grid, each with a live visual. */
18
19
  export function Services({ locale }) {
@@ -23,6 +24,6 @@ export function Services({ locale }) {
23
24
  "social-media": _jsx(SocialVisual, { locale: locale }),
24
25
  "marketing-campaign": _jsx(CampaignVisual, { locale: locale }),
25
26
  };
26
- return (_jsxs(Section, { id: SECTION.services.id, padded: false, children: [_jsx("div", { className: styles.heading, children: _jsx(SectionHeading, { eyebrow: translate(SERVICES.eyebrow, locale), title: translate(SERVICES.title, locale) }) }), _jsxs("div", { className: styles.grid, children: [_jsx(Cross, { corner: "top-left" }), _jsx(Cross, { corner: "top-right" }), SERVICES.items.map((service, index) => (_jsx("div", { className: styles[service.key], children: _jsx(Reveal, { delay: (index % 3) * 0.08, className: styles.reveal, children: _jsx(Cell, { id: service.key, visual: visuals[service.key], number: service.number, kinds: service.kinds[locale], title: translate(service.title, locale), lead: translate(service.lead, locale), text: translate(service.text, locale) }) }) }, service.key)))] })] }));
27
+ return (_jsxs(Section, { id: SECTION.services.id, padded: false, children: [_jsx("div", { className: styles.heading, children: _jsx(SectionHeading, { eyebrow: translate(SERVICES.eyebrow, locale), title: translate(SERVICES.title, locale) }) }), _jsxs("div", { className: styles.grid, children: [_jsx(Cross, { corner: "top-left" }), _jsx(Cross, { corner: "top-right" }), SERVICES.items.map((service, index) => (_jsx("div", { className: styles[service.key], children: _jsx(Reveal, { delay: (index % 3) * 0.08, className: styles.reveal, children: _jsx(Cell, { id: service.key, visual: visuals[service.key], number: service.number, kinds: service.kinds[locale], title: translate(service.title, locale), lead: translate(service.lead, locale), text: translate(service.text, locale), actions: _jsx(ServiceActions, { locale: locale, actions: service.actions }) }) }) }, service.key)))] })] }));
27
28
  }
28
29
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/services/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,wCAAwC,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,EAAE,KAAK,EAAE,MAAM,gDAAgD,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,kDAAkD,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,0DAA0D,CAAC;AAC1F,OAAO,EAAE,cAAc,EAAE,MAAM,mEAAmE,CAAC;AACnG,OAAO,EAAE,IAAI,EAAE,MAAM,wDAAwD,CAAC;AAC9E,OAAO,EAAE,YAAY,EAAE,MAAM,iEAAiE,CAAC;AAC/F,OAAO,EAAE,YAAY,EAAE,MAAM,iEAAiE,CAAC;AAC/F,OAAO,EAAE,cAAc,EAAE,MAAM,mEAAmE,CAAC;AACnG,OAAO,EAAE,YAAY,EAAE,MAAM,iEAAiE,CAAC;AAC/F,OAAO,EAAE,SAAS,EAAE,MAAM,8DAA8D,CAAC;AACzF,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAE3E,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AACzE,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC,wFAAwF;AACxF,MAAM,UAAU,QAAQ,CAAC,EAAE,MAAM,EAAsB;IACrD,MAAM,OAAO,GAAkC;QAC7C,iBAAiB,EAAE,CACjB,eAAK,SAAS,EAAE,MAAM,CAAC,KAAK,aAC1B,KAAC,SAAS,KAAG,EACb,KAAC,cAAc,KAAG,IACd,CACP;QACD,oBAAoB,EAAE,KAAC,YAAY,IAAC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vC,IAAI,EAAE,SAAS,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,EACrC,IAAI,EAAE,SAAS,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,EACrC,OAAO,EAAE,KAAC,cAAc,IAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO,GAAI,GACrE,GACK,IAZD,OAAO,CAAC,GAAG,CAaf,CACP,CAAC,IACE,IACE,CACX,CAAC;AACJ,CAAC"}
@@ -1 +1 @@
1
- .visual{position:absolute;inset:0;display:grid;place-items:center;perspective:900px}.feed{position:absolute;right:6%;top:50%;width:132px;display:grid;grid-template-columns:repeat(3, 1fr);gap:5px;transform:translateY(-56%) rotateY(-28deg) rotateX(10deg) translateZ(-40px)}.feed span{aspect-ratio:1;border-radius:5px;border:1px solid var(--line-2);background:linear-gradient(135deg, color-mix(in srgb, var(--foreground) 14%, transparent), color-mix(in srgb, var(--foreground) 3%, transparent))}.on .feed span{animation:pop .6s cubic-bezier(0.22, 1, 0.36, 1) both}.feed span:nth-child(3n+2){background:linear-gradient(135deg, color-mix(in srgb, var(--foreground) 28%, transparent), color-mix(in srgb, var(--foreground) 8%, transparent))}@keyframes pop{from{opacity:0;transform:scale(0.6)}}.panel{position:relative;width:min(72%,290px);margin-right:22%;padding:16px 16px 10px;border-radius:14px;border:1px solid var(--line-2);background:color-mix(in srgb, var(--background) 80%, transparent);backdrop-filter:blur(8px);box-shadow:0 30px 60px -24px color-mix(in srgb, var(--background) 90%, transparent);transform:rotateY(10deg) rotateX(6deg) translateZ(30px)}.header{display:flex;justify-content:space-between;align-items:center}.label{font-size:10.5px;text-transform:uppercase;letter-spacing:.05em;color:var(--foreground-3)}.growth{font-size:10.5px;padding:2px 7px;border-radius:99px;background:color-mix(in srgb, var(--foreground) 10%, transparent)}.count{display:block;margin:2px 0 6px;font-size:30px;font-weight:600;letter-spacing:-0.04em;font-variant-numeric:tabular-nums}.chart{display:block;width:100%;height:auto;overflow:visible}.gridLine{stroke:var(--line);stroke-dasharray:3 3}.line{fill:none;stroke:var(--foreground);stroke-width:1.8;stroke-linecap:round;stroke-dasharray:1}.on .line{animation:draw-line 2.2s cubic-bezier(0.22, 1, 0.36, 1) both}.on .area{animation:fade 2.2s ease both}@keyframes draw-line{from{stroke-dashoffset:1}}@keyframes fade{from{opacity:0}}.dot{fill:var(--foreground)}.on .dot{animation:pulse 2s 2.2s ease-out infinite}@keyframes pulse{0%{filter:drop-shadow(0 0 0 var(--foreground))}50%{filter:drop-shadow(0 0 6px var(--foreground))}}
1
+ .visual{position:absolute;inset:0;display:grid;place-items:center;perspective:900px}.feed{position:absolute;right:6%;top:50%;width:132px;display:grid;grid-template-columns:repeat(3, 1fr);gap:5px;transform:translateY(-56%) rotateY(-28deg) rotateX(10deg) translateZ(-40px)}.feed span{aspect-ratio:1;border-radius:5px;border:1px solid var(--line-2);background:linear-gradient(135deg, color-mix(in srgb, var(--foreground) 14%, transparent), color-mix(in srgb, var(--foreground) 3%, transparent))}.on .feed span{animation:pop .6s cubic-bezier(0.22, 1, 0.36, 1) both}:global(:root[data-soft-navigation]) .on .feed span{animation-duration:0s !important;animation-delay:0s !important}.feed span:nth-child(3n+2){background:linear-gradient(135deg, color-mix(in srgb, var(--foreground) 28%, transparent), color-mix(in srgb, var(--foreground) 8%, transparent))}@keyframes pop{from{opacity:0;transform:scale(0.6)}}.panel{position:relative;width:min(72%,290px);margin-right:22%;padding:16px 16px 10px;border-radius:14px;border:1px solid var(--line-2);background:color-mix(in srgb, var(--background) 80%, transparent);backdrop-filter:blur(8px);box-shadow:0 30px 60px -24px color-mix(in srgb, var(--background) 90%, transparent);transform:rotateY(10deg) rotateX(6deg) translateZ(30px)}.header{display:flex;justify-content:space-between;align-items:center}.label{font-size:10.5px;text-transform:uppercase;letter-spacing:.05em;color:var(--foreground-3)}.growth{font-size:10.5px;padding:2px 7px;border-radius:99px;background:color-mix(in srgb, var(--foreground) 10%, transparent)}.count{display:block;margin:2px 0 6px;font-size:30px;font-weight:600;letter-spacing:-0.04em;font-variant-numeric:tabular-nums}.chart{display:block;width:100%;height:auto;overflow:visible}.gridLine{stroke:var(--line);stroke-dasharray:3 3}.line{fill:none;stroke:var(--foreground);stroke-width:1.8;stroke-linecap:round;stroke-dasharray:1}.on .line{animation:draw-line 2.2s cubic-bezier(0.22, 1, 0.36, 1) both}:global(:root[data-soft-navigation]) .on .line{animation-duration:0s !important;animation-delay:0s !important}.on .area{animation:fade 2.2s ease both}:global(:root[data-soft-navigation]) .on .area{animation-duration:0s !important;animation-delay:0s !important}@keyframes draw-line{from{stroke-dashoffset:1}}@keyframes fade{from{opacity:0}}.dot{fill:var(--foreground)}.on .dot{animation:pulse 2s 2.2s ease-out infinite}@keyframes pulse{0%{filter:drop-shadow(0 0 0 var(--foreground))}50%{filter:drop-shadow(0 0 6px var(--foreground))}}
@@ -20,6 +20,7 @@
20
20
  background: linear-gradient(135deg, tint(14%), tint(3%));
21
21
  .on & {
22
22
  animation: pop 0.6s $ease both;
23
+ @include skip-entrance;
23
24
  }
24
25
  }
25
26
  span:nth-child(3n + 2) {
@@ -87,11 +88,13 @@
87
88
  stroke-dasharray: 1;
88
89
  .on & {
89
90
  animation: draw-line 2.2s $ease both;
91
+ @include skip-entrance;
90
92
  }
91
93
  }
92
94
  .area {
93
95
  .on & {
94
96
  animation: fade 2.2s ease both;
97
+ @include skip-entrance;
95
98
  }
96
99
  }
97
100
  @keyframes draw-line {
@@ -1 +1 @@
1
- .visual{position:absolute;inset:0;display:grid;place-items:center}.browser{width:min(78%,520px);border-radius:12px;border:1px solid var(--line-2);background:var(--card);overflow:hidden;box-shadow:0 30px 80px -20px color-mix(in srgb, var(--background) 90%, transparent),0 0 0 1px color-mix(in srgb, var(--foreground) 2%, transparent);transform:perspective(900px) rotateX(10deg) rotateY(-8deg) translateZ(20px);animation:float 7s ease-in-out infinite}.bar{display:flex;align-items:center;gap:6px;height:32px;padding:0 12px;border-bottom:1px solid var(--line)}.bar i{width:8px;height:8px;border-radius:50%;background:var(--line-2)}.url{margin-left:12px;font-size:11px;color:var(--foreground-3);padding:3px 10px;border-radius:6px;background:var(--surface)}.body{padding:16px;display:grid;gap:10px}.skeleton{border-radius:6px;background:linear-gradient(90deg, var(--surface), color-mix(in srgb, var(--foreground) 14%, transparent), var(--surface));background-size:200% 100%;opacity:0;transform:translateY(8px)}.on .skeleton{animation:skin .7s var(--ease) forwards,shimmer 2.4s linear infinite}.navigation{height:12px;width:40%}.hero{height:70px;animation-delay:.15s !important}.row{display:grid;grid-template-columns:repeat(3, 1fr);gap:10px}.row .skeleton:nth-child(1){animation-delay:.3s,0s !important}.row .skeleton:nth-child(2){animation-delay:.42s,0s !important}.row .skeleton:nth-child(3){animation-delay:.54s,0s !important}.card{height:44px}@keyframes skin{to{opacity:1;transform:none}}@keyframes shimmer{to{background-position:-200% 0}}.score{position:absolute;right:7%;bottom:10%;transform:translateZ(60px);width:74px;height:74px;display:grid;place-items:center;border-radius:50%;background:color-mix(in srgb, var(--background) 90%, transparent);border:1px solid var(--line-2);backdrop-filter:blur(8px)}.score svg{position:absolute;inset:8px;transform:rotate(-90deg)}.score span{font-size:17px;font-weight:500}.track{fill:none;stroke:var(--line-2);stroke-width:3}.progress{fill:none;stroke:var(--foreground);stroke-width:3;stroke-linecap:round;transition:stroke-dashoffset .1s linear}@keyframes float{50%{transform:perspective(900px) rotateX(6deg) rotateY(-4deg) translateZ(20px) translateY(-6px)}}
1
+ .visual{position:absolute;inset:0;display:grid;place-items:center}.browser{width:min(78%,520px);border-radius:12px;border:1px solid var(--line-2);background:var(--card);overflow:hidden;box-shadow:0 30px 80px -20px color-mix(in srgb, var(--background) 90%, transparent),0 0 0 1px color-mix(in srgb, var(--foreground) 2%, transparent);transform:perspective(900px) rotateX(10deg) rotateY(-8deg) translateZ(20px);animation:float 7s ease-in-out infinite}.bar{display:flex;align-items:center;gap:6px;height:32px;padding:0 12px;border-bottom:1px solid var(--line)}.bar i{width:8px;height:8px;border-radius:50%;background:var(--line-2)}.url{margin-left:12px;font-size:11px;color:var(--foreground-3);padding:3px 10px;border-radius:6px;background:var(--surface)}.body{padding:16px;display:grid;gap:10px}.skeleton{border-radius:6px;background:linear-gradient(90deg, var(--surface), color-mix(in srgb, var(--foreground) 14%, transparent), var(--surface));background-size:200% 100%;opacity:0;transform:translateY(8px)}.on .skeleton{animation:skin .7s var(--ease) forwards,shimmer 2.4s linear infinite}:global(:root[data-soft-navigation]) .on .skeleton{animation-duration:0s,2.4s !important;animation-delay:0s !important}.navigation{height:12px;width:40%}.hero{height:70px;animation-delay:.15s !important}.row{display:grid;grid-template-columns:repeat(3, 1fr);gap:10px}.row .skeleton:nth-child(1){animation-delay:.3s,0s !important}.row .skeleton:nth-child(2){animation-delay:.42s,0s !important}.row .skeleton:nth-child(3){animation-delay:.54s,0s !important}.card{height:44px}@keyframes skin{to{opacity:1;transform:none}}@keyframes shimmer{to{background-position:-200% 0}}.score{position:absolute;right:7%;bottom:10%;transform:translateZ(60px);width:74px;height:74px;display:grid;place-items:center;border-radius:50%;background:color-mix(in srgb, var(--background) 90%, transparent);border:1px solid var(--line-2);backdrop-filter:blur(8px)}.score svg{position:absolute;inset:8px;transform:rotate(-90deg)}.score span{font-size:17px;font-weight:500}.track{fill:none;stroke:var(--line-2);stroke-width:3}.progress{fill:none;stroke:var(--foreground);stroke-width:3;stroke-linecap:round;transition:stroke-dashoffset .1s linear}@keyframes float{50%{transform:perspective(900px) rotateX(6deg) rotateY(-4deg) translateZ(20px) translateY(-6px)}}
@@ -52,6 +52,7 @@
52
52
  animation:
53
53
  skin 0.7s var(--ease) forwards,
54
54
  shimmer 2.4s linear infinite;
55
+ @include skip-entrance(0s, 2.4s);
55
56
  }
56
57
  }
57
58
  .navigation {
@@ -43,17 +43,17 @@ export declare const CONTACT: {
43
43
  readonly en: "Mobile App";
44
44
  readonly pt: "App Móvel";
45
45
  }, {
46
- readonly key: "logo";
47
- readonly en: "Logo";
48
- readonly pt: "Logótipo";
46
+ readonly key: "brand-identity";
47
+ readonly en: "Brand Identity";
48
+ readonly pt: "Identidade Visual";
49
49
  }, {
50
50
  readonly key: "social-media";
51
51
  readonly en: "Social Media";
52
52
  readonly pt: "Redes Sociais";
53
53
  }, {
54
- readonly key: "ads";
55
- readonly en: "Ads";
56
- readonly pt: "Anúncios";
54
+ readonly key: "marketing-campaign";
55
+ readonly en: "Marketing Campaign";
56
+ readonly pt: "Campanha de Marketing";
57
57
  }, {
58
58
  readonly key: "other";
59
59
  readonly en: "Others";
@@ -19,9 +19,9 @@ export const CONTACT = {
19
19
  { key: "website", en: "Website", pt: "Website" },
20
20
  { key: "platform", en: "Platform", pt: "Plataforma" },
21
21
  { key: "mobile-app", en: "Mobile App", pt: "App Móvel" },
22
- { key: "logo", en: "Logo", pt: "Logótipo" },
22
+ { key: "brand-identity", en: "Brand Identity", pt: "Identidade Visual" },
23
23
  { key: "social-media", en: "Social Media", pt: "Redes Sociais" },
24
- { key: "ads", en: "Ads", pt: "Anúncios" },
24
+ { key: "marketing-campaign", en: "Marketing Campaign", pt: "Campanha de Marketing" },
25
25
  { key: "other", en: "Others", pt: "Outros" },
26
26
  ],
27
27
  },
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/content/contact/index.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,sFAAsF;IACtF,UAAU,EAAE,0BAA0B;IACtC,mEAAmE;IACnE,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,EAAE,EAAE,EAAE,uBAAuB,EAAE,EAAE,EAAE,oBAAoB,EAAE;IAChE,IAAI,EAAE;QACJ,EAAE,EAAE,4EAA4E;QAChF,EAAE,EAAE,+DAA+D;KACpE;IACD,IAAI,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE;IAChC,KAAK,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,OAA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,gBAAgB,EAAE,EAAE,EAAE,mBAAmB,EAAE;YACxE,EAAE,GAAG,EAAE,cAAc,EAAE,EAAE,EAAE,cAAc,EAAE,EAAE,EAAE,eAAe,EAAE;YAChE,EAAE,GAAG,EAAE,oBAAoB,EAAE,EAAE,EAAE,oBAAoB,EAAE,EAAE,EAAE,uBAAuB,EAAE;YACpF,EAAE,GAAG,EAAE,OAAO,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,QAAQ,EAAE;SAC7C;KACF;IACD,OAAO,EAAE,EAAE,EAAE,EAAE,4BAA4B,EAAE,EAAE,EAAE,yBAAyB,EAAE;IAC5E,IAAI,EAAE,EAAE,EAAE,EAAE,cAAc,EAAE,EAAE,EAAE,iBAAiB,EAAE;IACnD,OAAO,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE,WAAW,EAAE;IAC5C,IAAI,EAAE;QACJ,EAAE,EAAE,iEAAiE;QACrE,EAAE,EAAE,yEAAyE;KAC9E;IACD,MAAM,EAAE;QACN,OAAO,EAAE;YACP,EAAE,EAAE,wDAAwD;YAC5D,EAAE,EAAE,gDAAgD;SACrD;QACD,cAAc,EAAE;YACd,EAAE,EAAE,iEAAiE;YACrE,EAAE,EAAE,uDAAuD;SAC5D;QACD,MAAM,EAAE;YACN,EAAE,EAAE,iEAAiE;YACrE,EAAE,EAAE,yDAAyD;SAC9D;KACF;IACD,MAAM,EAAE,EAAE,EAAE,EAAE,yBAAyB,EAAE,EAAE,EAAE,4BAA4B,EAAE;CACnE,CAAC"}
@@ -10,6 +10,20 @@ export declare const SERVICES: {
10
10
  };
11
11
  readonly items: readonly [{
12
12
  readonly key: "web-application";
13
+ /** Buttons that open the contact form with these choices ticked. */
14
+ readonly actions: ({
15
+ need: "website";
16
+ label: {
17
+ en: string;
18
+ pt: string;
19
+ };
20
+ } | {
21
+ need: "platform";
22
+ label: {
23
+ en: string;
24
+ pt: string;
25
+ };
26
+ })[];
13
27
  readonly number: "01";
14
28
  readonly title: {
15
29
  readonly en: "Web Applications";
@@ -33,6 +47,14 @@ export declare const SERVICES: {
33
47
  };
34
48
  }, {
35
49
  readonly key: "mobile-application";
50
+ /** Buttons that open the contact form with these choices ticked. */
51
+ readonly actions: {
52
+ need: "mobile-app";
53
+ label: {
54
+ en: string;
55
+ pt: string;
56
+ };
57
+ }[];
36
58
  readonly number: "02";
37
59
  readonly title: {
38
60
  readonly en: "Mobile Applications";
@@ -56,6 +78,14 @@ export declare const SERVICES: {
56
78
  };
57
79
  }, {
58
80
  readonly key: "graphic-design";
81
+ /** Buttons that open the contact form with these choices ticked. */
82
+ readonly actions: {
83
+ need: "brand-identity";
84
+ label: {
85
+ en: string;
86
+ pt: string;
87
+ };
88
+ }[];
59
89
  readonly number: "03";
60
90
  readonly title: {
61
91
  readonly en: "Graphic Design";
@@ -79,6 +109,14 @@ export declare const SERVICES: {
79
109
  };
80
110
  }, {
81
111
  readonly key: "social-media";
112
+ /** Buttons that open the contact form with these choices ticked. */
113
+ readonly actions: {
114
+ need: "social-media";
115
+ label: {
116
+ en: string;
117
+ pt: string;
118
+ };
119
+ }[];
82
120
  readonly number: "04";
83
121
  readonly title: {
84
122
  readonly en: "Social Media";
@@ -102,6 +140,14 @@ export declare const SERVICES: {
102
140
  };
103
141
  }, {
104
142
  readonly key: "marketing-campaign";
143
+ /** Buttons that open the contact form with these choices ticked. */
144
+ readonly actions: {
145
+ need: "marketing-campaign";
146
+ label: {
147
+ en: string;
148
+ pt: string;
149
+ };
150
+ }[];
105
151
  readonly number: "05";
106
152
  readonly title: {
107
153
  readonly en: "Marketing Campaigns";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/content/services/index.ts"],"names":[],"mappings":"AAEA,kHAAkH;AAClH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAuKnB,sCAAsC;;;;;;;;;;;;;;;;;;;CAO9B,CAAC;AAEX,uCAAuC;AACvC,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,QAAQ,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/content/services/index.ts"],"names":[],"mappings":"AAGA,kHAAkH;AAClH,eAAO,MAAM,QAAQ;;;;;;;;;;;QAMf,oEAAoE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAqCpE,oEAAoE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAiCpE,oEAAoE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAiCpE,oEAAoE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAiCpE,oEAAoE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA8CxE,sCAAsC;;;;;;;;;;;;;;;;;;;CAO9B,CAAC;AAEX,uCAAuC;AACvC,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,QAAQ,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,CAAC"}
@@ -6,6 +6,11 @@ export const SERVICES = {
6
6
  items: [
7
7
  {
8
8
  key: "web-application",
9
+ /** Buttons that open the contact form with these choices ticked. */
10
+ actions: [
11
+ { need: "website", label: { en: "Get a Website", pt: "Pedir um Website" } },
12
+ { need: "platform", label: { en: "Build a Platform", pt: "Criar uma Plataforma" } },
13
+ ],
9
14
  number: "01",
10
15
  title: { en: "Web Applications", pt: "Aplicações Web" },
11
16
  kinds: { en: ["Websites", "Platforms"], pt: ["Websites", "Plataformas"] },
@@ -38,6 +43,10 @@ export const SERVICES = {
38
43
  },
39
44
  {
40
45
  key: "mobile-application",
46
+ /** Buttons that open the contact form with these choices ticked. */
47
+ actions: [
48
+ { need: "mobile-app", label: { en: "Build an App", pt: "Criar uma App" } },
49
+ ],
41
50
  number: "02",
42
51
  title: { en: "Mobile Applications", pt: "Aplicações Móveis" },
43
52
  kinds: { en: ["iOS", "Android"], pt: ["iOS", "Android"] },
@@ -67,6 +76,10 @@ export const SERVICES = {
67
76
  },
68
77
  {
69
78
  key: "graphic-design",
79
+ /** Buttons that open the contact form with these choices ticked. */
80
+ actions: [
81
+ { need: "brand-identity", label: { en: "Design My Brand", pt: "Desenhar a Minha Marca" } },
82
+ ],
70
83
  number: "03",
71
84
  title: { en: "Graphic Design", pt: "Design Gráfico" },
72
85
  kinds: { en: ["Brand Assets"], pt: ["Ativos de Marca"] },
@@ -96,6 +109,10 @@ export const SERVICES = {
96
109
  },
97
110
  {
98
111
  key: "social-media",
112
+ /** Buttons that open the contact form with these choices ticked. */
113
+ actions: [
114
+ { need: "social-media", label: { en: "Grow My Social Media", pt: "Crescer nas Redes Sociais" } },
115
+ ],
99
116
  number: "04",
100
117
  title: { en: "Social Media", pt: "Redes Sociais" },
101
118
  kinds: { en: ["Growth Plans", "Full Management"], pt: ["Planos de Crescimento", "Gestão Completa"] },
@@ -125,6 +142,10 @@ export const SERVICES = {
125
142
  },
126
143
  {
127
144
  key: "marketing-campaign",
145
+ /** Buttons that open the contact form with these choices ticked. */
146
+ actions: [
147
+ { need: "marketing-campaign", label: { en: "Launch a Campaign", pt: "Lançar uma Campanha" } },
148
+ ],
128
149
  number: "05",
129
150
  title: { en: "Marketing Campaigns", pt: "Campanhas de Marketing" },
130
151
  kinds: { en: ["Ads", "Launches", "Email"], pt: ["Anúncios", "Lançamentos", "Email"] },
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/content/services/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAE3E,kHAAkH;AAClH,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,OAAO,EAAE,EAAE,EAAE,EAAE,YA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EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,SAAS,EAAE;QACvC,SAAS,EAAE,EAAE,EAAE,EAAE,WAAW,EAAE,EAAE,EAAE,UAAU,EAAE;KAC/C;CACO,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { NeedKey } from "@sharadox/sharadox-web-library/content/contact";
2
+ import type { Translated } from "@sharadox/sharadox-web-library/content/locale/type";
3
+ /** A call to action on a service card: its label, and the contact form choice it ticks. */
4
+ export interface ServiceAction {
5
+ need: NeedKey;
6
+ label: Translated;
7
+ }
8
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../source/content/services/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AAC9E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oDAAoD,CAAC;AAErF,2FAA2F;AAC3F,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,UAAU,CAAC;CACnB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.js","sourceRoot":"","sources":["../../../source/content/services/type.ts"],"names":[],"mappings":""}
@@ -47,3 +47,16 @@ $ease: cubic-bezier(0.22, 1, 0.36, 1);
47
47
  }
48
48
  }
49
49
  }
50
+
51
+ /// Marks a time-based entrance animation: it plays on a first visit, and shows its final state at once when the page
52
+ /// was rebuilt in place (a soft navigation, such as switching language). Pass one duration per listed animation to
53
+ /// keep loops running, for example `skip-entrance(0s, 2.4s)` for `entrance …, shimmer 2.4s infinite`.
54
+ @mixin skip-entrance($durations...) {
55
+ @if length($durations) == 0 {
56
+ $durations: 0s;
57
+ }
58
+ :global(:root[data-soft-navigation]) & {
59
+ animation-duration: $durations !important;
60
+ animation-delay: 0s !important;
61
+ }
62
+ }
@@ -0,0 +1,12 @@
1
+ import type { NeedKey } from "@sharadox/sharadox-web-library/content/contact";
2
+ /** The window event that asks the contact form to tick some choices. */
3
+ export declare const CONTACT_NEED_EVENT = "sharadox:contact-need";
4
+ /**
5
+ * Asks the contact form to tick these choices (choices already ticked stay ticked), for buttons that lead to the
6
+ * form, such as the ones on the service cards.
7
+ *
8
+ * @example
9
+ * requestContactNeeds(["website"]);
10
+ */
11
+ export declare function requestContactNeeds(needs: readonly NeedKey[]): void;
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/utility/contact-need/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AAE9E,wEAAwE;AACxE,eAAO,MAAM,kBAAkB,0BAA0B,CAAC;AAE1D;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,SAAS,OAAO,EAAE,GAAG,IAAI,CAEnE"}
@@ -0,0 +1,13 @@
1
+ /** The window event that asks the contact form to tick some choices. */
2
+ export const CONTACT_NEED_EVENT = "sharadox:contact-need";
3
+ /**
4
+ * Asks the contact form to tick these choices (choices already ticked stay ticked), for buttons that lead to the
5
+ * form, such as the ones on the service cards.
6
+ *
7
+ * @example
8
+ * requestContactNeeds(["website"]);
9
+ */
10
+ export function requestContactNeeds(needs) {
11
+ dispatchEvent(new CustomEvent(CONTACT_NEED_EVENT, { detail: needs }));
12
+ }
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/utility/contact-need/index.ts"],"names":[],"mappings":"AAEA,wEAAwE;AACxE,MAAM,CAAC,MAAM,kBAAkB,GAAG,uBAAuB,CAAC;AAE1D;;;;;;GAMG;AACH,MAAM,UAAU,mBAAmB,CAAC,KAAyB;IAC3D,aAAa,CAAC,IAAI,WAAW,CAAqB,kBAAkB,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;AAC5F,CAAC"}
package/llms.txt CHANGED
@@ -12,3 +12,5 @@
12
12
  - Navigation, Footer and LanguageSwitch take path? (e.g. "/license"): section links go to /<locale>#section, language links stay on the page; the footer links to the license page
13
13
  - component/not-found NotFound({ locale, path }) the 404 screen (giant 404 with the live globe as the zero, failed request line, way home); content/not-found NOT_FOUND; ServiceIndex takes base? ("/<locale>" off the home page)
14
14
  - content/slogan SLOGAN (with full stop) and SLOGAN_LINES; content/section SECTION { home, services, touchpoints, capabilities, process, contact } with id + names; content/action ACTION.startProject; content/language LANGUAGE { label, names }. SITE.slogan, HERO.lines, HERO.primary, NAVIGATION.<name>, FOOTER.services/language, CAPABILITY.eyebrow and CONTACT.eyebrow were removed in 0.10.0 in favor of these.
15
+ - Language switch (internationalization-web-library 0.2): entrances skip on soft navigation (hero/not-found Motion initial, Sass mixin skip-entrance($durations...) for CSS entrances); site must render <LocaleTransitionStyle /> in <head>
16
+ - Service card actions: SERVICES.items[].actions [{ need, label }] render as ServiceActions (component/service-action) linking to #contact and calling requestContactNeeds (utility/contact-need, window event CONTACT_NEED_EVENT); ContactForm ticks the chips with a glow. Contact choices: website, platform, mobile-app, brand-identity, social-media, marketing-campaign, other
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sharadox/sharadox-web-library",
3
- "version": "0.11.2",
3
+ "version": "0.13.0",
4
4
  "description": "Sharadox's own website building blocks: content, components, brand and actions for sharadox-web-application, plus the preview notice and agency credit used on client demos.",
5
5
  "private": false,
6
6
  "license": "SEE LICENSE IN LICENCA.md",
@@ -54,16 +54,16 @@
54
54
  },
55
55
  "homepage": "https://github.com/Sharadox/sharadox-web-library#readme",
56
56
  "dependencies": {
57
- "@sharadox/animation-web-library": "^0.1.0",
57
+ "@sharadox/animation-web-library": "^0.2.1",
58
58
  "@sharadox/consent-web-library": "^0.1.0",
59
59
  "@sharadox/form-web-library": "^0.1.0",
60
- "@sharadox/globe-web-library": "^0.1.0",
61
- "@sharadox/internationalization-web-library": "^0.1.0",
60
+ "@sharadox/globe-web-library": "^0.2.1",
61
+ "@sharadox/internationalization-web-library": "^0.2.2",
62
62
  "@sharadox/metadata-web-library": "^0.1.0",
63
63
  "@sharadox/pointer-web-library": "^0.1.0",
64
64
  "@sharadox/scroll-web-library": "^0.1.0",
65
65
  "@sharadox/style-web-library": "^0.2.0",
66
- "@sharadox/web-library": "^0.5.0",
66
+ "@sharadox/web-library": "^0.6.1",
67
67
  "marked": "^17.0.6",
68
68
  "motion": "^12.43.0"
69
69
  },