@sharadox/sharadox-web-library 0.12.0 → 0.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/distribution/component/button/index.d.ts +1 -1
- package/distribution/component/button/index.d.ts.map +1 -1
- package/distribution/component/button/index.js +4 -5
- package/distribution/component/button/index.js.map +1 -1
- package/distribution/component/button/type.d.ts +1 -0
- package/distribution/component/button/type.d.ts.map +1 -1
- package/distribution/component/contact/form/index.d.ts.map +1 -1
- package/distribution/component/contact/form/index.js +26 -4
- package/distribution/component/contact/form/index.js.map +1 -1
- package/distribution/component/contact/form/index.module.css +1 -1
- package/distribution/component/contact/form/index.module.scss +12 -0
- package/distribution/component/service-action/index.d.ts +10 -0
- package/distribution/component/service-action/index.d.ts.map +1 -0
- package/distribution/component/service-action/index.js +18 -0
- package/distribution/component/service-action/index.js.map +1 -0
- package/distribution/component/service-action/index.module.css +1 -0
- package/distribution/component/service-action/index.module.scss +6 -0
- package/distribution/component/service-action/type.d.ts +7 -0
- package/distribution/component/service-action/type.d.ts.map +1 -0
- package/distribution/component/service-action/type.js +2 -0
- package/distribution/component/service-action/type.js.map +1 -0
- package/distribution/component/services/cell/index.d.ts +1 -1
- package/distribution/component/services/cell/index.d.ts.map +1 -1
- package/distribution/component/services/cell/index.js +2 -2
- package/distribution/component/services/cell/index.js.map +1 -1
- package/distribution/component/services/cell/type.d.ts +2 -0
- package/distribution/component/services/cell/type.d.ts.map +1 -1
- package/distribution/component/services/index.d.ts.map +1 -1
- package/distribution/component/services/index.js +2 -1
- package/distribution/component/services/index.js.map +1 -1
- package/distribution/component/share-image/index.d.ts.map +1 -1
- package/distribution/component/share-image/index.js +10 -3
- package/distribution/component/share-image/index.js.map +1 -1
- package/distribution/content/contact/index.d.ts +6 -6
- package/distribution/content/contact/index.js +2 -2
- package/distribution/content/contact/index.js.map +1 -1
- package/distribution/content/services/index.d.ts +46 -0
- package/distribution/content/services/index.d.ts.map +1 -1
- package/distribution/content/services/index.js +21 -0
- package/distribution/content/services/index.js.map +1 -1
- package/distribution/content/services/type.d.ts +8 -0
- package/distribution/content/services/type.d.ts.map +1 -0
- package/distribution/content/services/type.js +2 -0
- package/distribution/content/services/type.js.map +1 -0
- package/distribution/utility/contact-need/index.d.ts +12 -0
- package/distribution/utility/contact-need/index.d.ts.map +1 -0
- package/distribution/utility/contact-need/index.js +13 -0
- package/distribution/utility/contact-need/index.js.map +1 -0
- package/llms.txt +1 -0
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -36,6 +36,7 @@ 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
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.
|
|
@@ -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":"
|
|
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
|
|
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:
|
|
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,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/button/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,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,EACT,OAAO,GACU;IACjB,MAAM,KAAK,GAAG,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE,IAAI,KAAK,QAAQ,IAAI,MAAM,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC,CAAC;IACvG,MAAM,OAAO,GAAG,CACd,8BACG,QAAQ,EACR,KAAK,IAAI,CACR,eAAM,SAAS,EAAE,MAAM,CAAC,KAAK,4CAEtB,CACR,IACA,CACJ,CAAC;IACF,OAAO,IAAI,CAAC,CAAC,CAAC,CACZ,YAAG,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,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"}
|
|
@@ -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":"
|
|
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,+BA6GhF"}
|
|
@@ -7,17 +7,39 @@ 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
|
+
// When the form appeared. It goes into the hidden field as the form is sent: React puts a hidden field back to its
|
|
17
|
+
// default whenever the form renders again, which silently turned the fill-time check off.
|
|
18
|
+
const startedAt = useRef(0);
|
|
19
|
+
const needs = useRef(null);
|
|
20
|
+
// Buttons elsewhere (the service cards) ask for choices: tick them and make them glow for a moment.
|
|
16
21
|
useEffect(() => {
|
|
17
|
-
|
|
18
|
-
|
|
22
|
+
const tick = (event) => {
|
|
23
|
+
for (const need of event.detail) {
|
|
24
|
+
const input = needs.current?.querySelector(`input[value="${need}"]`);
|
|
25
|
+
if (!input)
|
|
26
|
+
continue;
|
|
27
|
+
input.checked = true;
|
|
28
|
+
const chip = input.closest("label");
|
|
29
|
+
chip.removeAttribute("data-requested");
|
|
30
|
+
void chip.offsetWidth; // restart the glow when the same choice is asked for again
|
|
31
|
+
chip.setAttribute("data-requested", "");
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
addEventListener(CONTACT_NEED_EVENT, tick);
|
|
35
|
+
return () => removeEventListener(CONTACT_NEED_EVENT, tick);
|
|
36
|
+
}, []);
|
|
37
|
+
useEffect(() => {
|
|
38
|
+
startedAt.current = Date.now();
|
|
19
39
|
}, []);
|
|
20
40
|
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,
|
|
41
|
+
return (_jsx(AnimatePresence, { mode: "wait", children: state.status === "sent" ? (_jsxs(motion.div, { className: `${styles.form} ${styles.done}`, initial: { opacity: 0, scale: 0.98 }, animate: { opacity: 1, scale: 1 }, role: "status", children: [_jsxs("svg", { viewBox: "0 0 48 48", className: styles.check, "aria-hidden": true, children: [_jsx("circle", { cx: "24", cy: "24", r: "22" }), _jsx("path", { d: "M14 24.5l7 7 13-14" })] }), _jsx("p", { children: translate(CONTACT.sent, locale) })] }, "sent")) : (_jsxs(motion.form, { ref: spotlight, action: action, onSubmit: (event) => {
|
|
42
|
+
event.currentTarget.elements.namedItem("started-at").value = String(startedAt.current);
|
|
43
|
+
}, className: styles.form, exit: { opacity: 0, scale: 0.98 }, children: [_jsx("input", { type: "hidden", name: "started-at", defaultValue: "0" }), _jsx("input", { type: "hidden", name: "locale", value: locale }), _jsx("div", { className: styles.honeypot, "aria-hidden": true, children: _jsxs("label", { children: ["Website", _jsx("input", { name: "website", tabIndex: -1, autoComplete: "off" })] }) }), _jsxs("div", { className: styles.row, children: [_jsxs("label", { className: styles.field, children: [_jsx("span", { children: translate(CONTACT.name, locale) }), _jsx("input", { name: "name", required: true, autoComplete: "name", maxLength: 120 })] }), _jsxs("label", { className: styles.field, children: [_jsx("span", { children: translate(CONTACT.company, locale) }), _jsx("input", { name: "company", autoComplete: "organization", maxLength: 160 })] })] }), _jsxs("label", { className: styles.field, children: [_jsx("span", { children: translate(CONTACT.email, locale) }), _jsx("input", { name: "email", type: "email", required: true, autoComplete: "email", maxLength: 200 })] }), _jsxs("fieldset", { ref: needs, className: styles.services, children: [_jsx("legend", { children: translate(CONTACT.needs.label, locale) }), CONTACT.needs.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
44
|
}
|
|
23
45
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/contact/form/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE1D,OAAO,EAAE,MAAM,EAAE,MAAM,iDAAiD,CAAC;AACzE,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AACzE,OAAO,EAAE,IAAI,EAAE,MAAM,6CAA6C,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,E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SAAS,EAAC,QAAQ,QAAC,IAAI,EAAE,CAAC,EAAE,SAAS,EAAE,IAAI,GAAI,IACxD,EACP,KAAK,CAAC,MAAM,KAAK,MAAM,IAAI,CAC1B,YAAG,SAAS,EAAE,MAAM,CAAC,KAAK,EAAE,IAAI,EAAC,OAAO,YACrC,KAAK,CAAC,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,CAC3B,8BACG,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,OAAE,YAAG,IAAI,EAAE,UAAU,IAAI,CAAC,KAAK,EAAE,YAAG,IAAI,CAAC,KAAK,GAAK,SAC3F,CACJ,CAAC,CAAC,CAAC,CACF,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAChD,GACC,CACL,EACD,KAAC,MAAM,IAAC,IAAI,EAAC,OAAO,EAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,OAAO,YACpD,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,GACxE,KA3DL,MAAM,CA4DE,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;
|
|
@@ -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,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 @@
|
|
|
1
|
+
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../source/component/service-action/type.ts"],"names":[],"mappings":""}
|
|
@@ -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,+
|
|
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,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C,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"}
|
|
@@ -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
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/services/index.tsx"],"names":[],"mappings":"
|
|
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,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CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,SAAS,EAAE,MAAM,CAAC,MAAM,YACzD,KAAC,IAAI,IACH,EAAE,EAAE,OAAO,CAAC,GAAG,EACf,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,EAC5B,MAAM,EAAE,OAAO,CAAC,MAAM,EACtB,KAAK,EAAE,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,EAC5B,KAAK,EAAE,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,EACvC,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
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/share-image/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2DAA2D,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/share-image/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2DAA2D,CAAC;AAanG,sHAAsH;AACtH,wBAAsB,gBAAgB,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,iBAAiB,4CAoFlF"}
|
|
@@ -4,11 +4,18 @@ import { readFile } from "node:fs/promises";
|
|
|
4
4
|
import { horizonDots } from "@sharadox/sharadox-web-library/utility/horizon-dots";
|
|
5
5
|
import { translate } from "@sharadox/internationalization-web-library/translate";
|
|
6
6
|
import { SLOGAN } from "@sharadox/sharadox-web-library/content/slogan";
|
|
7
|
-
/**
|
|
8
|
-
|
|
7
|
+
/**
|
|
8
|
+
* Fonts ship with the library (distribution/asset/font), found relative to this compiled file. Each address is
|
|
9
|
+
* written out in full: bundlers resolve a `new URL` built from a template to the wrong file (the mono line came out in
|
|
10
|
+
* Geist).
|
|
11
|
+
*/
|
|
12
|
+
const FONTS = {
|
|
13
|
+
semiBold: new URL("../../asset/font/Geist-SemiBold.ttf", import.meta.url),
|
|
14
|
+
monospace: new URL("../../asset/font/GeistMono-Regular.ttf", import.meta.url),
|
|
15
|
+
};
|
|
9
16
|
/** Share card (Open Graph and Twitter): black canvas, a dotted planet rising from the bottom, the slogan in Geist. */
|
|
10
17
|
export async function renderShareImage({ locale, width, height }) {
|
|
11
|
-
const [semiBold, monospace] = await Promise.all([
|
|
18
|
+
const [semiBold, monospace] = await Promise.all([readFile(FONTS.semiBold), readFile(FONTS.monospace)]);
|
|
12
19
|
return shareImage(_jsxs("div", { style: {
|
|
13
20
|
width: "100%",
|
|
14
21
|
height: "100%",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/share-image/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,4CAA4C,CAAC;AACxE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,qDAAqD,CAAC;AAClF,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AAEjF,OAAO,EAAE,MAAM,EAAE,MAAM,+CAA+C,CAAC;AAEvE
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/share-image/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,4CAA4C,CAAC;AACxE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,E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AQ,EAAE,MAAM,EAAE,GAAG,EAAE;YAC9C,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE;SACpD;KACF,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -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: "
|
|
47
|
-
readonly en: "
|
|
48
|
-
readonly pt: "
|
|
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: "
|
|
55
|
-
readonly en: "
|
|
56
|
-
readonly pt: "
|
|
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: "
|
|
22
|
+
{ key: "brand-identity", en: "Brand Identity", pt: "Identidade Visual" },
|
|
23
23
|
{ key: "social-media", en: "Social Media", pt: "Redes Sociais" },
|
|
24
|
-
{ key: "
|
|
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,OAAO,EAAE;IACnC,OAAO,EAAE,EAAE,EAAE,EAAE,oBAAoB,EAAE,EAAE,EAAE,oBAAoB,EAAE;IAC/D,KAAK,EAAE;QACL,KAAK,EAAE,EAAE,EAAE,EAAE,mBAAmB,EAAE,EAAE,EAAE,iBAAiB,EAAE;QACzD,+FAA+F;QAC/F,OAAO,EAAE;YACP,EAAE,GAAG,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS,EAAE;YAChD,EAAE,GAAG,EAAE,UAAU,EAAE,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE,YAAY,EAAE;YACrD,EAAE,GAAG,EAAE,YAAY,EAAE,EAAE,EAAE,YAAY,EAAE,EAAE,EAAE,WAAW,EAAE;YACxD,EAAE,GAAG,EAAE,
|
|
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,E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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":"
|
|
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":"
|
|
1
|
+
{"version":3,"file":"index.js","s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aAAa,EAAE,OAAO,CAAC,CAAC;YAClD,CAAC,oBAAoB,EAAE,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;YAClD,CAAC,kBAAkB,EAAE,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;YAClD,CAAC,cAAc,EAAE,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;SAC/C;KACF;IACD,sCAAsC;IACtC,MAAM,EAAE;QACN,SAAS,EAAE,EAAE,EAAE,EAAE,WAAW,EAAE,EAAE,EAAE,YAAY,EAAE;QAChD,KAAK,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE;QACrC,MAAM,EAAE,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 @@
|
|
|
1
|
+
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../source/content/services/type.ts"],"names":[],"mappings":""}
|
|
@@ -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
|
@@ -13,3 +13,4 @@
|
|
|
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
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.
|
|
3
|
+
"version": "0.13.1",
|
|
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.2.
|
|
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.2.
|
|
61
|
-
"@sharadox/internationalization-web-library": "^0.2.
|
|
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.6.
|
|
66
|
+
"@sharadox/web-library": "^0.6.1",
|
|
67
67
|
"marked": "^17.0.6",
|
|
68
68
|
"motion": "^12.43.0"
|
|
69
69
|
},
|