@sharadox/sharadox-web-library 0.51.3-shared-helpers.78 → 0.52.0-development.80
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 +2 -1
- package/distribution/action/send-contact/index.js.map +1 -1
- package/distribution/component/about/feed/activity/index.js +1 -1
- package/distribution/component/about/feed/activity/index.js.map +1 -1
- package/distribution/component/about/feed/index.js +1 -1
- package/distribution/component/about/feed/index.js.map +1 -1
- package/distribution/component/consent/index.d.ts.map +1 -1
- package/distribution/component/consent/index.js +2 -18
- package/distribution/component/consent/index.js.map +1 -1
- package/distribution/component/contact/form/index.d.ts.map +1 -1
- package/distribution/component/contact/form/index.js +13 -16
- 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 +3 -3
- package/distribution/component/footer/index.js.map +1 -1
- package/distribution/component/hero/index.js +1 -1
- package/distribution/component/hero/index.js.map +1 -1
- package/distribution/component/navigation/index.d.ts.map +1 -1
- package/distribution/component/navigation/index.js +5 -10
- package/distribution/component/navigation/index.js.map +1 -1
- package/distribution/component/not-found/index.js +3 -3
- package/distribution/component/not-found/index.js.map +1 -1
- package/distribution/component/portfolio/project/index.d.ts.map +1 -1
- package/distribution/component/portfolio/project/index.js +2 -1
- package/distribution/component/portfolio/project/index.js.map +1 -1
- package/distribution/component/project-page/chapter/index.d.ts.map +1 -1
- package/distribution/component/project-page/chapter/index.js +2 -1
- package/distribution/component/project-page/chapter/index.js.map +1 -1
- package/distribution/component/section-indicator/index.d.ts.map +1 -1
- package/distribution/component/section-indicator/index.js +2 -1
- package/distribution/component/section-indicator/index.js.map +1 -1
- package/distribution/component/service-shortcut/index.js +2 -2
- package/distribution/component/service-shortcut/index.js.map +1 -1
- package/distribution/content/consent/index.d.ts +1 -41
- package/distribution/content/consent/index.d.ts.map +1 -1
- package/distribution/content/consent/index.js +1 -11
- package/distribution/content/consent/index.js.map +1 -1
- package/distribution/content/email-design/index.d.ts +1 -1
- package/distribution/content/email-design/index.d.ts.map +1 -1
- package/distribution/content/hero/index.js +3 -3
- package/distribution/content/hero/index.js.map +1 -1
- package/distribution/utility/contact-need/index.d.ts.map +1 -1
- package/distribution/utility/contact-need/index.js +2 -1
- package/distribution/utility/contact-need/index.js.map +1 -1
- package/distribution/utility/contact-problem/index.d.ts.map +1 -1
- package/distribution/utility/contact-problem/index.js +6 -9
- package/distribution/utility/contact-problem/index.js.map +1 -1
- package/distribution/utility/separate/index.d.ts +3 -2
- package/distribution/utility/separate/index.d.ts.map +1 -1
- package/distribution/utility/separate/index.js +3 -6
- package/distribution/utility/separate/index.js.map +1 -1
- package/distribution/utility/sharadox-email/index.d.ts +2 -1
- package/distribution/utility/sharadox-email/index.d.ts.map +1 -1
- package/distribution/utility/sharadox-email/index.js +3 -4
- package/distribution/utility/sharadox-email/index.js.map +1 -1
- package/llms.txt +1 -0
- package/package.json +1 -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;;;;;;;;;;GAUG;AACH,eAAO,MAAM,WAAW,gHAYtB,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { inlineImage } from "@sharadox/email-web-library/inline-image";
|
|
1
2
|
import { createContactAction } from "@sharadox/form-web-library/contact-action";
|
|
2
3
|
import { EMAIL_LOGO } from "@sharadox/sharadox-web-library/content/email-logo";
|
|
3
4
|
import { SHARADOX_EMAIL } from "@sharadox/sharadox-web-library/content/email-design";
|
|
@@ -18,7 +19,7 @@ export const sendContact = createContactAction({
|
|
|
18
19
|
to: SITE.email,
|
|
19
20
|
company: CONTACT.sender,
|
|
20
21
|
site: "sharadox.com",
|
|
21
|
-
logo: async () => (
|
|
22
|
+
logo: async () => inlineImage("logo", EMAIL_LOGO),
|
|
22
23
|
design: SHARADOX_EMAIL,
|
|
23
24
|
acknowledgement: CONTACT.acknowledgement,
|
|
24
25
|
choices: Object.fromEntries(CONTACT.needs.options.map((need) => [need.key, need.en])),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/action/send-contact/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAChF,OAAO,EAAE,UAAU,EAAE,MAAM,mDAAmD,CAAC;AAC/E,OAAO,EAAE,cAAc,EAAE,MAAM,qDAAqD,CAAC;AACrF,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AACzE,OAAO,EAAE,IAAI,EAAE,MAAM,6CAA6C,CAAC;AAEnE;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,mBAAmB,CAAC;IAC7C,EAAE,EAAE,IAAI,CAAC,KAAK;IACd,OAAO,EAAE,OAAO,CAAC,MAAM;IACvB,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/action/send-contact/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAChF,OAAO,EAAE,UAAU,EAAE,MAAM,mDAAmD,CAAC;AAC/E,OAAO,EAAE,cAAc,EAAE,MAAM,qDAAqD,CAAC;AACrF,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AACzE,OAAO,EAAE,IAAI,EAAE,MAAM,6CAA6C,CAAC;AAEnE;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,mBAAmB,CAAC;IAC7C,EAAE,EAAE,IAAI,CAAC,KAAK;IACd,OAAO,EAAE,OAAO,CAAC,MAAM;IACvB,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE,KAAK,IAAI,EAAE,CAAC,WAAW,CAAC,MAAM,EAAE,UAAU,CAAC;IACjD,MAAM,EAAE,cAAc;IACtB,eAAe,EAAE,OAAO,CAAC,eAAe;IACxC,OAAO,EAAE,MAAM,CAAC,WAAW,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;IACrF,iDAAiD;IACjD,KAAK,EAAE,gBAAgB;IACvB,aAAa,EAAE,IAAI;IACnB,oBAAoB,EAAE,OAAO,CAAC,oBAAoB;CACnD,CAAC,CAAC"}
|
|
@@ -4,8 +4,8 @@ import { Icon } from "@sharadox/icon-web-library/icon";
|
|
|
4
4
|
import { translate } from "@sharadox/internationalization-web-library/translate";
|
|
5
5
|
import { ABOUT } from "@sharadox/sharadox-web-library/content/about";
|
|
6
6
|
import styles from "./index.module.css";
|
|
7
|
+
import { EASE } from "@sharadox/animation-web-library/ease";
|
|
7
8
|
const { feed } = ABOUT.business;
|
|
8
|
-
const EASE = [0.22, 1, 0.36, 1];
|
|
9
9
|
/** A person's initials: "Ana Sousa" is "AS", "Rui" is "R". */
|
|
10
10
|
const initials = (name) => name
|
|
11
11
|
.split(" ")
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../source/component/about/feed/activity/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,iCAAiC,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,EAAE,KAAK,EA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ox/sharadox-web-library/component/about/feed/script";
|
|
13
13
|
import { ABOUT } from "@sharadox/sharadox-web-library/content/about";
|
|
14
14
|
import styles from "./index.module.css";
|
|
15
|
+
import { EASE } from "@sharadox/animation-web-library/ease";
|
|
15
16
|
const { feed } = ABOUT.business;
|
|
16
|
-
const EASE = [0.22, 1, 0.36, 1];
|
|
17
17
|
/** The label a target shows while the pointer reads it. */
|
|
18
18
|
function tipFor(target, locale) {
|
|
19
19
|
const { project, client } = feed;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/about/feed/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAsB,MAAM,OAAO,CAAC;AACzF,OAAO,EAAE,IAAI,EAAE,MAAM,iCAAiC,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,EAAE,QAAQ,EAAE,MAAM,8DAA8D,CAAC;AACxF,OAAO,EAAE,MAAM,EAAE,MAAM,4DAA4D,CAAC;AACpF,OAAO,EAAE,KAAK,EAAE,MAAM,2DAA2D,CAAC;AAClF,OAAO,EAAE,OAAO,EAAE,MAAM,6DAA6D,CAAC;AACtF,OAAO,EAAE,QAAQ,EAAE,MAAM,4DAA4D,CAAC;AACtF,OAAO,EAAE,KAAK,EAAE,MAAM,8CAA8C,CAAC;AACrE,OAAO,MAAM,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/about/feed/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACvD,O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sourceRoot":"","sources":["../../../source/component/consent/index.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uDAAuD,CAAC;AAE/F,qHAAqH;AACrH,wBAAgB,OAAO,CAAC,EAAE,MAAM,EAAE,EAAE,iBAAiB,+
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/consent/index.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uDAAuD,CAAC;AAE/F,qHAAqH;AACrH,wBAAgB,OAAO,CAAC,EAAE,MAAM,EAAE,EAAE,iBAAiB,+BAsBpD"}
|
|
@@ -1,29 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
3
|
import { ConsentPanel } from "@sharadox/consent-web-library/consent-panel";
|
|
4
|
-
import {
|
|
4
|
+
import { consentCopy } from "@sharadox/consent-web-library/consent-copy";
|
|
5
5
|
import { Cross } from "@sharadox/sharadox-web-library/component/cross";
|
|
6
6
|
import { CONSENT, CONSENT_CONFIGURATION } from "@sharadox/sharadox-web-library/content/consent";
|
|
7
7
|
import styles from "./index.module.css";
|
|
8
8
|
/** The Sharadox cookie panel: the shared consent panel with Sharadox copy, grid marks and a small turning cookie. */
|
|
9
9
|
export function Consent({ locale }) {
|
|
10
|
-
const copy =
|
|
11
|
-
title: translate(CONSENT.title, locale),
|
|
12
|
-
text: translate(CONSENT.text, locale),
|
|
13
|
-
acceptAll: translate(CONSENT.acceptAll, locale),
|
|
14
|
-
acknowledge: translate(CONSENT.acknowledge, locale),
|
|
15
|
-
details: translate(CONSENT.details, locale),
|
|
16
|
-
deny: translate(CONSENT.deny, locale),
|
|
17
|
-
customize: translate(CONSENT.customize, locale),
|
|
18
|
-
save: translate(CONSENT.save, locale),
|
|
19
|
-
back: translate(CONSENT.back, locale),
|
|
20
|
-
close: translate(CONSENT.close, locale),
|
|
21
|
-
alwaysOn: translate(CONSENT.alwaysOn, locale),
|
|
22
|
-
categories: Object.fromEntries(Object.entries(CONSENT.categories).map(([key, category]) => [
|
|
23
|
-
key,
|
|
24
|
-
{ title: translate(category.title, locale), text: translate(category.text, locale) },
|
|
25
|
-
])),
|
|
26
|
-
};
|
|
10
|
+
const copy = consentCopy(CONSENT, locale);
|
|
27
11
|
return (_jsx(ConsentPanel, { configuration: CONSENT_CONFIGURATION, copy: copy, className: styles.consent, icon: _jsxs("span", { className: styles.cookie, "aria-hidden": true, children: [_jsx("i", {}), _jsx("i", {}), _jsx("i", {})] }), decoration: _jsxs(_Fragment, { children: [_jsx(Cross, { corner: "top-left" }), _jsx(Cross, { corner: "top-right" })] }) }));
|
|
28
12
|
}
|
|
29
13
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/consent/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAC3E,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/consent/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAC3E,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AACzE,OAAO,EAAE,KAAK,EAAE,MAAM,gDAAgD,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,qBAAqB,EAAE,MAAM,gDAAgD,CAAC;AAChG,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC,qHAAqH;AACrH,MAAM,UAAU,OAAO,CAAC,EAAE,MAAM,EAAqB;IACnD,MAAM,IAAI,GAAG,WAAW,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IAC1C,OAAO,CACL,KAAC,YAAY,IACX,aAAa,EAAE,qBAAqB,EACpC,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,MAAM,CAAC,OAAO,EACzB,IAAI,EACF,gBAAM,SAAS,EAAE,MAAM,CAAC,MAAM,kCAC5B,aAAK,EACL,aAAK,EACL,aAAK,IACA,EAET,UAAU,EACR,8BACE,KAAC,KAAK,IAAC,MAAM,EAAC,UAAU,GAAG,EAC3B,KAAC,KAAK,IAAC,MAAM,EAAC,WAAW,GAAG,IAC3B,GAEL,CACH,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/contact/form/index.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4DAA4D,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/contact/form/index.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4DAA4D,CAAC;AAKxG;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,qBAAqB,+BAmMhF"}
|
|
@@ -14,6 +14,7 @@ import { contactProblems } from "@sharadox/sharadox-web-library/utility/contact-
|
|
|
14
14
|
import styles from "./index.module.css";
|
|
15
15
|
import { newTab } from "@sharadox/web-library/navigation/new-tab";
|
|
16
16
|
import { PhoneField } from "@sharadox/form-web-library/phone-field";
|
|
17
|
+
import { useChoiceRequests } from "@sharadox/form-web-library/choice-request";
|
|
17
18
|
/**
|
|
18
19
|
* The enquiry form: name, company, email and phone (one of them is enough), the choices grouped like the services, and
|
|
19
20
|
* a message. On wide screens, the visitor's details, the message and the send button on the left, the choices on the
|
|
@@ -28,22 +29,18 @@ export function ContactForm({ locale, action: sendAction }) {
|
|
|
28
29
|
const startedAt = useRef(0);
|
|
29
30
|
const needs = useRef(null);
|
|
30
31
|
// Buttons elsewhere (the service cards) ask for choices: tick them and make them glow for a moment.
|
|
31
|
-
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
};
|
|
44
|
-
addEventListener(CONTACT_NEED_EVENT, tick);
|
|
45
|
-
return () => removeEventListener(CONTACT_NEED_EVENT, tick);
|
|
46
|
-
}, []);
|
|
32
|
+
useChoiceRequests(CONTACT_NEED_EVENT, (requested) => {
|
|
33
|
+
for (const need of requested) {
|
|
34
|
+
const input = needs.current?.querySelector(`input[value="${need}"]`);
|
|
35
|
+
if (!input)
|
|
36
|
+
continue;
|
|
37
|
+
input.checked = true;
|
|
38
|
+
const chip = input.closest("label");
|
|
39
|
+
chip.removeAttribute("data-requested");
|
|
40
|
+
void chip.offsetWidth; // restart the glow when the same choice is asked for again
|
|
41
|
+
chip.setAttribute("data-requested", "");
|
|
42
|
+
}
|
|
43
|
+
});
|
|
47
44
|
useEffect(() => {
|
|
48
45
|
startedAt.current = Date.now();
|
|
49
46
|
}, []);
|
|
@@ -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,aAAa,EAAE,MAAM,8CAA8C,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEpE,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,O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AC,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,IACL,KA5HF,MAAM,CA6HE,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":"AA6BA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sDAAsD,CAAC;AAG7F;;;;;GAKG;AACH,wBAAgB,MAAM,CAAC,EAAE,MAAM,EAAE,IAAS,EAAE,EAAE,gBAAgB,+BA4F7D"}
|
|
@@ -4,7 +4,7 @@ import Link from "next/link";
|
|
|
4
4
|
import { Icon } from "@sharadox/icon-web-library/icon";
|
|
5
5
|
import { BrandIcon } from "@sharadox/icon-web-library/brand-icon";
|
|
6
6
|
import { newTab } from "@sharadox/web-library/navigation/new-tab";
|
|
7
|
-
import {
|
|
7
|
+
import { separated } from "@sharadox/web-library/text/separated";
|
|
8
8
|
import { translate } from "@sharadox/internationalization-web-library/translate";
|
|
9
9
|
import { Cross } from "@sharadox/sharadox-web-library/component/cross";
|
|
10
10
|
import { LocaleLink } from "@sharadox/internationalization-web-library/locale-link";
|
|
@@ -12,7 +12,6 @@ import { StyleSwitch } from "@sharadox/sharadox-web-library/component/style-swit
|
|
|
12
12
|
import { Wordmark } from "@sharadox/sharadox-web-library/component/wordmark";
|
|
13
13
|
import { Button } from "@sharadox/sharadox-web-library/component/button";
|
|
14
14
|
import { PreferencesLink } from "@sharadox/sharadox-web-library/component/consent/preferences-link";
|
|
15
|
-
import { CONSENT } from "@sharadox/sharadox-web-library/content/consent";
|
|
16
15
|
import { ComplaintsBookLink } from "@sharadox/legal-web-library/complaints-book-link";
|
|
17
16
|
import { DisputeNotice } from "@sharadox/legal-web-library/dispute-notice";
|
|
18
17
|
import { DISPUTE_RESOLUTION_CENTERS } from "@sharadox/legal-web-library/dispute-resolution";
|
|
@@ -29,6 +28,7 @@ import { CopyrightYears } from "@sharadox/time-web-library/copyright-years";
|
|
|
29
28
|
import { FOUNDED, GOOGLE_REVIEW, SITE, SOCIAL } from "@sharadox/sharadox-web-library/content/site";
|
|
30
29
|
import { LOCALES } from "@sharadox/sharadox-web-library/content/locale";
|
|
31
30
|
import styles from "./index.module.css";
|
|
31
|
+
import { consentLabel } from "@sharadox/consent-web-library/consent-copy";
|
|
32
32
|
/**
|
|
33
33
|
* The footer, in the grid frame. Four columns: the brand (slogan, email and Start a Project), the services, the
|
|
34
34
|
* studio's sections, and the language and style with the way back up under them. Then everything legal in a centered
|
|
@@ -45,6 +45,6 @@ export function Footer({ locale, path = "" }) {
|
|
|
45
45
|
SECTION.faq,
|
|
46
46
|
SECTION.contact,
|
|
47
47
|
];
|
|
48
|
-
return (_jsxs("footer", { className: styles.footer, children: [_jsx(Cross, { corner: "top-left" }), _jsx(Cross, { corner: "top-right" }), _jsxs("div", { className: styles.columns, children: [_jsxs("div", { className: styles.brand, children: [_jsx(Wordmark, { href: `/${locale}` }), _jsx("p", { className: styles.slogan, children: translate(SLOGAN, locale) }), _jsx("a", { href: `mailto:${SITE.email}`, ...newTab(`mailto:${SITE.email}`), className: styles.email, children: SITE.email }), _jsx(Button, { href: `${home}#${SECTION.contact.id}`, size: "small", arrow: true, className: styles.start, children: translate(ACTION.startProject, locale) })] }), _jsxs("nav", { "aria-label": translate(SECTION.services, locale), children: [_jsx("h2", { className: "monospace", children: translate(SECTION.services, locale) }), SERVICES.items.map((service) => (_jsx(SectionLink, { href: `${home}#${service.key}`, children: translate(service.title, locale) }, service.key)))] }), _jsxs("nav", { "aria-label": translate(FOOTER.studio, locale), children: [_jsx("h2", { className: "monospace", children: translate(FOOTER.studio, locale) }), studio.map((section) => (_jsx(SectionLink, { href: `${home}#${section.id}`, children: translate(section, locale) }, section.id)))] }), _jsxs("div", { className: styles.settings, children: [_jsx("h2", { className: "monospace", children: translate(LANGUAGE.label, locale) }), _jsx("span", { className: styles.languages, children: LOCALES.locales.map((other) => (_jsx(LocaleLink, { locale: other, href: `/${other}${path}`, current: other === locale, children: LANGUAGE.names[other] }, other))) }), _jsx("h2", { className: "monospace", children: translate(STYLE.label, locale) }), _jsx(StyleSwitch, { locale: locale, className: styles.style }), _jsxs(SectionLink, { href: "#top", className: styles.top, children: [translate(FOOTER.top, locale), _jsx("span", { className: styles.circle, "aria-hidden": true, children: _jsx(Icon, { name: "chevron-up", strokeWidth: 1.8 }) })] })] })] }), _jsxs("div", { className: styles.legal, children: [_jsxs("p", { className: `monospace ${styles.copyright}`, children: ["\u00A9 ", _jsx(CopyrightYears, { since: FOUNDED }), " ",
|
|
48
|
+
return (_jsxs("footer", { className: styles.footer, children: [_jsx(Cross, { corner: "top-left" }), _jsx(Cross, { corner: "top-right" }), _jsxs("div", { className: styles.columns, children: [_jsxs("div", { className: styles.brand, children: [_jsx(Wordmark, { href: `/${locale}` }), _jsx("p", { className: styles.slogan, children: translate(SLOGAN, locale) }), _jsx("a", { href: `mailto:${SITE.email}`, ...newTab(`mailto:${SITE.email}`), className: styles.email, children: SITE.email }), _jsx(Button, { href: `${home}#${SECTION.contact.id}`, size: "small", arrow: true, className: styles.start, children: translate(ACTION.startProject, locale) })] }), _jsxs("nav", { "aria-label": translate(SECTION.services, locale), children: [_jsx("h2", { className: "monospace", children: translate(SECTION.services, locale) }), SERVICES.items.map((service) => (_jsx(SectionLink, { href: `${home}#${service.key}`, children: translate(service.title, locale) }, service.key)))] }), _jsxs("nav", { "aria-label": translate(FOOTER.studio, locale), children: [_jsx("h2", { className: "monospace", children: translate(FOOTER.studio, locale) }), studio.map((section) => (_jsx(SectionLink, { href: `${home}#${section.id}`, children: translate(section, locale) }, section.id)))] }), _jsxs("div", { className: styles.settings, children: [_jsx("h2", { className: "monospace", children: translate(LANGUAGE.label, locale) }), _jsx("span", { className: styles.languages, children: LOCALES.locales.map((other) => (_jsx(LocaleLink, { locale: other, href: `/${other}${path}`, current: other === locale, children: LANGUAGE.names[other] }, other))) }), _jsx("h2", { className: "monospace", children: translate(STYLE.label, locale) }), _jsx(StyleSwitch, { locale: locale, className: styles.style }), _jsxs(SectionLink, { href: "#top", className: styles.top, children: [translate(FOOTER.top, locale), _jsx("span", { className: styles.circle, "aria-hidden": true, children: _jsx(Icon, { name: "chevron-up", strokeWidth: 1.8 }) })] })] })] }), _jsxs("div", { className: styles.legal, children: [_jsxs("p", { className: `monospace ${styles.copyright}`, children: ["\u00A9 ", _jsx(CopyrightYears, { since: FOUNDED }), " ", separated("Sharadox", translate(FOOTER.rights, locale))] }), _jsx("p", { className: styles.disputes, children: _jsx(DisputeNotice, { center: DISPUTE_RESOLUTION_CENTERS.algarve, locale: locale }) }), _jsxs("nav", { "aria-label": translate(FOOTER.legal, locale), className: styles.links, children: [_jsx(Link, { href: `/${locale}${LICENSE.path}`, "aria-current": path === LICENSE.path ? "page" : undefined, children: translate(LICENSE.title, locale) }), _jsx(Link, { href: `/${locale}${PRIVACY_PAGE.path}`, "aria-current": path === PRIVACY_PAGE.path ? "page" : undefined, children: translate(PRIVACY_PAGE.title, locale) }), _jsx(PreferencesLink, { label: consentLabel("preferences", locale) }), _jsx(ComplaintsBookLink, { locale: locale }), _jsx("a", { href: GOOGLE_REVIEW, ...newTab(GOOGLE_REVIEW), children: translate(FOOTER.review, locale) })] }), _jsx("nav", { "aria-label": translate(FOOTER.social, locale), className: styles.social, children: SOCIAL.map((profile) => (_jsx("a", { href: profile.url, target: "_blank", rel: "noopener noreferrer me", children: _jsx(BrandIcon, { name: profile.icon, label: profile.name }) }, profile.icon))) })] })] }));
|
|
49
49
|
}
|
|
50
50
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/footer/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AACxE,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,iCAAiC,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAClE,OAAO,EAAE,MAAM,EAAE,MAAM,0CAA0C,CAAC;AAClE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/footer/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AACxE,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,iCAAiC,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAClE,OAAO,EAAE,MAAM,EAAE,MAAM,0CAA0C,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,EAAE,KAAK,EAAE,MAAM,gDAAgD,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,wDAAwD,CAAC;AACpF,OAAO,EAAE,WAAW,EAAE,MAAM,uDAAuD,CAAC;AACpF,OAAO,EAAE,QAAQ,EAAE,MAAM,mDAAmD,CAAC;AAC7E,OAAO,EAAE,MAAM,EAAE,MAAM,iDAAiD,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,mEAAmE,CAAC;AACpG,OAAO,EAAE,kBAAkB,EAAE,MAAM,kDAAkD,CAAC;AACtF,OAAO,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAC3E,OAAO,EAAE,0BAA0B,EAAE,MAAM,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,EAAE,CAAC,CACvB,YAAsB,IAAI,EAAE,OAAO,CAAC,GAAG,EAAE,MAAM,EAAC,QAAQ,EAAC,GAAG,EAAC,wBAAwB,YACnF,KAAC,SAAS,IAAC,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,IAAI,GAAI,IADhD,OAAO,CAAC,IAAI,CAEhB,CACL,CAAC,GACE,IACF,IACC,CACV,CAAC;AACJ,CAAC"}
|
|
@@ -15,11 +15,11 @@ import { ACTION } from "@sharadox/sharadox-web-library/content/action";
|
|
|
15
15
|
import { SLOGAN_LINES } from "@sharadox/sharadox-web-library/content/slogan";
|
|
16
16
|
import { SECTION } from "@sharadox/sharadox-web-library/content/section";
|
|
17
17
|
import styles from "./index.module.css";
|
|
18
|
+
import { EASE } from "@sharadox/animation-web-library/ease";
|
|
18
19
|
const Globe = dynamic(() => import("@sharadox/sharadox-web-library/component/globe"), {
|
|
19
20
|
ssr: false,
|
|
20
21
|
loading: () => _jsx(GlobePlaceholder, {}),
|
|
21
22
|
});
|
|
22
|
-
const EASE = [0.22, 1, 0.36, 1];
|
|
23
23
|
/** First screen, inside the grid frame: the slogan rising line by line beside the interactive globe. */
|
|
24
24
|
export function Hero({ locale }) {
|
|
25
25
|
// After a language switch the page is rebuilt in place: show it as it was, without replaying the entrance.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/hero/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,kDAAkD,CAAC;AACpF,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,iDAAiD,CAAC;AACzE,OAAO,EAAE,KAAK,EAAE,MAAM,gDAAgD,CAAC;AAC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AAE,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAC7B,UAAU,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,aAErD,KAAC,MAAM,IAAC,IAAI,EAAE,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE,EAAE,EAAE,KAAK,kBAC1C,SAAS,CAAC,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,GAChC,EACT,KAAC,MAAM,IAAC,IAAI,EAAE,IAAI,OAAO,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,OAAO,EAAC,OAAO,YACrD,SAAS,CAAC,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,GAC3B,IACE,IACT,EACN,MAAC,MAAM,CAAC,GAAG,IACT,SAAS,EAAE,MAAM,CAAC,KAAK,EACvB,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,EACtD,OAAO,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EACjC,UAAU,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,aAErD,KAAC,KAAK,KAAG,EACT,eAAM,SAAS,EAAE,GAAG,MAAM,CAAC,IAAI,YAAY,iCACxC,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,GACxB,IACI,IACL,CACX,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/navigation/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/navigation/index.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0DAA0D,CAAC;AAWrG;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,EAAE,MAAM,EAAE,IAAS,EAAE,EAAE,oBAAoB,+BAqFrE"}
|
|
@@ -3,7 +3,6 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
3
3
|
import { SectionLink } from "@sharadox/scroll-web-library/section-link";
|
|
4
4
|
import { classNames } from "@sharadox/web-library/class-name";
|
|
5
5
|
import { AnimatePresence, motion } from "motion/react";
|
|
6
|
-
import { useEffect, useState } from "react";
|
|
7
6
|
import { useMenu } from "@sharadox/menu-web-library/use-menu";
|
|
8
7
|
import { Button } from "@sharadox/sharadox-web-library/component/button";
|
|
9
8
|
import { LanguageSwitch } from "@sharadox/sharadox-web-library/component/language-switch";
|
|
@@ -14,7 +13,9 @@ import { translate } from "@sharadox/internationalization-web-library/translate"
|
|
|
14
13
|
import { SECTION } from "@sharadox/sharadox-web-library/content/section";
|
|
15
14
|
import { ACTION } from "@sharadox/sharadox-web-library/content/action";
|
|
16
15
|
import styles from "./index.module.css";
|
|
17
|
-
|
|
16
|
+
import { twoDigits } from "@sharadox/web-library/text/two-digit";
|
|
17
|
+
import { EASE } from "@sharadox/animation-web-library/ease";
|
|
18
|
+
import { useScrolledPast } from "@sharadox/scroll-web-library/scrolled-past";
|
|
18
19
|
/** The menu's section links, entering one after another. */
|
|
19
20
|
const MotionSectionLink = motion.create(SectionLink);
|
|
20
21
|
/** Where the bar has room for every link; below it they move into the menu (keep in step with the styles). */
|
|
@@ -26,19 +27,13 @@ const WIDE = "(min-width: 1201px)";
|
|
|
26
27
|
*/
|
|
27
28
|
export function Navigation({ locale, path = "" }) {
|
|
28
29
|
const home = path ? `/${locale}` : "";
|
|
29
|
-
const
|
|
30
|
+
const scrolled = useScrolledPast(24);
|
|
30
31
|
const menu = useMenu({ wide: WIDE });
|
|
31
|
-
useEffect(() => {
|
|
32
|
-
const update = () => setScrolled(scrollY > 24);
|
|
33
|
-
update();
|
|
34
|
-
addEventListener("scroll", update, { passive: true });
|
|
35
|
-
return () => removeEventListener("scroll", update);
|
|
36
|
-
}, []);
|
|
37
32
|
const links = NAVIGATION.links.map((section) => ({
|
|
38
33
|
href: `${home}#${section.id}`,
|
|
39
34
|
name: translate(section, locale),
|
|
40
35
|
}));
|
|
41
36
|
const contact = `${home}#${SECTION.contact.id}`;
|
|
42
|
-
return (_jsxs(_Fragment, { children: [_jsx("header", { className: classNames(styles.navigation, scrolled && styles.scrolled, menu.open && styles.open), ...menu.closer, children: _jsxs("div", { className: styles.inner, children: [_jsx(Wordmark, { href: `/${locale}` }), _jsx("nav", { className: styles.links, "aria-label": translate(NAVIGATION.main, locale), children: links.map((link) => (_jsx(SectionLink, { href: link.href, children: link.name }, link.href))) }), _jsxs("div", { className: styles.end, children: [_jsx(StyleSwitch, { locale: locale, className: styles.style }), _jsx(LanguageSwitch, { locale: locale, path: path }), _jsx(Button, { href: contact, size: "small", className: styles.callToAction, children: translate(ACTION.startProject, locale) }), _jsxs("button", { type: "button", className: styles.toggle, ...menu.toggle, "aria-label": translate(menu.open ? NAVIGATION.close : NAVIGATION.menu, locale), children: [_jsx("span", {}), _jsx("span", {})] })] })] }) }), _jsx(AnimatePresence, { children: menu.open && (_jsxs(motion.nav, { id: "menu", "data-lenis-prevent": true, className: styles.menu, "aria-label": translate(NAVIGATION.main, locale), ...menu.closer, initial: { opacity: 0 }, animate: { opacity: 1 }, exit: { opacity: 0 }, transition: { duration: 0.35 }, children: [links.map((link, index) => (_jsxs(MotionSectionLink, { href: link.href, initial: { opacity: 0, y: 20 }, animate: { opacity: 1, y: 0 }, transition: { duration: 0.6, delay: 0.06 + index * 0.05, ease: EASE }, children: [_jsx("span", { className: "monospace", children:
|
|
37
|
+
return (_jsxs(_Fragment, { children: [_jsx("header", { className: classNames(styles.navigation, scrolled && styles.scrolled, menu.open && styles.open), ...menu.closer, children: _jsxs("div", { className: styles.inner, children: [_jsx(Wordmark, { href: `/${locale}` }), _jsx("nav", { className: styles.links, "aria-label": translate(NAVIGATION.main, locale), children: links.map((link) => (_jsx(SectionLink, { href: link.href, children: link.name }, link.href))) }), _jsxs("div", { className: styles.end, children: [_jsx(StyleSwitch, { locale: locale, className: styles.style }), _jsx(LanguageSwitch, { locale: locale, path: path }), _jsx(Button, { href: contact, size: "small", className: styles.callToAction, children: translate(ACTION.startProject, locale) }), _jsxs("button", { type: "button", className: styles.toggle, ...menu.toggle, "aria-label": translate(menu.open ? NAVIGATION.close : NAVIGATION.menu, locale), children: [_jsx("span", {}), _jsx("span", {})] })] })] }) }), _jsx(AnimatePresence, { children: menu.open && (_jsxs(motion.nav, { id: "menu", "data-lenis-prevent": true, className: styles.menu, "aria-label": translate(NAVIGATION.main, locale), ...menu.closer, initial: { opacity: 0 }, animate: { opacity: 1 }, exit: { opacity: 0 }, transition: { duration: 0.35 }, children: [links.map((link, index) => (_jsxs(MotionSectionLink, { href: link.href, initial: { opacity: 0, y: 20 }, animate: { opacity: 1, y: 0 }, transition: { duration: 0.6, delay: 0.06 + index * 0.05, ease: EASE }, children: [_jsx("span", { className: "monospace", children: twoDigits(index + 1) }), link.name] }, link.href))), _jsxs(motion.div, { className: styles.menuAction, initial: { opacity: 0, y: 20 }, animate: { opacity: 1, y: 0 }, transition: { duration: 0.6, delay: 0.06 + links.length * 0.05, ease: EASE }, children: [_jsx(Button, { href: contact, arrow: true, children: translate(ACTION.startProject, locale) }), _jsx(StyleSwitch, { locale: locale, className: styles.menuStyle })] })] })) })] }));
|
|
43
38
|
}
|
|
44
39
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/navigation/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AACxE,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,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EAAE,IAAI,GAAG,KAAK,GAAG,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,aAErE,eAAM,SAAS,EAAC,WAAW,YAAE,SAAS,CAAC,KAAK,GAAG,CAAC,CAAC,GAAQ,EACxD,IAAI,CAAC,IAAI,KAPL,IAAI,CAAC,IAAI,CAQI,CACrB,CAAC,EACF,MAAC,MAAM,CAAC,GAAG,IACT,SAAS,EAAE,MAAM,CAAC,UAAU,EAC5B,OAAO,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAC9B,OAAO,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAC7B,UAAU,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAE,KAAK,EAAE,IAAI,GAAG,KAAK,CAAC,MAAM,GAAG,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,aAE5E,KAAC,MAAM,IAAC,IAAI,EAAE,OAAO,EAAE,KAAK,kBACzB,SAAS,CAAC,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,GAChC,EAET,KAAC,WAAW,IAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,CAAC,SAAS,GAAI,IACjD,IACF,CACd,GACe,IACjB,CACJ,CAAC;AACJ,CAAC"}
|
|
@@ -11,15 +11,15 @@ import { Eyebrow } from "@sharadox/sharadox-web-library/component/eyebrow";
|
|
|
11
11
|
import { GlobePlaceholder } from "@sharadox/sharadox-web-library/component/globe/placeholder";
|
|
12
12
|
import { Section } from "@sharadox/sharadox-web-library/component/section";
|
|
13
13
|
import { NOT_FOUND } from "@sharadox/sharadox-web-library/content/not-found";
|
|
14
|
-
import {
|
|
14
|
+
import { separated } from "@sharadox/web-library/text/separated";
|
|
15
15
|
import { ACTION } from "@sharadox/sharadox-web-library/content/action";
|
|
16
16
|
import { SECTION } from "@sharadox/sharadox-web-library/content/section";
|
|
17
17
|
import styles from "./index.module.css";
|
|
18
|
+
import { EASE } from "@sharadox/animation-web-library/ease";
|
|
18
19
|
const Globe = dynamic(() => import("@sharadox/sharadox-web-library/component/globe"), {
|
|
19
20
|
ssr: false,
|
|
20
21
|
loading: () => _jsx(GlobePlaceholder, {}),
|
|
21
22
|
});
|
|
22
|
-
const EASE = [0.22, 1, 0.36, 1];
|
|
23
23
|
const rise = (delay, settled) => ({
|
|
24
24
|
initial: settled ? false : { opacity: 0, y: 18 },
|
|
25
25
|
animate: { opacity: 1, y: 0 },
|
|
@@ -35,6 +35,6 @@ const rise = (delay, settled) => ({
|
|
|
35
35
|
export function NotFound({ locale, path }) {
|
|
36
36
|
// After a language switch the page is rebuilt in place: show it as it was, without replaying the entrance.
|
|
37
37
|
const [settled] = useState(isSoftNavigation);
|
|
38
|
-
return (_jsxs(Section, { className: styles.notFound, padded: false, children: [_jsx("div", { className: styles.glow, "aria-hidden": true }), _jsx(motion.div, { ...rise(0.05, settled), children: _jsxs(Eyebrow, { className: styles.eyebrow, children: [_jsx("span", { className: styles.live, "aria-hidden": true }), " ",
|
|
38
|
+
return (_jsxs(Section, { className: styles.notFound, padded: false, children: [_jsx("div", { className: styles.glow, "aria-hidden": true }), _jsx(motion.div, { ...rise(0.05, settled), children: _jsxs(Eyebrow, { className: styles.eyebrow, children: [_jsx("span", { className: styles.live, "aria-hidden": true }), " ", separated(translate(NOT_FOUND.error, locale), "404")] }) }), _jsxs("div", { className: styles.code, "aria-hidden": true, children: [_jsx(motion.span, { className: styles.digit, ...rise(0.15, settled), children: "4" }), _jsx(motion.span, { className: styles.world, initial: settled ? false : { opacity: 0, scale: 0.6, rotate: -20 }, animate: { opacity: 1, scale: 1, rotate: 0 }, transition: { duration: 1.6, delay: 0.25, ease: EASE }, children: _jsx(Globe, {}) }), _jsx(motion.span, { className: styles.digit, ...rise(0.35, settled), children: "4" })] }), _jsx("h1", { className: styles.title, children: _jsx("span", { className: styles.line, children: _jsx(motion.span, { className: styles.lineInner, initial: settled ? false : { y: "110%" }, animate: { y: "0%" }, transition: { duration: 1.1, delay: 0.5, ease: EASE }, children: translate(NOT_FOUND.heading, locale) }) }) }), _jsx(motion.p, { className: styles.text, ...rise(0.7, settled), children: translate(NOT_FOUND.text, locale) }), _jsxs(motion.p, { className: `${styles.request} monospace`, ...rise(0.8, settled), children: [_jsx("span", { className: styles.method, children: "GET" }), _jsx("span", { className: styles.path, children: path }), _jsxs("span", { className: styles.status, children: [_jsx(Icon, { name: "chevron-right", strokeWidth: 1.8 }), " 404"] }), _jsx("span", { className: styles.caret, "aria-hidden": true })] }), _jsxs(motion.div, { className: styles.actions, ...rise(0.9, settled), children: [_jsx(Button, { href: `/${locale}`, arrow: true, children: translate(NOT_FOUND.home, locale) }), _jsx(Button, { href: `/${locale}#${SECTION.contact.id}`, variant: "ghost", children: translate(ACTION.startProject, locale) })] }), _jsxs(motion.p, { className: `${styles.explore} monospace`, ...rise(1, settled), children: [translate(NOT_FOUND.explore, locale), " ", _jsx(Icon, { name: "chevron-down", strokeWidth: 1.8 })] })] }));
|
|
39
39
|
}
|
|
40
40
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/not-found/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,iCAAiC,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,kDAAkD,CAAC;AACpF,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,EAAE,MAAM,EAAE,MAAM,iDAAiD,CAAC;AACzE,OAAO,EAAE,OAAO,EAAE,MAAM,kDAAkD,CAAC;AAC3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,4DAA4D,CAAC;A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M,CAAC,IAAI,YAAG,IAAI,GAAQ,EAC3C,gBAAM,SAAS,EAAE,MAAM,CAAC,MAAM,aAC5B,KAAC,IAAI,IAAC,IAAI,EAAC,eAAe,EAAC,WAAW,EAAE,GAAG,GAAI,YAC1C,EACP,eAAM,SAAS,EAAE,MAAM,CAAC,KAAK,wBAAgB,IACpC,EACX,MAAC,MAAM,CAAC,GAAG,IAAC,SAAS,EAAE,MAAM,CAAC,OAAO,KAAM,IAAI,CAAC,GAAG,EAAE,OAAO,CAAC,aAC3D,KAAC,MAAM,IAAC,IAAI,EAAE,IAAI,MAAM,EAAE,EAAE,KAAK,kBAC9B,SAAS,CAAC,SAAS,CAAC,IAAI,EAAE,MAAM,CAAC,GAC3B,EACT,KAAC,MAAM,IAAC,IAAI,EAAE,IAAI,MAAM,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE,EAAE,EAAE,OAAO,EAAC,OAAO,YAC9D,SAAS,CAAC,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,GAChC,IACE,EACb,MAAC,MAAM,CAAC,CAAC,IAAC,SAAS,EAAE,GAAG,MAAM,CAAC,OAAO,YAAY,KAAM,IAAI,CAAC,CAAC,EAAE,OAAO,CAAC,aACrE,SAAS,CAAC,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC,OAAE,KAAC,IAAI,IAAC,IAAI,EAAC,cAAc,EAAC,WAAW,EAAE,GAAG,GAAI,IAC5E,IACH,CACX,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/portfolio/project/index.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iEAAiE,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/portfolio/project/index.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iEAAiE,CAAC;AAGzG;;;GAGG;AACH,wBAAgB,OAAO,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,iBAAiB,+BAiDpE"}
|
|
@@ -7,6 +7,7 @@ import { serviceName } from "@sharadox/sharadox-web-library/component/portfolio/
|
|
|
7
7
|
import { PORTFOLIO } from "@sharadox/sharadox-web-library/content/portfolio";
|
|
8
8
|
import { projectAnchor } from "@sharadox/sharadox-web-library/utility/project-anchor";
|
|
9
9
|
import styles from "./index.module.css";
|
|
10
|
+
import { twoDigits } from "@sharadox/web-library/text/two-digit";
|
|
10
11
|
/**
|
|
11
12
|
* One project: its first screen on a computer and a phone beside its story: number, launch day, client, headline,
|
|
12
13
|
* what it is, its details, chips of the services we made for it, and the way to its own page.
|
|
@@ -14,6 +15,6 @@ import styles from "./index.module.css";
|
|
|
14
15
|
export function Project({ project, index, locale }) {
|
|
15
16
|
const { details } = PORTFOLIO;
|
|
16
17
|
const launched = launchDate(project.date, locale);
|
|
17
|
-
return (_jsxs("article", { className: styles.project, "aria-labelledby": `project-${project.key}`, children: [_jsx(Screens, { project: project, label: `${project.client} ${translate(PORTFOLIO.screens, locale)}` }), _jsxs("div", { className: styles.story, children: [_jsxs("p", { className: `monospace ${styles.top}`, children: [_jsx("span", { children:
|
|
18
|
+
return (_jsxs("article", { className: styles.project, "aria-labelledby": `project-${project.key}`, children: [_jsx(Screens, { project: project, label: `${project.client} ${translate(PORTFOLIO.screens, locale)}` }), _jsxs("div", { className: styles.story, children: [_jsxs("p", { className: `monospace ${styles.top}`, children: [_jsx("span", { children: twoDigits(index + 1) }), _jsx("time", { dateTime: project.date, children: launched })] }), _jsxs("h3", { id: `project-${project.key}`, children: [_jsx("span", { className: styles.client, children: project.title }), translate(project.name, locale)] }), _jsx("p", { className: styles.text, children: translate(project.text, locale) }), _jsxs("dl", { className: styles.details, children: [_jsxs("div", { children: [_jsx("dt", { children: translate(details.client, locale) }), _jsx("dd", { children: project.client })] }), _jsxs("div", { children: [_jsx("dt", { children: translate(details.place, locale) }), _jsx("dd", { children: translate(project.place, locale) })] }), _jsxs("div", { children: [_jsx("dt", { children: translate(details.launched, locale) }), _jsx("dd", { children: launched })] })] }), _jsxs("div", { className: styles.services, children: [_jsx("span", { className: `monospace ${styles.label}`, children: translate(details.services, locale) }), _jsx("ul", { children: project.services.map((service) => (_jsx("li", { children: serviceName(service, locale) }, service))) })] }), _jsx(Button, { id: projectAnchor(project.key), href: `/${locale}${PORTFOLIO.path}/${project.key}`, arrow: true, className: styles.open, children: translate(PORTFOLIO.open, locale) })] })] }));
|
|
18
19
|
}
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/portfolio/project/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,EAAE,MAAM,EAAE,MAAM,iDAAiD,CAAC;AACzE,OAAO,EAAE,OAAO,EAAE,MAAM,4DAA4D,CAAC;AACrF,OAAO,EAAE,UAAU,EAAE,MAAM,gEAAgE,CAAC;AAC5F,OAAO,EAAE,WAAW,EAAE,MAAM,iEAAiE,CAAC;AAC9F,OAAO,EAAE,SAAS,EAAE,MAAM,kDAAkD,CAAC;AAC7E,OAAO,EAAE,aAAa,EAAE,MAAM,uDAAuD,CAAC;AACtF,OAAO,MAAM,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/portfolio/project/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,EAAE,MAAM,EAAE,MAAM,iDAAiD,CAAC;AACzE,OAAO,EAAE,OAAO,EAAE,MAAM,4DAA4D,CAAC;AACrF,OAAO,EAAE,UAAU,EAAE,MAAM,gEAAgE,CAAC;AAC5F,OAAO,EAAE,WAAW,EAAE,MAAM,iEAA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ACE,uBAAK,SAAS,CAAC,OAAO,CAAC,MAAM,EAAE,MAAM,CAAC,GAAM,EAC5C,uBAAK,OAAO,CAAC,MAAM,GAAM,IACrB,EACN,0BACE,uBAAK,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,GAAM,EAC3C,uBAAK,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,GAAM,IACvC,EACN,0BACE,uBAAK,SAAS,CAAC,OAAO,CAAC,QAAQ,EAAE,MAAM,CAAC,GAAM,EAC9C,uBAAK,QAAQ,GAAM,IACf,IACH,EACL,eAAK,SAAS,EAAE,MAAM,CAAC,QAAQ,aAC7B,eAAM,SAAS,EAAE,aAAa,MAAM,CAAC,KAAK,EAAE,YAAG,SAAS,CAAC,OAAO,CAAC,QAAQ,EAAE,MAAM,CAAC,GAAQ,EAC1F,uBACG,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CACjC,uBAAmB,WAAW,CAAC,OAAO,EAAE,MAAM,CAAC,IAAtC,OAAO,CAAqC,CACtD,CAAC,GACC,IACD,EACN,KAAC,MAAM,IACL,EAAE,EAAE,aAAa,CAAC,OAAO,CAAC,GAAG,CAAC,EAC9B,IAAI,EAAE,IAAI,MAAM,GAAG,SAAS,CAAC,IAAI,IAAI,OAAO,CAAC,GAAG,EAAE,EAClD,KAAK,QACL,SAAS,EAAE,MAAM,CAAC,IAAI,YAErB,SAAS,CAAC,SAAS,CAAC,IAAI,EAAE,MAAM,CAAC,GAC3B,IACL,IACE,CACX,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/project-page/chapter/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oEAAoE,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/project-page/chapter/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oEAAoE,CAAC;AAG5G;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,iBAAiB,+BAuCvG"}
|
|
@@ -3,12 +3,13 @@ import { Reveal } from "@sharadox/animation-web-library/reveal";
|
|
|
3
3
|
import { Icon } from "@sharadox/icon-web-library/icon";
|
|
4
4
|
import { Section } from "@sharadox/sharadox-web-library/component/section";
|
|
5
5
|
import styles from "./index.module.css";
|
|
6
|
+
import { twoDigits } from "@sharadox/web-library/text/two-digit";
|
|
6
7
|
/**
|
|
7
8
|
* One part of a project we're proud of: its number and name, what it is, and a few details of how it works, in the
|
|
8
9
|
* frame; then the website's own component across the whole width of the page, as wide as on the site itself, under a
|
|
9
10
|
* bar with a live dot and the site's address.
|
|
10
11
|
*/
|
|
11
12
|
export function Chapter({ number, title, text, points, detailsLabel, live, children }) {
|
|
12
|
-
return (_jsxs(_Fragment, { children: [_jsx(Section, { padded: false, children: _jsxs(Reveal, { className: styles.copy, children: [_jsx("span", { className: `monospace ${styles.number}`, children:
|
|
13
|
+
return (_jsxs(_Fragment, { children: [_jsx(Section, { padded: false, children: _jsxs(Reveal, { className: styles.copy, children: [_jsx("span", { className: `monospace ${styles.number}`, children: twoDigits(number) }), _jsx("h2", { children: title }), _jsxs("div", { className: styles.about, children: [_jsx("p", { children: text }), _jsxs("div", { className: styles.details, children: [_jsx("span", { className: "monospace", children: detailsLabel }), _jsx("ul", { children: points.map((point) => (_jsxs("li", { children: [_jsx(Icon, { name: "check", strokeWidth: 1.6 }), point] }, point))) })] })] })] }) }), _jsxs("div", { className: styles.window, children: [_jsxs("div", { className: `monospace ${styles.bar}`, children: [_jsxs("span", { className: styles.dots, "aria-hidden": true, children: [_jsx("i", {}), _jsx("i", {}), _jsx("i", {})] }), _jsxs("span", { className: styles.live, children: [_jsx("i", { "aria-hidden": true }), live] })] }), _jsx("div", { className: styles.stage, children: children })] })] }));
|
|
13
14
|
}
|
|
14
15
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/project-page/chapter/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,wCAAwC,CAAC;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,iCAAiC,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,kDAAkD,CAAC;AAC3E,OAAO,MAAM,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/project-page/chapter/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,wCAAwC,CAAC;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,iCAAiC,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,kDAAkD,CAAC;AAC3E,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,OAAO,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAEjE;;;;GAIG;AACH,MAAM,UAAU,OAAO,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAqB;IACtG,OAAO,CACL,8BACE,KAAC,OAAO,IAAC,MAAM,EAAE,KAAK,YACpB,MAAC,MAAM,IAAC,SAAS,EAAE,MAAM,CAAC,IAAI,aAC5B,eAAM,SAAS,EAAE,aAAa,MAAM,CAAC,MAAM,EAAE,YAAG,SAAS,CAAC,MAAM,CAAC,GAAQ,EACzE,uBAAK,KAAK,GAAM,EAChB,eAAK,SAAS,EAAE,MAAM,CAAC,KAAK,aAC1B,sBAAI,IAAI,GAAK,EACb,eAAK,SAAS,EAAE,MAAM,CAAC,OAAO,aAC5B,eAAM,SAAS,EAAC,WAAW,YAAE,YAAY,GAAQ,EACjD,uBACG,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CACrB,yBACE,KAAC,IAAI,IAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAE,GAAG,GAAI,EACtC,KAAK,KAFC,KAAK,CAGT,CACN,CAAC,GACC,IACD,IACF,IACC,GACD,EACV,eAAK,SAAS,EAAE,MAAM,CAAC,MAAM,aAC3B,eAAK,SAAS,EAAE,aAAa,MAAM,CAAC,GAAG,EAAE,aACvC,gBAAM,SAAS,EAAE,MAAM,CAAC,IAAI,kCAC1B,aAAK,EACL,aAAK,EACL,aAAK,IACA,EACP,gBAAM,SAAS,EAAE,MAAM,CAAC,IAAI,aAC1B,kCAAiB,EAChB,IAAI,IACA,IACH,EACN,cAAK,SAAS,EAAE,MAAM,CAAC,KAAK,YAAG,QAAQ,GAAO,IAC1C,IACL,CACJ,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/section-indicator/index.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iEAAiE,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/section-indicator/index.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iEAAiE,CAAC;AAKlH;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,EAAE,MAAM,EAAE,EAAE,0BAA0B,+BAwCtE"}
|
|
@@ -5,6 +5,7 @@ import { translate } from "@sharadox/internationalization-web-library/translate"
|
|
|
5
5
|
import { useActiveSection } from "@sharadox/scroll-web-library/active-section";
|
|
6
6
|
import { SECTION_INDICATOR } from "@sharadox/sharadox-web-library/content/section-indicator";
|
|
7
7
|
import styles from "./index.module.css";
|
|
8
|
+
import { twoDigits } from "@sharadox/web-library/text/two-digit";
|
|
8
9
|
const IDS = SECTION_INDICATOR.sections.map((section) => section.id);
|
|
9
10
|
/**
|
|
10
11
|
* The side indicator, in the margin right of the grid frame: a rail along the frame that fills as the page scrolls,
|
|
@@ -16,7 +17,7 @@ export function SectionIndicator({ locale }) {
|
|
|
16
17
|
const { active, within, page } = useActiveSection(IDS);
|
|
17
18
|
return (_jsxs("nav", { className: styles.indicator, "aria-label": translate(SECTION_INDICATOR.label, locale), style: { "--page": page, "--within": within }, children: [_jsx("span", { className: styles.rail, "aria-hidden": true, children: _jsx("span", {}) }), _jsx("ol", { children: SECTION_INDICATOR.sections.map((section, index) => {
|
|
18
19
|
const current = section.id === active;
|
|
19
|
-
return (_jsx("li", { children: _jsxs(SectionLink, { href: `#${section.id}`, className: current ? styles.current : undefined, title: section[locale], "aria-current": current ? "location" : undefined, children: [_jsx("span", { className: styles.tick, "aria-hidden": true, children: _jsx("span", {}) }), _jsx("span", { className: `${styles.number} monospace`, children:
|
|
20
|
+
return (_jsx("li", { children: _jsxs(SectionLink, { href: `#${section.id}`, className: current ? styles.current : undefined, title: section[locale], "aria-current": current ? "location" : undefined, children: [_jsx("span", { className: styles.tick, "aria-hidden": true, children: _jsx("span", {}) }), _jsx("span", { className: `${styles.number} monospace`, children: twoDigits(index + 1) }), _jsx("span", { className: styles.label, children: _jsx("span", { className: styles.name, children: section[locale] }, current ? `${section.id}-on` : section.id) })] }) }, section.id));
|
|
20
21
|
}) })] }));
|
|
21
22
|
}
|
|
22
23
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/section-indicator/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AAExE,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,EAAE,gBAA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AAC,WAAW,IACV,IAAI,EAAE,IAAI,OAAO,CAAC,EAAE,EAAE,EACtB,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,EAC/C,KAAK,EAAE,OAAO,CAAC,MAAM,CAAC,kBACR,OAAO,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,aAE9C,eAAM,SAAS,EAAE,MAAM,CAAC,IAAI,iCAC1B,gBAAQ,GACH,EACP,eAAM,SAAS,EAAE,GAAG,MAAM,CAAC,MAAM,YAAY,YAAG,SAAS,CAAC,KAAK,GAAG,CAAC,CAAC,GAAQ,EAG5E,eAAM,SAAS,EAAE,MAAM,CAAC,KAAK,YAC3B,eAAsD,SAAS,EAAE,MAAM,CAAC,IAAI,YACzE,OAAO,CAAC,MAAM,CAAC,IADP,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAE7C,GACF,IACK,IAlBP,OAAO,CAAC,EAAE,CAmBd,CACN,CAAC;gBACJ,CAAC,CAAC,GACC,IACD,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -3,13 +3,13 @@ import { SectionLink } from "@sharadox/scroll-web-library/section-link";
|
|
|
3
3
|
import { Icon } from "@sharadox/icon-web-library/icon";
|
|
4
4
|
import { classNames } from "@sharadox/web-library/class-name";
|
|
5
5
|
import { translate } from "@sharadox/internationalization-web-library/translate";
|
|
6
|
-
import {
|
|
6
|
+
import { separated } from "@sharadox/web-library/text/separated";
|
|
7
7
|
import styles from "./index.module.css";
|
|
8
8
|
/**
|
|
9
9
|
* A shortcut to one service group: its number, its name, its kinds, and a chevron that drops in on hover, over a soft
|
|
10
10
|
* glow. The same button under the hero and at the head of each capabilities column.
|
|
11
11
|
*/
|
|
12
12
|
export function ServiceShortcut({ locale, service, base = "", className, style }) {
|
|
13
|
-
return (_jsxs(SectionLink, { href: `${base}#${service.key}`, className: classNames(styles.shortcut, className), style: style, children: [_jsx("span", { className: `${styles.number} monospace`, children: service.number }), _jsx("span", { className: styles.title, children: translate(service.title, locale) }), _jsx("span", { className: `${styles.kinds} monospace`, children:
|
|
13
|
+
return (_jsxs(SectionLink, { href: `${base}#${service.key}`, className: classNames(styles.shortcut, className), style: style, children: [_jsx("span", { className: `${styles.number} monospace`, children: service.number }), _jsx("span", { className: styles.title, children: translate(service.title, locale) }), _jsx("span", { className: `${styles.kinds} monospace`, children: separated(...service.kinds[locale]) }), _jsx(Icon, { name: "chevron-down", className: styles.arrow, strokeWidth: 1.8 })] }));
|
|
14
14
|
}
|
|
15
15
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/service-shortcut/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AACxE,OAAO,EAAE,IAAI,EAAE,MAAM,iCAAiC,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/service-shortcut/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AACxE,OAAO,EAAE,IAAI,EAAE,MAAM,iCAAiC,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AACjE,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC;;;GAGG;AACH,MAAM,UAAU,eAAe,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,GAAG,EAAE,EAAE,SAAS,EAAE,KAAK,EAA6B;IACzG,OAAO,CACL,MAAC,WAAW,IAAC,IAAI,EAAE,GAAG,IAAI,IAAI,OAAO,CAAC,GAAG,EAAE,EAAE,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,QAAQ,EAAE,SAAS,CAAC,EAAE,KAAK,EAAE,KAAK,aAC1G,eAAM,SAAS,EAAE,GAAG,MAAM,CAAC,MAAM,YAAY,YAAG,OAAO,CAAC,MAAM,GAAQ,EACtE,eAAM,SAAS,EAAE,MAAM,CAAC,KAAK,YAAG,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,GAAQ,EACxE,eAAM,SAAS,EAAE,GAAG,MAAM,CAAC,KAAK,YAAY,YAAG,SAAS,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,GAAQ,EAC1F,KAAC,IAAI,IAAC,IAAI,EAAC,cAAc,EAAC,SAAS,EAAE,MAAM,CAAC,KAAK,EAAE,WAAW,EAAE,GAAG,GAAI,IAC3D,CACf,CAAC;AACJ,CAAC"}
|
|
@@ -10,7 +10,7 @@ export declare const CONSENT_CONFIGURATION: {
|
|
|
10
10
|
readonly required: true;
|
|
11
11
|
}];
|
|
12
12
|
};
|
|
13
|
-
/** Cookie panel copy. */
|
|
13
|
+
/** Cookie panel copy: the title, the text and the categories (the buttons' labels are consent-web-library's). */
|
|
14
14
|
export declare const CONSENT: {
|
|
15
15
|
readonly title: {
|
|
16
16
|
readonly en: "Cookies";
|
|
@@ -20,46 +20,6 @@ export declare const CONSENT: {
|
|
|
20
20
|
readonly en: "We keep only what the site needs to work: a cookie that remembers your language, and the style you chose, stored in your browser. Nothing tracks you.";
|
|
21
21
|
readonly pt: "Guardamos apenas o que o site precisa para funcionar: um cookie que lembra o seu idioma, e o estilo que escolheu, guardado no seu browser. Nada o segue.";
|
|
22
22
|
};
|
|
23
|
-
readonly acceptAll: {
|
|
24
|
-
readonly en: "Accept All";
|
|
25
|
-
readonly pt: "Aceitar Todos";
|
|
26
|
-
};
|
|
27
|
-
readonly acknowledge: {
|
|
28
|
-
readonly en: "Got It";
|
|
29
|
-
readonly pt: "Entendido";
|
|
30
|
-
};
|
|
31
|
-
readonly details: {
|
|
32
|
-
readonly en: "Details";
|
|
33
|
-
readonly pt: "Detalhes";
|
|
34
|
-
};
|
|
35
|
-
readonly deny: {
|
|
36
|
-
readonly en: "Deny";
|
|
37
|
-
readonly pt: "Recusar";
|
|
38
|
-
};
|
|
39
|
-
readonly customize: {
|
|
40
|
-
readonly en: "Customize";
|
|
41
|
-
readonly pt: "Personalizar";
|
|
42
|
-
};
|
|
43
|
-
readonly save: {
|
|
44
|
-
readonly en: "Save Choices";
|
|
45
|
-
readonly pt: "Guardar Escolhas";
|
|
46
|
-
};
|
|
47
|
-
readonly back: {
|
|
48
|
-
readonly en: "Back";
|
|
49
|
-
readonly pt: "Voltar";
|
|
50
|
-
};
|
|
51
|
-
readonly close: {
|
|
52
|
-
readonly en: "Close";
|
|
53
|
-
readonly pt: "Fechar";
|
|
54
|
-
};
|
|
55
|
-
readonly alwaysOn: {
|
|
56
|
-
readonly en: "Always on";
|
|
57
|
-
readonly pt: "Sempre ativos";
|
|
58
|
-
};
|
|
59
|
-
readonly preferences: {
|
|
60
|
-
readonly en: "Cookie Preferences";
|
|
61
|
-
readonly pt: "Preferências de Cookies";
|
|
62
|
-
};
|
|
63
23
|
readonly categories: {
|
|
64
24
|
readonly required: {
|
|
65
25
|
readonly title: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/content/consent/index.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,eAAO,MAAM,qBAAqB;;;;;;;CAIO,CAAC;AAE1C,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/content/consent/index.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,eAAO,MAAM,qBAAqB;;;;;;;CAIO,CAAC;AAE1C,iHAAiH;AACjH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;CAeV,CAAC"}
|
|
@@ -7,23 +7,13 @@ export const CONSENT_CONFIGURATION = {
|
|
|
7
7
|
version: 1,
|
|
8
8
|
categories: [{ key: "required", required: true }],
|
|
9
9
|
};
|
|
10
|
-
/** Cookie panel copy. */
|
|
10
|
+
/** Cookie panel copy: the title, the text and the categories (the buttons' labels are consent-web-library's). */
|
|
11
11
|
export const CONSENT = {
|
|
12
12
|
title: { en: "Cookies", pt: "Cookies" },
|
|
13
13
|
text: {
|
|
14
14
|
en: "We keep only what the site needs to work: a cookie that remembers your language, and the style you chose, stored in your browser. Nothing tracks you.",
|
|
15
15
|
pt: "Guardamos apenas o que o site precisa para funcionar: um cookie que lembra o seu idioma, e o estilo que escolheu, guardado no seu browser. Nada o segue.",
|
|
16
16
|
},
|
|
17
|
-
acceptAll: { en: "Accept All", pt: "Aceitar Todos" },
|
|
18
|
-
acknowledge: { en: "Got It", pt: "Entendido" },
|
|
19
|
-
details: { en: "Details", pt: "Detalhes" },
|
|
20
|
-
deny: { en: "Deny", pt: "Recusar" },
|
|
21
|
-
customize: { en: "Customize", pt: "Personalizar" },
|
|
22
|
-
save: { en: "Save Choices", pt: "Guardar Escolhas" },
|
|
23
|
-
back: { en: "Back", pt: "Voltar" },
|
|
24
|
-
close: { en: "Close", pt: "Fechar" },
|
|
25
|
-
alwaysOn: { en: "Always on", pt: "Sempre ativos" },
|
|
26
|
-
preferences: { en: "Cookie Preferences", pt: "Preferências de Cookies" },
|
|
27
17
|
categories: {
|
|
28
18
|
required: {
|
|
29
19
|
title: { en: "Required", pt: "Necessários" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/content/consent/index.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,UAAU,EAAE,SAAS;IACrB,OAAO,EAAE,CAAC;IACV,UAAU,EAAE,CAAC,EAAE,GAAG,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;CACV,CAAC;AAE1C,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/content/consent/index.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,UAAU,EAAE,SAAS;IACrB,OAAO,EAAE,CAAC;IACV,UAAU,EAAE,CAAC,EAAE,GAAG,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;CACV,CAAC;AAE1C,iHAAiH;AACjH,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,KAAK,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS,EAAE;IACvC,IAAI,EAAE;QACJ,EAAE,EAAE,uJAAuJ;QAC3J,EAAE,EAAE,0JAA0J;KAC/J;IACD,UAAU,EAAE;QACV,QAAQ,EAAE;YACR,KAAK,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE,aAAa,EAAE;YAC5C,IAAI,EAAE;gBACJ,EAAE,EAAE,kFAAkF;gBACtF,EAAE,EAAE,mFAAmF;aACxF;SACF;KACF;CACO,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { EmailDesign } from "@sharadox/email-web-library";
|
|
1
|
+
import type { EmailDesign } from "@sharadox/email-web-library/email-layout/type";
|
|
2
2
|
/**
|
|
3
3
|
* Sharadox's look for every email it sends, the website's own: black, the globe mark and the name, a hairline fading
|
|
4
4
|
* at its ends, Geist's monospace capitals for eyebrows and labels, dashed rules between details, a white pill for the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/content/email-design/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/content/email-design/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAC;AAGjF;;;;;GAKG;AACH,eAAO,MAAM,cAAc,EAAE,WA8B5B,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { separated } from "@sharadox/web-library/text/separated";
|
|
2
2
|
/** Hero copy. The title is split into lines so the last one can be styled on its own. */
|
|
3
3
|
export const HERO = {
|
|
4
4
|
eyebrow: {
|
|
5
|
-
en:
|
|
6
|
-
pt:
|
|
5
|
+
en: separated("Algarve, Portugal", "working worldwide"),
|
|
6
|
+
pt: separated("Algarve, Portugal", "para o mundo inteiro"),
|
|
7
7
|
},
|
|
8
8
|
subtitle: {
|
|
9
9
|
en: "One studio for your whole brand — identity, websites, platforms, apps, social media and campaigns, designed, built and grown as one.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/content/hero/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/content/hero/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAEjE,yFAAyF;AACzF,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,OAAO,EAAE;QACP,EAAE,EAAE,SAAS,CAAC,mBAAmB,EAAE,mBAAmB,CAAC;QACvD,EAAE,EAAE,SAAS,CAAC,mBAAmB,EAAE,sBAAsB,CAAC;KAC3D;IACD,QAAQ,EAAE;QACR,EAAE,EAAE,sIAAsI;QAC1I,EAAE,EAAE,uKAAuK;KAC5K;IACD,SAAS,EAAE,EAAE,EAAE,EAAE,kBAAkB,EAAE,EAAE,EAAE,cAAc,EAAE;IACzD,IAAI,EAAE,EAAE,EAAE,EAAE,iBAAiB,EAAE,EAAE,EAAE,uBAAuB,EAAE;CACpD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/utility/contact-need/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/utility/contact-need/index.ts"],"names":[],"mappings":"AACA,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"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { requestChoices } from "@sharadox/form-web-library/choice-request";
|
|
1
2
|
/** The window event that asks the contact form to tick some choices. */
|
|
2
3
|
export const CONTACT_NEED_EVENT = "sharadox:contact-need";
|
|
3
4
|
/**
|
|
@@ -8,6 +9,6 @@ export const CONTACT_NEED_EVENT = "sharadox:contact-need";
|
|
|
8
9
|
* requestContactNeeds(["website"]);
|
|
9
10
|
*/
|
|
10
11
|
export function requestContactNeeds(needs) {
|
|
11
|
-
|
|
12
|
+
requestChoices(CONTACT_NEED_EVENT, needs);
|
|
12
13
|
}
|
|
13
14
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/utility/contact-need/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/utility/contact-need/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,2CAA2C,CAAC;AAG3E,wEAAwE;AACxE,MAAM,CAAC,MAAM,kBAAkB,GAAG,uBAAuB,CAAC;AAE1D;;;;;;GAMG;AACH,MAAM,UAAU,mBAAmB,CAAC,KAAyB;IAC3D,cAAc,CAAC,kBAAkB,EAAE,KAAK,CAAC,CAAC;AAC5C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/utility/contact-problem/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AAEzE,4GAA4G;AAC5G,MAAM,MAAM,cAAc,GAAG,MAAM,OAAO,OAAO,CAAC,QAAQ,CAAC;AAE3D;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,QAAQ,GAAG,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/utility/contact-problem/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AAEzE,4GAA4G;AAC5G,MAAM,MAAM,cAAc,GAAG,MAAM,OAAO,OAAO,CAAC,QAAQ,CAAC;AAE3D;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,QAAQ,GAAG,cAAc,EAAE,CAQhE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { contactProblems as contactDetailProblems } from "@sharadox/form-web-library/contact-problem";
|
|
2
2
|
import { CONTACT } from "@sharadox/sharadox-web-library/content/contact";
|
|
3
3
|
/**
|
|
4
4
|
* What a filled-in contact form still lacks, by the same rules the server applies: a name, an email or a phone (each
|
|
@@ -10,14 +10,11 @@ import { CONTACT } from "@sharadox/sharadox-web-library/content/contact";
|
|
|
10
10
|
*/
|
|
11
11
|
export function contactProblems(form) {
|
|
12
12
|
const text = (name) => String(form.get(name) ?? "").trim();
|
|
13
|
-
|
|
13
|
+
// The contact details by the shared rules, then this form's own: a choice and a long enough message.
|
|
14
14
|
return [
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
form.getAll("need").length === 0 && "needs",
|
|
20
|
-
text("message").length < CONTACT.minimumMessageLength && "message",
|
|
21
|
-
].filter((problem) => Boolean(problem));
|
|
15
|
+
...contactDetailProblems({ name: text("name"), email: text("email"), phone: text("phone") }),
|
|
16
|
+
...(form.getAll("need").length === 0 ? ["needs"] : []),
|
|
17
|
+
...(text("message").length < CONTACT.minimumMessageLength ? ["message"] : []),
|
|
18
|
+
];
|
|
22
19
|
}
|
|
23
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/utility/contact-problem/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/utility/contact-problem/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,IAAI,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AACtG,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AAKzE;;;;;;;GAOG;AACH,MAAM,UAAU,eAAe,CAAC,IAAc;IAC5C,MAAM,IAAI,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;IACnE,qGAAqG;IACrG,OAAO;QACL,GAAG,qBAAqB,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;QAC5F,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAE,CAAC,OAAO,CAAW,CAAC,CAAC,CAAC,EAAE,CAAC;QACjE,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,MAAM,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC,CAAE,CAAC,SAAS,CAAW,CAAC,CAAC,CAAC,EAAE,CAAC;KACzF,CAAC;AACJ,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Joins the parts that are set with the Sharadox separator (·)
|
|
2
|
+
* Joins the parts that are set with the Sharadox separator (·): web-library's `separated`, kept here for one version
|
|
3
|
+
* so sites can move to `@sharadox/web-library/text/separated`. Goes in the next minor version.
|
|
3
4
|
*
|
|
4
5
|
* @example
|
|
5
6
|
* separate("Contact", "Ana (Café)"); // "Contact · Ana (Café)"
|
|
6
7
|
*/
|
|
7
|
-
export
|
|
8
|
+
export { separated as separate } from "@sharadox/web-library/text/separated";
|
|
8
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/utility/separate/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/utility/separate/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,SAAS,IAAI,QAAQ,EAAE,MAAM,sCAAsC,CAAC"}
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import { separate as join } from "@sharadox/web-library/text/separate";
|
|
2
|
-
import { SEPARATOR } from "@sharadox/sharadox-web-library/content/separator";
|
|
3
1
|
/**
|
|
4
|
-
* Joins the parts that are set with the Sharadox separator (·)
|
|
2
|
+
* Joins the parts that are set with the Sharadox separator (·): web-library's `separated`, kept here for one version
|
|
3
|
+
* so sites can move to `@sharadox/web-library/text/separated`. Goes in the next minor version.
|
|
5
4
|
*
|
|
6
5
|
* @example
|
|
7
6
|
* separate("Contact", "Ana (Café)"); // "Contact · Ana (Café)"
|
|
8
7
|
*/
|
|
9
|
-
export
|
|
10
|
-
return join(SEPARATOR, ...parts);
|
|
11
|
-
}
|
|
8
|
+
export { separated as separate } from "@sharadox/web-library/text/separated";
|
|
12
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/utility/separate/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/utility/separate/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,SAAS,IAAI,QAAQ,EAAE,MAAM,sCAAsC,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { EmailContent } from "@sharadox/email-web-library/email-layout/type";
|
|
2
|
+
import type { InlineImage } from "@sharadox/email-web-library/email-message/type";
|
|
2
3
|
/**
|
|
3
4
|
* Any email Sharadox sends, in its own design (`SHARADOX_EMAIL`): give what it says, send it with
|
|
4
5
|
* `sharadoxEmailImages()` so its mark shows without loading anything.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/utility/sharadox-email/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/utility/sharadox-email/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+CAA+C,CAAC;AAClF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gDAAgD,CAAC;AAKlF;;;;;;;;GAQG;AACH,eAAO,MAAM,aAAa,GAAI,SAAS,YAAY,WAA+C,CAAC;AAEnG,iFAAiF;AACjF,eAAO,MAAM,mBAAmB,QAAO,WAAW,EAAuC,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { emailLayout } from "@sharadox/email-web-library";
|
|
1
|
+
import { emailLayout } from "@sharadox/email-web-library/email-layout";
|
|
2
|
+
import { inlineImage } from "@sharadox/email-web-library/inline-image";
|
|
2
3
|
import { EMAIL_LOGO } from "@sharadox/sharadox-web-library/content/email-logo";
|
|
3
4
|
import { SHARADOX_EMAIL } from "@sharadox/sharadox-web-library/content/email-design";
|
|
4
5
|
/**
|
|
@@ -12,7 +13,5 @@ import { SHARADOX_EMAIL } from "@sharadox/sharadox-web-library/content/email-des
|
|
|
12
13
|
*/
|
|
13
14
|
export const sharadoxEmail = (content) => emailLayout(content, SHARADOX_EMAIL, true);
|
|
14
15
|
/** The images a Sharadox email carries: its mark, as the inline image "logo". */
|
|
15
|
-
export const sharadoxEmailImages = () => [
|
|
16
|
-
{ id: "logo", ...EMAIL_LOGO, content: Buffer.from(EMAIL_LOGO.content, "base64") },
|
|
17
|
-
];
|
|
16
|
+
export const sharadoxEmailImages = () => [inlineImage("logo", EMAIL_LOGO)];
|
|
18
17
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/utility/sharadox-email/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/utility/sharadox-email/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC;AAGvE,OAAO,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,mDAAmD,CAAC;AAC/E,OAAO,EAAE,cAAc,EAAE,MAAM,qDAAqD,CAAC;AAErF;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,OAAqB,EAAE,EAAE,CAAC,WAAW,CAAC,OAAO,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;AAEnG,iFAAiF;AACjF,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAkB,EAAE,CAAC,CAAC,WAAW,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC"}
|
package/llms.txt
CHANGED
|
@@ -54,3 +54,4 @@
|
|
|
54
54
|
- 0.49.0: About feed keeps one height (its tallest tab; the log's oldest entries slip out under the bottom edge) and spans the card on phones (Feed className); style/object `float` mixin (the globe's float on translate/rotate, so it adds to transforms) used by the globe, the About feed and portfolio Screens; dashed mixin `$at`, hero shortcuts' row line dashed on phones; the LPD project is "Luis Pires Decor Website & Rebranding" (project.title; key luis-pires-decor-website-and-rebranding), headline "A craft of decades, now easy to find.", PORTFOLIO.pageTitle ("Sharadox Portfolio"), end title "See it live"; Chapter's live part runs the full page width; ContactForm phone is form-web-library PhoneField (CONTACT.country/search); email signature is just the site's address
|
|
55
55
|
- 0.50.0: the open phone menu runs from the top of the screen under the bar (one frosted surface; header gets `open`); ProjectPage end buttons centered
|
|
56
56
|
- 0.51.0: the open menu keeps the bar's hairline; footer legal links on phones center a last odd one; Button `id`; utility/project-anchor projectAnchor(key) ("see-<key>"): the card's See the Project button has it and the project page's Back to the Portfolio returns to it (scrolled to the middle of the screen)
|
|
57
|
+
- 0.52.0: shared helpers instead of local copies: web-library separated (utility/separate is now a re-export, removed in 0.53) and twoDigits, animation-web-library EASE, scroll-web-library useScrolledPast (navigation), consent-web-library consentCopy and consentLabel (CONSENT holds only title, text and categories), form-web-library contactProblems and choice requests (contact-need wraps requestChoices), email-web-library subpaths and inlineImage
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sharadox/sharadox-web-library",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.52.0-development.80",
|
|
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",
|