@sharadox/sharadox-web-library 0.7.1 → 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.
Files changed (35) hide show
  1. package/README.md +3 -0
  2. package/distribution/component/footer/index.d.ts +1 -1
  3. package/distribution/component/footer/index.d.ts.map +1 -1
  4. package/distribution/component/footer/index.js +4 -2
  5. package/distribution/component/footer/index.js.map +1 -1
  6. package/distribution/component/footer/type.d.ts +5 -0
  7. package/distribution/component/footer/type.d.ts.map +1 -1
  8. package/distribution/component/language-switch/index.d.ts +1 -1
  9. package/distribution/component/language-switch/index.d.ts.map +1 -1
  10. package/distribution/component/language-switch/index.js +2 -2
  11. package/distribution/component/language-switch/index.js.map +1 -1
  12. package/distribution/component/language-switch/type.d.ts +5 -0
  13. package/distribution/component/language-switch/type.d.ts.map +1 -1
  14. package/distribution/component/licence/index.d.ts +10 -0
  15. package/distribution/component/licence/index.d.ts.map +1 -0
  16. package/distribution/component/licence/index.js +18 -0
  17. package/distribution/component/licence/index.js.map +1 -0
  18. package/distribution/component/licence/index.module.css +1 -0
  19. package/distribution/component/licence/index.module.scss +49 -0
  20. package/distribution/component/licence/type.d.ts +7 -0
  21. package/distribution/component/licence/type.d.ts.map +1 -0
  22. package/distribution/component/licence/type.js +2 -0
  23. package/distribution/component/licence/type.js.map +1 -0
  24. package/distribution/component/navigation/index.d.ts +1 -1
  25. package/distribution/component/navigation/index.d.ts.map +1 -1
  26. package/distribution/component/navigation/index.js +3 -2
  27. package/distribution/component/navigation/index.js.map +1 -1
  28. package/distribution/component/navigation/type.d.ts +5 -0
  29. package/distribution/component/navigation/type.d.ts.map +1 -1
  30. package/distribution/content/licence/index.d.ts +18 -0
  31. package/distribution/content/licence/index.d.ts.map +1 -0
  32. package/distribution/content/licence/index.js +12 -0
  33. package/distribution/content/licence/index.js.map +1 -0
  34. package/llms.txt +2 -0
  35. package/package.json +2 -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,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":"AAeA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sDAAsD,CAAC;AAI7F,mHAAmH;AACnH,wBAAgB,MAAM,CAAC,EAAE,MAAM,EAAE,EAAE,gBAAgB,+BAkDlD"}
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
- 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: `#${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: "#capabilities", children: translate(NAVIGATION.capabilities, locale) }), _jsx("a", { href: "#process", children: translate(NAVIGATION.process, locale) }), _jsx("a", { href: "#contact", children: translate(NAVIGATION.contact, locale) }), _jsx(PreferencesLink, { label: translate(CONSENT.preferences, 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, 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)) })] }));
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,uDAAuD,CAAC;AACpF,OAAO,EAAE,QAAQ,EAAE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AAE,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;CAChB"}
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,+BAUlE"}
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;IACjE,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,OAAO,EAAE,KAAK,KAAK,MAAM,YAC7D,KAAK,CAAC,WAAW,EAAE,IADL,KAAK,CAET,CACd,CAAC,GACE,CACP,CAAC;AACJ,CAAC"}
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;CAChB"}
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,2 @@
1
+ export {};
2
+ //# sourceMappingURL=type.js.map
@@ -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":"AAUA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0DAA0D,CAAC;AAIrG,6FAA6F;AAC7F,wBAAgB,UAAU,CAAC,EAAE,MAAM,EAAE,EAAE,oBAAoB,+BA6B1D"}
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"}
@@ -11,7 +11,8 @@ import { translate } from "@sharadox/internationalization-web-library/translate"
11
11
  import styles from "./index.module.css";
12
12
  const LINKS = ["services", "capabilities", "process", "contact"];
13
13
  /** Fixed top bar that frosts once the page scrolls, with the style and language switches. */
14
- export function Navigation({ locale }) {
14
+ export function Navigation({ locale, path = "" }) {
15
+ const home = path ? `/${locale}` : "";
15
16
  const [scrolled, setScrolled] = useState(false);
16
17
  useEffect(() => {
17
18
  const update = () => setScrolled(scrollY > 24);
@@ -19,6 +20,6 @@ export function Navigation({ locale }) {
19
20
  addEventListener("scroll", update, { passive: true });
20
21
  return () => removeEventListener("scroll", update);
21
22
  }, []);
22
- 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: `#${link}`, children: translate(NAVIGATION[link], locale) }, link))) }), _jsxs("div", { className: styles.end, children: [_jsx(StyleSwitch, { locale: locale, className: styles.style }), _jsx(LanguageSwitch, { locale: locale }), _jsx(Button, { href: "#contact", size: "small", className: styles.callToAction, children: translate(NAVIGATION.callToAction, locale) })] })] }) }));
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) })] })] }) }));
23
24
  }
24
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,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,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,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OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;QACtD,OAAO,GAAG,EAAE,CAAC,mBAAmB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;IACrD,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,OAAO,CACL,iBAAQ,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,UAAU,EAAE,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,YAC3E,eAAK,SAAS,EAAE,MAAM,CAAC,KAAK,aAC1B,KAAC,QAAQ,IAAC,IAAI,EAAE,IAAI,MAAM,EAAE,GAAI,EAChC,cAAK,SAAS,EAAE,MAAM,CAAC,KAAK,gBAAa,MAAM,YAC5C,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CACnB,YAAc,IAAI,EAAE,GAAG,IAAI,IAAI,IAAI,EAAE,YAClC,SAAS,CAAC,UAAU,CAAC,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;CAChB"}
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"}
@@ -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.7.1",
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": {