@sharadox/sharadox-web-library 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/distribution/action/send-contact/index.d.ts.map +1 -1
- package/distribution/action/send-contact/index.js +4 -5
- package/distribution/action/send-contact/index.js.map +1 -1
- package/distribution/component/capability/index.d.ts.map +1 -1
- package/distribution/component/capability/index.js +2 -1
- package/distribution/component/capability/index.js.map +1 -1
- package/distribution/component/capability/index.module.css +14 -3
- package/distribution/component/contact/form/index.d.ts.map +1 -1
- package/distribution/component/contact/form/index.js +1 -2
- package/distribution/component/contact/form/index.js.map +1 -1
- package/distribution/component/cursor/index.js +1 -1
- package/distribution/component/cursor/index.js.map +1 -1
- package/distribution/component/cursor/index.module.css +2 -1
- package/distribution/component/marquee/index.d.ts +2 -2
- package/distribution/component/marquee/index.d.ts.map +1 -1
- package/distribution/component/marquee/index.js +6 -3
- package/distribution/component/marquee/index.js.map +1 -1
- package/distribution/component/marquee/index.module.css +15 -16
- package/distribution/component/service-index/index.module.css +1 -1
- package/distribution/component/style-switch/index.d.ts +2 -2
- package/distribution/component/style-switch/index.d.ts.map +1 -1
- package/distribution/component/style-switch/index.js +20 -10
- package/distribution/component/style-switch/index.js.map +1 -1
- package/distribution/component/style-switch/index.module.css +2 -11
- package/distribution/component/touchpoint/index.module.css +0 -1
- package/distribution/content/contact/index.d.ts +39 -5
- package/distribution/content/contact/index.d.ts.map +1 -1
- package/distribution/content/contact/index.js +14 -2
- package/distribution/content/contact/index.js.map +1 -1
- package/distribution/content/hero/index.d.ts +4 -4
- package/distribution/content/hero/index.js +2 -2
- package/distribution/content/navigation/index.d.ts +2 -2
- package/distribution/content/navigation/index.js +1 -1
- package/distribution/content/services/index.d.ts +4 -4
- package/distribution/content/services/index.js +4 -4
- package/distribution/content/services/index.js.map +1 -1
- package/distribution/utility/parse-contact/index.d.ts.map +1 -1
- package/distribution/utility/parse-contact/index.js +4 -4
- package/distribution/utility/parse-contact/index.js.map +1 -1
- package/distribution/utility/parse-contact/type.d.ts +3 -3
- package/distribution/utility/parse-contact/type.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/action/send-contact/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/action/send-contact/index.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yDAAyD,CAAC;AAI5F;;;;;GAKG;AACH,wBAAsB,WAAW,CAAC,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CAoCnF"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { separate } from "@sharadox/sharadox-web-library/utility/separate";
|
|
2
2
|
import { createEmailSender, EmailError, readEmailServerConfiguration } from "@sharadox/email-web-library";
|
|
3
3
|
import { CONTACT } from "@sharadox/sharadox-web-library/content/contact";
|
|
4
|
-
import { SERVICES } from "@sharadox/sharadox-web-library/content/services";
|
|
5
4
|
import { SITE } from "@sharadox/sharadox-web-library/content/site";
|
|
6
5
|
import { escapeHtml } from "@sharadox/web-library/html/escape";
|
|
7
6
|
import { parseContact } from "@sharadox/sharadox-web-library/utility/parse-contact";
|
|
@@ -20,16 +19,16 @@ export async function sendContact(form, ip) {
|
|
|
20
19
|
return { status: "sent" };
|
|
21
20
|
if (parsed.kind === "invalid")
|
|
22
21
|
return { status: "invalid" };
|
|
23
|
-
const { name, email, company, message, locale,
|
|
22
|
+
const { name, email, company, message, locale, needs } = parsed.value;
|
|
24
23
|
if (!allow(ip))
|
|
25
24
|
return { status: "rate-limited" };
|
|
26
25
|
const subject = separate(CONTACT.subject, company ? `${name} (${company})` : name);
|
|
27
|
-
const
|
|
28
|
-
const text = `Name: ${name}\nEmail: ${email}\nCompany: ${company || "—"}\
|
|
26
|
+
const needed = CONTACT.needs.options.filter((need) => needs.includes(need.key)).map((need) => need.en);
|
|
27
|
+
const text = `Name: ${name}\nEmail: ${email}\nCompany: ${company || "—"}\nNeeds: ${needed.join(", ") || "—"}\nLanguage: ${locale}\nIP: ${ip}\n\n${message}`;
|
|
29
28
|
const html = `<div style="font-family:-apple-system,Segoe UI,sans-serif;font-size:15px;line-height:1.6;color:#111">
|
|
30
29
|
<p style="color:#666;font-size:13px;margin:0 0 16px">New enquiry from sharadox.com (${escapeHtml(locale)})</p>
|
|
31
30
|
<p style="margin:0">${separate(`<b>${escapeHtml(name)}</b>`, company && escapeHtml(company))}<br><a href="mailto:${escapeHtml(email)}">${escapeHtml(email)}</a></p>
|
|
32
|
-
${
|
|
31
|
+
${needed.length ? `<p style="margin:12px 0 0;color:#444">${escapeHtml(separate(...needed))}</p>` : ""}
|
|
33
32
|
<hr style="border:0;border-top:1px solid #eee;margin:18px 0">
|
|
34
33
|
<p style="white-space:pre-wrap;margin:0">${escapeHtml(message)}</p></div>`;
|
|
35
34
|
try {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/action/send-contact/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAC;AAC1G,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AACzE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/action/send-contact/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAC;AAC1G,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AACzE,OAAO,EA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O,KAAK,EAAE,CAAC;QACf,IAAI,KAAK,YAAY,UAAU,IAAI,KAAK,CAAC,IAAI,KAAK,iBAAiB;YAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;QAClG,OAAO,CAAC,KAAK,CAAC,yBAAyB,EAAE,KAAK,CAAC,CAAC;QAChD,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC;IAC9B,CAAC;AACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/capability/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/capability/index.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0DAA0D,CAAC;AAErG,0FAA0F;AAC1F,wBAAgB,UAAU,CAAC,EAAE,MAAM,EAAE,EAAE,oBAAoB,+BA4B1D"}
|
|
@@ -8,6 +8,7 @@ import { SERVICES } from "@sharadox/sharadox-web-library/content/services";
|
|
|
8
8
|
import styles from "./index.module.css";
|
|
9
9
|
/** "Capabilities": every deliverable of every discipline, as columns of a ruled sheet. */
|
|
10
10
|
export function Capability({ locale }) {
|
|
11
|
-
|
|
11
|
+
const rows = 1 + Math.max(...SERVICES.items.map((service) => service.capabilities[locale].length));
|
|
12
|
+
return (_jsxs(Section, { id: "capabilities", padded: false, children: [_jsx("div", { className: styles.heading, children: _jsx(SectionHeading, { eyebrow: translate(CAPABILITY.eyebrow, locale), title: translate(CAPABILITY.title, locale) }) }), _jsx("div", { className: styles.sheet, style: { "--rows": rows }, children: SERVICES.items.map((service, column) => (_jsxs("div", { className: styles.column, children: [_jsxs("a", { href: `#${service.key}`, className: styles.title, children: [_jsx("span", { className: "monospace", children: service.number }), translate(service.title, locale)] }), _jsx("ul", { role: "list", children: service.capabilities[locale].map((capability, row) => (_jsx("li", { children: _jsx(Reveal, { delay: column * 0.05 + row * 0.04, y: 8, blur: 0, margin: "-5% 0px", children: capability }) }, capability))) })] }, service.key))) })] }));
|
|
12
13
|
}
|
|
13
14
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/capability/index.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/capability/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,wCAAwC,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,EAAE,OAAO,EAAE,MAAM,kDAAkD,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,0DAA0D,CAAC;AAC1F,OAAO,EAAE,UAAU,EAAE,MAAM,mDAAmD,CAAC;AAC/E,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAC3E,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC,0FAA0F;AAC1F,MAAM,UAAU,UAAU,CAAC,EAAE,MAAM,EAAwB;IACzD,MAAM,IAAI,GAAG,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;IACnG,OAAO,CACL,MAAC,OAAO,IAAC,EAAE,EAAC,cAAc,EAAC,MAAM,EAAE,KAAK,aACtC,cAAK,SAAS,EAAE,MAAM,CAAC,OAAO,YAC5B,KAAC,cAAc,IAAC,OAAO,EAAE,SAAS,CAAC,UAAU,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,KAAK,EAAE,SAAS,CAAC,UAAU,CAAC,KAAK,EAAE,MAAM,CAAC,GAAI,GAC1G,EACN,cAAK,SAAS,EAAE,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAmB,YACrE,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC,CACvC,eAAuB,SAAS,EAAE,MAAM,CAAC,MAAM,aAC7C,aAAG,IAAI,EAAE,IAAI,OAAO,CAAC,GAAG,EAAE,EAAE,SAAS,EAAE,MAAM,CAAC,KAAK,aACjD,eAAM,SAAS,EAAC,WAAW,YAAE,OAAO,CAAC,MAAM,GAAQ,EAClD,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,IAC/B,EACJ,aAAI,IAAI,EAAC,MAAM,YACZ,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,GAAG,EAAE,EAAE,CAAC,CACrD,uBACE,KAAC,MAAM,IAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,GAAG,GAAG,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAC,SAAS,YACvE,UAAU,GACJ,IAHF,UAAU,CAId,CACN,CAAC,GACC,KAbG,OAAO,CAAC,GAAG,CAcf,CACP,CAAC,GACE,IACE,CACX,CAAC;AACJ,CAAC"}
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
.sheet {
|
|
6
6
|
display: grid;
|
|
7
7
|
grid-template-columns: repeat(5, 1fr);
|
|
8
|
+
/* Each column spans the title row plus one row per capability, shared by all columns, so lines line up. */
|
|
9
|
+
grid-auto-rows: auto;
|
|
8
10
|
border-top: 1px solid var(--line);
|
|
9
11
|
}
|
|
10
12
|
@media (max-width: 960px) {
|
|
@@ -20,6 +22,15 @@
|
|
|
20
22
|
|
|
21
23
|
.column {
|
|
22
24
|
position: relative;
|
|
25
|
+
display: grid;
|
|
26
|
+
grid-row: span var(--rows);
|
|
27
|
+
grid-template-rows: subgrid;
|
|
28
|
+
}
|
|
29
|
+
@media (max-width: 600px) {
|
|
30
|
+
.column {
|
|
31
|
+
grid-row: auto;
|
|
32
|
+
grid-template-rows: none;
|
|
33
|
+
}
|
|
23
34
|
}
|
|
24
35
|
.column:not(:last-child)::after {
|
|
25
36
|
content: "";
|
|
@@ -31,12 +42,12 @@
|
|
|
31
42
|
background: linear-gradient(180deg, var(--line-2) 50%, transparent 0) 0 0/1px 8px repeat-y;
|
|
32
43
|
}
|
|
33
44
|
.column ul {
|
|
34
|
-
|
|
35
|
-
padding: 0;
|
|
36
|
-
list-style: none;
|
|
45
|
+
display: contents;
|
|
37
46
|
}
|
|
38
47
|
.column li {
|
|
39
48
|
position: relative;
|
|
49
|
+
display: flex;
|
|
50
|
+
align-items: center;
|
|
40
51
|
padding: 13px 20px;
|
|
41
52
|
font-size: 14.5px;
|
|
42
53
|
color: var(--foreground-2);
|
|
@@ -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":"AAUA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4DAA4D,CAAC;AAExG,sGAAsG;AACtG,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,qBAAqB,+BAqFhF"}
|
|
@@ -4,7 +4,6 @@ import { AnimatePresence, motion } from "motion/react";
|
|
|
4
4
|
import { useActionState, useEffect, useRef } from "react";
|
|
5
5
|
import { Button } from "@sharadox/sharadox-web-library/component/button";
|
|
6
6
|
import { CONTACT } from "@sharadox/sharadox-web-library/content/contact";
|
|
7
|
-
import { SERVICES } from "@sharadox/sharadox-web-library/content/services";
|
|
8
7
|
import { SITE } from "@sharadox/sharadox-web-library/content/site";
|
|
9
8
|
import { useSpotlight } from "@sharadox/web-library/pointer/spotlight";
|
|
10
9
|
import { translate } from "@sharadox/web-library/internationalization/translate";
|
|
@@ -19,6 +18,6 @@ export function ContactForm({ locale, action: sendAction }) {
|
|
|
19
18
|
startedAt.current.value = String(Date.now());
|
|
20
19
|
}, []);
|
|
21
20
|
const spotlight = useSpotlight();
|
|
22
|
-
return (_jsx(AnimatePresence, { mode: "wait", children: state.status === "sent" ? (_jsxs(motion.div, { className: `${styles.form} ${styles.done}`, initial: { opacity: 0, scale: 0.98 }, animate: { opacity: 1, scale: 1 }, role: "status", children: [_jsxs("svg", { viewBox: "0 0 48 48", className: styles.check, "aria-hidden": true, children: [_jsx("circle", { cx: "24", cy: "24", r: "22" }), _jsx("path", { d: "M14 24.5l7 7 13-14" })] }), _jsx("p", { children: translate(CONTACT.sent, locale) })] }, "sent")) : (_jsxs(motion.form, { ref: spotlight, action: action, className: styles.form, exit: { opacity: 0, scale: 0.98 }, children: [_jsx("input", { ref: startedAt, type: "hidden", name: "started-at", defaultValue: "0" }), _jsx("input", { type: "hidden", name: "locale", value: locale }), _jsx("div", { className: styles.honeypot, "aria-hidden": true, children: _jsxs("label", { children: ["Website", _jsx("input", { name: "website", tabIndex: -1, autoComplete: "off" })] }) }), _jsxs("div", { className: styles.row, children: [_jsxs("label", { className: styles.field, children: [_jsx("span", { children: translate(CONTACT.name, locale) }), _jsx("input", { name: "name", required: true, autoComplete: "name", maxLength: 120 })] }), _jsxs("label", { className: styles.field, children: [_jsx("span", { children: translate(CONTACT.company, locale) }), _jsx("input", { name: "company", autoComplete: "organization", maxLength: 160 })] })] }), _jsxs("label", { className: styles.field, children: [_jsx("span", { children: translate(CONTACT.email, locale) }), _jsx("input", { name: "email", type: "email", required: true, autoComplete: "email", maxLength: 200 })] }), _jsxs("fieldset", { className: styles.services, children: [_jsx("legend", { children: translate(CONTACT.
|
|
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")) }));
|
|
23
22
|
}
|
|
24
23
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/contact/form/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE1D,OAAO,EAAE,MAAM,EAAE,MAAM,iDAAiD,CAAC;AACzE,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AACzE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/contact/form/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE1D,OAAO,EAAE,MAAM,EAAE,MAAM,iDAAiD,CAAC;AACzE,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AACzE,OAAO,EAAE,IAAI,EAAE,MAAM,6CAA6C,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC,sGAAsG;AACtG,MAAM,UAAU,WAAW,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAyB;IAC/E,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,GAAG,cAAc,CAAyB,UAAU,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IACx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21
|
y = event.clientY;
|
|
22
22
|
const target = event.target;
|
|
23
23
|
ring.current?.classList.toggle(styles.hot, !!target.closest("a, button, input, textarea, label, [data-hot]"));
|
|
24
|
-
ring.current?.classList.toggle(styles.grab, !!target.closest("canvas"));
|
|
24
|
+
ring.current?.classList.toggle(styles.grab, !!target.closest("canvas, [data-grab]"));
|
|
25
25
|
};
|
|
26
26
|
const loop = () => {
|
|
27
27
|
ringX += (x - ringX) * 0.18;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/cursor/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,qGAAqG;AACrG,MAAM,UAAU,MAAM;IACpB,MAAM,GAAG,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;IACzC,MAAM,IAAI,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;IAC1C,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,iBAAiB,CAAC,CAAC,OAAO;YAAE,OAAO;QAC1D,MAAM,IAAI,GAAG,QAAQ,CAAC,eAAe,CAAC;QACtC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;QACjC,IAAI,CAAC,GAAG,UAAU,GAAG,CAAC,CAAC;QACvB,IAAI,CAAC,GAAG,WAAW,GAAG,CAAC,CAAC;QACxB,IAAI,KAAK,GAAG,CAAC,CAAC;QACd,IAAI,KAAK,GAAG,CAAC,CAAC;QACd,IAAI,KAAK,GAAG,CAAC,CAAC;QACd,MAAM,IAAI,GAAG,CAAC,KAAmB,EAAE,EAAE;YACnC,CAAC,GAAG,KAAK,CAAC,OAAO,CAAC;YAClB,CAAC,GAAG,KAAK,CAAC,OAAO,CAAC;YAClB,MAAM,MAAM,GAA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AE,GAAG,EAAE,SAAS,EAAE,MAAM,CAAC,GAAG,wBAAgB,IACnD,CACJ,CAAC;AACJ,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
2
|
+
* Technologies and tools sliding endlessly between the grid's side rails. It can be grabbed and flung by hand; two
|
|
3
|
+
* identical groups let it loop without a seam.
|
|
4
4
|
*/
|
|
5
5
|
export declare function Marquee(): import("react").JSX.Element;
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/marquee/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/marquee/index.tsx"],"names":[],"mappings":"AAQA;;;GAGG;AACH,wBAAgB,OAAO,gCAoBtB"}
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { useMarquee } from "@sharadox/web-library/animation/marquee";
|
|
2
4
|
import { STACK } from "@sharadox/sharadox-web-library/content/stack";
|
|
3
5
|
import styles from "./index.module.css";
|
|
4
6
|
/** Times the list repeats inside one group, so a group is always wider than the widest screen. */
|
|
5
7
|
const REPEAT = 3;
|
|
6
8
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
+
* Technologies and tools sliding endlessly between the grid's side rails. It can be grabbed and flung by hand; two
|
|
10
|
+
* identical groups let it loop without a seam.
|
|
9
11
|
*/
|
|
10
12
|
export function Marquee() {
|
|
13
|
+
const track = useMarquee({ speed: 36 });
|
|
11
14
|
const group = Array.from({ length: REPEAT }, () => STACK).flat();
|
|
12
|
-
return (_jsx("div", { className: styles.marquee, "aria-label": STACK.join(", "), children: _jsx("div", { className: styles.track, "aria-hidden": true, children: [0, 1].map((copy) => (_jsx("div", { className: styles.group, children: group.map((technology, index) => (_jsx("span", { className: `${styles.pill} monospace`, children: technology }, index))) }, copy))) }) }));
|
|
15
|
+
return (_jsx("div", { className: styles.frame, children: _jsx("div", { className: styles.marquee, "aria-label": STACK.join(", "), role: "img", children: _jsx("div", { ref: track, className: styles.track, "data-grab": true, "aria-hidden": true, children: [0, 1].map((copy) => (_jsx("div", { className: styles.group, children: group.map((technology, index) => (_jsx("span", { className: `${styles.pill} monospace`, children: technology }, index))) }, copy))) }) }) }));
|
|
13
16
|
}
|
|
14
17
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/marquee/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/marquee/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,OAAO,EAAE,KAAK,EAAE,MAAM,8CAA8C,CAAC;AACrE,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,kGAAkG;AAClG,MAAM,MAAM,GAAG,CAAC,CAAC;AAEjB;;;GAGG;AACH,MAAM,UAAU,OAAO;IACrB,MAAM,KAAK,GAAG,UAAU,CAAiB,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IACxD,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,CAAC;IACjE,OAAO,CACL,cAAK,SAAS,EAAE,MAAM,CAAC,KAAK,YAC1B,cAAK,SAAS,EAAE,MAAM,CAAC,OAAO,gBAAc,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,EAAC,KAAK,YACtE,cAAK,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,CAAC,KAAK,oDACrC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CACpB,cAAgB,SAAS,EAAE,MAAM,CAAC,KAAK,YACpC,KAAK,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,KAAK,EAAE,EAAE,CAAC,CAChC,eAAkB,SAAS,EAAE,GAAG,MAAM,CAAC,IAAI,YAAY,YACpD,UAAU,IADF,KAAK,CAET,CACR,CAAC,IALM,IAAI,CAMR,CACP,CAAC,GACE,GACF,GACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,19 +1,29 @@
|
|
|
1
|
-
.
|
|
2
|
-
|
|
1
|
+
/* The frame carries the grid's rails and top line; the strip inside fades at its edges. */
|
|
2
|
+
.frame {
|
|
3
3
|
position: relative;
|
|
4
4
|
width: min(100% - 2 * var(--gutter), var(--maximum-width));
|
|
5
5
|
margin-inline: auto;
|
|
6
|
-
overflow: hidden;
|
|
7
6
|
border: 1px solid var(--line);
|
|
8
7
|
border-bottom: 0;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.marquee {
|
|
11
|
+
--marquee-gap: 12px;
|
|
12
|
+
overflow: hidden;
|
|
9
13
|
padding: 22px 0;
|
|
10
|
-
mask-image: linear-gradient(90deg, transparent, #000
|
|
14
|
+
mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
|
|
11
15
|
}
|
|
12
16
|
|
|
13
17
|
.track {
|
|
14
18
|
display: flex;
|
|
15
19
|
width: max-content;
|
|
16
|
-
|
|
20
|
+
cursor: grab;
|
|
21
|
+
touch-action: pan-y;
|
|
22
|
+
user-select: none;
|
|
23
|
+
will-change: transform;
|
|
24
|
+
}
|
|
25
|
+
.track:active {
|
|
26
|
+
cursor: grabbing;
|
|
17
27
|
}
|
|
18
28
|
|
|
19
29
|
/* Each group ends with the same gap that separates the pills, so both groups are exactly the same width. */
|
|
@@ -31,14 +41,3 @@
|
|
|
31
41
|
color: var(--foreground-2);
|
|
32
42
|
white-space: nowrap;
|
|
33
43
|
}
|
|
34
|
-
|
|
35
|
-
@keyframes marquee {
|
|
36
|
-
to {
|
|
37
|
-
transform: translateX(-50%);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
@media (prefers-reduced-motion: reduce) {
|
|
41
|
-
.track {
|
|
42
|
-
animation: none;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
display: grid;
|
|
6
6
|
grid-template-columns: repeat(5, 1fr);
|
|
7
7
|
border: 1px solid var(--line);
|
|
8
|
-
border-top: 0;
|
|
9
8
|
}
|
|
10
9
|
@media (max-width: 960px) {
|
|
11
10
|
.index {
|
|
@@ -16,6 +15,7 @@
|
|
|
16
15
|
.cell {
|
|
17
16
|
position: relative;
|
|
18
17
|
display: grid;
|
|
18
|
+
align-content: start;
|
|
19
19
|
gap: 6px;
|
|
20
20
|
padding: 22px 22px 24px;
|
|
21
21
|
overflow: hidden;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { StyleSwitchProperties } from "@sharadox/sharadox-web-library/component/style-switch/type";
|
|
2
2
|
/**
|
|
3
|
-
* Picks the style: System (the default, follows the device)
|
|
4
|
-
*
|
|
3
|
+
* Picks the style: light styles on the left, System (the default, follows the device) in the middle, dark styles on
|
|
4
|
+
* the right. Light styles show a sun and dark ones a moon; every style in content/style appears automatically.
|
|
5
5
|
*/
|
|
6
6
|
export declare function StyleSwitch({ locale, className }: StyleSwitchProperties): import("react").JSX.Element;
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/style-switch/index.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4DAA4D,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/style-switch/index.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4DAA4D,CAAC;AAqBxG;;;GAGG;AACH,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,qBAAqB,+BAmCvE"}
|
|
@@ -1,24 +1,34 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { SYSTEM_STYLE } from "@sharadox/web-library/style/definition";
|
|
4
4
|
import { useStyle } from "@sharadox/web-library/style/use-style";
|
|
5
5
|
import { translate } from "@sharadox/web-library/internationalization/translate";
|
|
6
6
|
import { STYLE, STYLE_CONFIGURATION } from "@sharadox/sharadox-web-library/content/style";
|
|
7
7
|
import styles from "./index.module.css";
|
|
8
|
+
const ICON = {
|
|
9
|
+
// A monitor: follow the device.
|
|
10
|
+
system: (_jsxs(_Fragment, { children: [_jsx("rect", { x: "1.5", y: "2.5", width: "13", height: "9", rx: "1.5" }), _jsx("path", { d: "M5.5 14h5M8 11.5V14" })] })),
|
|
11
|
+
// A sun for light styles.
|
|
12
|
+
light: (_jsxs(_Fragment, { children: [_jsx("circle", { cx: "8", cy: "8", r: "3" }), _jsx("path", { d: "M8 1.5v1.5M8 13v1.5M1.5 8H3M13 8h1.5M3.4 3.4l1.1 1.1M11.5 11.5l1.1 1.1M3.4 12.6l1.1-1.1M11.5 4.5l1.1-1.1" })] })),
|
|
13
|
+
// A moon for dark styles.
|
|
14
|
+
dark: _jsx("path", { d: "M13.5 9.6A5.8 5.8 0 0 1 6.4 2.5a5.8 5.8 0 1 0 7.1 7.1Z" }),
|
|
15
|
+
};
|
|
8
16
|
/**
|
|
9
|
-
* Picks the style: System (the default, follows the device)
|
|
10
|
-
*
|
|
17
|
+
* Picks the style: light styles on the left, System (the default, follows the device) in the middle, dark styles on
|
|
18
|
+
* the right. Light styles show a sun and dark ones a moon; every style in content/style appears automatically.
|
|
11
19
|
*/
|
|
12
20
|
export function StyleSwitch({ locale, className }) {
|
|
13
21
|
const { choice, choose } = useStyle(STYLE_CONFIGURATION);
|
|
22
|
+
const option = (style) => ({
|
|
23
|
+
name: style.name,
|
|
24
|
+
label: STYLE.names[style.name] ?? style.name,
|
|
25
|
+
icon: ICON[style.scheme],
|
|
26
|
+
});
|
|
14
27
|
const options = [
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
label: STYLE.names[style.name] ?? style.name,
|
|
19
|
-
swatch: style.palette,
|
|
20
|
-
})),
|
|
28
|
+
...STYLE_CONFIGURATION.styles.filter((style) => style.scheme === "light").map(option),
|
|
29
|
+
{ name: SYSTEM_STYLE, label: translate(STYLE.system, locale), icon: ICON.system },
|
|
30
|
+
...STYLE_CONFIGURATION.styles.filter((style) => style.scheme === "dark").map(option),
|
|
21
31
|
];
|
|
22
|
-
return (_jsx("div", { className: [styles.switch, className].filter(Boolean).join(" "), role: "radiogroup", "aria-label": translate(STYLE.label, locale), children: options.map((
|
|
32
|
+
return (_jsx("div", { className: [styles.switch, className].filter(Boolean).join(" "), role: "radiogroup", "aria-label": translate(STYLE.label, locale), children: options.map((item) => (_jsx("button", { type: "button", role: "radio", "aria-checked": choice === item.name, "aria-label": item.label, title: item.label, onClick: () => choose(item.name), children: _jsx("svg", { viewBox: "0 0 16 16", className: styles.icon, "aria-hidden": true, children: item.icon }) }, item.name))) }));
|
|
23
33
|
}
|
|
24
34
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/style-switch/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAC;AACtE,OAAO,EAAE,QAAQ,EAAE,MAAM,uCAAuC,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,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AI,CAAC,IAAI,CAWP,CACV,CAAC,GACE,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -25,21 +25,12 @@
|
|
|
25
25
|
color: var(--foreground);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
.
|
|
28
|
+
.icon {
|
|
29
29
|
width: 15px;
|
|
30
30
|
height: 15px;
|
|
31
31
|
fill: none;
|
|
32
32
|
stroke: currentColor;
|
|
33
33
|
stroke-width: 1.3;
|
|
34
34
|
stroke-linecap: round;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
/* Half background, half foreground of the style it stands for. */
|
|
38
|
-
.swatch {
|
|
39
|
-
width: 13px;
|
|
40
|
-
height: 13px;
|
|
41
|
-
border-radius: 50%;
|
|
42
|
-
border: 1px solid var(--foreground-3);
|
|
43
|
-
background-clip: padding-box;
|
|
44
|
-
box-shadow: inset -6.5px 0 0 currentColor;
|
|
35
|
+
stroke-linejoin: round;
|
|
45
36
|
}
|
|
@@ -28,17 +28,49 @@ export declare const CONTACT: {
|
|
|
28
28
|
readonly en: "Company (optional)";
|
|
29
29
|
readonly pt: "Empresa (opcional)";
|
|
30
30
|
};
|
|
31
|
-
readonly
|
|
32
|
-
readonly
|
|
33
|
-
|
|
31
|
+
readonly needs: {
|
|
32
|
+
readonly label: {
|
|
33
|
+
readonly en: "What do you need?";
|
|
34
|
+
readonly pt: "Do que precisa?";
|
|
35
|
+
};
|
|
36
|
+
/** Everyday words, so anyone knows what to tick. `en` is also how they appear in the email. */
|
|
37
|
+
readonly options: readonly [{
|
|
38
|
+
readonly key: "website";
|
|
39
|
+
readonly en: "Website";
|
|
40
|
+
readonly pt: "Website";
|
|
41
|
+
}, {
|
|
42
|
+
readonly key: "platform";
|
|
43
|
+
readonly en: "Platform";
|
|
44
|
+
readonly pt: "Plataforma";
|
|
45
|
+
}, {
|
|
46
|
+
readonly key: "mobile-app";
|
|
47
|
+
readonly en: "Mobile App";
|
|
48
|
+
readonly pt: "App Móvel";
|
|
49
|
+
}, {
|
|
50
|
+
readonly key: "logo";
|
|
51
|
+
readonly en: "Logo";
|
|
52
|
+
readonly pt: "Logótipo";
|
|
53
|
+
}, {
|
|
54
|
+
readonly key: "social-media";
|
|
55
|
+
readonly en: "Social Media";
|
|
56
|
+
readonly pt: "Redes Sociais";
|
|
57
|
+
}, {
|
|
58
|
+
readonly key: "ads";
|
|
59
|
+
readonly en: "Ads";
|
|
60
|
+
readonly pt: "Anúncios";
|
|
61
|
+
}, {
|
|
62
|
+
readonly key: "other";
|
|
63
|
+
readonly en: "Others";
|
|
64
|
+
readonly pt: "Outros";
|
|
65
|
+
}];
|
|
34
66
|
};
|
|
35
67
|
readonly message: {
|
|
36
68
|
readonly en: "Tell us about your project";
|
|
37
69
|
readonly pt: "Fale-nos do seu projeto";
|
|
38
70
|
};
|
|
39
71
|
readonly send: {
|
|
40
|
-
readonly en: "Send
|
|
41
|
-
readonly pt: "Enviar
|
|
72
|
+
readonly en: "Send Message";
|
|
73
|
+
readonly pt: "Enviar Mensagem";
|
|
42
74
|
};
|
|
43
75
|
readonly sending: {
|
|
44
76
|
readonly en: "Sending…";
|
|
@@ -67,4 +99,6 @@ export declare const CONTACT: {
|
|
|
67
99
|
readonly pt: "Ou escreva-nos diretamente";
|
|
68
100
|
};
|
|
69
101
|
};
|
|
102
|
+
/** One of the "What do you need?" choices. */
|
|
103
|
+
export type NeedKey = (typeof CONTACT.needs.options)[number]["key"];
|
|
70
104
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/content/contact/index.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,eAAO,MAAM,OAAO;IAClB,sFAAsF;;IAEtF,mEAAmE
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/content/contact/index.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,eAAO,MAAM,OAAO;IAClB,sFAAsF;;IAEtF,mEAAmE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAajE,+FAA+F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCzF,CAAC;AAEX,8CAA8C;AAC9C,MAAM,MAAM,OAAO,GAAG,CAAC,OAAO,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -13,9 +13,21 @@ export const CONTACT = {
|
|
|
13
13
|
name: { en: "Name", pt: "Nome" },
|
|
14
14
|
email: { en: "Email", pt: "Email" },
|
|
15
15
|
company: { en: "Company (optional)", pt: "Empresa (opcional)" },
|
|
16
|
-
|
|
16
|
+
needs: {
|
|
17
|
+
label: { en: "What do you need?", pt: "Do que precisa?" },
|
|
18
|
+
/** Everyday words, so anyone knows what to tick. `en` is also how they appear in the email. */
|
|
19
|
+
options: [
|
|
20
|
+
{ key: "website", en: "Website", pt: "Website" },
|
|
21
|
+
{ key: "platform", en: "Platform", pt: "Plataforma" },
|
|
22
|
+
{ key: "mobile-app", en: "Mobile App", pt: "App Móvel" },
|
|
23
|
+
{ key: "logo", en: "Logo", pt: "Logótipo" },
|
|
24
|
+
{ key: "social-media", en: "Social Media", pt: "Redes Sociais" },
|
|
25
|
+
{ key: "ads", en: "Ads", pt: "Anúncios" },
|
|
26
|
+
{ key: "other", en: "Others", pt: "Outros" },
|
|
27
|
+
],
|
|
28
|
+
},
|
|
17
29
|
message: { en: "Tell us about your project", pt: "Fale-nos do seu projeto" },
|
|
18
|
-
send: { en: "Send
|
|
30
|
+
send: { en: "Send Message", pt: "Enviar Mensagem" },
|
|
19
31
|
sending: { en: "Sending…", pt: "A enviar…" },
|
|
20
32
|
sent: {
|
|
21
33
|
en: "Thank you — your message is on its way. We'll be in touch soon.",
|
|
@@ -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,OAAO,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,UAAU,EAAE;IAC1C,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,
|
|
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,OAAO,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,UAAU,EAAE;IAC1C,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,EAA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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"}
|
|
@@ -13,12 +13,12 @@ export declare const HERO: {
|
|
|
13
13
|
readonly pt: "Um só estúdio para toda a sua marca — identidade, websites, plataformas, aplicações, redes sociais e campanhas, desenhados, construídos e geridos como um todo.";
|
|
14
14
|
};
|
|
15
15
|
readonly primary: {
|
|
16
|
-
readonly en: "Start a
|
|
17
|
-
readonly pt: "Iniciar
|
|
16
|
+
readonly en: "Start a Project";
|
|
17
|
+
readonly pt: "Iniciar Projeto";
|
|
18
18
|
};
|
|
19
19
|
readonly secondary: {
|
|
20
|
-
readonly en: "Explore
|
|
21
|
-
readonly pt: "Ver
|
|
20
|
+
readonly en: "Explore Services";
|
|
21
|
+
readonly pt: "Ver Serviços";
|
|
22
22
|
};
|
|
23
23
|
readonly drag: {
|
|
24
24
|
readonly en: "Drag to explore";
|
|
@@ -13,8 +13,8 @@ export const HERO = {
|
|
|
13
13
|
en: "One studio for your whole brand — identity, websites, platforms, apps, social media and campaigns, designed, built and grown as one.",
|
|
14
14
|
pt: "Um só estúdio para toda a sua marca — identidade, websites, plataformas, aplicações, redes sociais e campanhas, desenhados, construídos e geridos como um todo.",
|
|
15
15
|
},
|
|
16
|
-
primary: { en: "Start a
|
|
17
|
-
secondary: { en: "Explore
|
|
16
|
+
primary: { en: "Start a Project", pt: "Iniciar Projeto" },
|
|
17
|
+
secondary: { en: "Explore Services", pt: "Ver Serviços" },
|
|
18
18
|
drag: { en: "Drag to explore", pt: "Arraste para explorar" },
|
|
19
19
|
};
|
|
20
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -17,8 +17,8 @@ export declare const NAVIGATION: {
|
|
|
17
17
|
readonly pt: "Contacto";
|
|
18
18
|
};
|
|
19
19
|
readonly callToAction: {
|
|
20
|
-
readonly en: "Start a
|
|
21
|
-
readonly pt: "Iniciar
|
|
20
|
+
readonly en: "Start a Project";
|
|
21
|
+
readonly pt: "Iniciar Projeto";
|
|
22
22
|
};
|
|
23
23
|
readonly language: {
|
|
24
24
|
readonly en: "Language";
|
|
@@ -4,7 +4,7 @@ export const NAVIGATION = {
|
|
|
4
4
|
capabilities: { en: "Capabilities", pt: "Capacidades" },
|
|
5
5
|
process: { en: "Process", pt: "Processo" },
|
|
6
6
|
contact: { en: "Contact", pt: "Contacto" },
|
|
7
|
-
callToAction: { en: "Start a
|
|
7
|
+
callToAction: { en: "Start a Project", pt: "Iniciar Projeto" },
|
|
8
8
|
language: { en: "Language", pt: "Idioma" },
|
|
9
9
|
};
|
|
10
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -24,12 +24,12 @@ export declare const SERVICES: {
|
|
|
24
24
|
readonly pt: "Websites que conquistam. Plataformas que gerem o negócio.";
|
|
25
25
|
};
|
|
26
26
|
readonly text: {
|
|
27
|
-
readonly en: "
|
|
28
|
-
readonly pt: "
|
|
27
|
+
readonly en: "A website that loads in an instant, ranks on search and turns visitors into customers. And behind it, a platform built around how you work — bookings, orders, payments, stock and invoicing in one place, the repetitive tasks done automatically — so your team spends its time on customers, not on admin.";
|
|
28
|
+
readonly pt: "Um website que abre num instante, aparece nas pesquisas e transforma visitas em clientes. E por trás dele, uma plataforma feita à medida da forma como trabalha — reservas, encomendas, pagamentos, stock e faturação num só lugar, as tarefas repetitivas feitas automaticamente — para que a sua equipa dedique o tempo aos clientes, não à burocracia.";
|
|
29
29
|
};
|
|
30
30
|
readonly capabilities: {
|
|
31
|
-
readonly en: readonly ["Websites and landing pages", "Online stores", "Bookings and ordering", "Dashboards and internal tools", "
|
|
32
|
-
readonly pt: readonly ["Websites e landing pages", "Lojas online", "Reservas e encomendas", "Dashboards e ferramentas internas", "
|
|
31
|
+
readonly en: readonly ["Websites and landing pages", "Online stores", "Bookings and ordering", "Dashboards and internal tools", "Business automation and integrations", "Search engine optimisation"];
|
|
32
|
+
readonly pt: readonly ["Websites e landing pages", "Lojas online", "Reservas e encomendas", "Dashboards e ferramentas internas", "Automação do negócio e integrações", "Otimização para motores de busca"];
|
|
33
33
|
};
|
|
34
34
|
}, {
|
|
35
35
|
readonly key: "mobile-application";
|
|
@@ -14,8 +14,8 @@ export const SERVICES = {
|
|
|
14
14
|
pt: "Websites que conquistam. Plataformas que gerem o negócio.",
|
|
15
15
|
},
|
|
16
16
|
text: {
|
|
17
|
-
en: "
|
|
18
|
-
pt: "
|
|
17
|
+
en: "A website that loads in an instant, ranks on search and turns visitors into customers. And behind it, a platform built around how you work — bookings, orders, payments, stock and invoicing in one place, the repetitive tasks done automatically — so your team spends its time on customers, not on admin.",
|
|
18
|
+
pt: "Um website que abre num instante, aparece nas pesquisas e transforma visitas em clientes. E por trás dele, uma plataforma feita à medida da forma como trabalha — reservas, encomendas, pagamentos, stock e faturação num só lugar, as tarefas repetitivas feitas automaticamente — para que a sua equipa dedique o tempo aos clientes, não à burocracia.",
|
|
19
19
|
},
|
|
20
20
|
capabilities: {
|
|
21
21
|
en: [
|
|
@@ -23,7 +23,7 @@ export const SERVICES = {
|
|
|
23
23
|
"Online stores",
|
|
24
24
|
"Bookings and ordering",
|
|
25
25
|
"Dashboards and internal tools",
|
|
26
|
-
"
|
|
26
|
+
"Business automation and integrations",
|
|
27
27
|
"Search engine optimisation",
|
|
28
28
|
],
|
|
29
29
|
pt: [
|
|
@@ -31,7 +31,7 @@ export const SERVICES = {
|
|
|
31
31
|
"Lojas online",
|
|
32
32
|
"Reservas e encomendas",
|
|
33
33
|
"Dashboards e ferramentas internas",
|
|
34
|
-
"
|
|
34
|
+
"Automação do negócio e integrações",
|
|
35
35
|
"Otimização para motores de busca",
|
|
36
36
|
],
|
|
37
37
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/content/services/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ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,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/utility/parse-contact/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2DAA2D,CAAC;AAK/F,0GAA0G;AAC1G,wBAAgB,YAAY,CAAC,IAAI,EAAE,QAAQ,EAAE,GAAG,SAAa,GAAG,aAAa,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/utility/parse-contact/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2DAA2D,CAAC;AAK/F,0GAA0G;AAC1G,wBAAgB,YAAY,CAAC,IAAI,EAAE,QAAQ,EAAE,GAAG,SAAa,GAAG,aAAa,CAa5E"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isLikelyBot } from "@sharadox/web-library/form/bot-check";
|
|
2
2
|
import { readField } from "@sharadox/web-library/form/field";
|
|
3
|
-
import {
|
|
4
|
-
const
|
|
3
|
+
import { CONTACT } from "@sharadox/sharadox-web-library/content/contact";
|
|
4
|
+
const NEED_KEYS = CONTACT.needs.options.map((need) => need.key);
|
|
5
5
|
const EMAIL = /^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/;
|
|
6
6
|
/** Reads and validates the contact form, flagging likely bots (honeypot filled or submitted too fast). */
|
|
7
7
|
export function parseContact(form, now = Date.now()) {
|
|
@@ -13,8 +13,8 @@ export function parseContact(form, now = Date.now()) {
|
|
|
13
13
|
company: readField(form, "company", 160),
|
|
14
14
|
message: readField(form, "message", 5000),
|
|
15
15
|
locale: readField(form, "locale", 5) || "en",
|
|
16
|
-
//
|
|
17
|
-
|
|
16
|
+
// What the visitor ticked under "What do you need?"; anything else is ignored.
|
|
17
|
+
needs: [...new Set(form.getAll("need").map(String))].filter((key) => NEED_KEYS.includes(key)),
|
|
18
18
|
};
|
|
19
19
|
if (!value.name || !value.message || !EMAIL.test(value.email))
|
|
20
20
|
return { kind: "invalid" };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/utility/parse-contact/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/utility/parse-contact/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AAIzE,MAAM,SAAS,GAAsB,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACnF,MAAM,KAAK,GAAG,+BAA+B,CAAC;AAE9C,0GAA0G;AAC1G,MAAM,UAAU,YAAY,CAAC,IAAc,EAAE,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE;IAC3D,IAAI,WAAW,CAAC,IAAI,EAAE,EAAE,GAAG,EAAE,CAAC;QAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;IACvD,MAAM,KAAK,GAAG;QACZ,IAAI,EAAE,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,CAAC;QAClC,KAAK,EAAE,SAAS,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,CAAC;QACpC,OAAO,EAAE,SAAS,CAAC,IAAI,EAAE,SAAS,EAAE,GAAG,CAAC;QACxC,OAAO,EAAE,SAAS,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,CAAC;QACzC,MAAM,EAAE,SAAS,CAAC,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC,IAAI,IAAI;QAC5C,+EAA+E;QAC/E,KAAK,EAAE,CAAC,GAAG,IAAI,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAkB,EAAE,CAAC,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;KAC9G,CAAC;IACF,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC;QAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;IAC1F,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;AAClC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NeedKey } from "@sharadox/sharadox-web-library/content/contact";
|
|
2
2
|
/** A validated contact form submission. */
|
|
3
3
|
export interface ContactMessage {
|
|
4
4
|
name: string;
|
|
@@ -6,8 +6,8 @@ export interface ContactMessage {
|
|
|
6
6
|
company: string;
|
|
7
7
|
message: string;
|
|
8
8
|
locale: string;
|
|
9
|
-
/**
|
|
10
|
-
|
|
9
|
+
/** What the visitor needs, ticked in the form. */
|
|
10
|
+
needs: NeedKey[];
|
|
11
11
|
}
|
|
12
12
|
export type ParsedContact = {
|
|
13
13
|
kind: "bot";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../source/utility/parse-contact/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../source/utility/parse-contact/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AAE9E,2CAA2C;AAC3C,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,kDAAkD;IAClD,KAAK,EAAE,OAAO,EAAE,CAAC;CAClB;AAED,MAAM,MAAM,aAAa,GAAG;IAAE,IAAI,EAAE,KAAK,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,cAAc,CAAA;CAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sharadox/sharadox-web-library",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.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",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"dependencies": {
|
|
84
84
|
"@react-three/fiber": "^9.8.2",
|
|
85
85
|
"@sharadox/email-web-library": "^0.2.0",
|
|
86
|
-
"@sharadox/web-library": "^0.
|
|
86
|
+
"@sharadox/web-library": "^0.3.0",
|
|
87
87
|
"motion": "^12.43.0",
|
|
88
88
|
"three": "^0.180.0"
|
|
89
89
|
},
|