@sharadox/sharadox-web-library 0.7.0 → 0.8.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/README.md +3 -0
- package/distribution/component/cross/index.d.ts.map +1 -1
- package/distribution/component/cross/index.js +2 -1
- package/distribution/component/cross/index.js.map +1 -1
- package/distribution/component/eyebrow/index.d.ts.map +1 -1
- package/distribution/component/eyebrow/index.js +2 -1
- package/distribution/component/eyebrow/index.js.map +1 -1
- package/distribution/component/footer/index.d.ts +1 -1
- package/distribution/component/footer/index.d.ts.map +1 -1
- package/distribution/component/footer/index.js +4 -2
- package/distribution/component/footer/index.js.map +1 -1
- package/distribution/component/footer/type.d.ts +5 -0
- package/distribution/component/footer/type.d.ts.map +1 -1
- package/distribution/component/language-switch/index.d.ts +1 -1
- package/distribution/component/language-switch/index.d.ts.map +1 -1
- package/distribution/component/language-switch/index.js +2 -2
- package/distribution/component/language-switch/index.js.map +1 -1
- package/distribution/component/language-switch/type.d.ts +5 -0
- package/distribution/component/language-switch/type.d.ts.map +1 -1
- package/distribution/component/licence/index.d.ts +10 -0
- package/distribution/component/licence/index.d.ts.map +1 -0
- package/distribution/component/licence/index.js +18 -0
- package/distribution/component/licence/index.js.map +1 -0
- package/distribution/component/licence/index.module.css +1 -0
- package/distribution/component/licence/index.module.scss +49 -0
- package/distribution/component/licence/type.d.ts +7 -0
- package/distribution/component/licence/type.d.ts.map +1 -0
- package/distribution/component/licence/type.js +2 -0
- package/distribution/component/licence/type.js.map +1 -0
- package/distribution/component/navigation/index.d.ts +1 -1
- package/distribution/component/navigation/index.d.ts.map +1 -1
- package/distribution/component/navigation/index.js +4 -2
- package/distribution/component/navigation/index.js.map +1 -1
- package/distribution/component/navigation/type.d.ts +5 -0
- package/distribution/component/navigation/type.d.ts.map +1 -1
- package/distribution/component/section/index.d.ts.map +1 -1
- package/distribution/component/section/index.js +2 -1
- package/distribution/component/section/index.js.map +1 -1
- package/distribution/component/services/campaign-visual/index.d.ts.map +1 -1
- package/distribution/component/services/campaign-visual/index.js +2 -1
- package/distribution/component/services/campaign-visual/index.js.map +1 -1
- package/distribution/component/services/cell/index.d.ts.map +1 -1
- package/distribution/component/services/cell/index.js +2 -1
- package/distribution/component/services/cell/index.js.map +1 -1
- package/distribution/component/services/design-visual/index.d.ts.map +1 -1
- package/distribution/component/services/design-visual/index.js +2 -1
- package/distribution/component/services/design-visual/index.js.map +1 -1
- package/distribution/component/services/social-visual/index.d.ts.map +1 -1
- package/distribution/component/services/social-visual/index.js +2 -1
- package/distribution/component/services/social-visual/index.js.map +1 -1
- package/distribution/component/services/web-visual/index.d.ts.map +1 -1
- package/distribution/component/services/web-visual/index.js +2 -1
- package/distribution/component/services/web-visual/index.js.map +1 -1
- package/distribution/content/licence/index.d.ts +18 -0
- package/distribution/content/licence/index.d.ts.map +1 -0
- package/distribution/content/licence/index.js +12 -0
- package/distribution/content/licence/index.js.map +1 -0
- package/llms.txt +2 -0
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -29,6 +29,7 @@ Everything generic comes from the open-source Sharadox libraries, configured her
|
|
|
29
29
|
- hero and its guides, service index, statement, the five service cells and their live visuals
|
|
30
30
|
- the 3D touchpoint stack, capabilities sheet, process, contact, section indicator, style switch
|
|
31
31
|
- Sharadox wrappers around the shared globe and cookie panel, structured data, share image
|
|
32
|
+
- `Licence`: the licence page's body, rendered from the licence's Markdown
|
|
32
33
|
- **`action/send-contact`:** `sendContact(form, ip)`, the shared contact action set up for Sharadox ("Contact • Name (Company)" subjects, sent to contact@sharadox.com as "Sharadox Web Application").
|
|
33
34
|
- **`utility/`:** `separate()` (the Sharadox separator) and the share card's horizon dots.
|
|
34
35
|
- **`style/token`:** Sass helpers (`tint()`, `shade()`, `dashed()`, `on-scroll()`, `below()`) used by every component's styles.
|
|
@@ -42,6 +43,8 @@ import { STYLES } from "@sharadox/sharadox-web-library/content/style";
|
|
|
42
43
|
```
|
|
43
44
|
|
|
44
45
|
- **Sass:** `@use "style/token" as *;` works once `node_modules/@sharadox/sharadox-web-library/distribution` is on the Sass load path (`@sharadox/next-js-configuration-web-library` does this).
|
|
46
|
+
- **Pages other than home:** pass `path` (for example `"/licence"`) to `Navigation` and `Footer`, so section links lead back to the home page and the language links stay on the page.
|
|
47
|
+
- **Licence page:** `<Licence locale={locale} markdown={…} />` with `LICENCA.md` for Portuguese and `LICENSE.md` for English; the footer links to `/<locale>/licence`.
|
|
45
48
|
- **Contact:** the application's server action reads the visitor's IP address and calls `sendContact(form, ip)`.
|
|
46
49
|
|
|
47
50
|
## Develop
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/cross/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/cross/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qDAAqD,CAAC;AAE3F,8FAA8F;AAC9F,wBAAgB,KAAK,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,eAAe,+BAE3D"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { classNames } from "@sharadox/web-library/class-name";
|
|
2
3
|
import styles from "./index.module.css";
|
|
3
4
|
/** The "+" that marks where grid lines meet, centred on a corner of its positioned parent. */
|
|
4
5
|
export function Cross({ corner, className }) {
|
|
5
|
-
return _jsx("span", { className:
|
|
6
|
+
return _jsx("span", { className: classNames(styles.cross, styles[corner], className), "aria-hidden": true });
|
|
6
7
|
}
|
|
7
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/cross/index.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC,8FAA8F;AAC9F,MAAM,UAAU,KAAK,CAAC,EAAE,MAAM,EAAE,SAAS,EAAmB;IAC1D,OAAO,eAAM,SAAS,EAAE,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,SAAS,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/cross/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC,8FAA8F;AAC9F,MAAM,UAAU,KAAK,CAAC,EAAE,MAAM,EAAE,SAAS,EAAmB;IAC1D,OAAO,eAAM,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,SAAS,CAAC,wBAAgB,CAAC;AAC9F,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/eyebrow/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/eyebrow/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uDAAuD,CAAC;AAE/F,uDAAuD;AACvD,wBAAgB,OAAO,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,iBAAiB,+BAEjE"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { classNames } from "@sharadox/web-library/class-name";
|
|
2
3
|
import styles from "./index.module.css";
|
|
3
4
|
/** Small uppercase monospace label above a heading. */
|
|
4
5
|
export function Eyebrow({ children, className }) {
|
|
5
|
-
return _jsx("p", { className:
|
|
6
|
+
return _jsx("p", { className: classNames(styles.eyebrow, "monospace", className), children: children });
|
|
6
7
|
}
|
|
7
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/eyebrow/index.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC,uDAAuD;AACvD,MAAM,UAAU,OAAO,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAqB;IAChE,OAAO,YAAG,SAAS,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,WAAW,EAAE,SAAS,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/eyebrow/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC,uDAAuD;AACvD,MAAM,UAAU,OAAO,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAqB;IAChE,OAAO,YAAG,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,OAAO,EAAE,WAAW,EAAE,SAAS,CAAC,YAAG,QAAQ,GAAK,CAAC;AAC1F,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { FooterProperties } from "@sharadox/sharadox-web-library/component/footer/type";
|
|
2
2
|
/** Columns of links in the grid, the style and language switches, the big gradient wordmark and the legal line. */
|
|
3
|
-
export declare function Footer({ locale }: FooterProperties): import("react").JSX.Element;
|
|
3
|
+
export declare function Footer({ locale, path }: FooterProperties): import("react").JSX.Element;
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -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":"AAgBA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sDAAsD,CAAC;AAI7F,mHAAmH;AACnH,wBAAgB,MAAM,CAAC,EAAE,MAAM,EAAE,IAAS,EAAE,EAAE,gBAAgB,+BAsD7D"}
|
|
@@ -8,6 +8,7 @@ import { LocaleLink } from "@sharadox/internationalization-web-library/locale-li
|
|
|
8
8
|
import { StyleSwitch } from "@sharadox/sharadox-web-library/component/style-switch";
|
|
9
9
|
import { Wordmark } from "@sharadox/sharadox-web-library/component/wordmark";
|
|
10
10
|
import { FOOTER } from "@sharadox/sharadox-web-library/content/footer";
|
|
11
|
+
import { LICENCE } from "@sharadox/sharadox-web-library/content/licence";
|
|
11
12
|
import { NAVIGATION } from "@sharadox/sharadox-web-library/content/navigation";
|
|
12
13
|
import { SERVICES } from "@sharadox/sharadox-web-library/content/services";
|
|
13
14
|
import { STYLE } from "@sharadox/sharadox-web-library/content/style";
|
|
@@ -16,7 +17,8 @@ import { LOCALES } from "@sharadox/sharadox-web-library/content/locale";
|
|
|
16
17
|
import styles from "./index.module.css";
|
|
17
18
|
const LANGUAGE_NAMES = { en: "English", pt: "Português" };
|
|
18
19
|
/** Columns of links in the grid, the style and language switches, the big gradient wordmark and the legal line. */
|
|
19
|
-
export function Footer({ locale }) {
|
|
20
|
-
|
|
20
|
+
export function Footer({ locale, path = "" }) {
|
|
21
|
+
const home = path ? `/${locale}` : "";
|
|
22
|
+
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}` }), _jsxs("p", { className: styles.slogan, children: [translate(SITE.slogan, locale), "."] }), _jsx("a", { href: `mailto:${SITE.email}`, className: styles.email, children: SITE.email })] }), _jsxs("nav", { "aria-label": translate(FOOTER.services, locale), children: [_jsx("h2", { className: "monospace", children: translate(FOOTER.services, locale) }), SERVICES.items.map((service) => (_jsx("a", { 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) }), _jsx("a", { href: `${home}#capabilities`, children: translate(NAVIGATION.capabilities, locale) }), _jsx("a", { href: `${home}#process`, children: translate(NAVIGATION.process, locale) }), _jsx("a", { href: `${home}#contact`, children: translate(NAVIGATION.contact, locale) }), _jsx(PreferencesLink, { label: translate(CONSENT.preferences, locale) }), _jsx("a", { href: `/${locale}${LICENCE.path}`, "aria-current": path === LICENCE.path ? "page" : undefined, children: translate(LICENCE.title, locale) }), _jsxs("a", { href: "#top", children: [translate(FOOTER.top, locale), " \u2191"] })] }), _jsxs("div", { className: styles.settings, children: [_jsx("h2", { className: "monospace", children: translate(FOOTER.language, 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 })] })] }), _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)) })] }));
|
|
21
23
|
}
|
|
22
24
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/footer/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAC3E,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,EAAE,eAAe,EAAE,MAAM,mEAAmE,CAAC;AACpG,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AACzE,OAAO,EAAE,KAAK,EAAE,MAAM,gDAAgD,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,wDAAwD,CAAC;AACpF,OAAO,EAAE,WAAW,EAAE,MAAM,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,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAC9B,KAAC,UAAU,IAAa,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,KAAK,GAAG,IAAI,EAAE,EAAE,OAAO,EAAE,KAAK,KAAK,MAAM,YACvF,cAAc,CAAC,KAAK,CAAC,IADP,KAAK,CAET,CACd,CAAC,GACG,EACP,aAAI,SAAS,EAAC,WAAW,YAAE,SAAS,CAAC,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,GAAM,EAC/D,KAAC,WAAW,IAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,CAAC,KAAK,GAAI,IACpD,IACF,EACN,cAAK,SAAS,EAAE,MAAM,CAAC,IAAI,8CAErB,EACN,YAAG,SAAS,EAAE,GAAG,MAAM,CAAC,KAAK,YAAY,YACtC,QAAQ,CAAC,KAAK,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,WAAW,EAAE,SAAS,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GACnF,IACG,CACV,CAAC;AACJ,CAAC"}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import type { Locale } from "@sharadox/sharadox-web-library/content/locale/type";
|
|
2
2
|
export interface FooterProperties {
|
|
3
3
|
locale: Locale;
|
|
4
|
+
/**
|
|
5
|
+
* The page's path after the locale, for example "/licence"; the home page by default. Section links then point to
|
|
6
|
+
* the home page, and the language links keep the visitor on this page.
|
|
7
|
+
*/
|
|
8
|
+
path?: string;
|
|
4
9
|
}
|
|
5
10
|
//# sourceMappingURL=type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../source/component/footer/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oDAAoD,CAAC;AAEjF,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../source/component/footer/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oDAAoD,CAAC;AAEjF,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { LanguageSwitchProperties } from "@sharadox/sharadox-web-library/component/language-switch/type";
|
|
2
2
|
/** EN/PT pill toggle. A manual choice is remembered, so sharadox.com opens in that language next time. */
|
|
3
|
-
export declare function LanguageSwitch({ locale }: LanguageSwitchProperties): import("react").JSX.Element;
|
|
3
|
+
export declare function LanguageSwitch({ locale, path }: LanguageSwitchProperties): import("react").JSX.Element;
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/language-switch/index.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,+DAA+D,CAAC;AAE9G,0GAA0G;AAC1G,wBAAgB,cAAc,CAAC,EAAE,MAAM,EAAE,EAAE,wBAAwB,+
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/language-switch/index.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,+DAA+D,CAAC;AAE9G,0GAA0G;AAC1G,wBAAgB,cAAc,CAAC,EAAE,MAAM,EAAE,IAAS,EAAE,EAAE,wBAAwB,+BAU7E"}
|
|
@@ -5,7 +5,7 @@ import { NAVIGATION } from "@sharadox/sharadox-web-library/content/navigation";
|
|
|
5
5
|
import { LOCALES } from "@sharadox/sharadox-web-library/content/locale";
|
|
6
6
|
import styles from "./index.module.css";
|
|
7
7
|
/** EN/PT pill toggle. A manual choice is remembered, so sharadox.com opens in that language next time. */
|
|
8
|
-
export function LanguageSwitch({ locale }) {
|
|
9
|
-
return (_jsx("div", { className: styles.switch, role: "group", "aria-label": translate(NAVIGATION.language, locale), children: LOCALES.locales.map((other) => (_jsx(LocaleLink, { locale: other, current: other === locale, children: other.toUpperCase() }, other))) }));
|
|
8
|
+
export function LanguageSwitch({ locale, path = "" }) {
|
|
9
|
+
return (_jsx("div", { className: styles.switch, role: "group", "aria-label": translate(NAVIGATION.language, locale), children: LOCALES.locales.map((other) => (_jsx(LocaleLink, { locale: other, href: `/${other}${path}`, current: other === locale, children: other.toUpperCase() }, other))) }));
|
|
10
10
|
}
|
|
11
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/language-switch/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,EAAE,UAAU,EAAE,MAAM,wDAAwD,CAAC;AACpF,OAAO,EAAE,UAAU,EAAE,MAAM,mDAAmD,CAAC;AAC/E,OAAO,EAAE,OAAO,EAAE,MAAM,+CAA+C,CAAC;AACxE,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC,0GAA0G;AAC1G,MAAM,UAAU,cAAc,CAAC,EAAE,MAAM,EAA4B;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/language-switch/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,EAAE,UAAU,EAAE,MAAM,wDAAwD,CAAC;AACpF,OAAO,EAAE,UAAU,EAAE,MAAM,mDAAmD,CAAC;AAC/E,OAAO,EAAE,OAAO,EAAE,MAAM,+CAA+C,CAAC;AACxE,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC,0GAA0G;AAC1G,MAAM,UAAU,cAAc,CAAC,EAAE,MAAM,EAAE,IAAI,GAAG,EAAE,EAA4B;IAC5E,OAAO,CACL,cAAK,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,EAAC,OAAO,gBAAa,SAAS,CAAC,UAAU,CAAC,QAAQ,EAAE,MAAM,CAAC,YAC3F,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAC9B,KAAC,UAAU,IAAa,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,KAAK,GAAG,IAAI,EAAE,EAAE,OAAO,EAAE,KAAK,KAAK,MAAM,YACvF,KAAK,CAAC,WAAW,EAAE,IADL,KAAK,CAET,CACd,CAAC,GACE,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import type { Locale } from "@sharadox/sharadox-web-library/content/locale/type";
|
|
2
2
|
export interface LanguageSwitchProperties {
|
|
3
3
|
locale: Locale;
|
|
4
|
+
/**
|
|
5
|
+
* The page's path after the locale, for example "/licence"; the home page by default. Section links then point to
|
|
6
|
+
* the home page, and the language links keep the visitor on this page.
|
|
7
|
+
*/
|
|
8
|
+
path?: string;
|
|
4
9
|
}
|
|
5
10
|
//# sourceMappingURL=type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../source/component/language-switch/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oDAAoD,CAAC;AAEjF,MAAM,WAAW,wBAAwB;IACvC,MAAM,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../source/component/language-switch/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oDAAoD,CAAC;AAEjF,MAAM,WAAW,wBAAwB;IACvC,MAAM,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { LicenceProperties } from "@sharadox/sharadox-web-library/component/licence/type";
|
|
2
|
+
/**
|
|
3
|
+
* The licence page's body, in the grid frame: eyebrow, then the licence rendered from its Markdown. The licence's own
|
|
4
|
+
* first heading is the page's `<h1>`. The text is the site's own file, never visitor input.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* <Licence locale="pt" markdown={await readFile("LICENCA.md", "utf8")} />
|
|
8
|
+
*/
|
|
9
|
+
export declare function Licence({ locale, markdown }: LicenceProperties): import("react").JSX.Element;
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/licence/index.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uDAAuD,CAAC;AAE/F;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,iBAAiB,+BAO9D"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { translate } from "@sharadox/internationalization-web-library/translate";
|
|
3
|
+
import { marked } from "marked";
|
|
4
|
+
import { Eyebrow } from "@sharadox/sharadox-web-library/component/eyebrow";
|
|
5
|
+
import { Section } from "@sharadox/sharadox-web-library/component/section";
|
|
6
|
+
import { LICENCE } from "@sharadox/sharadox-web-library/content/licence";
|
|
7
|
+
import styles from "./index.module.css";
|
|
8
|
+
/**
|
|
9
|
+
* The licence page's body, in the grid frame: eyebrow, then the licence rendered from its Markdown. The licence's own
|
|
10
|
+
* first heading is the page's `<h1>`. The text is the site's own file, never visitor input.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* <Licence locale="pt" markdown={await readFile("LICENCA.md", "utf8")} />
|
|
14
|
+
*/
|
|
15
|
+
export function Licence({ locale, markdown }) {
|
|
16
|
+
return (_jsxs(Section, { className: styles.licence, children: [_jsx(Eyebrow, { children: translate(LICENCE.eyebrow, locale) }), _jsx("div", { className: styles.text, dangerouslySetInnerHTML: { __html: marked.parse(markdown, { async: false }) } })] }));
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/licence/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,kDAAkD,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,kDAAkD,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AACzE,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC;;;;;;GAMG;AACH,MAAM,UAAU,OAAO,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAqB;IAC7D,OAAO,CACL,MAAC,OAAO,IAAC,SAAS,EAAE,MAAM,CAAC,OAAO,aAChC,KAAC,OAAO,cAAE,SAAS,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,GAAW,EACvD,cAAK,SAAS,EAAE,MAAM,CAAC,IAAI,EAAE,uBAAuB,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,EAAE,GAAI,IACtG,CACX,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.licence{padding-top:clamp(140px,16vw,200px)}.text{max-width:72ch;margin-top:28px;color:var(--foreground-2);line-height:1.7}.text h1{margin:0 0 12px;color:var(--foreground);font-size:clamp(36px,6vw,64px);line-height:1.05;letter-spacing:-0.03em}.text h2{margin:56px 0 14px;padding-top:28px;color:var(--foreground);font-size:clamp(20px,2.4vw,26px);letter-spacing:-0.01em;background:linear-gradient(90deg, var(--line-2) 50%, transparent 0) 0 0/8px 1px repeat-x}.text p,.text ol,.text ul{margin:0 0 16px}.text ol,.text ul{padding-left:22px}.text li{margin-bottom:8px}.text strong{color:var(--foreground)}.text code{font-family:var(--monospace);font-size:.9em}.text a{color:var(--foreground);text-underline-offset:3px}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
@use "style/token" as *;
|
|
2
|
+
|
|
3
|
+
.licence {
|
|
4
|
+
padding-top: clamp(140px, 16vw, 200px);
|
|
5
|
+
}
|
|
6
|
+
.text {
|
|
7
|
+
max-width: 72ch;
|
|
8
|
+
margin-top: 28px;
|
|
9
|
+
color: var(--foreground-2);
|
|
10
|
+
line-height: 1.7;
|
|
11
|
+
h1 {
|
|
12
|
+
margin: 0 0 12px;
|
|
13
|
+
color: var(--foreground);
|
|
14
|
+
font-size: clamp(36px, 6vw, 64px);
|
|
15
|
+
line-height: 1.05;
|
|
16
|
+
letter-spacing: -0.03em;
|
|
17
|
+
}
|
|
18
|
+
h2 {
|
|
19
|
+
margin: 56px 0 14px;
|
|
20
|
+
padding-top: 28px;
|
|
21
|
+
color: var(--foreground);
|
|
22
|
+
font-size: clamp(20px, 2.4vw, 26px);
|
|
23
|
+
letter-spacing: -0.01em;
|
|
24
|
+
@include dashed(horizontal);
|
|
25
|
+
}
|
|
26
|
+
p,
|
|
27
|
+
ol,
|
|
28
|
+
ul {
|
|
29
|
+
margin: 0 0 16px;
|
|
30
|
+
}
|
|
31
|
+
ol,
|
|
32
|
+
ul {
|
|
33
|
+
padding-left: 22px;
|
|
34
|
+
}
|
|
35
|
+
li {
|
|
36
|
+
margin-bottom: 8px;
|
|
37
|
+
}
|
|
38
|
+
strong {
|
|
39
|
+
color: var(--foreground);
|
|
40
|
+
}
|
|
41
|
+
code {
|
|
42
|
+
font-family: var(--monospace);
|
|
43
|
+
font-size: 0.9em;
|
|
44
|
+
}
|
|
45
|
+
a {
|
|
46
|
+
color: var(--foreground);
|
|
47
|
+
text-underline-offset: 3px;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Locale } from "@sharadox/sharadox-web-library/content/locale/type";
|
|
2
|
+
export interface LicenceProperties {
|
|
3
|
+
locale: Locale;
|
|
4
|
+
/** The licence text in Markdown: the Portuguese original for "pt", the English translation for "en". */
|
|
5
|
+
markdown: string;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../source/component/licence/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oDAAoD,CAAC;AAEjF,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,wGAAwG;IACxG,QAAQ,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../source/component/licence/type.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { NavigationProperties } from "@sharadox/sharadox-web-library/component/navigation/type";
|
|
2
2
|
/** Fixed top bar that frosts once the page scrolls, with the style and language switches. */
|
|
3
|
-
export declare function Navigation({ locale }: NavigationProperties): import("react").JSX.Element;
|
|
3
|
+
export declare function Navigation({ locale, path }: NavigationProperties): import("react").JSX.Element;
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -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":"AAUA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0DAA0D,CAAC;AAIrG,6FAA6F;AAC7F,wBAAgB,UAAU,CAAC,EAAE,MAAM,EAAE,IAAS,EAAE,EAAE,oBAAoB,+BA8BrE"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { classNames } from "@sharadox/web-library/class-name";
|
|
3
4
|
import { useEffect, useState } from "react";
|
|
4
5
|
import { Button } from "@sharadox/sharadox-web-library/component/button";
|
|
5
6
|
import { LanguageSwitch } from "@sharadox/sharadox-web-library/component/language-switch";
|
|
@@ -10,7 +11,8 @@ import { translate } from "@sharadox/internationalization-web-library/translate"
|
|
|
10
11
|
import styles from "./index.module.css";
|
|
11
12
|
const LINKS = ["services", "capabilities", "process", "contact"];
|
|
12
13
|
/** Fixed top bar that frosts once the page scrolls, with the style and language switches. */
|
|
13
|
-
export function Navigation({ locale }) {
|
|
14
|
+
export function Navigation({ locale, path = "" }) {
|
|
15
|
+
const home = path ? `/${locale}` : "";
|
|
14
16
|
const [scrolled, setScrolled] = useState(false);
|
|
15
17
|
useEffect(() => {
|
|
16
18
|
const update = () => setScrolled(scrollY > 24);
|
|
@@ -18,6 +20,6 @@ export function Navigation({ locale }) {
|
|
|
18
20
|
addEventListener("scroll", update, { passive: true });
|
|
19
21
|
return () => removeEventListener("scroll", update);
|
|
20
22
|
}, []);
|
|
21
|
-
return (_jsx("header", { className:
|
|
23
|
+
return (_jsx("header", { className: classNames(styles.navigation, scrolled && styles.scrolled), children: _jsxs("div", { className: styles.inner, children: [_jsx(Wordmark, { href: `/${locale}` }), _jsx("nav", { className: styles.links, "aria-label": "Main", children: LINKS.map((link) => (_jsx("a", { href: `${home}#${link}`, children: translate(NAVIGATION[link], locale) }, link))) }), _jsxs("div", { className: styles.end, children: [_jsx(StyleSwitch, { locale: locale, className: styles.style }), _jsx(LanguageSwitch, { locale: locale, path: path }), _jsx(Button, { href: `${home}#contact`, size: "small", className: styles.callToAction, children: translate(NAVIGATION.callToAction, locale) })] })] }) }));
|
|
22
24
|
}
|
|
23
25
|
//# 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,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,iDAAiD,CAAC;AACzE,OAAO,EAAE,cAAc,EAAE,MAAM,0DAA0D,CAAC;AAC1F,OAAO,EAAE,WAAW,EAAE,MAAM,uDAAuD,CAAC;AACpF,OAAO,EAAE,QAAQ,EAAE,MAAM,mDAAmD,CAAC;AAC7E,OAAO,EAAE,UAAU,EAAE,MAAM,mDAAmD,CAAC;AAC/E,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC,MAAM,KAAK,GAAG,CAAC,UAAU,EAAE,cAAc,EAAE,SAAS,EAAE,SAAS,CAAU,CAAC;AAE1E,6FAA6F;AAC7F,MAAM,UAAU,UAAU,CAAC,EAAE,MAAM,EAAwB;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/navigation/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,iDAAiD,CAAC;AACzE,OAAO,EAAE,cAAc,EAAE,MAAM,0DAA0D,CAAC;AAC1F,OAAO,EAAE,WAAW,EAAE,MAAM,uDAAuD,CAAC;AACpF,OAAO,EAAE,QAAQ,EAAE,MAAM,mDAAmD,CAAC;AAC7E,OAAO,E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C,IAAI,CAAC,EAAE,MAAM,CAAC,IAD9B,IAAI,CAER,CACL,CAAC,GACE,EACN,eAAK,SAAS,EAAE,MAAM,CAAC,GAAG,aACxB,KAAC,WAAW,IAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,CAAC,KAAK,GAAI,EACxD,KAAC,cAAc,IAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,GAAI,EAC9C,KAAC,MAAM,IAAC,IAAI,EAAE,GAAG,IAAI,UAAU,EAAE,IAAI,EAAC,OAAO,EAAC,SAAS,EAAE,MAAM,CAAC,YAAY,YACzE,SAAS,CAAC,UAAU,CAAC,YAAY,EAAE,MAAM,CAAC,GACpC,IACL,IACF,GACC,CACV,CAAC;AACJ,CAAC"}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import type { Locale } from "@sharadox/sharadox-web-library/content/locale/type";
|
|
2
2
|
export interface NavigationProperties {
|
|
3
3
|
locale: Locale;
|
|
4
|
+
/**
|
|
5
|
+
* The page's path after the locale, for example "/licence"; the home page by default. Section links then point to
|
|
6
|
+
* the home page, and the language links keep the visitor on this page.
|
|
7
|
+
*/
|
|
8
|
+
path?: string;
|
|
4
9
|
}
|
|
5
10
|
//# sourceMappingURL=type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../source/component/navigation/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oDAAoD,CAAC;AAEjF,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../source/component/navigation/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oDAAoD,CAAC;AAEjF,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/section/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/section/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uDAAuD,CAAC;AAE/F;;;GAGG;AACH,wBAAgB,OAAO,CAAC,EAAE,EAAE,EAAE,SAAS,EAAE,MAAa,EAAE,OAAc,EAAE,QAAQ,EAAE,EAAE,iBAAiB,+BAapG"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { classNames } from "@sharadox/web-library/class-name";
|
|
2
3
|
import { Cross } from "@sharadox/sharadox-web-library/component/cross";
|
|
3
4
|
import styles from "./index.module.css";
|
|
4
5
|
/**
|
|
@@ -6,6 +7,6 @@ import styles from "./index.module.css";
|
|
|
6
7
|
* and "+" marks where they meet.
|
|
7
8
|
*/
|
|
8
9
|
export function Section({ id, className, padded = true, crosses = true, children }) {
|
|
9
|
-
return (_jsxs("section", { id: id, className:
|
|
10
|
+
return (_jsxs("section", { id: id, className: classNames(styles.section, padded && styles.padded, className), children: [_jsx("span", { className: styles.line, "aria-hidden": true }), crosses && (_jsxs(_Fragment, { children: [_jsx(Cross, { corner: "top-left" }), _jsx(Cross, { corner: "top-right" })] })), children] }));
|
|
10
11
|
}
|
|
11
12
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/section/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,gDAAgD,CAAC;AACvE,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC;;;GAGG;AACH,MAAM,UAAU,OAAO,CAAC,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,OAAO,GAAG,IAAI,EAAE,QAAQ,EAAqB;IACnG,OAAO,CACL,mBAAS,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/section/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,KAAK,EAAE,MAAM,gDAAgD,CAAC;AACvE,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC;;;GAGG;AACH,MAAM,UAAU,OAAO,CAAC,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,OAAO,GAAG,IAAI,EAAE,QAAQ,EAAqB;IACnG,OAAO,CACL,mBAAS,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,aACxF,eAAM,SAAS,EAAE,MAAM,CAAC,IAAI,wBAAgB,EAC3C,OAAO,IAAI,CACV,8BACE,KAAC,KAAK,IAAC,MAAM,EAAC,UAAU,GAAG,EAC3B,KAAC,KAAK,IAAC,MAAM,EAAC,WAAW,GAAG,IAC3B,CACJ,EACA,QAAQ,IACD,CACX,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/services/campaign-visual/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/services/campaign-visual/index.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wEAAwE,CAAC;AAQvH,qGAAqG;AACrG,wBAAgB,cAAc,CAAC,EAAE,MAAM,EAAE,EAAE,wBAAwB,+BAwBlE"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { classNames } from "@sharadox/web-library/class-name";
|
|
3
4
|
import { useInView } from "@sharadox/animation-web-library/in-view";
|
|
4
5
|
import { translate } from "@sharadox/internationalization-web-library/translate";
|
|
5
6
|
import { Stage } from "@sharadox/sharadox-web-library/component/services/campaign-visual/stage";
|
|
@@ -13,6 +14,6 @@ const STAGES = [
|
|
|
13
14
|
/** A campaign funnel as stacked 3D plates, narrowing from reach to customers, with live counters. */
|
|
14
15
|
export function CampaignVisual({ locale }) {
|
|
15
16
|
const [container, on] = useInView();
|
|
16
|
-
return (_jsxs("div", { ref: container, className:
|
|
17
|
+
return (_jsxs("div", { ref: container, className: classNames(styles.visual, on && styles.on), "aria-hidden": true, children: [_jsxs("div", { className: styles.scene, children: [STAGES.map((stage, index) => (_jsx("span", { className: `${styles.plate} ${styles[`plate${index}`]}` }, stage.key))), _jsx("span", { className: styles.ring })] }), _jsx("dl", { className: styles.legend, children: STAGES.map((stage, index) => (_jsx(Stage, { start: on, value: stage.value, durationMilliseconds: 1800 + index * 300, locale: locale, label: translate(SERVICES.visual[stage.key], locale) }, stage.key))) })] }));
|
|
17
18
|
}
|
|
18
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/services/campaign-visual/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,EAAE,KAAK,EAAE,MAAM,yEAAyE,CAAC;AAChG,OAAO,EAAE,QAAQ,EAAE,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,CAAC,SAAS,EAAE,EAAE,CAAC,GAAG,SAAS,EAAkB,CAAC;IACpD,OAAO,CACL,eAAK,GAAG,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,IAAI,MAAM,CAAC,EAAE,CAAC,kCACxE,eAAK,SAAS,EAAE,MAAM,CAAC,KAAK,aACzB,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,CAC5B,eAAsB,SAAS,EAAE,GAAG,MAAM,CAAC,KAAK,IAAI,MAAM,CAAC,QAAQ,KAAK,EAAE,CAAC,EAAE,IAAlE,KAAK,CAAC,GAAG,CAA6D,CAClF,CAAC,EACF,eAAM,SAAS,EAAE,MAAM,CAAC,IAAI,GAAI,IAC5B,EACN,aAAI,SAAS,EAAE,MAAM,CAAC,MAAM,YACzB,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,CAC5B,KAAC,KAAK,IAEJ,KAAK,EAAE,EAAE,EACT,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,oBAAoB,EAAE,IAAI,GAAG,KAAK,GAAG,GAAG,EACxC,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,SAAS,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,IAL/C,KAAK,CAAC,GAAG,CAMd,CACH,CAAC,GACC,IACD,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/services/cell/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/services/cell/index.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6DAA6D,CAAC;AAElG;;;GAGG;AACH,wBAAgB,IAAI,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,cAAc,+BAyB/F"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { classNames } from "@sharadox/web-library/class-name";
|
|
3
4
|
import { useSpotlight } from "@sharadox/pointer-web-library/spotlight";
|
|
4
5
|
import { useTilt } from "@sharadox/pointer-web-library/tilt";
|
|
5
6
|
import styles from "./index.module.css";
|
|
@@ -10,6 +11,6 @@ import styles from "./index.module.css";
|
|
|
10
11
|
export function Cell({ id, visual, number, kinds, title, lead, text, className }) {
|
|
11
12
|
const spotlight = useSpotlight();
|
|
12
13
|
const tilt = useTilt(5);
|
|
13
|
-
return (_jsxs("article", { id: id, ref: spotlight, className:
|
|
14
|
+
return (_jsxs("article", { id: id, ref: spotlight, className: classNames(styles.cell, className), children: [_jsx("div", { ref: tilt, className: styles.visual, children: _jsx("div", { className: styles.stage, children: visual }) }), _jsxs("div", { className: styles.copy, children: [_jsxs("div", { className: styles.meta, children: [_jsx("span", { className: `monospace ${styles.number}`, children: number }), _jsx("ul", { className: styles.kinds, children: kinds.map((kind) => (_jsx("li", { className: "monospace", children: kind }, kind))) })] }), _jsx("h3", { children: title }), _jsx("p", { className: styles.lead, children: lead }), _jsx("p", { children: text })] })] }));
|
|
14
15
|
}
|
|
15
16
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/services/cell/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAC;AAC7D,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC;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,EAAE,MAAM,CAAC,IAAI,aACzB,eAAM,SAAS,EAAE,aAAa,MAAM,CAAC,MAAM,EAAE,YAAG,MAAM,GAAQ,EAC9D,aAAI,SAAS,EAAE,MAAM,CAAC,KAAK,YACxB,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CACnB,aAAe,SAAS,EAAC,WAAW,YACjC,IAAI,IADE,IAAI,CAER,CACN,CAAC,GACC,IACD,EACN,uBAAK,KAAK,GAAM,EAChB,YAAG,SAAS,EAAE,MAAM,CAAC,IAAI,YAAG,IAAI,GAAK,EACrC,sBAAI,IAAI,GAAK,IACT,IACE,CACX,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/services/design-visual/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/services/design-visual/index.tsx"],"names":[],"mappings":"AAOA;;GAEG;AACH,wBAAgB,YAAY,gCA0C3B"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { classNames } from "@sharadox/web-library/class-name";
|
|
3
4
|
import { useInView } from "@sharadox/animation-web-library/in-view";
|
|
4
5
|
import styles from "./index.module.css";
|
|
5
6
|
const SWATCHES = ["var(--foreground)", "var(--foreground-2)", "var(--foreground-3)", "var(--surface)"];
|
|
@@ -8,7 +9,7 @@ const SWATCHES = ["var(--foreground)", "var(--foreground-2)", "var(--foreground-
|
|
|
8
9
|
*/
|
|
9
10
|
export function DesignVisual() {
|
|
10
11
|
const [container, on] = useInView();
|
|
11
|
-
return (_jsx("div", { ref: container, className:
|
|
12
|
+
return (_jsx("div", { ref: container, className: classNames(styles.visual, on && styles.on), "aria-hidden": true, children: _jsxs("div", { className: styles.scene, children: [_jsx("div", { className: `${styles.card} ${styles.palette}`, children: SWATCHES.map((color, index) => (_jsx("span", { style: { background: color, animationDelay: `${0.3 + index * 0.1}s` } }, color))) }), _jsxs("div", { className: `${styles.card} ${styles.type}`, children: [_jsx("span", { className: styles.specimen, children: "Aa" }), _jsx("span", { className: `${styles.caption} monospace`, children: "Geist" }), _jsx("span", { className: `${styles.glyphs} monospace`, children: "Rr Gg 01" })] }), _jsx("div", { className: `${styles.card} ${styles.mark}`, children: _jsxs("svg", { viewBox: "0 0 120 120", children: [_jsxs("g", { className: styles.guides, children: [_jsx("line", { x1: "0", y1: "60", x2: "120", y2: "60" }), _jsx("line", { x1: "60", y1: "0", x2: "60", y2: "120" }), _jsx("circle", { cx: "60", cy: "60", r: "46" }), _jsx("circle", { cx: "60", cy: "60", r: "28" }), _jsx("line", { x1: "14", y1: "14", x2: "106", y2: "106" }), _jsx("line", { x1: "106", y1: "14", x2: "14", y2: "106" })] }), _jsx("circle", { cx: "60", cy: "60", r: "34", className: styles.outer, pathLength: 1 }), _jsx("ellipse", { cx: "60", cy: "60", rx: "18", ry: "34", className: styles.inner, pathLength: 1 }), [
|
|
12
13
|
[60, 26],
|
|
13
14
|
[94, 60],
|
|
14
15
|
[60, 94],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/services/design-visual/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,MAAM,QAAQ,GAAG,CAAC,mBAAmB,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,gBAAgB,CAAC,CAAC;AAEvG;;GAEG;AACH,MAAM,UAAU,YAAY;IAC1B,MAAM,CAAC,SAAS,EAAE,EAAE,CAAC,GAAG,SAAS,EAAkB,CAAC;IACpD,OAAO,CACL,cAAK,GAAG,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC,MA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AAE,EAAE,CAAC;gCACR,CAAC,EAAE,EAAE,EAAE,CAAC;gCACR,CAAC,EAAE,EAAE,EAAE,CAAC;6BACT,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAChB,eAAwB,CAAC,EAAE,CAAE,GAAG,GAAG,EAAE,CAAC,EAAE,CAAE,GAAG,GAAG,EAAE,KAAK,EAAC,GAAG,EAAC,MAAM,EAAC,GAAG,EAAC,SAAS,EAAE,MAAM,CAAC,MAAM,IAApF,GAAG,CAAC,IAAI,CAAC,EAAE,CAA6E,CACpG,CAAC,IACE,GACF,IACF,GACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/services/social-visual/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/services/social-visual/index.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sEAAsE,CAAC;AAKnH,4GAA4G;AAC5G,wBAAgB,YAAY,CAAC,EAAE,MAAM,EAAE,EAAE,sBAAsB,+BAiC9D"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { classNames } from "@sharadox/web-library/class-name";
|
|
3
4
|
import { useCountUp } from "@sharadox/animation-web-library/count-up";
|
|
4
5
|
import { useInView } from "@sharadox/animation-web-library/in-view";
|
|
5
6
|
import { LOCALES } from "@sharadox/sharadox-web-library/content/locale";
|
|
@@ -12,6 +13,6 @@ const POSTS = Array.from({ length: 9 }, (_, index) => index);
|
|
|
12
13
|
export function SocialVisual({ locale }) {
|
|
13
14
|
const [container, on] = useInView();
|
|
14
15
|
const followers = useCountUp(12480, on, 2200);
|
|
15
|
-
return (_jsxs("div", { ref: container, className:
|
|
16
|
+
return (_jsxs("div", { ref: container, className: classNames(styles.visual, on && styles.on), "aria-hidden": true, children: [_jsx("div", { className: styles.feed, children: POSTS.map((post) => (_jsx("span", { style: { animationDelay: `${0.2 + post * 0.09}s` } }, post))) }), _jsxs("div", { className: styles.panel, children: [_jsxs("div", { className: styles.header, children: [_jsx("span", { className: `${styles.label} monospace`, children: translate(SERVICES.visual.followers, locale) }), _jsx("span", { className: `${styles.growth} monospace`, children: "+38%" })] }), _jsx("span", { className: styles.count, children: followers.toLocaleString(LOCALES.languageTag(locale)) }), _jsxs("svg", { viewBox: "0 0 260 96", className: styles.chart, children: [_jsx("defs", { children: _jsxs("linearGradient", { id: "social-area", x1: "0", x2: "0", y1: "0", y2: "1", children: [_jsx("stop", { offset: "0", stopColor: "var(--foreground)", stopOpacity: "0.22" }), _jsx("stop", { offset: "1", stopColor: "var(--foreground)", stopOpacity: "0" })] }) }), [24, 48, 72].map((y) => (_jsx("line", { x1: "0", x2: "260", y1: y, y2: y, className: styles.gridLine }, y))), _jsx("path", { d: `${LINE} L 260 96 L 0 96 Z`, className: styles.area, fill: "url(#social-area)" }), _jsx("path", { d: LINE, className: styles.line, pathLength: 1 }), _jsx("circle", { cx: "260", cy: "8", r: "3.5", className: styles.dot })] })] })] }));
|
|
16
17
|
}
|
|
17
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/services/social-visual/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,UAAU,EAAE,MAAM,0CAA0C,CAAC;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,OAAO,EAAE,MAAM,+CAA+C,CAAC;AACxE,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAC3E,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pE,eAAM,MAAM,EAAC,GAAG,EAAC,SAAS,EAAC,mBAAmB,EAAC,WAAW,EAAC,GAAG,GAAG,IAClD,GACZ,EACN,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CACvB,eAAc,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,KAAK,EAAC,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,SAAS,EAAE,MAAM,CAAC,QAAQ,IAA3D,CAAC,CAA8D,CAC3E,CAAC,EACF,eAAM,CAAC,EAAE,GAAG,IAAI,oBAAoB,EAAE,SAAS,EAAE,MAAM,CAAC,IAAI,EAAE,IAAI,EAAC,mBAAmB,GAAG,EACzF,eAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,CAAC,IAAI,EAAE,UAAU,EAAE,CAAC,GAAI,EACxD,iBAAQ,EAAE,EAAC,KAAK,EAAC,EAAE,EAAC,GAAG,EAAC,CAAC,EAAC,KAAK,EAAC,SAAS,EAAE,MAAM,CAAC,GAAG,GAAI,IACrD,IACF,IACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/services/web-visual/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/services/web-visual/index.tsx"],"names":[],"mappings":"AAQA,yFAAyF;AACzF,wBAAgB,SAAS,gCA+CxB"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { classNames } from "@sharadox/web-library/class-name";
|
|
3
4
|
import { useEffect, useState } from "react";
|
|
4
5
|
import { useInView } from "@sharadox/animation-web-library/in-view";
|
|
5
6
|
import styles from "./index.module.css";
|
|
@@ -20,6 +21,6 @@ export function WebVisual() {
|
|
|
20
21
|
}, 22);
|
|
21
22
|
return () => clearInterval(timer);
|
|
22
23
|
}, [on]);
|
|
23
|
-
return (_jsxs("div", { ref: container, className:
|
|
24
|
+
return (_jsxs("div", { ref: container, className: classNames(styles.visual, on && styles.on), "aria-hidden": true, children: [_jsxs("div", { className: styles.browser, children: [_jsxs("div", { className: styles.bar, children: [_jsx("i", {}), _jsx("i", {}), _jsx("i", {}), _jsx("span", { className: `${styles.url} monospace`, children: "yourbusiness.com" })] }), _jsxs("div", { className: styles.body, children: [_jsx("div", { className: `${styles.skeleton} ${styles.navigation}` }), _jsx("div", { className: `${styles.skeleton} ${styles.hero}` }), _jsxs("div", { className: styles.row, children: [_jsx("div", { className: `${styles.skeleton} ${styles.card}` }), _jsx("div", { className: `${styles.skeleton} ${styles.card}` }), _jsx("div", { className: `${styles.skeleton} ${styles.card}` })] })] })] }), _jsxs("div", { className: styles.score, children: [_jsxs("svg", { viewBox: "0 0 52 52", children: [_jsx("circle", { cx: "26", cy: "26", r: "22", className: styles.track }), _jsx("circle", { cx: "26", cy: "26", r: "22", className: styles.progress, style: { strokeDasharray: CIRCUMFERENCE, strokeDashoffset: CIRCUMFERENCE * (1 - score / 100) } })] }), _jsx("span", { className: "monospace", children: score })] })] }));
|
|
24
25
|
}
|
|
25
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/services/web-visual/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,MAAM,aAAa,GAAG,CAAC,GAAG,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;AAEvC,yFAAyF;AACzF,MAAM,UAAU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AAE,GAAG,MAAM,CAAC,QAAQ,IAAI,MAAM,CAAC,IAAI,EAAE,GAAI,EACvD,cAAK,SAAS,EAAE,GAAG,MAAM,CAAC,QAAQ,IAAI,MAAM,CAAC,IAAI,EAAE,GAAI,IACnD,IACF,IACF,EACN,eAAK,SAAS,EAAE,MAAM,CAAC,KAAK,aAC1B,eAAK,OAAO,EAAC,WAAW,aACtB,iBAAQ,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,CAAC,EAAC,IAAI,EAAC,SAAS,EAAE,MAAM,CAAC,KAAK,GAAI,EAC1D,iBACE,EAAE,EAAC,IAAI,EACP,EAAE,EAAC,IAAI,EACP,CAAC,EAAC,IAAI,EACN,SAAS,EAAE,MAAM,CAAC,QAAQ,EAC1B,KAAK,EAAE,EAAE,eAAe,EAAE,aAAa,EAAE,gBAAgB,EAAE,aAAa,GAAG,CAAC,CAAC,GAAG,KAAK,GAAG,GAAG,CAAC,EAAE,GAC9F,IACE,EACN,eAAM,SAAS,EAAC,WAAW,YAAE,KAAK,GAAQ,IACtC,IACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/** The licence page: sharadox.com's source is public to read and verify, under the Sharadox Verifiable Source Licence. */
|
|
2
|
+
export declare const LICENCE: {
|
|
3
|
+
/** The page's path after the locale. */
|
|
4
|
+
readonly path: "/licence";
|
|
5
|
+
readonly title: {
|
|
6
|
+
readonly en: "Licence";
|
|
7
|
+
readonly pt: "Licença";
|
|
8
|
+
};
|
|
9
|
+
readonly eyebrow: {
|
|
10
|
+
readonly en: "Verifiable source";
|
|
11
|
+
readonly pt: "Código verificável";
|
|
12
|
+
};
|
|
13
|
+
readonly description: {
|
|
14
|
+
readonly en: "The Sharadox Verifiable Source Licence: the site's source code is public to read and verify.";
|
|
15
|
+
readonly pt: "A Licença Sharadox de Código Verificável: o código-fonte do site é público para ler e verificar.";
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/content/licence/index.ts"],"names":[],"mappings":"AAAA,0HAA0H;AAC1H,eAAO,MAAM,OAAO;IAClB,wCAAwC;;;;;;;;;;;;;;CAQhC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** The licence page: sharadox.com's source is public to read and verify, under the Sharadox Verifiable Source Licence. */
|
|
2
|
+
export const LICENCE = {
|
|
3
|
+
/** The page's path after the locale. */
|
|
4
|
+
path: "/licence",
|
|
5
|
+
title: { en: "Licence", pt: "Licença" },
|
|
6
|
+
eyebrow: { en: "Verifiable source", pt: "Código verificável" },
|
|
7
|
+
description: {
|
|
8
|
+
en: "The Sharadox Verifiable Source Licence: the site's source code is public to read and verify.",
|
|
9
|
+
pt: "A Licença Sharadox de Código Verificável: o código-fonte do site é público para ler e verificar.",
|
|
10
|
+
},
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/content/licence/index.ts"],"names":[],"mappings":"AAAA,0HAA0H;AAC1H,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,wCAAwC;IACxC,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS,EAAE;IACvC,OAAO,EAAE,EAAE,EAAE,EAAE,mBAAmB,EAAE,EAAE,EAAE,oBAAoB,EAAE;IAC9D,WAAW,EAAE;QACX,EAAE,EAAE,8FAA8F;QAClG,EAAE,EAAE,kGAAkG;KACvG;CACO,CAAC"}
|
package/llms.txt
CHANGED
|
@@ -8,3 +8,5 @@
|
|
|
8
8
|
- component/*: navigation, hero (+ lazy globe), service-index, statement, services (+ visuals), touchpoint, capability, marquee, process, contact (+ form), footer, section-indicator, style-switch, consent (shared ConsentPanel), structured-data, share-image (renderShareImage)
|
|
9
9
|
- style/token Sass helpers: tint, shade, dashed, on-scroll, below, fill-center
|
|
10
10
|
- Licence: Sharadox Verifiable Source Licence 0.1.0 (read and verify only)
|
|
11
|
+
- component/licence Licence({ locale, markdown }) renders the licence page body (marked); content/licence LICENCE { path "/licence", title, eyebrow, description }
|
|
12
|
+
- Navigation, Footer and LanguageSwitch take path? (e.g. "/licence"): section links go to /<locale>#section, language links stay on the page; the footer links to the licence page
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sharadox/sharadox-web-library",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.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",
|
|
@@ -64,6 +64,7 @@
|
|
|
64
64
|
"@sharadox/scroll-web-library": "^0.1.0",
|
|
65
65
|
"@sharadox/style-web-library": "^0.1.0",
|
|
66
66
|
"@sharadox/web-library": "^0.5.0",
|
|
67
|
+
"marked": "^17.0.6",
|
|
67
68
|
"motion": "^12.43.0"
|
|
68
69
|
},
|
|
69
70
|
"devDependencies": {
|
|
@@ -71,6 +72,7 @@
|
|
|
71
72
|
"@sharadox/es-lint-configuration-web-library": "^0.1.1",
|
|
72
73
|
"@sharadox/library-build-web-library": "^0.1.1",
|
|
73
74
|
"@sharadox/prettier-configuration-web-library": "^0.1.0",
|
|
75
|
+
"@sharadox/test-web-library": "^0.2.0",
|
|
74
76
|
"@sharadox/turborepo-configuration-web-library": "^0.1.0",
|
|
75
77
|
"@sharadox/type-script-configuration-web-library": "^0.2.0",
|
|
76
78
|
"@sharadox/vitest-configuration-web-library": "^0.1.3",
|