@sharadox/sharadox-web-library 0.8.0 → 0.9.1

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 CHANGED
@@ -30,6 +30,7 @@ Everything generic comes from the open-source Sharadox libraries, configured her
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
32
  - `Licence`: the licence page's body, rendered from the licence's Markdown
33
+ - `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)
33
34
  - **`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").
34
35
  - **`utility/`:** `separate()` (the Sharadox separator) and the share card's horizon dots.
35
36
  - **`style/token`:** Sass helpers (`tint()`, `shade()`, `dashed()`, `on-scroll()`, `below()`) used by every component's styles.
@@ -0,0 +1,10 @@
1
+ import type { NotFoundProperties } from "@sharadox/sharadox-web-library/component/not-found/type";
2
+ /**
3
+ * The 404 page's first screen, in the grid frame: a giant 404 whose zero is the live, draggable globe, the page
4
+ * "off the map", the request that failed, and the way back. Put `ServiceIndex` under it for the five services.
5
+ *
6
+ * @example
7
+ * <NotFound locale="en" path="/en/old-page" />
8
+ */
9
+ export declare function NotFound({ locale, path }: NotFoundProperties): import("react").JSX.Element;
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/not-found/index.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yDAAyD,CAAC;AAclG;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,kBAAkB,+BA2D5D"}
@@ -0,0 +1,34 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { motion } from "motion/react";
4
+ import dynamic from "next/dynamic";
5
+ import { translate } from "@sharadox/internationalization-web-library/translate";
6
+ import { Button } from "@sharadox/sharadox-web-library/component/button";
7
+ import { Eyebrow } from "@sharadox/sharadox-web-library/component/eyebrow";
8
+ import { GlobePlaceholder } from "@sharadox/sharadox-web-library/component/globe/placeholder";
9
+ import { Section } from "@sharadox/sharadox-web-library/component/section";
10
+ import { HERO } from "@sharadox/sharadox-web-library/content/hero";
11
+ import { NOT_FOUND } from "@sharadox/sharadox-web-library/content/not-found";
12
+ import { separate } from "@sharadox/sharadox-web-library/utility/separate";
13
+ import styles from "./index.module.css";
14
+ const Globe = dynamic(() => import("@sharadox/sharadox-web-library/component/globe"), {
15
+ ssr: false,
16
+ loading: () => _jsx(GlobePlaceholder, {}),
17
+ });
18
+ const EASE = [0.22, 1, 0.36, 1];
19
+ const rise = (delay) => ({
20
+ initial: { opacity: 0, y: 18 },
21
+ animate: { opacity: 1, y: 0 },
22
+ transition: { duration: 0.9, delay, ease: EASE },
23
+ });
24
+ /**
25
+ * The 404 page's first screen, in the grid frame: a giant 404 whose zero is the live, draggable globe, the page
26
+ * "off the map", the request that failed, and the way back. Put `ServiceIndex` under it for the five services.
27
+ *
28
+ * @example
29
+ * <NotFound locale="en" path="/en/old-page" />
30
+ */
31
+ export function NotFound({ locale, path }) {
32
+ return (_jsxs(Section, { className: styles.notFound, padded: false, children: [_jsx("div", { className: styles.glow, "aria-hidden": true }), _jsx(motion.div, { ...rise(0.05), children: _jsxs(Eyebrow, { className: styles.eyebrow, children: [_jsx("span", { className: styles.live, "aria-hidden": true }), " ", separate(translate(NOT_FOUND.error, locale), "404")] }) }), _jsxs("div", { className: styles.code, "aria-hidden": true, children: [_jsx(motion.span, { className: styles.digit, ...rise(0.15), children: "4" }), _jsx(motion.span, { className: styles.world, initial: { opacity: 0, scale: 0.6, rotate: -20 }, animate: { opacity: 1, scale: 1, rotate: 0 }, transition: { duration: 1.6, delay: 0.25, ease: EASE }, children: _jsx(Globe, {}) }), _jsx(motion.span, { className: styles.digit, ...rise(0.35), children: "4" })] }), _jsx("h1", { className: styles.title, children: _jsx("span", { className: styles.line, children: _jsx(motion.span, { className: styles.lineInner, initial: { y: "110%" }, animate: { y: "0%" }, transition: { duration: 1.1, delay: 0.5, ease: EASE }, children: translate(NOT_FOUND.heading, locale) }) }) }), _jsx(motion.p, { className: styles.text, ...rise(0.7), children: translate(NOT_FOUND.text, locale) }), _jsxs(motion.p, { className: `${styles.request} monospace`, ...rise(0.8), children: [_jsx("span", { className: styles.method, children: "GET" }), _jsx("span", { className: styles.path, children: path }), _jsx("span", { className: styles.status, children: "\u2192 404" }), _jsx("span", { className: styles.caret, "aria-hidden": true })] }), _jsxs(motion.div, { className: styles.actions, ...rise(0.9), children: [_jsx(Button, { href: `/${locale}`, arrow: true, children: translate(NOT_FOUND.home, locale) }), _jsx(Button, { href: `/${locale}#contact`, variant: "ghost", children: translate(HERO.primary, locale) })] }), _jsxs(motion.p, { className: `${styles.explore} monospace`, ...rise(1), children: [translate(NOT_FOUND.explore, locale), " \u2193"] })] }));
33
+ }
34
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/not-found/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,EAAE,MAAM,EAAE,MAAM,iDAAiD,CAAC;AACzE,OAAO,EAAE,OAAO,EAAE,MAAM,kDAAkD,CAAC;AAC3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,4DAA4D,CAAC;AAC9F,OAAO,EAAE,OAAO,EAAE,MAAM,kDAAkD,CAAC;AAC3E,OAAO,EAAE,IAAI,EAAE,MAAM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,CAAC,IAAC,SAAS,EAAE,GAAG,MAAM,CAAC,OAAO,YAAY,KAAM,IAAI,CAAC,GAAG,CAAC,aAC/D,eAAM,SAAS,EAAE,MAAM,CAAC,MAAM,oBAAY,EAC1C,eAAM,SAAS,EAAE,MAAM,CAAC,IAAI,YAAG,IAAI,GAAQ,EAC3C,eAAM,SAAS,EAAE,MAAM,CAAC,MAAM,2BAAc,EAC5C,eAAM,SAAS,EAAE,MAAM,CAAC,KAAK,wBAAgB,IACpC,EACX,MAAC,MAAM,CAAC,GAAG,IAAC,SAAS,EAAE,MAAM,CAAC,OAAO,KAAM,IAAI,CAAC,GAAG,CAAC,aAClD,KAAC,MAAM,IAAC,IAAI,EAAE,IAAI,MAAM,EAAE,EAAE,KAAK,kBAC9B,SAAS,CAAC,SAAS,CAAC,IAAI,EAAE,MAAM,CAAC,GAC3B,EACT,KAAC,MAAM,IAAC,IAAI,EAAE,IAAI,MAAM,UAAU,EAAE,OAAO,EAAC,OAAO,YAChD,SAAS,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,GACzB,IACE,EACb,MAAC,MAAM,CAAC,CAAC,IAAC,SAAS,EAAE,GAAG,MAAM,CAAC,OAAO,YAAY,KAAM,IAAI,CAAC,CAAC,CAAC,aAC5D,SAAS,CAAC,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC,eAC5B,IACH,CACX,CAAC;AACJ,CAAC"}
@@ -0,0 +1 @@
1
+ .notFound{display:flex;flex-direction:column;align-items:center;min-height:min(100svh,1000px);padding:clamp(110px,14vh,150px) var(--padding) clamp(36px,6vh,64px)}@media(max-width: 700px){.notFound{min-height:0}}.notFound{text-align:center;overflow:hidden}.glow{position:absolute;left:50%;top:38%;width:min(70vw,760px);aspect-ratio:1;transform:translate(-50%, -50%);background:radial-gradient(closest-side, color-mix(in srgb, var(--foreground) 10%, transparent), transparent);pointer-events:none}.eyebrow{display:inline-flex;align-items:center;gap:10px}.live{width:7px;height:7px;border-radius:50%;background:var(--foreground);box-shadow:0 0 0 0 color-mix(in srgb, var(--foreground) 60%, transparent);animation:live 2.4s infinite}@keyframes live{70%{box-shadow:0 0 0 9px color-mix(in srgb, var(--foreground) 0%, transparent)}100%{box-shadow:0 0 0 0 color-mix(in srgb, var(--foreground) 0%, transparent)}}.code{position:relative;display:flex;align-items:center;justify-content:center;margin:clamp(18px,4vh,36px) 0 clamp(8px,2vh,18px);font-size:clamp(7.5rem,27vw,21rem);font-weight:600;line-height:.8;user-select:none}.digit{display:inline-block;padding:.04em .02em;background:linear-gradient(180deg, var(--foreground) 15%, transparent 105%);-webkit-background-clip:text;background-clip:text;color:rgba(0,0,0,0)}.world{position:relative;display:inline-block;width:.86em;height:.86em;margin:0 .04em;touch-action:pan-y}.title{margin:0;font-size:clamp(1.9rem,4.4vw,3.6rem);letter-spacing:-0.045em;line-height:1}.line{display:block;overflow:hidden;padding-bottom:.08em}.lineInner{display:inline-block}.text{max-width:34rem;margin:18px 0 0;color:var(--foreground-2);font-size:clamp(1rem,1.3vw,1.15rem);line-height:1.55}.request{display:inline-flex;align-items:center;gap:12px;max-width:100%;margin:26px 0 0;padding:10px 16px;border:1px solid var(--line);border-radius:999px;background:color-mix(in srgb, var(--background) 60%, transparent);backdrop-filter:blur(8px);color:var(--foreground-3);font-size:13px}.method{color:var(--foreground)}.path{min-width:0;overflow:hidden;color:var(--foreground-2);text-overflow:ellipsis;white-space:nowrap}.status{flex:none}.caret{flex:none;width:7px;height:14px;background:var(--foreground);animation:blink 1.1s steps(1) infinite}@keyframes blink{50%{opacity:0}}.actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:30px}.explore{margin:auto 0 0;padding-top:48px;color:var(--foreground-3);font-size:12px;letter-spacing:.08em;text-transform:uppercase}@media(prefers-reduced-motion: reduce){.live,.caret{animation:none}}
@@ -0,0 +1,158 @@
1
+ @use "style/token" as *;
2
+
3
+ .notFound {
4
+ display: flex;
5
+ flex-direction: column;
6
+ align-items: center;
7
+ min-height: min(100svh, 1000px);
8
+ padding: clamp(110px, 14vh, 150px) var(--padding) clamp(36px, 6vh, 64px);
9
+ /* Phones: content height, so the services follow the buttons without a gap. */
10
+ @include below(700px) {
11
+ min-height: 0;
12
+ }
13
+ text-align: center;
14
+ overflow: hidden;
15
+ }
16
+ /* A soft light behind the globe, so the zero glows like a planet at night. */
17
+ .glow {
18
+ position: absolute;
19
+ left: 50%;
20
+ top: 38%;
21
+ width: min(70vw, 760px);
22
+ aspect-ratio: 1;
23
+ transform: translate(-50%, -50%);
24
+ background: radial-gradient(closest-side, tint(10%), transparent);
25
+ pointer-events: none;
26
+ }
27
+ .eyebrow {
28
+ display: inline-flex;
29
+ align-items: center;
30
+ gap: 10px;
31
+ }
32
+ .live {
33
+ width: 7px;
34
+ height: 7px;
35
+ border-radius: 50%;
36
+ background: var(--foreground);
37
+ box-shadow: 0 0 0 0 tint(60%);
38
+ animation: live 2.4s infinite;
39
+ }
40
+ @keyframes live {
41
+ 70% {
42
+ box-shadow: 0 0 0 9px tint(0%);
43
+ }
44
+ 100% {
45
+ box-shadow: 0 0 0 0 tint(0%);
46
+ }
47
+ }
48
+ .code {
49
+ position: relative;
50
+ display: flex;
51
+ align-items: center;
52
+ justify-content: center;
53
+ margin: clamp(18px, 4vh, 36px) 0 clamp(8px, 2vh, 18px);
54
+ font-size: clamp(7.5rem, 27vw, 21rem);
55
+ font-weight: 600;
56
+ line-height: 0.8;
57
+ user-select: none;
58
+ }
59
+ .digit {
60
+ display: inline-block;
61
+ padding: 0.04em 0.02em;
62
+ background: linear-gradient(180deg, var(--foreground) 15%, transparent 105%);
63
+ -webkit-background-clip: text;
64
+ background-clip: text;
65
+ color: transparent;
66
+ }
67
+ /* The zero: the live globe, as tall as the digits and draggable. */
68
+ .world {
69
+ position: relative;
70
+ display: inline-block;
71
+ width: 0.86em;
72
+ height: 0.86em;
73
+ /* Equal space on both sides, so the globe sits centred between the fours. */
74
+ margin: 0 0.04em;
75
+ touch-action: pan-y;
76
+ }
77
+ .title {
78
+ margin: 0;
79
+ font-size: clamp(1.9rem, 4.4vw, 3.6rem);
80
+ letter-spacing: -0.045em;
81
+ line-height: 1;
82
+ }
83
+ .line {
84
+ display: block;
85
+ overflow: hidden;
86
+ padding-bottom: 0.08em;
87
+ }
88
+ .lineInner {
89
+ display: inline-block;
90
+ }
91
+ .text {
92
+ max-width: 34rem;
93
+ margin: 18px 0 0;
94
+ color: var(--foreground-2);
95
+ font-size: clamp(1rem, 1.3vw, 1.15rem);
96
+ line-height: 1.55;
97
+ }
98
+ /* The request that failed, as a terminal would print it. */
99
+ .request {
100
+ display: inline-flex;
101
+ align-items: center;
102
+ gap: 12px;
103
+ max-width: 100%;
104
+ margin: 26px 0 0;
105
+ padding: 10px 16px;
106
+ border: 1px solid var(--line);
107
+ border-radius: 999px;
108
+ background: shade(60%);
109
+ backdrop-filter: blur(8px);
110
+ color: var(--foreground-3);
111
+ font-size: 13px;
112
+ }
113
+ .method {
114
+ color: var(--foreground);
115
+ }
116
+ .path {
117
+ min-width: 0;
118
+ overflow: hidden;
119
+ color: var(--foreground-2);
120
+ text-overflow: ellipsis;
121
+ white-space: nowrap;
122
+ }
123
+ .status {
124
+ flex: none;
125
+ }
126
+ .caret {
127
+ flex: none;
128
+ width: 7px;
129
+ height: 14px;
130
+ background: var(--foreground);
131
+ animation: blink 1.1s steps(1) infinite;
132
+ }
133
+ @keyframes blink {
134
+ 50% {
135
+ opacity: 0;
136
+ }
137
+ }
138
+ .actions {
139
+ display: flex;
140
+ flex-wrap: wrap;
141
+ justify-content: center;
142
+ gap: 12px;
143
+ margin-top: 30px;
144
+ }
145
+ .explore {
146
+ margin: auto 0 0;
147
+ padding-top: 48px;
148
+ color: var(--foreground-3);
149
+ font-size: 12px;
150
+ letter-spacing: 0.08em;
151
+ text-transform: uppercase;
152
+ }
153
+ @media (prefers-reduced-motion: reduce) {
154
+ .live,
155
+ .caret {
156
+ animation: none;
157
+ }
158
+ }
@@ -0,0 +1,7 @@
1
+ import type { Locale } from "@sharadox/sharadox-web-library/content/locale/type";
2
+ export interface NotFoundProperties {
3
+ locale: Locale;
4
+ /** The address that wasn't found, shown as the request that failed, for example "/en/old-page". */
5
+ path: string;
6
+ }
7
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../source/component/not-found/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oDAAoD,CAAC;AAEjF,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,mGAAmG;IACnG,IAAI,EAAE,MAAM,CAAC;CACd"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.js","sourceRoot":"","sources":["../../../source/component/not-found/type.ts"],"names":[],"mappings":""}
@@ -1,4 +1,4 @@
1
1
  import type { ServiceIndexProperties } from "@sharadox/sharadox-web-library/component/service-index/type";
2
2
  /** The five disciplines in a row of grid cells under the hero, each a shortcut to its section. */
3
- export declare function ServiceIndex({ locale }: ServiceIndexProperties): import("react").JSX.Element;
3
+ export declare function ServiceIndex({ locale, base }: ServiceIndexProperties): import("react").JSX.Element;
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/service-index/index.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6DAA6D,CAAC;AAE1G,kGAAkG;AAClG,wBAAgB,YAAY,CAAC,EAAE,MAAM,EAAE,EAAE,sBAAsB,+BAsB9D"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/service-index/index.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6DAA6D,CAAC;AAE1G,kGAAkG;AAClG,wBAAgB,YAAY,CAAC,EAAE,MAAM,EAAE,IAAS,EAAE,EAAE,sBAAsB,+BAsBzE"}
@@ -5,7 +5,7 @@ import { SERVICES } from "@sharadox/sharadox-web-library/content/services";
5
5
  import { translate } from "@sharadox/internationalization-web-library/translate";
6
6
  import styles from "./index.module.css";
7
7
  /** The five disciplines in a row of grid cells under the hero, each a shortcut to its section. */
8
- export function ServiceIndex({ locale }) {
9
- return (_jsxs("nav", { className: styles.index, "aria-label": translate(SERVICES.eyebrow, locale), children: [SERVICES.items.map((service, index) => (_jsxs("a", { href: `#${service.key}`, className: styles.cell, style: { animationDelay: `${0.9 + index * 0.08}s` }, children: [_jsx("span", { className: `${styles.number} monospace`, children: service.number }), _jsx("span", { className: styles.title, children: translate(service.title, locale) }), _jsx("span", { className: `${styles.kinds} monospace`, children: separate(...service.kinds[locale]) }), _jsx("span", { className: styles.arrow, "aria-hidden": true, children: "\u2198" })] }, service.key))), _jsx(Cross, { corner: "bottom-left" }), _jsx(Cross, { corner: "bottom-right" })] }));
8
+ export function ServiceIndex({ locale, base = "" }) {
9
+ return (_jsxs("nav", { className: styles.index, "aria-label": translate(SERVICES.eyebrow, locale), children: [SERVICES.items.map((service, index) => (_jsxs("a", { href: `${base}#${service.key}`, className: styles.cell, style: { animationDelay: `${0.9 + index * 0.08}s` }, children: [_jsx("span", { className: `${styles.number} monospace`, children: service.number }), _jsx("span", { className: styles.title, children: translate(service.title, locale) }), _jsx("span", { className: `${styles.kinds} monospace`, children: separate(...service.kinds[locale]) }), _jsx("span", { className: styles.arrow, "aria-hidden": true, children: "\u2198" })] }, service.key))), _jsx(Cross, { corner: "bottom-left" }), _jsx(Cross, { corner: "bottom-right" })] }));
10
10
  }
11
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/service-index/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAC3E,OAAO,EAAE,KAAK,EAAE,MAAM,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 -1,5 +1,7 @@
1
1
  import type { Locale } from "@sharadox/sharadox-web-library/content/locale/type";
2
2
  export interface ServiceIndexProperties {
3
3
  locale: Locale;
4
+ /** Where the sections are: `""` (this page) by default, `/<locale>` from other pages. */
5
+ base?: string;
4
6
  }
5
7
  //# sourceMappingURL=type.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../source/component/service-index/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oDAAoD,CAAC;AAEjF,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,MAAM,CAAC;CAChB"}
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../source/component/service-index/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oDAAoD,CAAC;AAEjF,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,MAAM,CAAC;IACf,yFAAyF;IACzF,IAAI,CAAC,EAAE,MAAM,CAAC;CACf"}
@@ -0,0 +1,29 @@
1
+ /** The 404 page: a page that is off the map, with the globe as the zero. */
2
+ export declare const NOT_FOUND: {
3
+ /** Browser tab and search engine title (404 pages are never indexed). */
4
+ readonly title: {
5
+ readonly en: "Page Not Found";
6
+ readonly pt: "Página Não Encontrada";
7
+ };
8
+ readonly error: {
9
+ readonly en: "Error";
10
+ readonly pt: "Erro";
11
+ };
12
+ readonly heading: {
13
+ readonly en: "This page is off the map.";
14
+ readonly pt: "Esta página está fora do mapa.";
15
+ };
16
+ readonly text: {
17
+ readonly en: "The address may have changed, or it never existed. Everything we do is still one step away.";
18
+ readonly pt: "O endereço pode ter mudado, ou nunca ter existido. Tudo o que fazemos continua a um passo.";
19
+ };
20
+ readonly home: {
21
+ readonly en: "Back to Home";
22
+ readonly pt: "Voltar ao Início";
23
+ };
24
+ readonly explore: {
25
+ readonly en: "Or explore";
26
+ readonly pt: "Ou explore";
27
+ };
28
+ };
29
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/content/not-found/index.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,eAAO,MAAM,SAAS;IACpB,yEAAyE;;;;;;;;;;;;;;;;;;;;;;;;;CAUjE,CAAC"}
@@ -0,0 +1,14 @@
1
+ /** The 404 page: a page that is off the map, with the globe as the zero. */
2
+ export const NOT_FOUND = {
3
+ /** Browser tab and search engine title (404 pages are never indexed). */
4
+ title: { en: "Page Not Found", pt: "Página Não Encontrada" },
5
+ error: { en: "Error", pt: "Erro" },
6
+ heading: { en: "This page is off the map.", pt: "Esta página está fora do mapa." },
7
+ text: {
8
+ en: "The address may have changed, or it never existed. Everything we do is still one step away.",
9
+ pt: "O endereço pode ter mudado, ou nunca ter existido. Tudo o que fazemos continua a um passo.",
10
+ },
11
+ home: { en: "Back to Home", pt: "Voltar ao Início" },
12
+ explore: { en: "Or explore", pt: "Ou explore" },
13
+ };
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/content/not-found/index.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,yEAAyE;IACzE,KAAK,EAAE,EAAE,EAAE,EAAE,gBAAgB,EAAE,EAAE,EAAE,uBAAuB,EAAE;IAC5D,KAAK,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE;IAClC,OAAO,EAAE,EAAE,EAAE,EAAE,2BAA2B,EAAE,EAAE,EAAE,gCAAgC,EAAE;IAClF,IAAI,EAAE;QACJ,EAAE,EAAE,6FAA6F;QACjG,EAAE,EAAE,4FAA4F;KACjG;IACD,IAAI,EAAE,EAAE,EAAE,EAAE,cAAc,EAAE,EAAE,EAAE,kBAAkB,EAAE;IACpD,OAAO,EAAE,EAAE,EAAE,EAAE,YAAY,EAAE,EAAE,EAAE,YAAY,EAAE;CACvC,CAAC"}
package/llms.txt CHANGED
@@ -10,3 +10,4 @@
10
10
  - Licence: Sharadox Verifiable Source Licence 0.1.0 (read and verify only)
11
11
  - component/licence Licence({ locale, markdown }) renders the licence page body (marked); content/licence LICENCE { path "/licence", title, eyebrow, description }
12
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
13
+ - component/not-found NotFound({ locale, path }) the 404 screen (giant 404 with the live globe as the zero, failed request line, way home); content/not-found NOT_FOUND; ServiceIndex takes base? ("/<locale>" off the home page)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sharadox/sharadox-web-library",
3
- "version": "0.8.0",
3
+ "version": "0.9.1",
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",
@@ -62,7 +62,7 @@
62
62
  "@sharadox/metadata-web-library": "^0.1.0",
63
63
  "@sharadox/pointer-web-library": "^0.1.0",
64
64
  "@sharadox/scroll-web-library": "^0.1.0",
65
- "@sharadox/style-web-library": "^0.1.0",
65
+ "@sharadox/style-web-library": "^0.2.0",
66
66
  "@sharadox/web-library": "^0.5.0",
67
67
  "marked": "^17.0.6",
68
68
  "motion": "^12.43.0"