@sharadox/sharadox-web-library 0.1.0 → 0.3.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 +6 -3
- package/distribution/action/send-contact/index.js.map +1 -1
- package/distribution/component/contact/form/index.js +1 -1
- package/distribution/component/contact/form/index.js.map +1 -1
- package/distribution/component/footer/index.d.ts.map +1 -1
- package/distribution/component/footer/index.js +2 -1
- package/distribution/component/footer/index.js.map +1 -1
- package/distribution/component/marquee/index.d.ts +4 -1
- package/distribution/component/marquee/index.d.ts.map +1 -1
- package/distribution/component/marquee/index.js +8 -3
- package/distribution/component/marquee/index.js.map +1 -1
- package/distribution/component/marquee/index.module.css +15 -3
- package/distribution/content/contact/index.d.ts +2 -0
- package/distribution/content/contact/index.d.ts.map +1 -1
- package/distribution/content/contact/index.js +2 -0
- package/distribution/content/contact/index.js.map +1 -1
- package/distribution/content/hero/index.d.ts +2 -2
- package/distribution/content/hero/index.d.ts.map +1 -1
- package/distribution/content/hero/index.js +5 -1
- package/distribution/content/hero/index.js.map +1 -1
- package/distribution/content/separator/index.d.ts +6 -0
- package/distribution/content/separator/index.d.ts.map +1 -0
- package/distribution/content/separator/index.js +6 -0
- package/distribution/content/separator/index.js.map +1 -0
- package/distribution/content/services/index.d.ts +5 -5
- package/distribution/content/services/index.d.ts.map +1 -1
- package/distribution/content/services/index.js +12 -11
- package/distribution/content/services/index.js.map +1 -1
- package/distribution/utility/separate/index.d.ts +3 -0
- package/distribution/utility/separate/index.d.ts.map +1 -0
- package/distribution/utility/separate/index.js +6 -0
- package/distribution/utility/separate/index.js.map +1 -0
- package/package.json +3 -1
|
@@ -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,CAkCnF"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { separate } from "@sharadox/sharadox-web-library/utility/separate";
|
|
1
2
|
import { createEmailSender, EmailError, readEmailServerConfiguration } from "@sharadox/email-web-library";
|
|
3
|
+
import { CONTACT } from "@sharadox/sharadox-web-library/content/contact";
|
|
2
4
|
import { SITE } from "@sharadox/sharadox-web-library/content/site";
|
|
3
5
|
import { escapeHtml } from "@sharadox/web-library/html/escape";
|
|
4
6
|
import { parseContact } from "@sharadox/sharadox-web-library/utility/parse-contact";
|
|
@@ -20,17 +22,18 @@ export async function sendContact(form, ip) {
|
|
|
20
22
|
const { name, email, company, message, locale } = parsed.value;
|
|
21
23
|
if (!allow(ip))
|
|
22
24
|
return { status: "rate-limited" };
|
|
23
|
-
const subject =
|
|
25
|
+
const subject = separate("New project enquiry", company ? `${name} (${company})` : name);
|
|
24
26
|
const text = `Name: ${name}\nEmail: ${email}\nCompany: ${company || "—"}\nLanguage: ${locale}\nIP: ${ip}\n\n${message}`;
|
|
25
27
|
const html = `<div style="font-family:-apple-system,Segoe UI,sans-serif;font-size:15px;line-height:1.6;color:#111">
|
|
26
28
|
<p style="color:#666;font-size:13px;margin:0 0 16px">New enquiry from sharadox.com (${escapeHtml(locale)})</p>
|
|
27
|
-
<p style="margin:0"
|
|
29
|
+
<p style="margin:0">${separate(`<b>${escapeHtml(name)}</b>`, company && escapeHtml(company))}<br><a href="mailto:${escapeHtml(email)}">${escapeHtml(email)}</a></p>
|
|
28
30
|
<hr style="border:0;border-top:1px solid #eee;margin:18px 0">
|
|
29
31
|
<p style="white-space:pre-wrap;margin:0">${escapeHtml(message)}</p></div>`;
|
|
30
32
|
try {
|
|
31
33
|
const configuration = readEmailServerConfiguration();
|
|
32
34
|
await createEmailSender(configuration).send({
|
|
33
|
-
from: { name:
|
|
35
|
+
from: { name: CONTACT.senderName, address: process.env.EMAIL_SENDER_ADDRESS || configuration.username },
|
|
36
|
+
// Replying to the email answers the visitor at the address they typed in the form.
|
|
34
37
|
to: SITE.email,
|
|
35
38
|
replyTo: { name: name.replace(/[\r\n]+/g, " "), address: email },
|
|
36
39
|
subject: subject.replace(/[\r\n]+/g, " ").slice(0, 300),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/action/send-contact/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAC;AAC1G,OAAO,EAAE,IAAI,EAAE,MAAM,6CAA6C,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,sDAAsD,CAAC;AACpF,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAG1E,MAAM,KAAK,GAAG,iBAAiB,CAAC,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC;AAExE;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,IAAc,EAAE,EAAU;IAC1D,MAAM,MAAM,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;IAClC,+CAA+C;IAC/C,IAAI,MAAM,CAAC,IAAI,KAAK,KAAK;QAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;IACrD,IAAI,MAAM,CAAC,IAAI,KAAK,SAAS;QAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;IAC5D,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,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,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,KAAK,YAAY,UAAU,IAAI,KAAK,CAAC,IAAI,KAAK,iBAAiB;YAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;QAClG,OAAO,CAAC,KAAK,CAAC,yBAAyB,EAAE,KAAK,CAAC,CAAC;QAChD,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC;IAC9B,CAAC;AACH,CAAC"}
|
|
@@ -18,6 +18,6 @@ export function ContactForm({ locale, action: sendAction }) {
|
|
|
18
18
|
startedAt.current.value = String(Date.now());
|
|
19
19
|
}, []);
|
|
20
20
|
const spotlight = useSpotlight();
|
|
21
|
-
return (_jsx(AnimatePresence, { mode: "wait", children: state.status === "sent" ? (_jsxs(motion.div, { className: `${styles.form} ${styles.done}`, initial: { opacity: 0, scale: 0.98 }, animate: { opacity: 1, scale: 1 }, role: "status", children: [_jsxs("svg", { viewBox: "0 0 48 48", className: styles.check, "aria-hidden": true, children: [_jsx("circle", { cx: "24", cy: "24", r: "22" }), _jsx("path", { d: "M14 24.5l7 7 13-14" })] }), _jsx("p", { children: translate(CONTACT.sent, locale) })] }, "sent")) : (_jsxs(motion.form, { ref: spotlight, action: action, className: styles.form, exit: { opacity: 0, scale: 0.98 }, children: [_jsx("input", { ref: startedAt, type: "hidden", name: "started-at", defaultValue: "0" }), _jsx("input", { type: "hidden", name: "locale", value: locale }), _jsx("div", { className: styles.honeypot, "aria-hidden": true, children: _jsxs("label", { children: ["Website", _jsx("input", { name: "website", tabIndex: -1, autoComplete: "off" })] }) }), _jsxs("div", { className: styles.row, children: [_jsxs("label", { className: styles.field, children: [_jsx("span", { children: translate(CONTACT.name, locale) }), _jsx("input", { name: "name", required: true, autoComplete: "name", maxLength: 120 })] }), _jsxs("label", { className: styles.field, children: [_jsx("span", { children: translate(CONTACT.
|
|
21
|
+
return (_jsx(AnimatePresence, { mode: "wait", children: state.status === "sent" ? (_jsxs(motion.div, { className: `${styles.form} ${styles.done}`, initial: { opacity: 0, scale: 0.98 }, animate: { opacity: 1, scale: 1 }, role: "status", children: [_jsxs("svg", { viewBox: "0 0 48 48", className: styles.check, "aria-hidden": true, children: [_jsx("circle", { cx: "24", cy: "24", r: "22" }), _jsx("path", { d: "M14 24.5l7 7 13-14" })] }), _jsx("p", { children: translate(CONTACT.sent, locale) })] }, "sent")) : (_jsxs(motion.form, { ref: spotlight, action: action, className: styles.form, exit: { opacity: 0, scale: 0.98 }, children: [_jsx("input", { ref: startedAt, type: "hidden", name: "started-at", defaultValue: "0" }), _jsx("input", { type: "hidden", name: "locale", value: locale }), _jsx("div", { className: styles.honeypot, "aria-hidden": true, children: _jsxs("label", { children: ["Website", _jsx("input", { name: "website", tabIndex: -1, autoComplete: "off" })] }) }), _jsxs("div", { className: styles.row, children: [_jsxs("label", { className: styles.field, children: [_jsx("span", { children: translate(CONTACT.name, locale) }), _jsx("input", { name: "name", required: true, autoComplete: "name", maxLength: 120 })] }), _jsxs("label", { className: styles.field, children: [_jsx("span", { children: translate(CONTACT.company, locale) }), _jsx("input", { name: "company", autoComplete: "organization", maxLength: 160 })] })] }), _jsxs("label", { className: styles.field, children: [_jsx("span", { children: translate(CONTACT.email, locale) }), _jsx("input", { name: "email", type: "email", required: true, autoComplete: "email", maxLength: 200 })] }), _jsxs("label", { className: styles.field, children: [_jsx("span", { children: translate(CONTACT.message, locale) }), _jsx("textarea", { name: "message", required: true, rows: 5, maxLength: 5000 })] }), state.status !== "idle" && (_jsx("p", { className: styles.error, role: "alert", children: state.status === "failed" ? (_jsxs(_Fragment, { children: [translate(CONTACT.errors.failed, locale), " ", _jsx("a", { href: `mailto:${SITE.email}`, children: SITE.email }), "."] })) : (translate(CONTACT.errors[state.status], locale)) })), _jsx(Button, { size: "block", disabled: pending, arrow: !pending, children: pending ? translate(CONTACT.sending, locale) : translate(CONTACT.send, locale) })] }, "form")) }));
|
|
22
22
|
}
|
|
23
23
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@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C,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,KA7CL,MAAM,CA8CE,CACf,GACe,CACnB,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/footer/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/footer/index.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sDAAsD,CAAC;AAE7F,mEAAmE;AACnE,wBAAgB,MAAM,CAAC,EAAE,MAAM,EAAE,EAAE,gBAAgB,+BA8BlD"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { separate } from "@sharadox/sharadox-web-library/utility/separate";
|
|
2
3
|
import Link from "next/link";
|
|
3
4
|
import { FOOTER } from "@sharadox/sharadox-web-library/content/footer";
|
|
4
5
|
import { SITE } from "@sharadox/sharadox-web-library/content/site";
|
|
@@ -7,6 +8,6 @@ import { translate } from "@sharadox/web-library/internationalization/translate"
|
|
|
7
8
|
import styles from "./index.module.css";
|
|
8
9
|
/** Slogan, links, the big gradient wordmark and the legal line. */
|
|
9
10
|
export function Footer({ locale }) {
|
|
10
|
-
return (_jsxs("footer", { className: styles.footer, children: [_jsxs("div", { className: styles.top, children: [_jsxs("p", { className: styles.slogan, children: [translate(SITE.slogan, locale), "."] }), _jsxs("div", { className: styles.links, children: [_jsx("a", { href: `mailto:${SITE.email}`, children: SITE.email }), _jsx("span", { className: styles.languages, children: LOCALES.map((other) => (_jsx(Link, { href: `/${other}`, hrefLang: other, "aria-current": other === locale ? "true" : undefined, children: other === "en" ? "English" : "Português" }, other))) }), _jsxs("a", { href: "#top", children: [translate(FOOTER.top, locale), " \u2191"] })] })] }), _jsx("div", { className: styles.mark, "aria-hidden": true, children: "Sharadox" }),
|
|
11
|
+
return (_jsxs("footer", { className: styles.footer, children: [_jsxs("div", { className: styles.top, children: [_jsxs("p", { className: styles.slogan, children: [translate(SITE.slogan, locale), "."] }), _jsxs("div", { className: styles.links, children: [_jsx("a", { href: `mailto:${SITE.email}`, children: SITE.email }), _jsx("span", { className: styles.languages, children: LOCALES.map((other) => (_jsx(Link, { href: `/${other}`, hrefLang: other, "aria-current": other === locale ? "true" : undefined, children: other === "en" ? "English" : "Português" }, other))) }), _jsxs("a", { href: "#top", children: [translate(FOOTER.top, locale), " \u2191"] })] })] }), _jsx("div", { className: styles.mark, "aria-hidden": true, children: "Sharadox" }), _jsx("p", { className: `${styles.legal} monospace`, children: separate(`© ${new Date().getFullYear()} Sharadox`, translate(FOOTER.rights, locale)) })] }));
|
|
11
12
|
}
|
|
12
13
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/footer/index.tsx"],"names":[],"mappings":";AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,MAAM,EAAE,MAAM,+CAA+C,CAAC;AACvE,OAAO,EAAE,IAAI,EAAE,MAAM,6CAA6C,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,+CAA+C,CAAC;AACxE,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC,mEAAmE;AACnE,M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
/**
|
|
2
|
+
* Endless strip of the technologies we work with. Two identical groups slide left by exactly one group's width, so
|
|
3
|
+
* the second group lands where the first started and the loop has no gap or jump.
|
|
4
|
+
*/
|
|
2
5
|
export declare function Marquee(): import("react").JSX.Element;
|
|
3
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":"AAMA;;;GAGG;AACH,wBAAgB,OAAO,gCAiBtB"}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { STACK } from "@sharadox/sharadox-web-library/content/stack";
|
|
3
3
|
import styles from "./index.module.css";
|
|
4
|
-
/**
|
|
4
|
+
/** Times the list repeats inside one group, so a group is always wider than the widest screen. */
|
|
5
|
+
const REPEAT = 3;
|
|
6
|
+
/**
|
|
7
|
+
* Endless strip of the technologies we work with. Two identical groups slide left by exactly one group's width, so
|
|
8
|
+
* the second group lands where the first started and the loop has no gap or jump.
|
|
9
|
+
*/
|
|
5
10
|
export function Marquee() {
|
|
6
|
-
const
|
|
7
|
-
return (_jsx("div", { className: styles.marquee, "aria-label": STACK.join(", "), children: _jsx("div", { className: styles.track, "aria-hidden": true, children:
|
|
11
|
+
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))) }) }));
|
|
8
13
|
}
|
|
9
14
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/marquee/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,8CAA8C,CAAC;AACrE,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/marquee/index.tsx"],"names":[],"mappings":";AAAA,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,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,OAAO,gBAAc,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,YAC1D,cAAK,SAAS,EAAE,MAAM,CAAC,KAAK,iCACzB,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,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
.marquee {
|
|
2
|
+
--marquee-gap: 12px;
|
|
2
3
|
overflow: hidden;
|
|
3
4
|
border-block: 1px solid var(--line);
|
|
4
5
|
padding: 22px 0;
|
|
@@ -7,9 +8,15 @@
|
|
|
7
8
|
|
|
8
9
|
.track {
|
|
9
10
|
display: flex;
|
|
10
|
-
gap: 12px;
|
|
11
11
|
width: max-content;
|
|
12
|
-
animation: marquee
|
|
12
|
+
animation: marquee 120s linear infinite;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/* Each group ends with the same gap that separates the pills, so both groups are exactly the same width. */
|
|
16
|
+
.group {
|
|
17
|
+
display: flex;
|
|
18
|
+
gap: var(--marquee-gap);
|
|
19
|
+
padding-right: var(--marquee-gap);
|
|
13
20
|
}
|
|
14
21
|
|
|
15
22
|
.pill {
|
|
@@ -23,6 +30,11 @@
|
|
|
23
30
|
|
|
24
31
|
@keyframes marquee {
|
|
25
32
|
to {
|
|
26
|
-
transform: translateX(
|
|
33
|
+
transform: translateX(-50%);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
@media (prefers-reduced-motion: reduce) {
|
|
37
|
+
.track {
|
|
38
|
+
animation: none;
|
|
27
39
|
}
|
|
28
40
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/** Contact section and form copy. */
|
|
2
2
|
export declare const CONTACT: {
|
|
3
|
+
/** Display name of the email the contact form sends (from web@email.sharadox.com). */
|
|
4
|
+
readonly senderName: "Sharadox Web Application";
|
|
3
5
|
readonly eyebrow: {
|
|
4
6
|
readonly en: "Contact";
|
|
5
7
|
readonly pt: "Contacto";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/content/contact/index.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,eAAO,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/content/contact/index.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,eAAO,MAAM,OAAO;IAClB,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiC9E,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/** Contact section and form copy. */
|
|
2
2
|
export const CONTACT = {
|
|
3
|
+
/** Display name of the email the contact form sends (from web@email.sharadox.com). */
|
|
4
|
+
senderName: "Sharadox Web Application",
|
|
3
5
|
eyebrow: { en: "Contact", pt: "Contacto" },
|
|
4
6
|
title: { en: "Let's make it simple.", pt: "Vamos simplificar." },
|
|
5
7
|
text: {
|
|
@@ -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,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,gEAAgE;QACpE,EAAE,EAAE,uDAAuD;KAC5D;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,OAAO,EAAE,EAAE,EAAE,EAAE,wBAAwB,EAAE,EAAE,EAAE,uBAAuB,EAAE;IACtE,IAAI,EAAE,EAAE,EAAE,EAAE,cAAc,EAAE,EAAE,EAAE,iBAAiB,EAAE;IACnD,OAAO,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE,WAAW,EAAE;IAC5C,IAAI,EAAE;QACJ,EAAE,EAAE,iEAAiE;QACrE,EAAE,EAAE,yEAAyE;KAC9E;IACD,MAAM,EAAE;QACN,OAAO,EAAE;YACP,EAAE,EAAE,wDAAwD;YAC5D,EAAE,EAAE,gDAAgD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D;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"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/** Hero copy. The title is split into lines so the last one can be styled on its own. */
|
|
2
2
|
export declare const HERO: {
|
|
3
3
|
readonly eyebrow: {
|
|
4
|
-
readonly en:
|
|
5
|
-
readonly pt:
|
|
4
|
+
readonly en: string;
|
|
5
|
+
readonly pt: string;
|
|
6
6
|
};
|
|
7
7
|
readonly lines: {
|
|
8
8
|
readonly en: readonly ["Technologies", "that simplify", "the world."];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/content/hero/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/content/hero/index.ts"],"names":[],"mappings":"AAEA,yFAAyF;AACzF,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;CAgBP,CAAC"}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
import { separate } from "@sharadox/sharadox-web-library/utility/separate";
|
|
1
2
|
/** Hero copy. The title is split into lines so the last one can be styled on its own. */
|
|
2
3
|
export const HERO = {
|
|
3
|
-
eyebrow: {
|
|
4
|
+
eyebrow: {
|
|
5
|
+
en: separate("Algarve, Portugal", "working worldwide"),
|
|
6
|
+
pt: separate("Algarve, Portugal", "para o mundo inteiro"),
|
|
7
|
+
},
|
|
4
8
|
lines: {
|
|
5
9
|
en: ["Technologies", "that simplify", "the world."],
|
|
6
10
|
pt: ["Tecnologias", "que simplificam", "o mundo."],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/content/hero/index.ts"],"names":[],"mappings":"AAAA,yFAAyF;AACzF,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,OAAO,EAAE,EAAE,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/content/hero/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAE3E,yFAAyF;AACzF,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,OAAO,EAAE;QACP,EAAE,EAAE,QAAQ,CAAC,mBAAmB,EAAE,mBAAmB,CAAC;QACtD,EAAE,EAAE,QAAQ,CAAC,mBAAmB,EAAE,sBAAsB,CAAC;KAC1D;IACD,KAAK,EAAE;QACL,EAAE,EAAE,CAAC,cAAc,EAAE,eAAe,EAAE,YAAY,CAAC;QACnD,EAAE,EAAE,CAAC,aAAa,EAAE,iBAAiB,EAAE,UAAU,CAAC;KACnD;IACD,QAAQ,EAAE;QACR,EAAE,EAAE,kGAAkG;QACtG,EAAE,EAAE,oHAAoH;KACzH;IACD,OAAO,EAAE,EAAE,EAAE,EAAE,iBAAiB,EAAE,EAAE,EAAE,iBAAiB,EAAE;IACzD,SAAS,EAAE,EAAE,EAAE,EAAE,eAAe,EAAE,EAAE,EAAE,mBAAmB,EAAE;IAC3D,IAAI,EAAE,EAAE,EAAE,EAAE,iBAAiB,EAAE,EAAE,EAAE,uBAAuB,EAAE;CACpD,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Sharadox text separator, used wherever two labels sit side by side (page titles, the footer, tags, details,
|
|
3
|
+
* email subjects). Change it here and every Sharadox text follows.
|
|
4
|
+
*/
|
|
5
|
+
export declare const SEPARATOR = "\u00B7";
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/content/separator/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,SAAS,WAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/content/separator/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,CAAC"}
|
|
@@ -10,7 +10,7 @@ export declare const SERVICES: {
|
|
|
10
10
|
};
|
|
11
11
|
readonly items: readonly [{
|
|
12
12
|
readonly key: "web";
|
|
13
|
-
readonly tag:
|
|
13
|
+
readonly tag: string;
|
|
14
14
|
readonly title: {
|
|
15
15
|
readonly en: "Websites";
|
|
16
16
|
readonly pt: "Websites";
|
|
@@ -25,7 +25,7 @@ export declare const SERVICES: {
|
|
|
25
25
|
};
|
|
26
26
|
}, {
|
|
27
27
|
readonly key: "platform";
|
|
28
|
-
readonly tag:
|
|
28
|
+
readonly tag: string;
|
|
29
29
|
readonly title: {
|
|
30
30
|
readonly en: "Platforms";
|
|
31
31
|
readonly pt: "Plataformas";
|
|
@@ -40,7 +40,7 @@ export declare const SERVICES: {
|
|
|
40
40
|
};
|
|
41
41
|
}, {
|
|
42
42
|
readonly key: "applications";
|
|
43
|
-
readonly tag:
|
|
43
|
+
readonly tag: string;
|
|
44
44
|
readonly title: {
|
|
45
45
|
readonly en: "Apps";
|
|
46
46
|
readonly pt: "Aplicações";
|
|
@@ -55,8 +55,8 @@ export declare const SERVICES: {
|
|
|
55
55
|
};
|
|
56
56
|
}];
|
|
57
57
|
readonly notifications: {
|
|
58
|
-
readonly en: readonly [readonly ["New booking",
|
|
59
|
-
readonly pt: readonly [readonly ["Nova reserva",
|
|
58
|
+
readonly en: readonly [readonly ["New booking", string], readonly ["Payment received", string], readonly ["Order ready", string], readonly ["New customer", string]];
|
|
59
|
+
readonly pt: readonly [readonly ["Nova reserva", string], readonly ["Pagamento recebido", string], readonly ["Encomenda pronta", string], readonly ["Novo cliente", string]];
|
|
60
60
|
};
|
|
61
61
|
};
|
|
62
62
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -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":"AAEA,oEAAoE;AACpE,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiDX,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { separate } from "@sharadox/sharadox-web-library/utility/separate";
|
|
1
2
|
/** "What we build" section. `key` picks each card's live visual. */
|
|
2
3
|
export const SERVICES = {
|
|
3
4
|
eyebrow: { en: "What we build", pt: "O que construímos" },
|
|
@@ -5,7 +6,7 @@ export const SERVICES = {
|
|
|
5
6
|
items: [
|
|
6
7
|
{
|
|
7
8
|
key: "web",
|
|
8
|
-
tag: "01
|
|
9
|
+
tag: separate("01", "Web"),
|
|
9
10
|
title: { en: "Websites", pt: "Websites" },
|
|
10
11
|
lead: { en: "Fast, beautiful, found.", pt: "Rápidos, bonitos, encontrados." },
|
|
11
12
|
text: {
|
|
@@ -15,7 +16,7 @@ export const SERVICES = {
|
|
|
15
16
|
},
|
|
16
17
|
{
|
|
17
18
|
key: "platform",
|
|
18
|
-
tag: "02
|
|
19
|
+
tag: separate("02", "Platforms"),
|
|
19
20
|
title: { en: "Platforms", pt: "Plataformas" },
|
|
20
21
|
lead: { en: "The engine behind the business.", pt: "O motor por trás do negócio." },
|
|
21
22
|
text: {
|
|
@@ -25,7 +26,7 @@ export const SERVICES = {
|
|
|
25
26
|
},
|
|
26
27
|
{
|
|
27
28
|
key: "applications",
|
|
28
|
-
tag: "03
|
|
29
|
+
tag: separate("03", "Apps"),
|
|
29
30
|
title: { en: "Apps", pt: "Aplicações" },
|
|
30
31
|
lead: { en: "In every pocket.", pt: "Em todos os bolsos." },
|
|
31
32
|
text: {
|
|
@@ -36,16 +37,16 @@ export const SERVICES = {
|
|
|
36
37
|
],
|
|
37
38
|
notifications: {
|
|
38
39
|
en: [
|
|
39
|
-
["New booking", "Table for 4
|
|
40
|
-
["Payment received", "€84.50
|
|
41
|
-
["Order ready", "#2041
|
|
42
|
-
["New customer", "Ana M.
|
|
40
|
+
["New booking", separate("Table for 4", "8:00 PM")],
|
|
41
|
+
["Payment received", separate("€84.50", "Visa")],
|
|
42
|
+
["Order ready", separate("#2041", "Pick-up")],
|
|
43
|
+
["New customer", separate("Ana M.", "Lisbon")],
|
|
43
44
|
],
|
|
44
45
|
pt: [
|
|
45
|
-
["Nova reserva", "Mesa para 4
|
|
46
|
-
["Pagamento recebido", "€84,50
|
|
47
|
-
["Encomenda pronta", "#2041
|
|
48
|
-
["Novo cliente", "Ana M.
|
|
46
|
+
["Nova reserva", separate("Mesa para 4", "20:00")],
|
|
47
|
+
["Pagamento recebido", separate("€84,50", "Visa")],
|
|
48
|
+
["Encomenda pronta", separate("#2041", "Recolha")],
|
|
49
|
+
["Novo cliente", separate("Ana M.", "Lisboa")],
|
|
49
50
|
],
|
|
50
51
|
},
|
|
51
52
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/content/services/index.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,OAAO,EAAE,EAAE,EAAE,EAAE,eAAe,EAAE,EAAE,EAAE,mBAAmB,EAAE;IACzD,KAAK,EAAE,EAAE,EAAE,EAAE,2BAA2B,EAAE,EAAE,EAAE,6BAA6B,EAAE;IAC7E,KAAK,EAAE;QACL;YACE,GAAG,EAAE,KAAK;YACV,GAAG,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","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nF,EAAE,EAAE,kFAAkF;aACvF;SACF;KACF;IACD,aAAa,EAAE;QACb,EAAE,EAAE;YACF,CAAC,aAAa,EAAE,QAAQ,CAAC,aAAa,EAAE,SAAS,CAAC,CAAC;YACnD,CAAC,kBAAkB,EAAE,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;YAChD,CAAC,aAAa,EAAE,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;YAC7C,CAAC,cAAc,EAAE,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;SAC/C;QACD,EAAE,EAAE;YACF,CAAC,cAAc,EAAE,QAAQ,CAAC,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;CACO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/utility/separate/index.ts"],"names":[],"mappings":"AAEA,4GAA4G;AAC5G,wBAAgB,QAAQ,CAAC,GAAG,KAAK,EAAE,CAAC,MAAM,GAAG,KAAK,GAAG,IAAI,GAAG,SAAS,CAAC,EAAE,GAAG,MAAM,CAEhF"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SEPARATOR } from "@sharadox/sharadox-web-library/content/separator";
|
|
2
|
+
/** Joins the parts that are set with the Sharadox separator, spaced: separate("01", "Web") → "01 · Web". */
|
|
3
|
+
export function separate(...parts) {
|
|
4
|
+
return parts.filter(Boolean).join(` ${SEPARATOR} `);
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/utility/separate/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,kDAAkD,CAAC;AAE7E,4GAA4G;AAC5G,MAAM,UAAU,QAAQ,CAAC,GAAG,KAA4C;IACtE,OAAO,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,SAAS,GAAG,CAAC,CAAC;AACtD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sharadox/sharadox-web-library",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Sharadox's own website building blocks: content, components, brand and actions for sharadox-web-application, plus the preview notice and agency credit used on client demos.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "SEE LICENSE IN LICENCA.md",
|
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
"@types/node": "^24.19.2",
|
|
55
55
|
"@types/react": "^19.3.0",
|
|
56
56
|
"@types/react-dom": "^19.3.0",
|
|
57
|
+
"@types/smtp-server": "^3.5.13",
|
|
57
58
|
"@types/three": "^0.187.0",
|
|
58
59
|
"@vitejs/plugin-react": "^6.3.0",
|
|
59
60
|
"eslint": "9.39.5",
|
|
@@ -67,6 +68,7 @@
|
|
|
67
68
|
"react": "^19.3.1",
|
|
68
69
|
"react-dom": "^19.3.1",
|
|
69
70
|
"sass": "^1.108.1",
|
|
71
|
+
"smtp-server": "^3.21.3",
|
|
70
72
|
"turbo": "^2.11.10",
|
|
71
73
|
"typedoc": "^0.28.20",
|
|
72
74
|
"typescript": "6.0.3",
|