@sharadox/sharadox-web-library 0.9.1 → 0.11.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/LICENSE.md +24 -24
- package/README.md +10 -5
- package/distribution/component/button/index.d.ts +1 -1
- package/distribution/component/button/index.d.ts.map +1 -1
- package/distribution/component/button/index.js +1 -1
- package/distribution/component/button/index.js.map +1 -1
- package/distribution/component/capability/index.d.ts.map +1 -1
- package/distribution/component/capability/index.js +2 -1
- package/distribution/component/capability/index.js.map +1 -1
- package/distribution/component/consent/index.module.scss +1 -1
- package/distribution/component/contact/index.d.ts.map +1 -1
- package/distribution/component/contact/index.js +2 -1
- package/distribution/component/contact/index.js.map +1 -1
- package/distribution/component/cross/index.d.ts +1 -1
- package/distribution/component/cross/index.d.ts.map +1 -1
- package/distribution/component/cross/index.js +1 -1
- package/distribution/component/cross/index.js.map +1 -1
- package/distribution/component/cross/type.d.ts +1 -1
- package/distribution/component/footer/index.d.ts.map +1 -1
- package/distribution/component/footer/index.js +5 -4
- package/distribution/component/footer/index.js.map +1 -1
- package/distribution/component/footer/type.d.ts +1 -1
- package/distribution/component/globe/index.d.ts +1 -1
- package/distribution/component/globe/index.js +1 -1
- package/distribution/component/hero/index.d.ts.map +1 -1
- package/distribution/component/hero/index.js +5 -2
- package/distribution/component/hero/index.js.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 +1 -1
- package/distribution/component/license/index.d.ts +10 -0
- package/distribution/component/{licence → license}/index.d.ts.map +1 -1
- package/distribution/component/{licence → license}/index.js +5 -5
- package/distribution/component/{licence → license}/index.js.map +1 -1
- package/distribution/component/{licence → license}/index.module.css +1 -1
- package/distribution/component/{licence → license}/index.module.scss +1 -1
- package/distribution/component/{licence → license}/type.d.ts +2 -2
- package/distribution/component/{licence → license}/type.d.ts.map +1 -1
- package/distribution/component/{licence → license}/type.js.map +1 -1
- package/distribution/component/navigation/index.d.ts.map +1 -1
- package/distribution/component/navigation/index.js +3 -2
- package/distribution/component/navigation/index.js.map +1 -1
- package/distribution/component/navigation/type.d.ts +1 -1
- package/distribution/component/not-found/index.d.ts.map +1 -1
- package/distribution/component/not-found/index.js +3 -2
- package/distribution/component/not-found/index.js.map +1 -1
- package/distribution/component/not-found/index.module.scss +1 -1
- package/distribution/component/process/index.d.ts.map +1 -1
- package/distribution/component/process/index.js +2 -1
- package/distribution/component/process/index.js.map +1 -1
- package/distribution/component/services/design-visual/index.d.ts +1 -1
- package/distribution/component/services/design-visual/index.js +1 -1
- package/distribution/component/services/index.d.ts.map +1 -1
- package/distribution/component/services/index.js +2 -1
- package/distribution/component/services/index.js.map +1 -1
- package/distribution/component/share-image/index.d.ts.map +1 -1
- package/distribution/component/share-image/index.js +3 -3
- package/distribution/component/share-image/index.js.map +1 -1
- package/distribution/component/structured-data/index.d.ts.map +1 -1
- package/distribution/component/structured-data/index.js +2 -1
- package/distribution/component/structured-data/index.js.map +1 -1
- package/distribution/component/style-switch/index.d.ts +1 -1
- package/distribution/component/style-switch/index.js +1 -1
- package/distribution/component/touchpoint/index.d.ts.map +1 -1
- package/distribution/component/touchpoint/index.js +2 -1
- package/distribution/component/touchpoint/index.js.map +1 -1
- package/distribution/content/action/index.d.ts +8 -0
- package/distribution/content/action/index.d.ts.map +1 -0
- package/distribution/content/action/index.js +5 -0
- package/distribution/content/action/index.js.map +1 -0
- package/distribution/content/capability/index.d.ts +0 -4
- package/distribution/content/capability/index.d.ts.map +1 -1
- package/distribution/content/capability/index.js +0 -1
- package/distribution/content/capability/index.js.map +1 -1
- package/distribution/content/contact/index.d.ts +0 -4
- package/distribution/content/contact/index.d.ts.map +1 -1
- package/distribution/content/contact/index.js +0 -1
- package/distribution/content/contact/index.js.map +1 -1
- package/distribution/content/footer/index.d.ts +0 -8
- package/distribution/content/footer/index.d.ts.map +1 -1
- package/distribution/content/footer/index.js +0 -2
- package/distribution/content/footer/index.js.map +1 -1
- package/distribution/content/hero/index.d.ts +0 -8
- package/distribution/content/hero/index.d.ts.map +1 -1
- package/distribution/content/hero/index.js +0 -5
- package/distribution/content/hero/index.js.map +1 -1
- package/distribution/content/language/index.d.ts +12 -0
- package/distribution/content/language/index.d.ts.map +1 -0
- package/distribution/content/language/index.js +6 -0
- package/distribution/content/language/index.js.map +1 -0
- package/distribution/content/{licence → license}/index.d.ts +5 -5
- package/distribution/content/{licence → license}/index.d.ts.map +1 -1
- package/distribution/content/license/index.js +12 -0
- package/distribution/content/{licence → license}/index.js.map +1 -1
- package/distribution/content/navigation/index.d.ts +10 -17
- package/distribution/content/navigation/index.d.ts.map +1 -1
- package/distribution/content/navigation/index.js +3 -7
- package/distribution/content/navigation/index.js.map +1 -1
- package/distribution/content/section/index.d.ts +37 -0
- package/distribution/content/section/index.d.ts.map +1 -0
- package/distribution/content/section/index.js +13 -0
- package/distribution/content/section/index.js.map +1 -0
- package/distribution/content/section-indicator/index.d.ts +1 -1
- package/distribution/content/section-indicator/index.d.ts.map +1 -1
- package/distribution/content/section-indicator/index.js +8 -7
- package/distribution/content/section-indicator/index.js.map +1 -1
- package/distribution/content/services/index.d.ts +3 -3
- package/distribution/content/services/index.js +3 -3
- package/distribution/content/services/index.js.map +1 -1
- package/distribution/content/site/index.d.ts +0 -4
- package/distribution/content/site/index.d.ts.map +1 -1
- package/distribution/content/site/index.js +0 -4
- package/distribution/content/site/index.js.map +1 -1
- package/distribution/content/slogan/index.d.ts +17 -0
- package/distribution/content/slogan/index.d.ts.map +1 -0
- package/distribution/content/slogan/index.js +17 -0
- package/distribution/content/slogan/index.js.map +1 -0
- package/distribution/content/style/index.d.ts +2 -2
- package/distribution/content/style/index.js +2 -2
- package/distribution/style/token/index.scss +4 -4
- package/llms.txt +5 -4
- package/package.json +2 -2
- package/distribution/component/licence/index.d.ts +0 -10
- package/distribution/content/licence/index.js +0 -12
- /package/distribution/component/{licence → license}/type.js +0 -0
package/LICENSE.md
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
# Sharadox Verifiable Source
|
|
1
|
+
# Sharadox Verifiable Source License
|
|
2
2
|
|
|
3
3
|
Version 0.1.0
|
|
4
4
|
|
|
5
|
-
This is an informative English translation. The Portuguese text (`LICENCA.md`) is the only original and binding text of this
|
|
5
|
+
This is an informative English translation. The Portuguese text (`LICENCA.md`) is the only original and binding text of this license; if the two differ, the Portuguese text prevails.
|
|
6
6
|
|
|
7
|
-
This
|
|
7
|
+
This license makes the source code of the Work public so that anyone can read and verify it. **It is not an open source license:** it does not allow copying, modifying, distributing or using the Work beyond what it provides. All rights not expressly granted are reserved.
|
|
8
8
|
|
|
9
9
|
## 1. Definitions
|
|
10
10
|
|
|
11
|
-
For the purposes of this
|
|
11
|
+
For the purposes of this license:
|
|
12
12
|
|
|
13
|
-
1. **"Work"** — the computer program, its documentation, design, text, images and any other content made available by the Licensor under this
|
|
13
|
+
1. **"Work"** — the computer program, its documentation, design, text, images and any other content made available by the Licensor under this license, in source code or in any other form.
|
|
14
14
|
2. **"Licensor"** — the copyright holder identified in the copyright notice that accompanies the Work.
|
|
15
|
-
3. **"Licensee"** — any natural or legal person accessing the Work under this
|
|
16
|
-
4. **"Verification"** — reading,
|
|
17
|
-
5. **"Notice"** — the Licensor's copyright notice and the statement that the Work is licensed under this
|
|
15
|
+
3. **"Licensee"** — any natural or legal person accessing the Work under this license.
|
|
16
|
+
4. **"Verification"** — reading, analyzing and studying the Work to understand how it works, to assess its quality, security, privacy and legal compliance, or to confirm that it matches what the Licensor makes available to the public.
|
|
17
|
+
5. **"Notice"** — the Licensor's copyright notice and the statement that the Work is licensed under this license, including its version.
|
|
18
18
|
|
|
19
19
|
## 2. Rights granted
|
|
20
20
|
|
|
21
|
-
The Licensor grants the Licensee a worldwide, royalty-free, non-exclusive, non-transferable
|
|
21
|
+
The Licensor grants the Licensee a worldwide, royalty-free, non-exclusive, non-transferable license, revocable under clause 6, solely to:
|
|
22
22
|
|
|
23
23
|
1. access and read the Work where the Licensor publishes it;
|
|
24
24
|
2. make the temporary reproductions and local copies strictly necessary for Verification, including compiling and running the Work on their own equipment for that purpose only;
|
|
@@ -38,21 +38,21 @@ Unless the Licensor gives prior written permission, and without prejudice to cla
|
|
|
38
38
|
|
|
39
39
|
## 4. Statutory rights not affected
|
|
40
40
|
|
|
41
|
-
This
|
|
41
|
+
This license does not restrict acts that the law allows regardless of the rights holder's permission, in particular those in articles 6 and 7 of Decree-Law no. 252/94 of 20 October, and the free uses provided for in the Code of Copyright and Related Rights.
|
|
42
42
|
|
|
43
43
|
## 5. Names, trademarks and design
|
|
44
44
|
|
|
45
|
-
The Work includes the Licensor's name, trademarks, logos, visual identity and design, including the name "Sharadox". This
|
|
45
|
+
The Work includes the Licensor's name, trademarks, logos, visual identity and design, including the name "Sharadox". This license grants no rights to them, and using, imitating or reproducing them without prior written permission is prohibited.
|
|
46
46
|
|
|
47
47
|
## 6. Termination
|
|
48
48
|
|
|
49
|
-
1. The rights granted by this
|
|
50
|
-
2. The Licensor may also revoke this
|
|
49
|
+
1. The rights granted by this license terminate automatically if the Licensee breaches any of its conditions.
|
|
50
|
+
2. The Licensor may also revoke this license for a specific Licensee by written notice, with immediate effect.
|
|
51
51
|
3. On termination, the Licensee must delete all copies of the Work in their possession.
|
|
52
52
|
|
|
53
53
|
## 7. Contributions
|
|
54
54
|
|
|
55
|
-
If the Licensee sends the Licensor suggestions, fixes or other contributions to the Work, they grant the Licensor, free of charge, a worldwide, perpetual, irrevocable and non-exclusive
|
|
55
|
+
If the Licensee sends the Licensor suggestions, fixes or other contributions to the Work, they grant the Licensor, free of charge, a worldwide, perpetual, irrevocable and non-exclusive license to use, reproduce, modify, distribute and sublicense them, as part of the Work or otherwise, and declare that they are entitled to grant that license.
|
|
56
56
|
|
|
57
57
|
## 8. Disclaimer of warranties
|
|
58
58
|
|
|
@@ -60,25 +60,25 @@ The Work is provided "as is" and "as available", without any warranty, express o
|
|
|
60
60
|
|
|
61
61
|
## 9. Limitation of liability
|
|
62
62
|
|
|
63
|
-
1. To the maximum extent permitted by applicable law, the Licensor is not liable for any damages, direct or indirect, including loss of profits, loss of data or business interruption, arising from access to or use of the Work under this
|
|
64
|
-
2. Nothing in this
|
|
63
|
+
1. To the maximum extent permitted by applicable law, the Licensor is not liable for any damages, direct or indirect, including loss of profits, loss of data or business interruption, arising from access to or use of the Work under this license.
|
|
64
|
+
2. Nothing in this license excludes or limits the Licensor's liability where such exclusion or limitation is not permitted by law, in particular for acts committed with intent or gross negligence, under article 809 and article 800(2) of the Portuguese Civil Code, nor does it affect rights that the law mandatorily grants to consumers.
|
|
65
65
|
|
|
66
66
|
## 10. Governing law and jurisdiction
|
|
67
67
|
|
|
68
|
-
1. This
|
|
69
|
-
2. The Judicial Court of the District of Faro has jurisdiction over any dispute arising from this
|
|
68
|
+
1. This license is governed by Portuguese law, in particular the Code of Copyright and Related Rights, approved by Decree-Law no. 63/85 of 14 March, and Decree-Law no. 252/94 of 20 October on the legal protection of computer programs.
|
|
69
|
+
2. The Judicial Court of the District of Faro has jurisdiction over any dispute arising from this license, without prejudice to applicable mandatory rules of jurisdiction, in particular those protecting consumers.
|
|
70
70
|
|
|
71
|
-
## 11.
|
|
71
|
+
## 11. License versions
|
|
72
72
|
|
|
73
|
-
The Licensor may publish new versions of this
|
|
73
|
+
The Licensor may publish new versions of this license, identified by a version number. The Work is subject to the version stated in the Notice.
|
|
74
74
|
|
|
75
75
|
## 12. Final provisions
|
|
76
76
|
|
|
77
|
-
1. If any provision of this
|
|
78
|
-
2. Failure to enforce any provision of this
|
|
79
|
-
3. For permission requests or notices under this
|
|
77
|
+
1. If any provision of this license is held invalid or unenforceable, the remaining provisions stay in force, and the affected provision shall be interpreted as closely as possible to its original intent.
|
|
78
|
+
2. Failure to enforce any provision of this license at any time does not waive the right to enforce it later.
|
|
79
|
+
3. For permission requests or notices under this license, contact the Licensor through the means given in the Notice or where the Work is published.
|
|
80
80
|
|
|
81
|
-
## How to apply this
|
|
81
|
+
## How to apply this license
|
|
82
82
|
|
|
83
83
|
Include in the Work a `LICENCA.md` file with the Portuguese text, this translation as `LICENSE.md`, and the following notice, filling in the year and holder:
|
|
84
84
|
|
package/README.md
CHANGED
|
@@ -21,15 +21,20 @@ Everything generic comes from the open-source Sharadox libraries, configured her
|
|
|
21
21
|
|
|
22
22
|
- **`content/`:** all copy and settings, one topic per folder.
|
|
23
23
|
- `locale`: `LOCALES`, built with `defineLocales`.
|
|
24
|
-
- `style`: `STYLES`, with Black and White in the
|
|
24
|
+
- `style`: `STYLES`, with Black and White in the color group; colors live only here.
|
|
25
25
|
- `separator`: the Sharadox separator •.
|
|
26
|
+
- `slogan`: `SLOGAN` (one sentence, always with its full stop) and `SLOGAN_LINES` (the hero's lines, the single source of its words).
|
|
27
|
+
- `section`: `SECTION`, each home-page section's id and name, used by navigation, footer, section indicator and headings.
|
|
28
|
+
- `action`: shared calls to action (`ACTION.startProject`).
|
|
29
|
+
- `language`: `LANGUAGE`, the switches' label and each language's own name.
|
|
26
30
|
- `consent`, `contact`, `services`, `site`, `globe`, and so on.
|
|
31
|
+
- **One source for shared copy:** text used in more than one place lives in its own content module and is imported, never retyped.
|
|
27
32
|
- **`component/`:** the page's branded parts:
|
|
28
33
|
- grid frame, `Cross` marks, navigation and footer
|
|
29
34
|
- hero and its guides, service index, statement, the five service cells and their live visuals
|
|
30
35
|
- the 3D touchpoint stack, capabilities sheet, process, contact, section indicator, style switch
|
|
31
36
|
- Sharadox wrappers around the shared globe and cookie panel, structured data, share image
|
|
32
|
-
- `
|
|
37
|
+
- `License`: the license page's body, rendered from the license's Markdown
|
|
33
38
|
- `NotFound`: the 404 screen, a giant 404 whose zero is the live globe, with the failed request and the way back (put `ServiceIndex base="/<locale>"` under it)
|
|
34
39
|
- **`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").
|
|
35
40
|
- **`utility/`:** `separate()` (the Sharadox separator) and the share card's horizon dots.
|
|
@@ -44,8 +49,8 @@ import { STYLES } from "@sharadox/sharadox-web-library/content/style";
|
|
|
44
49
|
```
|
|
45
50
|
|
|
46
51
|
- **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).
|
|
47
|
-
- **Pages other than home:** pass `path` (for example `"/
|
|
48
|
-
- **
|
|
52
|
+
- **Pages other than home:** pass `path` (for example `"/license"`) to `Navigation` and `Footer`, so section links lead back to the home page and the language links stay on the page.
|
|
53
|
+
- **License page:** `<License locale={locale} markdown={…} />` with `LICENCA.md` for Portuguese and `LICENSE.md` for English; the footer links to `/<locale>/license`.
|
|
49
54
|
- **Contact:** the application's server action reads the visitor's IP address and calls `sendContact(form, ip)`.
|
|
50
55
|
|
|
51
56
|
## Develop
|
|
@@ -54,6 +59,6 @@ import { STYLES } from "@sharadox/sharadox-web-library/content/style";
|
|
|
54
59
|
- **How the tests run:** components render in a browser-like environment (`test-fixture/browser`), the whole page renders in both languages, and the contact email is checked against a local SMTP server.
|
|
55
60
|
- **Flow:** branches follow `<feature>.development` → `development` → `index`, and releases are `v<version>` tags on `index`.
|
|
56
61
|
|
|
57
|
-
##
|
|
62
|
+
## License
|
|
58
63
|
|
|
59
64
|
The source is public so anyone can read and verify it, but it is **not open source**. It's under the Licença Sharadox de Código Verificável, versão 0.1.0: the [Portuguese text](LICENCA.md) is binding, with an [English translation](LICENSE.md). The Sharadox name, brand and design are reserved.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ButtonProperties } from "@sharadox/sharadox-web-library/component/button/type";
|
|
2
|
-
/** Pill button or link: solid (the foreground
|
|
2
|
+
/** Pill button or link: solid (the foreground color) or ghost (outlined). */
|
|
3
3
|
export declare function Button({ children, href, variant, size, arrow, disabled, className, }: ButtonProperties): import("react").JSX.Element;
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/button/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sDAAsD,CAAC;AAE7F,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/button/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sDAAsD,CAAC;AAE7F,6EAA6E;AAC7E,wBAAgB,MAAM,CAAC,EACrB,QAAQ,EACR,IAAI,EACJ,OAAiB,EACjB,IAAe,EACf,KAAK,EACL,QAAQ,EACR,SAAS,GACV,EAAE,gBAAgB,+BAuBlB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import styles from "./index.module.css";
|
|
3
|
-
/** Pill button or link: solid (the foreground
|
|
3
|
+
/** Pill button or link: solid (the foreground color) or ghost (outlined). */
|
|
4
4
|
export function Button({ children, href, variant = "solid", size = "medium", arrow, disabled, className, }) {
|
|
5
5
|
const classNames = [styles.button, styles[variant], size !== "medium" && styles[size], className]
|
|
6
6
|
.filter(Boolean)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/button/index.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/button/index.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC,6EAA6E;AAC7E,MAAM,UAAU,MAAM,CAAC,EACrB,QAAQ,EACR,IAAI,EACJ,OAAO,GAAG,OAAO,EACjB,IAAI,GAAG,QAAQ,EACf,KAAK,EACL,QAAQ,EACR,SAAS,GACQ;IACjB,MAAM,UAAU,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE,IAAI,KAAK,QAAQ,IAAI,MAAM,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC;SAC9F,MAAM,CAAC,OAAO,CAAC;SACf,IAAI,CAAC,GAAG,CAAC,CAAC;IACb,MAAM,OAAO,GAAG,CACd,8BACG,QAAQ,EACR,KAAK,IAAI,CACR,eAAM,SAAS,EAAE,MAAM,CAAC,KAAK,4CAEtB,CACR,IACA,CACJ,CAAC;IACF,OAAO,IAAI,CAAC,CAAC,CAAC,CACZ,YAAG,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,YACjC,OAAO,GACN,CACL,CAAC,CAAC,CAAC,CACF,iBAAQ,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,YAC9C,OAAO,GACD,CACV,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/capability/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/capability/index.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0DAA0D,CAAC;AAErG,0FAA0F;AAC1F,wBAAgB,UAAU,CAAC,EAAE,MAAM,EAAE,EAAE,oBAAoB,+BA4B1D"}
|
|
@@ -5,10 +5,11 @@ import { Section } from "@sharadox/sharadox-web-library/component/section";
|
|
|
5
5
|
import { SectionHeading } from "@sharadox/sharadox-web-library/component/section-heading";
|
|
6
6
|
import { CAPABILITY } from "@sharadox/sharadox-web-library/content/capability";
|
|
7
7
|
import { SERVICES } from "@sharadox/sharadox-web-library/content/services";
|
|
8
|
+
import { SECTION } from "@sharadox/sharadox-web-library/content/section";
|
|
8
9
|
import styles from "./index.module.css";
|
|
9
10
|
/** "Capabilities": every deliverable of every discipline, as columns of a ruled sheet. */
|
|
10
11
|
export function Capability({ locale }) {
|
|
11
12
|
const rows = 1 + Math.max(...SERVICES.items.map((service) => service.capabilities[locale].length));
|
|
12
|
-
return (_jsxs(Section, { id:
|
|
13
|
+
return (_jsxs(Section, { id: SECTION.capabilities.id, padded: false, children: [_jsx("div", { className: styles.heading, children: _jsx(SectionHeading, { eyebrow: translate(SECTION.capabilities, locale), title: translate(CAPABILITY.title, locale) }) }), _jsx("div", { className: styles.sheet, style: { "--rows": rows }, children: SERVICES.items.map((service, column) => (_jsxs("div", { className: styles.column, children: [_jsxs("a", { href: `#${service.key}`, className: styles.title, children: [_jsx("span", { className: "monospace", children: service.number }), translate(service.title, locale)] }), _jsx("ul", { role: "list", children: service.capabilities[locale].map((capability, row) => (_jsx("li", { children: _jsx(Reveal, { delay: column * 0.05 + row * 0.04, y: 8, blur: 0, margin: "-5% 0px", children: capability }) }, capability))) })] }, service.key))) })] }));
|
|
13
14
|
}
|
|
14
15
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/capability/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,wCAAwC,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,EAAE,OAAO,EAAE,MAAM,kDAAkD,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,0DAA0D,CAAC;AAC1F,OAAO,EAAE,UAAU,EAAE,MAAM,mDAAmD,CAAC;AAC/E,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAC3E,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC,0FAA0F;AAC1F,MAAM,UAAU,UAAU,CAAC,EAAE,MAAM,EAAwB;IACzD,MAAM,IAAI,GAAG,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC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AAE,IAAI,EAAmB,YACrE,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC,CACvC,eAAuB,SAAS,EAAE,MAAM,CAAC,MAAM,aAC7C,aAAG,IAAI,EAAE,IAAI,OAAO,CAAC,GAAG,EAAE,EAAE,SAAS,EAAE,MAAM,CAAC,KAAK,aACjD,eAAM,SAAS,EAAC,WAAW,YAAE,OAAO,CAAC,MAAM,GAAQ,EAClD,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,IAC/B,EACJ,aAAI,IAAI,EAAC,MAAM,YACZ,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,GAAG,EAAE,EAAE,CAAC,CACrD,uBACE,KAAC,MAAM,IAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,GAAG,GAAG,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAC,SAAS,YACvE,UAAU,GACJ,IAHF,UAAU,CAId,CACN,CAAC,GACC,KAbG,OAAO,CAAC,GAAG,CAcf,CACP,CAAC,GACE,IACE,CACX,CAAC;AACJ,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@use "style/token" as *;
|
|
2
2
|
|
|
3
|
-
/* The shared panel, in the Sharadox style: its
|
|
3
|
+
/* The shared panel, in the Sharadox style: its colors, the grid's sharp corners, bottom-left of the screen. */
|
|
4
4
|
.consent {
|
|
5
5
|
--consent-background: var(--background);
|
|
6
6
|
--consent-foreground: var(--foreground);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/contact/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/contact/index.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uDAAuD,CAAC;AAE/F,uFAAuF;AACvF,wBAAgB,OAAO,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,iBAAiB,+BAkB5D"}
|
|
@@ -6,9 +6,10 @@ import { CONTACT } from "@sharadox/sharadox-web-library/content/contact";
|
|
|
6
6
|
import { SITE } from "@sharadox/sharadox-web-library/content/site";
|
|
7
7
|
import { translate } from "@sharadox/internationalization-web-library/translate";
|
|
8
8
|
import { ContactForm } from "@sharadox/sharadox-web-library/component/contact/form";
|
|
9
|
+
import { SECTION } from "@sharadox/sharadox-web-library/content/section";
|
|
9
10
|
import styles from "./index.module.css";
|
|
10
11
|
/** Contact section: invitation and direct email on the left, the form on the right. */
|
|
11
12
|
export function Contact({ locale, action }) {
|
|
12
|
-
return (_jsxs(Section, { id:
|
|
13
|
+
return (_jsxs(Section, { id: SECTION.contact.id, className: styles.contact, children: [_jsx("div", { className: styles.glow, "aria-hidden": true }), _jsxs(Reveal, { className: styles.heading, children: [_jsx(Eyebrow, { children: translate(SECTION.contact, locale) }), _jsx("h2", { children: translate(CONTACT.title, locale) }), _jsx("p", { className: styles.text, children: translate(CONTACT.text, locale) }), _jsxs("p", { className: styles.direct, children: [_jsx("span", { className: "monospace", children: translate(CONTACT.direct, locale) }), _jsx("a", { href: `mailto:${SITE.email}`, children: SITE.email })] })] }), _jsx(Reveal, { delay: 0.1, children: _jsx(ContactForm, { locale: locale, action: action }) })] }));
|
|
13
14
|
}
|
|
14
15
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/contact/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kDAAkD,CAAC;AAC3E,OAAO,EAAE,MAAM,EAAE,MAAM,wCAAwC,CAAC;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,kDAAkD,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,M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vD,uBAAK,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,GAAM,EAC3C,YAAG,SAAS,EAAE,MAAM,CAAC,IAAI,YAAG,SAAS,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,GAAK,EAChE,aAAG,SAAS,EAAE,MAAM,CAAC,MAAM,aACzB,eAAM,SAAS,EAAC,WAAW,YAAE,SAAS,CAAC,OAAO,CAAC,MAAM,EAAE,MAAM,CAAC,GAAQ,EACtE,YAAG,IAAI,EAAE,UAAU,IAAI,CAAC,KAAK,EAAE,YAAG,IAAI,CAAC,KAAK,GAAK,IAC/C,IACG,EACT,KAAC,MAAM,IAAC,KAAK,EAAE,GAAG,YAChB,KAAC,WAAW,IAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAI,GACxC,IACD,CACX,CAAC;AACJ,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { CrossProperties } from "@sharadox/sharadox-web-library/component/cross/type";
|
|
2
|
-
/** The "+" that marks where grid lines meet,
|
|
2
|
+
/** The "+" that marks where grid lines meet, centered on a corner of its positioned parent. */
|
|
3
3
|
export declare function Cross({ corner, className }: CrossProperties): import("react").JSX.Element;
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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
|
|
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,+FAA+F;AAC/F,wBAAgB,KAAK,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,eAAe,+BAE3D"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { classNames } from "@sharadox/web-library/class-name";
|
|
3
3
|
import styles from "./index.module.css";
|
|
4
|
-
/** The "+" that marks where grid lines meet,
|
|
4
|
+
/** The "+" that marks where grid lines meet, centered on a corner of its positioned parent. */
|
|
5
5
|
export function Cross({ corner, className }) {
|
|
6
6
|
return _jsx("span", { className: classNames(styles.cross, styles[corner], className), "aria-hidden": true });
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
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
|
|
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,+FAA+F;AAC/F,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,5 +1,5 @@
|
|
|
1
1
|
export interface CrossProperties {
|
|
2
|
-
/** Which corner of the positioned parent the cross sits on (its
|
|
2
|
+
/** Which corner of the positioned parent the cross sits on (its center on the corner). */
|
|
3
3
|
corner: "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
4
4
|
className?: string;
|
|
5
5
|
}
|
|
@@ -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":"AAkBA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sDAAsD,CAAC;AAE7F,mHAAmH;AACnH,wBAAgB,MAAM,CAAC,EAAE,MAAM,EAAE,IAAS,EAAE,EAAE,gBAAgB,+BAsD7D"}
|
|
@@ -8,17 +8,18 @@ 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 {
|
|
12
|
-
import {
|
|
11
|
+
import { LICENSE } from "@sharadox/sharadox-web-library/content/license";
|
|
12
|
+
import { LANGUAGE } from "@sharadox/sharadox-web-library/content/language";
|
|
13
|
+
import { SECTION } from "@sharadox/sharadox-web-library/content/section";
|
|
14
|
+
import { SLOGAN } from "@sharadox/sharadox-web-library/content/slogan";
|
|
13
15
|
import { SERVICES } from "@sharadox/sharadox-web-library/content/services";
|
|
14
16
|
import { STYLE } from "@sharadox/sharadox-web-library/content/style";
|
|
15
17
|
import { SITE } from "@sharadox/sharadox-web-library/content/site";
|
|
16
18
|
import { LOCALES } from "@sharadox/sharadox-web-library/content/locale";
|
|
17
19
|
import styles from "./index.module.css";
|
|
18
|
-
const LANGUAGE_NAMES = { en: "English", pt: "Português" };
|
|
19
20
|
/** Columns of links in the grid, the style and language switches, the big gradient wordmark and the legal line. */
|
|
20
21
|
export function Footer({ locale, path = "" }) {
|
|
21
22
|
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}` }),
|
|
23
|
+
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}`, className: styles.email, children: SITE.email })] }), _jsxs("nav", { "aria-label": translate(SECTION.services, locale), children: [_jsx("h2", { className: "monospace", children: translate(SECTION.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}#${SECTION.capabilities.id}`, children: translate(SECTION.capabilities, locale) }), _jsx("a", { href: `${home}#${SECTION.process.id}`, children: translate(SECTION.process, locale) }), _jsx("a", { href: `${home}#${SECTION.contact.id}`, children: translate(SECTION.contact, locale) }), _jsx(PreferencesLink, { label: translate(CONSENT.preferences, locale) }), _jsx("a", { href: `/${locale}${LICENSE.path}`, "aria-current": path === LICENSE.path ? "page" : undefined, children: translate(LICENSE.title, locale) }), _jsxs("a", { href: "#top", children: [translate(FOOTER.top, locale), " \u2191"] })] }), _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 })] })] }), _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)) })] }));
|
|
23
24
|
}
|
|
24
25
|
//# 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,MAAM,mDAAmD,CAAC;AAC7E,OAAO,EAAE,MAAM,EAAE,MAAM,+CAA+C,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AACzE,OAAO,EAAE,
|
|
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,MAAM,mDAAmD,CAAC;AAC7E,OAAO,EAAE,MAAM,EAAE,MAAM,+CAA+C,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AAC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ChD,EACN,eAAK,SAAS,EAAE,MAAM,CAAC,QAAQ,aAC7B,aAAI,SAAS,EAAC,WAAW,YAAE,SAAS,CAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,GAAM,EAClE,eAAM,SAAS,EAAE,MAAM,CAAC,SAAS,YAC9B,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,QAAQ,CAAC,KAAK,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"}
|
|
@@ -2,7 +2,7 @@ import type { Locale } from "@sharadox/sharadox-web-library/content/locale/type"
|
|
|
2
2
|
export interface FooterProperties {
|
|
3
3
|
locale: Locale;
|
|
4
4
|
/**
|
|
5
|
-
* The page's path after the locale, for example "/
|
|
5
|
+
* The page's path after the locale, for example "/license"; the home page by default. Section links then point to
|
|
6
6
|
* the home page, and the language links keep the visitor on this page.
|
|
7
7
|
*/
|
|
8
8
|
path?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The hero's globe: arcs from Almancil to the world, drawn in the
|
|
2
|
+
* The hero's globe: arcs from Almancil to the world, drawn in the colors of the style in use (default export, so
|
|
3
3
|
* the hero can load it lazily).
|
|
4
4
|
*/
|
|
5
5
|
export default function Globe(): import("react").JSX.Element;
|
|
@@ -10,7 +10,7 @@ import styles from "./index.module.css";
|
|
|
10
10
|
const COLOR = STYLES.groups[0];
|
|
11
11
|
const DESTINATIONS = CITIES.map(([latitude, longitude]) => ({ latitude, longitude }));
|
|
12
12
|
/**
|
|
13
|
-
* The hero's globe: arcs from Almancil to the world, drawn in the
|
|
13
|
+
* The hero's globe: arcs from Almancil to the world, drawn in the colors of the style in use (default export, so
|
|
14
14
|
* the hero can load it lazily).
|
|
15
15
|
*/
|
|
16
16
|
export default function Globe() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/hero/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/hero/index.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oDAAoD,CAAC;AAQzF,wGAAwG;AACxG,wBAAgB,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,cAAc,+BA8D9C"}
|
|
@@ -9,6 +9,9 @@ import { GlobePlaceholder } from "@sharadox/sharadox-web-library/component/globe
|
|
|
9
9
|
import { HeroGuide } from "@sharadox/sharadox-web-library/component/hero/guide";
|
|
10
10
|
import { HERO } from "@sharadox/sharadox-web-library/content/hero";
|
|
11
11
|
import { translate } from "@sharadox/internationalization-web-library/translate";
|
|
12
|
+
import { ACTION } from "@sharadox/sharadox-web-library/content/action";
|
|
13
|
+
import { SLOGAN_LINES } from "@sharadox/sharadox-web-library/content/slogan";
|
|
14
|
+
import { SECTION } from "@sharadox/sharadox-web-library/content/section";
|
|
12
15
|
import styles from "./index.module.css";
|
|
13
16
|
const Globe = dynamic(() => import("@sharadox/sharadox-web-library/component/globe"), {
|
|
14
17
|
ssr: false,
|
|
@@ -17,7 +20,7 @@ const Globe = dynamic(() => import("@sharadox/sharadox-web-library/component/glo
|
|
|
17
20
|
const EASE = [0.22, 1, 0.36, 1];
|
|
18
21
|
/** First screen, inside the grid frame: the slogan rising line by line beside the interactive globe. */
|
|
19
22
|
export function Hero({ locale }) {
|
|
20
|
-
const lines =
|
|
21
|
-
return (_jsxs("section", { id:
|
|
23
|
+
const lines = SLOGAN_LINES[locale];
|
|
24
|
+
return (_jsxs("section", { id: SECTION.home.id, className: styles.hero, children: [_jsx(HeroGuide, {}), _jsx(Cross, { corner: "bottom-left" }), _jsx(Cross, { corner: "bottom-right" }), _jsxs("div", { className: styles.copy, children: [_jsx(motion.div, { initial: { opacity: 0 }, animate: { opacity: 1 }, transition: { duration: 1, delay: 0.1 }, children: _jsxs(Eyebrow, { className: styles.eyebrow, children: [_jsx("span", { className: styles.live, "aria-hidden": true }), " ", translate(HERO.eyebrow, locale)] }) }), _jsx("h1", { className: styles.title, children: lines.map((line, index) => (_jsx("span", { className: styles.line, children: _jsx(motion.span, { className: index === lines.length - 1 ? `${styles.lineInner} ${styles.dim}` : styles.lineInner, initial: { y: "110%" }, animate: { y: "0%" }, transition: { duration: 1.1, delay: 0.2 + index * 0.12, ease: EASE }, children: line }) }, index))) }), _jsx(motion.p, { className: styles.subtitle, initial: { opacity: 0, y: 14 }, animate: { opacity: 1, y: 0 }, transition: { duration: 0.9, delay: 0.75, ease: EASE }, children: translate(HERO.subtitle, locale) }), _jsxs(motion.div, { className: styles.actions, initial: { opacity: 0, y: 14 }, animate: { opacity: 1, y: 0 }, transition: { duration: 0.9, delay: 0.9, ease: EASE }, children: [_jsx(Button, { href: `#${SECTION.contact.id}`, arrow: true, children: translate(ACTION.startProject, locale) }), _jsx(Button, { href: `#${SECTION.services.id}`, variant: "ghost", children: translate(HERO.secondary, locale) })] })] }), _jsxs(motion.div, { className: styles.globe, initial: { opacity: 0, scale: 0.92 }, animate: { opacity: 1, scale: 1 }, transition: { duration: 1.8, delay: 0.3, ease: EASE }, children: [_jsx(Globe, {}), _jsx("span", { className: `${styles.hint} monospace`, "aria-hidden": true, children: translate(HERO.drag, locale) })] })] }));
|
|
22
25
|
}
|
|
23
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -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,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,iDAAiD,CAAC;AACzE,OAAO,EAAE,KAAK,EAAE,MAAM,gDAAgD,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,kDAAkD,CAAC;AAC3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,4DAA4D,CAAC;AAC9F,OAAO,EAAE,SAAS,EAAE,MAAM,qDAAqD,CAAC;AAChF,OAAO,EAAE,IAAI,EAAE,MAAM,6CAA6C,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,gDAAgD,CAAC,EAAE;IACpF,GAAG,EAAE,KAAK;IACV,OAAO,EAAE,GAAG,EAAE,CAAC,KAAC,gBAAgB,KAAG;CACpC,CAAC,CAAC;AACH,MAAM,IAAI,GAAG,CAAC,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,CAAU,CAAC;AAEzC,wGAAwG;AACxG,MAAM,UAAU,IAAI,CAAC,EAAE,MAAM,EAAkB;IAC7C,MAAM,KAAK,GAAG,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/hero/index.tsx"],"names":[],"m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CACxC,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,GACxB,IACI,IACL,CACX,CAAC;AACJ,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { translate } from "@sharadox/internationalization-web-library/translate";
|
|
3
3
|
import { LocaleLink } from "@sharadox/internationalization-web-library/locale-link";
|
|
4
|
-
import {
|
|
4
|
+
import { LANGUAGE } from "@sharadox/sharadox-web-library/content/language";
|
|
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
8
|
export function LanguageSwitch({ locale, path = "" }) {
|
|
9
|
-
return (_jsx("div", { className: styles.switch, role: "group", "aria-label": translate(
|
|
9
|
+
return (_jsx("div", { className: styles.switch, role: "group", "aria-label": translate(LANGUAGE.label, 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,
|
|
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,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAC3E,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,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,YACtF,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"}
|
|
@@ -2,7 +2,7 @@ import type { Locale } from "@sharadox/sharadox-web-library/content/locale/type"
|
|
|
2
2
|
export interface LanguageSwitchProperties {
|
|
3
3
|
locale: Locale;
|
|
4
4
|
/**
|
|
5
|
-
* The page's path after the locale, for example "/
|
|
5
|
+
* The page's path after the locale, for example "/license"; the home page by default. Section links then point to
|
|
6
6
|
* the home page, and the language links keep the visitor on this page.
|
|
7
7
|
*/
|
|
8
8
|
path?: string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { LicenseProperties } from "@sharadox/sharadox-web-library/component/license/type";
|
|
2
|
+
/**
|
|
3
|
+
* The license page's body, in the grid frame: eyebrow, then the license rendered from its Markdown. The license'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
|
+
* <License locale="pt" markdown={await readFile("LICENCA.md", "utf8")} />
|
|
8
|
+
*/
|
|
9
|
+
export declare function License({ locale, markdown }: LicenseProperties): import("react").JSX.Element;
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/license/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"}
|
|
@@ -3,16 +3,16 @@ import { translate } from "@sharadox/internationalization-web-library/translate"
|
|
|
3
3
|
import { marked } from "marked";
|
|
4
4
|
import { Eyebrow } from "@sharadox/sharadox-web-library/component/eyebrow";
|
|
5
5
|
import { Section } from "@sharadox/sharadox-web-library/component/section";
|
|
6
|
-
import {
|
|
6
|
+
import { LICENSE } from "@sharadox/sharadox-web-library/content/license";
|
|
7
7
|
import styles from "./index.module.css";
|
|
8
8
|
/**
|
|
9
|
-
* The
|
|
9
|
+
* The license page's body, in the grid frame: eyebrow, then the license rendered from its Markdown. The license's own
|
|
10
10
|
* first heading is the page's `<h1>`. The text is the site's own file, never visitor input.
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
|
-
* <
|
|
13
|
+
* <License locale="pt" markdown={await readFile("LICENCA.md", "utf8")} />
|
|
14
14
|
*/
|
|
15
|
-
export function
|
|
16
|
-
return (_jsxs(Section, { className: styles.
|
|
15
|
+
export function License({ locale, markdown }) {
|
|
16
|
+
return (_jsxs(Section, { className: styles.license, children: [_jsx(Eyebrow, { children: translate(LICENSE.eyebrow, locale) }), _jsx("div", { className: styles.text, dangerouslySetInnerHTML: { __html: marked.parse(markdown, { async: false }) } })] }));
|
|
17
17
|
}
|
|
18
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/license/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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
.license{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}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Locale } from "@sharadox/sharadox-web-library/content/locale/type";
|
|
2
|
-
export interface
|
|
2
|
+
export interface LicenseProperties {
|
|
3
3
|
locale: Locale;
|
|
4
|
-
/** The
|
|
4
|
+
/** The license text in Markdown: the Portuguese original for "pt", the English translation for "en". */
|
|
5
5
|
markdown: string;
|
|
6
6
|
}
|
|
7
7
|
//# sourceMappingURL=type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../source/component/
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../source/component/license/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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../source/component/
|
|
1
|
+
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../source/component/license/type.ts"],"names":[],"mappings":""}
|
|
@@ -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":"AAYA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0DAA0D,CAAC;AAErG,6FAA6F;AAC7F,wBAAgB,UAAU,CAAC,EAAE,MAAM,EAAE,IAAS,EAAE,EAAE,oBAAoB,+BA8BrE"}
|
|
@@ -8,8 +8,9 @@ import { StyleSwitch } from "@sharadox/sharadox-web-library/component/style-swit
|
|
|
8
8
|
import { Wordmark } from "@sharadox/sharadox-web-library/component/wordmark";
|
|
9
9
|
import { NAVIGATION } from "@sharadox/sharadox-web-library/content/navigation";
|
|
10
10
|
import { translate } from "@sharadox/internationalization-web-library/translate";
|
|
11
|
+
import { SECTION } from "@sharadox/sharadox-web-library/content/section";
|
|
12
|
+
import { ACTION } from "@sharadox/sharadox-web-library/content/action";
|
|
11
13
|
import styles from "./index.module.css";
|
|
12
|
-
const LINKS = ["services", "capabilities", "process", "contact"];
|
|
13
14
|
/** Fixed top bar that frosts once the page scrolls, with the style and language switches. */
|
|
14
15
|
export function Navigation({ locale, path = "" }) {
|
|
15
16
|
const home = path ? `/${locale}` : "";
|
|
@@ -20,6 +21,6 @@ export function Navigation({ locale, path = "" }) {
|
|
|
20
21
|
addEventListener("scroll", update, { passive: true });
|
|
21
22
|
return () => removeEventListener("scroll", update);
|
|
22
23
|
}, []);
|
|
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:
|
|
24
|
+
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: NAVIGATION.links.map((section) => (_jsx("a", { href: `${home}#${section.id}`, children: translate(section, locale) }, section.id))) }), _jsxs("div", { className: styles.end, children: [_jsx(StyleSwitch, { locale: locale, className: styles.style }), _jsx(LanguageSwitch, { locale: locale, path: path }), _jsx(Button, { href: `${home}#${SECTION.contact.id}`, size: "small", className: styles.callToAction, children: translate(ACTION.startProject, locale) })] })] }) }));
|
|
24
25
|
}
|
|
25
26
|
//# sourceMappingURL=index.js.map
|