@sharadox/sharadox-web-library 0.17.0 → 0.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -10,6 +10,7 @@ Everything generic comes from the open-source Sharadox libraries, configured her
10
10
  | Metadata, structured data, share images | `@sharadox/metadata-web-library` |
11
11
  | Styles (Black, White, System) | `@sharadox/style-web-library` |
12
12
  | Cookie panel | `@sharadox/consent-web-library` |
13
+ | Phone menu behavior | `@sharadox/menu-web-library` |
13
14
  | Complaints book, consumer dispute notice | `@sharadox/legal-web-library` |
14
15
  | Reveal, scroll-lit words, counters, marquee | `@sharadox/animation-web-library` |
15
16
  | Active section | `@sharadox/scroll-web-library` |
@@ -32,7 +33,7 @@ Everything generic comes from the open-source Sharadox libraries, configured her
32
33
  - `contact`, `services`, `site`, `globe`, and so on.
33
34
  - **One source for shared copy:** text used in more than one place lives in its own content module and is imported, never retyped.
34
35
  - **`component/`:** the page's branded parts:
35
- - grid frame, `Cross` marks, navigation and footer
36
+ - grid frame, `Cross` marks, navigation (below 1100px its links open in a menu under the bar, in the bar's frosted background, scrolling when it doesn't fit, as on a phone held sideways) and footer
36
37
  - hero and its guides, service index, statement, the five service cells and their live visuals
37
38
  - the 3D touchpoint stack, capabilities sheet, process, contact, section indicator, style switch
38
39
  - `Consent`, the Sharadox cookie panel (reopened by the footer's Cookie Preferences), and the footer's legal parts: Portugal's complaints book and the Algarve's consumer dispute notice (CIMAAL)
@@ -1,7 +1,8 @@
1
1
  import type { FooterProperties } from "@sharadox/sharadox-web-library/component/footer/type";
2
2
  /**
3
- * Columns of links in the grid (the studio's with the legal ones: license, privacy, cookie preferences and Portugal's
4
- * complaints book), the style and language switches, the big gradient wordmark, then the legal line and the consumer
3
+ * The footer, in the grid frame: the brand (slogan, email), the services, the studio's sections with Start a Project,
4
+ * and the language and style; the big gradient wordmark; a bar with the legal links (license, privacy, cookie
5
+ * preferences, Portugal's complaints book) and the way back up; then the fine print: copyright beside the consumer
5
6
  * dispute notice.
6
7
  */
7
8
  export declare function Footer({ locale, path }: FooterProperties): import("react").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/footer/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sDAAsD,CAAC;AAE7F;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,EAAE,MAAM,EAAE,IAAS,EAAE,EAAE,gBAAgB,+BAiE7D"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/footer/index.tsx"],"names":[],"mappings":"AAyBA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sDAAsD,CAAC;AAE7F;;;;;GAKG;AACH,wBAAgB,MAAM,CAAC,EAAE,MAAM,EAAE,IAAS,EAAE,EAAE,gBAAgB,+BA8E7D"}
@@ -11,6 +11,7 @@ import { CONSENT } from "@sharadox/sharadox-web-library/content/consent";
11
11
  import { ComplaintsBookLink } from "@sharadox/legal-web-library/complaints-book-link";
12
12
  import { DisputeNotice } from "@sharadox/legal-web-library/dispute-notice";
13
13
  import { DISPUTE_RESOLUTION_CENTERS } from "@sharadox/legal-web-library/dispute-resolution";
14
+ import { ACTION } from "@sharadox/sharadox-web-library/content/action";
14
15
  import { FOOTER } from "@sharadox/sharadox-web-library/content/footer";
15
16
  import { PRIVACY_PAGE } from "@sharadox/sharadox-web-library/content/privacy";
16
17
  import { LICENSE } from "@sharadox/sharadox-web-library/content/license";
@@ -24,12 +25,14 @@ import { FOUNDED, SITE } from "@sharadox/sharadox-web-library/content/site";
24
25
  import { LOCALES } from "@sharadox/sharadox-web-library/content/locale";
25
26
  import styles from "./index.module.css";
26
27
  /**
27
- * Columns of links in the grid (the studio's with the legal ones: license, privacy, cookie preferences and Portugal's
28
- * complaints book), the style and language switches, the big gradient wordmark, then the legal line and the consumer
28
+ * The footer, in the grid frame: the brand (slogan, email), the services, the studio's sections with Start a Project,
29
+ * and the language and style; the big gradient wordmark; a bar with the legal links (license, privacy, cookie
30
+ * preferences, Portugal's complaints book) and the way back up; then the fine print: copyright beside the consumer
29
31
  * dispute notice.
30
32
  */
31
33
  export function Footer({ locale, path = "" }) {
32
34
  const home = path ? `/${locale}` : "";
33
- 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("a", { href: `/${locale}${LICENSE.path}`, "aria-current": path === LICENSE.path ? "page" : undefined, children: translate(LICENSE.title, locale) }), _jsx("a", { href: `/${locale}${PRIVACY_PAGE.path}`, "aria-current": path === PRIVACY_PAGE.path ? "page" : undefined, children: translate(PRIVACY_PAGE.title, locale) }), _jsx(PreferencesLink, { label: translate(CONSENT.preferences, locale) }), _jsx(ComplaintsBookLink, { locale: locale }), _jsxs("a", { href: "#top", className: styles.top, children: [translate(FOOTER.top, locale), " ", _jsx(Icon, { name: "chevron-up", strokeWidth: 1.8 })] })] }), _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" }), _jsxs("div", { className: styles.legal, children: [_jsxs("p", { className: "monospace", children: ["\u00A9 ", _jsx(CopyrightYears, { since: FOUNDED }), " ", separate("Sharadox", translate(FOOTER.rights, locale))] }), _jsx("p", { className: styles.disputes, children: _jsx(DisputeNotice, { center: DISPUTE_RESOLUTION_CENTERS.algarve, locale: locale }) })] })] }));
35
+ const studio = [SECTION.touchpoints, SECTION.capabilities, SECTION.process, SECTION.contact];
36
+ 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) }), studio.map((section) => (_jsx("a", { href: `${home}#${section.id}`, children: translate(section, locale) }, section.id))), _jsxs("a", { href: `${home}#${SECTION.contact.id}`, className: styles.start, children: [translate(ACTION.startProject, locale), " ", _jsx(Icon, { name: "chevron-right", strokeWidth: 1.8 })] })] }), _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" }), _jsxs("div", { className: styles.bar, children: [_jsxs("nav", { "aria-label": translate(FOOTER.legal, locale), className: styles.legal, children: [_jsx("a", { href: `/${locale}${LICENSE.path}`, "aria-current": path === LICENSE.path ? "page" : undefined, children: translate(LICENSE.title, locale) }), _jsx("a", { href: `/${locale}${PRIVACY_PAGE.path}`, "aria-current": path === PRIVACY_PAGE.path ? "page" : undefined, children: translate(PRIVACY_PAGE.title, locale) }), _jsx(PreferencesLink, { label: translate(CONSENT.preferences, locale) }), _jsx(ComplaintsBookLink, { locale: locale })] }), _jsxs("a", { href: "#top", className: styles.top, children: [translate(FOOTER.top, locale), _jsx("span", { className: styles.circle, "aria-hidden": true, children: _jsx(Icon, { name: "chevron-up", strokeWidth: 1.8 }) })] })] }), _jsxs("div", { className: styles.fine, children: [_jsxs("p", { className: "monospace", children: ["\u00A9 ", _jsx(CopyrightYears, { since: FOUNDED }), " ", separate("Sharadox", translate(FOOTER.rights, locale))] }), _jsx("p", { className: styles.disputes, children: _jsx(DisputeNotice, { center: DISPUTE_RESOLUTION_CENTERS.algarve, locale: locale }) })] })] }));
34
37
  }
35
38
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/footer/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,iCAAiC,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAC3E,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,EAAE,KAAK,EAAE,MAAM,g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var(--maximum-width));margin:0 auto;border:1px solid var(--line);border-bottom:0}.columns{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;border-bottom:1px solid var(--line)}.columns>*{position:relative;display:grid;align-content:start;gap:10px;padding:36px var(--padding) 40px;font-size:14px;color:var(--foreground-2)}.columns>*:not(:last-child)::after{content:"";position:absolute;top:0;bottom:0;right:0;width:1px;background:linear-gradient(180deg, var(--line-2) 50%, transparent 0) 0 0/1px 8px repeat-y}.columns h2{margin-bottom:6px;font-size:11.5px;font-weight:400;letter-spacing:.05em;text-transform:uppercase;color:var(--foreground-3)}.columns a,.columns [data-preferences-link]{width:fit-content;transition:color .2s}.columns [data-preferences-link]{padding:0;border:0;background:none;font-size:inherit;color:inherit;text-align:left}.columns a:hover,.columns [data-preferences-link]:hover{color:var(--foreground)}@media(max-width: 900px){.columns{grid-template-columns:1fr 1fr}.columns>*:nth-child(2n)::after{display:none}.columns>*:nth-child(-n+2){border-bottom:1px dashed var(--line-2)}}@media(max-width: 520px){.columns{grid-template-columns:1fr}.columns>*::after{display:none}.columns>*:not(:last-child){border-bottom:1px dashed var(--line-2)}}.brand{gap:14px !important}.brand>a:first-child{color:var(--foreground)}.slogan{color:var(--foreground);font-size:1.05rem;font-weight:500;letter-spacing:-0.03em;max-width:24ch}.email{color:var(--foreground-2)}.languages{display:grid;gap:10px}.languages a[aria-current]{color:var(--foreground)}.style{width:fit-content}.settings h2:not(:first-child){margin-top:18px}.mark{padding:40px 0 10px;font-size:clamp(4rem,17vw,15rem);font-weight:600;letter-spacing:-0.075em;line-height:.8;text-align:center;background:linear-gradient(180deg, var(--foreground) 0%, transparent 85%);-webkit-background-clip:text;background-clip:text;color:rgba(0,0,0,0);user-select:none;overflow:hidden}.legal{display:grid;justify-items:center;gap:10px;padding:18px var(--padding) 28px;font-size:12px;color:var(--foreground-3);text-align:center}.disputes{max-width:76ch;font-size:11.5px;line-height:1.6;text-wrap:balance}.disputes a{color:var(--foreground-2);transition:color .2s}.disputes a:hover{color:var(--foreground)}.top{display:inline-flex;align-items:center;gap:6px}
1
+ .footer{position:relative;width:min(100% - 2*var(--gutter),var(--maximum-width));margin:0 auto;border:1px solid var(--line);border-bottom:0}.columns{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;border-bottom:1px solid var(--line)}.columns>*{position:relative;display:grid;align-content:start;gap:10px;padding:36px var(--padding) 40px;font-size:14px;color:var(--foreground-2)}.columns>*:not(:last-child)::after{content:"";position:absolute;top:0;bottom:0;right:0;width:1px;background:linear-gradient(180deg, var(--line-2) 50%, transparent 0) 0 0/1px 8px repeat-y}.columns h2{margin-bottom:6px;font-size:11.5px;font-weight:400;letter-spacing:.05em;text-transform:uppercase;color:var(--foreground-3)}.columns a{width:fit-content;transition:color .2s}.columns a:hover{color:var(--foreground)}@media(max-width: 900px){.columns{grid-template-columns:1fr 1fr}.columns>*:nth-child(2n)::after{display:none}.columns>*:nth-child(-n+2){border-bottom:1px dashed var(--line-2)}}@media(max-width: 520px){.columns{grid-template-columns:1fr}.columns>*::after{display:none}.columns>*:not(:last-child){border-bottom:1px dashed var(--line-2)}}.brand{gap:14px !important}.brand>a:first-child{color:var(--foreground)}.slogan{color:var(--foreground);font-size:1.05rem;font-weight:500;letter-spacing:-0.03em;max-width:24ch}.email{color:var(--foreground-2)}.languages{display:grid;gap:10px}.languages a[aria-current]{color:var(--foreground)}.style{width:fit-content}.settings h2:not(:first-child){margin-top:18px}.mark{padding:40px 0 10px;font-size:clamp(4rem,17vw,15rem);font-weight:600;letter-spacing:-0.075em;line-height:.8;text-align:center;background:linear-gradient(180deg, var(--foreground) 0%, transparent 85%);-webkit-background-clip:text;background-clip:text;color:rgba(0,0,0,0);user-select:none;overflow:hidden}.start{display:inline-flex;align-items:center;gap:6px;margin-top:8px;color:var(--foreground);font-weight:500}.start svg{transition:transform .4s cubic-bezier(0.22, 1, 0.36, 1)}.start:hover svg{transform:translateX(3px)}.bar{position:relative;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px 24px;padding:18px var(--padding);border-top:1px solid var(--line);font-size:13px;color:var(--foreground-2)}.bar::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:linear-gradient(90deg, var(--line-2) 50%, transparent 0) 0 0/8px 1px repeat-x}.legal{display:flex;flex-wrap:wrap;align-items:center;gap:8px 22px}.legal a,.legal [data-preferences-link]{position:relative;padding:0;border:0;background:none;font:inherit;color:inherit;text-align:left;justify-self:start;transition:color .2s}.legal>*+*::before{content:"";position:absolute;left:-13px;top:50%;width:3px;height:3px;margin-top:-1.5px;border-radius:50%;background:var(--foreground-3)}.legal a:hover,.legal [data-preferences-link]:hover,.legal a[aria-current]{color:var(--foreground)}@media(max-width: 640px){.legal{display:grid;grid-template-columns:1fr 1fr;width:100%;gap:12px 18px;text-align:left}.legal>*+*::before{display:none}}.top{display:inline-flex;align-items:center;gap:10px;color:var(--foreground-2);transition:color .2s}.top:hover{color:var(--foreground)}.top:hover .circle{border-color:var(--foreground);transform:translateY(-2px)}.circle{display:grid;place-items:center;width:30px;height:30px;border:1px solid var(--line);border-radius:50%;transition:border-color .3s,transform .4s cubic-bezier(0.22, 1, 0.36, 1)}.fine{display:grid;grid-template-columns:auto minmax(0, 52ch);justify-content:space-between;align-items:start;gap:14px 40px;padding:20px var(--padding) 30px;font-size:12px;line-height:1.6;color:var(--foreground-3)}@media(max-width: 760px){.fine{grid-template-columns:1fr}}.disputes{text-wrap:pretty}.disputes a{color:var(--foreground-2);transition:color .2s}.disputes a:hover{color:var(--foreground)}
@@ -37,22 +37,11 @@
37
37
  text-transform: uppercase;
38
38
  color: var(--foreground-3);
39
39
  }
40
- /* Only the "Cookie Preferences" button looks like a link; the style switch keeps its own look. */
41
- a,
42
- [data-preferences-link] {
40
+ a {
43
41
  width: fit-content;
44
42
  transition: color 0.2s;
45
43
  }
46
- [data-preferences-link] {
47
- padding: 0;
48
- border: 0;
49
- background: none;
50
- font-size: inherit;
51
- color: inherit;
52
- text-align: left;
53
- }
54
- a:hover,
55
- [data-preferences-link]:hover {
44
+ a:hover {
56
45
  color: var(--foreground);
57
46
  }
58
47
  @include below(900px) {
@@ -117,21 +106,129 @@
117
106
  user-select: none;
118
107
  overflow: hidden;
119
108
  }
109
+ .start {
110
+ display: inline-flex;
111
+ align-items: center;
112
+ gap: 6px;
113
+ margin-top: 8px;
114
+ color: var(--foreground);
115
+ font-weight: 500;
116
+ svg {
117
+ transition: transform 0.4s $ease;
118
+ }
119
+ &:hover svg {
120
+ transform: translateX(3px);
121
+ }
122
+ }
123
+ /* Legal links on the left, the way back up on the right, between dashed hairlines. */
124
+ .bar {
125
+ position: relative;
126
+ display: flex;
127
+ flex-wrap: wrap;
128
+ align-items: center;
129
+ justify-content: space-between;
130
+ gap: 14px 24px;
131
+ padding: 18px var(--padding);
132
+ border-top: 1px solid var(--line);
133
+ font-size: 13px;
134
+ color: var(--foreground-2);
135
+ &::after {
136
+ content: "";
137
+ position: absolute;
138
+ left: 0;
139
+ right: 0;
140
+ bottom: 0;
141
+ height: 1px;
142
+ @include dashed(horizontal);
143
+ }
144
+ }
145
+ /* The legal links, a small dot between each; on phones, two to a row without dots. */
120
146
  .legal {
121
- display: grid;
122
- justify-items: center;
147
+ display: flex;
148
+ flex-wrap: wrap;
149
+ align-items: center;
150
+ gap: 8px 22px;
151
+ a,
152
+ [data-preferences-link] {
153
+ position: relative;
154
+ padding: 0;
155
+ border: 0;
156
+ background: none;
157
+ font: inherit;
158
+ color: inherit;
159
+ text-align: left;
160
+ justify-self: start;
161
+ transition: color 0.2s;
162
+ }
163
+ > * + *::before {
164
+ content: "";
165
+ position: absolute;
166
+ left: -13px;
167
+ top: 50%;
168
+ width: 3px;
169
+ height: 3px;
170
+ margin-top: -1.5px;
171
+ border-radius: 50%;
172
+ background: var(--foreground-3);
173
+ }
174
+ a:hover,
175
+ [data-preferences-link]:hover,
176
+ a[aria-current] {
177
+ color: var(--foreground);
178
+ }
179
+ @include below(640px) {
180
+ display: grid;
181
+ grid-template-columns: 1fr 1fr;
182
+ width: 100%;
183
+ gap: 12px 18px;
184
+ text-align: left;
185
+ > * + *::before {
186
+ display: none;
187
+ }
188
+ }
189
+ }
190
+ .top {
191
+ display: inline-flex;
192
+ align-items: center;
123
193
  gap: 10px;
124
- padding: 18px var(--padding) 28px;
194
+ color: var(--foreground-2);
195
+ transition: color 0.2s;
196
+ &:hover {
197
+ color: var(--foreground);
198
+ }
199
+ &:hover .circle {
200
+ border-color: var(--foreground);
201
+ transform: translateY(-2px);
202
+ }
203
+ }
204
+ .circle {
205
+ display: grid;
206
+ place-items: center;
207
+ width: 30px;
208
+ height: 30px;
209
+ border: 1px solid var(--line);
210
+ border-radius: 50%;
211
+ transition:
212
+ border-color 0.3s,
213
+ transform 0.4s $ease;
214
+ }
215
+ /* The fine print: copyright on the left, the consumer dispute notice on the right. */
216
+ .fine {
217
+ display: grid;
218
+ grid-template-columns: auto minmax(0, 52ch);
219
+ justify-content: space-between;
220
+ align-items: start;
221
+ gap: 14px 40px;
222
+ padding: 20px var(--padding) 30px;
125
223
  font-size: 12px;
224
+ line-height: 1.6;
126
225
  color: var(--foreground-3);
127
- text-align: center;
226
+ @include below(760px) {
227
+ grid-template-columns: 1fr;
228
+ }
128
229
  }
129
- /* The consumer dispute notice: small print under the legal line, its links underlined only on hover. */
130
230
  .disputes {
131
- max-width: 76ch;
132
- font-size: 11.5px;
133
- line-height: 1.6;
134
- text-wrap: balance;
231
+ text-wrap: pretty;
135
232
  a {
136
233
  color: var(--foreground-2);
137
234
  transition: color 0.2s;
@@ -140,8 +237,3 @@
140
237
  color: var(--foreground);
141
238
  }
142
239
  }
143
- .top {
144
- display: inline-flex;
145
- align-items: center;
146
- gap: 6px;
147
- }
@@ -1 +1 @@
1
- .globe{--globe-glow: var(--foreground);--globe-surface: var(--background);position:absolute;inset:0}
1
+ .globe{--globe-glow: var(--foreground);--globe-surface: var(--background);position:absolute;inset:0;will-change:transform;animation:float 9s ease-in-out infinite}@media(prefers-reduced-motion: reduce){.globe{animation:none}}@keyframes float{0%,100%{transform:translate3d(0, 0, 0) rotate(0deg)}25%{transform:translate3d(0.4%, -1.1%, 0) rotate(0.6deg)}50%{transform:translate3d(0, -2%, 0) rotate(0deg)}75%{transform:translate3d(-0.4%, -1.1%, 0) rotate(-0.6deg)}}
@@ -1,7 +1,28 @@
1
- /* The shared globe's halo and fallback follow the Sharadox style. */
1
+ /* The shared globe's halo and fallback follow the Sharadox style. It floats: a slow rise and fall with a slight
2
+ sway, eased at both ends so it never stops sharply. Held still with reduced motion. */
2
3
  .globe {
3
4
  --globe-glow: var(--foreground);
4
5
  --globe-surface: var(--background);
5
6
  position: absolute;
6
7
  inset: 0;
8
+ will-change: transform;
9
+ animation: float 9s ease-in-out infinite;
10
+ @media (prefers-reduced-motion: reduce) {
11
+ animation: none;
12
+ }
13
+ }
14
+ @keyframes float {
15
+ 0%,
16
+ 100% {
17
+ transform: translate3d(0, 0, 0) rotate(0deg);
18
+ }
19
+ 25% {
20
+ transform: translate3d(0.4%, -1.1%, 0) rotate(0.6deg);
21
+ }
22
+ 50% {
23
+ transform: translate3d(0, -2%, 0) rotate(0deg);
24
+ }
25
+ 75% {
26
+ transform: translate3d(-0.4%, -1.1%, 0) rotate(-0.6deg);
27
+ }
7
28
  }
@@ -1,4 +1,8 @@
1
1
  import type { NavigationProperties } from "@sharadox/sharadox-web-library/component/navigation/type";
2
- /** Fixed top bar that frosts once the page scrolls, with the style and language switches. */
2
+ /**
3
+ * Fixed top bar that frosts once the page scrolls, with the style and language switches. Below 1100px the links
4
+ * open in a menu under the bar, in the bar's frosted background; it scrolls when it doesn't fit (a phone held
5
+ * sideways), and any tap on a link or button in the bar or menu closes it (`useMenu`). The menu sits beside the bar, not in it: the bar's blur would otherwise make the menu the bar's size.
6
+ */
3
7
  export declare function Navigation({ locale, path }: NavigationProperties): import("react").JSX.Element;
4
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/navigation/index.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0DAA0D,CAAC;AAOrG;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,EAAE,MAAM,EAAE,IAAS,EAAE,EAAE,oBAAoB,+BAwFrE"}
@@ -1,7 +1,9 @@
1
1
  "use client";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
3
  import { classNames } from "@sharadox/web-library/class-name";
4
+ import { AnimatePresence, motion } from "motion/react";
4
5
  import { useEffect, useState } from "react";
6
+ import { useMenu } from "@sharadox/menu-web-library/use-menu";
5
7
  import { Button } from "@sharadox/sharadox-web-library/component/button";
6
8
  import { LanguageSwitch } from "@sharadox/sharadox-web-library/component/language-switch";
7
9
  import { StyleSwitch } from "@sharadox/sharadox-web-library/component/style-switch";
@@ -11,16 +13,29 @@ import { translate } from "@sharadox/internationalization-web-library/translate"
11
13
  import { SECTION } from "@sharadox/sharadox-web-library/content/section";
12
14
  import { ACTION } from "@sharadox/sharadox-web-library/content/action";
13
15
  import styles from "./index.module.css";
14
- /** Fixed top bar that frosts once the page scrolls, with the style and language switches. */
16
+ const EASE = [0.22, 1, 0.36, 1];
17
+ /** Where the bar has room for every link; below it they move into the menu (keep in step with the styles). */
18
+ const WIDE = "(min-width: 1101px)";
19
+ /**
20
+ * Fixed top bar that frosts once the page scrolls, with the style and language switches. Below 1100px the links
21
+ * open in a menu under the bar, in the bar's frosted background; it scrolls when it doesn't fit (a phone held
22
+ * sideways), and any tap on a link or button in the bar or menu closes it (`useMenu`). The menu sits beside the bar, not in it: the bar's blur would otherwise make the menu the bar's size.
23
+ */
15
24
  export function Navigation({ locale, path = "" }) {
16
25
  const home = path ? `/${locale}` : "";
17
26
  const [scrolled, setScrolled] = useState(false);
27
+ const menu = useMenu({ wide: WIDE });
18
28
  useEffect(() => {
19
29
  const update = () => setScrolled(scrollY > 24);
20
30
  update();
21
31
  addEventListener("scroll", update, { passive: true });
22
32
  return () => removeEventListener("scroll", update);
23
33
  }, []);
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) })] })] }) }));
34
+ const links = NAVIGATION.links.map((section) => ({
35
+ href: `${home}#${section.id}`,
36
+ name: translate(section, locale),
37
+ }));
38
+ const contact = `${home}#${SECTION.contact.id}`;
39
+ return (_jsxs(_Fragment, { children: [_jsx("header", { className: classNames(styles.navigation, (scrolled || menu.open) && styles.scrolled), ...menu.closer, children: _jsxs("div", { className: styles.inner, children: [_jsx(Wordmark, { href: `/${locale}` }), _jsx("nav", { className: styles.links, "aria-label": translate(NAVIGATION.main, locale), children: links.map((link) => (_jsx("a", { href: link.href, children: link.name }, link.href))) }), _jsxs("div", { className: styles.end, children: [_jsx(StyleSwitch, { locale: locale, className: styles.style }), _jsx(LanguageSwitch, { locale: locale, path: path }), _jsx(Button, { href: contact, size: "small", className: styles.callToAction, children: translate(ACTION.startProject, locale) }), _jsxs("button", { type: "button", className: styles.toggle, ...menu.toggle, "aria-label": translate(menu.open ? NAVIGATION.close : NAVIGATION.menu, locale), children: [_jsx("span", {}), _jsx("span", {})] })] })] }) }), _jsx(AnimatePresence, { children: menu.open && (_jsxs(motion.nav, { id: "menu", "data-lenis-prevent": true, className: styles.menu, "aria-label": translate(NAVIGATION.main, locale), ...menu.closer, initial: { opacity: 0 }, animate: { opacity: 1 }, exit: { opacity: 0 }, transition: { duration: 0.35 }, children: [links.map((link, index) => (_jsxs(motion.a, { href: link.href, initial: { opacity: 0, y: 20 }, animate: { opacity: 1, y: 0 }, transition: { duration: 0.6, delay: 0.06 + index * 0.05, ease: EASE }, children: [_jsx("span", { className: "monospace", children: String(index + 1).padStart(2, "0") }), link.name] }, link.href))), _jsxs(motion.div, { className: styles.menuAction, initial: { opacity: 0, y: 20 }, animate: { opacity: 1, y: 0 }, transition: { duration: 0.6, delay: 0.06 + links.length * 0.05, ease: EASE }, children: [_jsx(Button, { href: contact, arrow: true, children: translate(ACTION.startProject, locale) }), _jsx(StyleSwitch, { locale: locale, className: styles.menuStyle })] })] })) })] }));
25
40
  }
26
41
  //# 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,EAA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AAE,KAAK,kBACzB,SAAS,CAAC,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,GAChC,EAET,KAAC,WAAW,IAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,CAAC,SAAS,GAAI,IACjD,IACF,CACd,GACe,IACjB,CACJ,CAAC;AACJ,CAAC"}
@@ -1 +1 @@
1
- .navigation{position:fixed;z-index:50;inset:0 0 auto;border-bottom:1px solid rgba(0,0,0,0);transition:background .4s,border-color .4s,backdrop-filter .4s}.scrolled{background:color-mix(in srgb, var(--background) 65%, transparent);backdrop-filter:blur(16px) saturate(1.6);border-color:var(--line)}.inner{width:min(100% - 2*var(--gutter),var(--maximum-width));margin:0 auto;height:64px;padding:0 var(--padding);display:flex;align-items:center;justify-content:space-between;gap:16px}@media(max-width: 520px){.inner{padding:0 12px}}.links{display:flex;gap:28px;margin:0 auto 0 28px;font-size:14px;color:var(--foreground-2)}.links a{position:relative;transition:color .2s}.links a::after{content:"";position:absolute;left:0;right:0;bottom:-4px;height:1px;background:var(--foreground);transform:scaleX(0);transform-origin:right;transition:transform .4s cubic-bezier(0.22, 1, 0.36, 1)}.links a:hover{color:var(--foreground)}.links a:hover::after{transform:scaleX(1);transform-origin:left}@media(max-width: 960px){.links{display:none}}.end{margin-left:auto;display:flex;align-items:center;gap:10px}@media(max-width: 520px){.end{gap:6px}.end .callToAction{display:none}}
1
+ .navigation{position:fixed;z-index:50;inset:0 0 auto;border-bottom:1px solid rgba(0,0,0,0);transition:background .4s,border-color .4s,backdrop-filter .4s}.scrolled{background:color-mix(in srgb, var(--background) 65%, transparent);backdrop-filter:blur(16px) saturate(1.6);border-color:var(--line)}.inner{width:min(100% - 2*var(--gutter),var(--maximum-width));margin:0 auto;height:64px;padding:0 var(--padding);display:flex;align-items:center;justify-content:space-between;gap:16px}@media(max-width: 520px){.inner{padding:0 12px}}.links{display:flex;gap:28px;margin:0 auto 0 28px;font-size:14px;color:var(--foreground-2)}.links a{position:relative;transition:color .2s}.links a::after{content:"";position:absolute;left:0;right:0;bottom:-4px;height:1px;background:var(--foreground);transform:scaleX(0);transform-origin:right;transition:transform .4s cubic-bezier(0.22, 1, 0.36, 1)}.links a:hover{color:var(--foreground)}.links a:hover::after{transform:scaleX(1);transform-origin:left}@media(max-width: 1100px){.links{display:none}}.end{margin-left:auto;display:flex;align-items:center;gap:10px}@media(max-width: 520px){.end{gap:6px}.end .callToAction{display:none}}.toggle{display:none;flex-direction:column;justify-content:center;gap:6px;width:36px;height:36px;padding:0 9px;border:1px solid var(--line);border-radius:999px;background:none;cursor:pointer}.toggle span{height:1.4px;background:var(--foreground);transition:transform .45s cubic-bezier(0.22, 1, 0.36, 1)}.toggle[aria-expanded=true] span:first-child{transform:translateY(3.7px) rotate(45deg)}.toggle[aria-expanded=true] span:last-child{transform:translateY(-3.7px) rotate(-45deg)}@media(max-width: 1100px){.toggle{display:flex}}.menu{position:fixed;inset:65px 0 0;z-index:49;overflow-y:auto;overscroll-behavior:contain;background:color-mix(in srgb, var(--background) 65%, transparent);backdrop-filter:blur(16px) saturate(1.6);display:flex;flex-direction:column;padding:16px max(var(--gutter),20px) calc(28px + env(safe-area-inset-bottom))}.menu>:first-child{margin-top:auto}.menu>:last-child{margin-bottom:auto}.menu>a{display:flex;align-items:baseline;gap:14px;padding:12px 0;border-bottom:1px dashed var(--line-2);font-size:clamp(1.5rem,min(7vw,6.5svh),2.6rem);font-weight:500;letter-spacing:-0.04em;line-height:1.1;color:var(--foreground)}.menu>a span{font-size:11.5px;letter-spacing:.05em;color:var(--foreground-3)}@media(min-width: 1101px){.menu{display:none}}.menuAction{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;margin-top:26px}.menuStyle{display:none !important}@media(max-width: 400px){.menuStyle{display:flex !important}}@media(max-width: 400px){.style{display:none !important}}
@@ -58,7 +58,7 @@
58
58
  transform-origin: left;
59
59
  }
60
60
  }
61
- @include below(960px) {
61
+ @include below(1100px) {
62
62
  display: none;
63
63
  }
64
64
  }
@@ -74,3 +74,91 @@
74
74
  }
75
75
  }
76
76
  }
77
+
78
+ /* Two lines that cross into an X while the menu is open; only where the links don't fit in the bar. */
79
+ .toggle {
80
+ display: none;
81
+ flex-direction: column;
82
+ justify-content: center;
83
+ gap: 6px;
84
+ width: 36px;
85
+ height: 36px;
86
+ padding: 0 9px;
87
+ border: 1px solid var(--line);
88
+ border-radius: 999px;
89
+ background: none;
90
+ cursor: pointer;
91
+ span {
92
+ height: 1.4px;
93
+ background: var(--foreground);
94
+ transition: transform 0.45s $ease;
95
+ }
96
+ &[aria-expanded="true"] span:first-child {
97
+ transform: translateY(3.7px) rotate(45deg);
98
+ }
99
+ &[aria-expanded="true"] span:last-child {
100
+ transform: translateY(-3.7px) rotate(-45deg);
101
+ }
102
+ @include below(1100px) {
103
+ display: flex;
104
+ }
105
+ }
106
+ /* The bar's frosted background, under the bar, so the two read as one. */
107
+ .menu {
108
+ position: fixed;
109
+ inset: 65px 0 0;
110
+ z-index: 49;
111
+ overflow-y: auto;
112
+ overscroll-behavior: contain;
113
+ background: shade(65%);
114
+ backdrop-filter: blur(16px) saturate(1.6);
115
+ display: flex;
116
+ flex-direction: column;
117
+ padding: 16px max(var(--gutter), 20px) calc(28px + env(safe-area-inset-bottom));
118
+ /* Centered when it fits; when it doesn't (a phone held sideways), it starts at the top and scrolls. */
119
+ > :first-child {
120
+ margin-top: auto;
121
+ }
122
+ > :last-child {
123
+ margin-bottom: auto;
124
+ }
125
+ > a {
126
+ display: flex;
127
+ align-items: baseline;
128
+ gap: 14px;
129
+ padding: 12px 0;
130
+ border-bottom: 1px dashed var(--line-2);
131
+ font-size: clamp(1.5rem, min(7vw, 6.5svh), 2.6rem);
132
+ font-weight: 500;
133
+ letter-spacing: -0.04em;
134
+ line-height: 1.1;
135
+ color: var(--foreground);
136
+ span {
137
+ font-size: 11.5px;
138
+ letter-spacing: 0.05em;
139
+ color: var(--foreground-3);
140
+ }
141
+ }
142
+ @media (min-width: 1101px) {
143
+ display: none;
144
+ }
145
+ }
146
+ .menuAction {
147
+ display: flex;
148
+ flex-wrap: wrap;
149
+ align-items: center;
150
+ justify-content: space-between;
151
+ gap: 16px;
152
+ margin-top: 26px;
153
+ }
154
+ .menuStyle {
155
+ display: none !important;
156
+ @include below(400px) {
157
+ display: flex !important;
158
+ }
159
+ }
160
+ .style {
161
+ @include below(400px) {
162
+ display: none !important;
163
+ }
164
+ }
@@ -12,5 +12,10 @@ export declare const FOOTER: {
12
12
  readonly en: "Studio";
13
13
  readonly pt: "Estúdio";
14
14
  };
15
+ /** The legal links' label, for screen readers. */
16
+ readonly legal: {
17
+ readonly en: "Legal";
18
+ readonly pt: "Informação legal";
19
+ };
15
20
  };
16
21
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/content/footer/index.ts"],"names":[],"mappings":"AAAA,mBAAmB;AACnB,eAAO,MAAM,MAAM;;;;;;;;;;;;;CAIT,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/content/footer/index.ts"],"names":[],"mappings":"AAAA,mBAAmB;AACnB,eAAO,MAAM,MAAM;;;;;;;;;;;;;IAIjB,kDAAkD;;;;;CAE1C,CAAC"}
@@ -3,5 +3,7 @@ export const FOOTER = {
3
3
  rights: { en: "All rights reserved.", pt: "Todos os direitos reservados." },
4
4
  top: { en: "Back to top", pt: "Voltar ao topo" },
5
5
  studio: { en: "Studio", pt: "Estúdio" },
6
+ /** The legal links' label, for screen readers. */
7
+ legal: { en: "Legal", pt: "Informação legal" },
6
8
  };
7
9
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/content/footer/index.ts"],"names":[],"mappings":"AAAA,mBAAmB;AACnB,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,MAAM,EAAE,EAAE,EAAE,EAAE,sBAAsB,EAAE,EAAE,EAAE,+BAA+B,EAAE;IAC3E,GAAG,EAAE,EAAE,EAAE,EAAE,aAAa,EAAE,EAAE,EAAE,gBAAgB,EAAE;IAChD,MAAM,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,SAAS,EAAE;CAC/B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/content/footer/index.ts"],"names":[],"mappings":"AAAA,mBAAmB;AACnB,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,MAAM,EAAE,EAAE,EAAE,EAAE,sBAAsB,EAAE,EAAE,EAAE,+BAA+B,EAAE;IAC3E,GAAG,EAAE,EAAE,EAAE,EAAE,aAAa,EAAE,EAAE,EAAE,gBAAgB,EAAE;IAChD,MAAM,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,SAAS,EAAE;IACvC,kDAAkD;IAClD,KAAK,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,kBAAkB,EAAE;CACtC,CAAC"}
@@ -1,9 +1,13 @@
1
- /** The sections the top navigation links to, in order. */
1
+ /** The sections the top navigation and the phone menu link to, in order, and the menu button's labels. */
2
2
  export declare const NAVIGATION: {
3
3
  readonly links: readonly [{
4
4
  readonly id: "services";
5
5
  readonly en: "Services";
6
6
  readonly pt: "Serviços";
7
+ }, {
8
+ readonly id: "touchpoints";
9
+ readonly en: "One System";
10
+ readonly pt: "Um Só Sistema";
7
11
  }, {
8
12
  readonly id: "capabilities";
9
13
  readonly en: "Capabilities";
@@ -17,5 +21,17 @@ export declare const NAVIGATION: {
17
21
  readonly en: "Contact";
18
22
  readonly pt: "Contacto";
19
23
  }];
24
+ readonly main: {
25
+ readonly en: "Main";
26
+ readonly pt: "Principal";
27
+ };
28
+ readonly menu: {
29
+ readonly en: "Open menu";
30
+ readonly pt: "Abrir menu";
31
+ };
32
+ readonly close: {
33
+ readonly en: "Close menu";
34
+ readonly pt: "Fechar menu";
35
+ };
20
36
  };
21
37
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/content/navigation/index.ts"],"names":[],"mappings":"AAEA,0DAA0D;AAC1D,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;CAEb,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/content/navigation/index.ts"],"names":[],"mappings":"AAEA,0GAA0G;AAC1G,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKb,CAAC"}
@@ -1,6 +1,9 @@
1
1
  import { SECTION } from "@sharadox/sharadox-web-library/content/section";
2
- /** The sections the top navigation links to, in order. */
2
+ /** The sections the top navigation and the phone menu link to, in order, and the menu button's labels. */
3
3
  export const NAVIGATION = {
4
- links: [SECTION.services, SECTION.capabilities, SECTION.process, SECTION.contact],
4
+ links: [SECTION.services, SECTION.touchpoints, SECTION.capabilities, SECTION.process, SECTION.contact],
5
+ main: { en: "Main", pt: "Principal" },
6
+ menu: { en: "Open menu", pt: "Abrir menu" },
7
+ close: { en: "Close menu", pt: "Fechar menu" },
5
8
  };
6
9
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/content/navigation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AAEzE,0DAA0D;AAC1D,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,KAAK,EAAE,CAAC,OAAO,CAAC,QAAQ,EAAE,OAAO,CAAC,YAAY,EAAE,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC;CACzE,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/content/navigation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AAEzE,0GAA0G;AAC1G,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,KAAK,EAAE,CAAC,OAAO,CAAC,QAAQ,EAAE,OAAO,CAAC,WAAW,EAAE,OAAO,CAAC,YAAY,EAAE,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC;IACtG,IAAI,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,WAAW,EAAE;IACrC,IAAI,EAAE,EAAE,EAAE,EAAE,WAAW,EAAE,EAAE,EAAE,YAAY,EAAE;IAC3C,KAAK,EAAE,EAAE,EAAE,EAAE,YAAY,EAAE,EAAE,EAAE,aAAa,EAAE;CACtC,CAAC"}
package/llms.txt CHANGED
@@ -19,3 +19,5 @@
19
19
  - content/privacy PRIVACY (privacy-web-library options) and PRIVACY_PAGE { path "/privacy", title, eyebrow, description }; component/privacy-page PrivacyPage({ locale }); the footer links it
20
20
  - 0.16.0: chevron icons from @sharadox/icon-web-library replace every text arrow (button, footer Back to top, 404)
21
21
  - 0.17.0: component/consent Consent back (consent-web-library 0.3, required only: Got It and Details); footer: Cookie Preferences, Livro de Reclamações link and the CIMAAL consumer dispute notice (legal-web-library); privacy policy mentions the consent record
22
+ - 0.18.0: navigation links include One System (touchpoints); below 1100px a menu button opens the links and Start a Project under the bar, in the bar's frosted background, scrolling when it doesn't fit (Escape, a link or a wider screen closes it); footer Studio column adds One System and Start a Project
23
+ - 0.19.0: the globe floats (slow rise, fall and sway; still with reduced motion), in the hero and the 404; footer reorganized (brand, services, studio with Start a Project, language and style; wordmark; a bar with license, privacy, cookie preferences, complaints book and Back to top; copyright beside the dispute notice); the phone menu uses @sharadox/menu-web-library (any tap on a link or button in the bar or menu closes it, the logo included)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sharadox/sharadox-web-library",
3
- "version": "0.17.0",
3
+ "version": "0.19.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",
@@ -61,6 +61,7 @@
61
61
  "@sharadox/icon-web-library": "^0.1.0",
62
62
  "@sharadox/internationalization-web-library": "^0.2.3",
63
63
  "@sharadox/legal-web-library": "^0.1.0",
64
+ "@sharadox/menu-web-library": "^0.1.0",
64
65
  "@sharadox/metadata-web-library": "^0.2.0",
65
66
  "@sharadox/pointer-web-library": "^0.1.0",
66
67
  "@sharadox/privacy-web-library": "^0.1.1",