@sharadox/sharadox-web-library 0.31.0 → 0.33.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 +2 -2
- package/distribution/component/about/feed/index.d.ts +9 -0
- package/distribution/component/about/feed/index.d.ts.map +1 -0
- package/distribution/component/about/feed/index.js +17 -0
- package/distribution/component/about/feed/index.js.map +1 -0
- package/distribution/component/about/feed/index.module.css +1 -0
- package/distribution/component/about/feed/index.module.scss +206 -0
- package/distribution/component/{touchpoint → about/feed}/type.d.ts +1 -1
- package/distribution/component/about/feed/type.d.ts.map +1 -0
- package/distribution/component/about/feed/type.js.map +1 -0
- package/distribution/component/about/index.d.ts +8 -0
- package/distribution/component/about/index.d.ts.map +1 -0
- package/distribution/component/about/index.js +20 -0
- package/distribution/component/about/index.js.map +1 -0
- package/distribution/component/about/index.module.css +1 -0
- package/distribution/component/about/index.module.scss +129 -0
- package/distribution/component/about/type.d.ts +5 -0
- package/distribution/component/about/type.d.ts.map +1 -0
- package/distribution/component/about/type.js.map +1 -0
- package/distribution/component/capability/index.d.ts +1 -1
- package/distribution/component/capability/index.d.ts.map +1 -1
- package/distribution/component/capability/index.js +3 -2
- package/distribution/component/capability/index.js.map +1 -1
- package/distribution/component/capability/index.module.css +1 -1
- package/distribution/component/capability/index.module.scss +41 -0
- package/distribution/component/eyebrow/index.module.css +1 -1
- package/distribution/component/eyebrow/index.module.scss +1 -0
- package/distribution/component/faq/index.d.ts +9 -0
- package/distribution/component/faq/index.d.ts.map +1 -0
- package/distribution/component/faq/index.js +33 -0
- package/distribution/component/faq/index.js.map +1 -0
- package/distribution/component/faq/index.module.css +1 -0
- package/distribution/component/faq/index.module.scss +84 -0
- package/distribution/component/faq/type.d.ts +5 -0
- package/distribution/component/faq/type.d.ts.map +1 -0
- package/distribution/component/faq/type.js.map +1 -0
- package/distribution/component/footer/index.d.ts +2 -2
- package/distribution/component/footer/index.js +4 -4
- package/distribution/component/footer/index.js.map +1 -1
- package/distribution/component/footer/index.module.css +1 -1
- package/distribution/component/footer/index.module.scss +10 -30
- package/distribution/component/hero/index.module.css +1 -1
- package/distribution/component/hero/index.module.scss +6 -0
- package/distribution/component/process/index.d.ts +1 -1
- package/distribution/component/process/index.d.ts.map +1 -1
- package/distribution/component/process/index.js +13 -3
- package/distribution/component/process/index.js.map +1 -1
- package/distribution/component/process/index.module.css +1 -1
- package/distribution/component/process/index.module.scss +2 -0
- package/distribution/component/process/measure-stops/index.d.ts +10 -0
- package/distribution/component/process/measure-stops/index.d.ts.map +1 -0
- package/distribution/component/process/measure-stops/index.js +21 -0
- package/distribution/component/process/measure-stops/index.js.map +1 -0
- package/distribution/component/process/step/index.d.ts +2 -2
- package/distribution/component/process/step/index.d.ts.map +1 -1
- package/distribution/component/process/step/index.js +4 -5
- package/distribution/component/process/step/index.js.map +1 -1
- package/distribution/component/process/step/type.d.ts +2 -2
- package/distribution/component/process/step/type.d.ts.map +1 -1
- package/distribution/component/section-indicator/index.module.css +1 -1
- package/distribution/component/section-indicator/index.module.scss +17 -1
- package/distribution/component/service-object/rebranding/index.d.ts +3 -3
- package/distribution/component/service-object/rebranding/index.d.ts.map +1 -1
- package/distribution/component/service-object/rebranding/index.js +19 -6
- package/distribution/component/service-object/rebranding/index.js.map +1 -1
- package/distribution/component/service-object/rebranding/index.module.css +1 -1
- package/distribution/component/service-object/rebranding/index.module.scss +85 -140
- package/distribution/component/service-unlisted/index.d.ts +2 -2
- package/distribution/component/service-unlisted/index.d.ts.map +1 -1
- package/distribution/component/service-unlisted/index.js +4 -4
- package/distribution/component/service-unlisted/index.js.map +1 -1
- package/distribution/component/service-unlisted/index.module.css +1 -1
- package/distribution/component/service-unlisted/index.module.scss +7 -6
- package/distribution/component/services/index.d.ts +2 -2
- package/distribution/component/services/index.d.ts.map +1 -1
- package/distribution/component/services/index.js +3 -4
- package/distribution/component/services/index.js.map +1 -1
- package/distribution/content/about/index.d.ts +113 -0
- package/distribution/content/about/index.d.ts.map +1 -0
- package/distribution/content/about/index.js +77 -0
- package/distribution/content/about/index.js.map +1 -0
- package/distribution/content/capability/index.d.ts +27 -1
- package/distribution/content/capability/index.d.ts.map +1 -1
- package/distribution/content/capability/index.js +19 -1
- package/distribution/content/capability/index.js.map +1 -1
- package/distribution/content/contact/index.d.ts +1 -1
- package/distribution/content/faq/index.d.ts +113 -0
- package/distribution/content/faq/index.d.ts.map +1 -0
- package/distribution/content/faq/index.js +106 -0
- package/distribution/content/faq/index.js.map +1 -0
- package/distribution/content/navigation/index.d.ts +8 -4
- package/distribution/content/navigation/index.d.ts.map +1 -1
- package/distribution/content/navigation/index.js +1 -1
- package/distribution/content/navigation/index.js.map +1 -1
- package/distribution/content/section/index.d.ts +10 -5
- package/distribution/content/section/index.d.ts.map +1 -1
- package/distribution/content/section/index.js +2 -1
- package/distribution/content/section/index.js.map +1 -1
- package/distribution/content/section-indicator/index.d.ts +8 -4
- package/distribution/content/section-indicator/index.d.ts.map +1 -1
- package/distribution/content/section-indicator/index.js +2 -1
- package/distribution/content/section-indicator/index.js.map +1 -1
- package/distribution/content/services/index.d.ts +12 -12
- package/distribution/content/services/index.d.ts.map +1 -1
- package/distribution/content/services/index.js +71 -21
- package/distribution/content/services/index.js.map +1 -1
- package/llms.txt +4 -2
- package/package.json +2 -2
- package/distribution/component/statement/index.d.ts +0 -4
- package/distribution/component/statement/index.d.ts.map +0 -1
- package/distribution/component/statement/index.js +0 -10
- package/distribution/component/statement/index.js.map +0 -1
- package/distribution/component/statement/index.module.css +0 -1
- package/distribution/component/statement/index.module.scss +0 -10
- package/distribution/component/statement/type.d.ts +0 -4
- package/distribution/component/statement/type.d.ts.map +0 -1
- package/distribution/component/statement/type.js.map +0 -1
- package/distribution/component/touchpoint/index.d.ts +0 -7
- package/distribution/component/touchpoint/index.d.ts.map +0 -1
- package/distribution/component/touchpoint/index.js +0 -26
- package/distribution/component/touchpoint/index.js.map +0 -1
- package/distribution/component/touchpoint/index.module.css +0 -1
- package/distribution/component/touchpoint/index.module.scss +0 -76
- package/distribution/component/touchpoint/plate/index.d.ts +0 -4
- package/distribution/component/touchpoint/plate/index.d.ts.map +0 -1
- package/distribution/component/touchpoint/plate/index.js +0 -9
- package/distribution/component/touchpoint/plate/index.js.map +0 -1
- package/distribution/component/touchpoint/plate/index.module.css +0 -1
- package/distribution/component/touchpoint/plate/index.module.scss +0 -135
- package/distribution/component/touchpoint/plate/type.d.ts +0 -8
- package/distribution/component/touchpoint/plate/type.d.ts.map +0 -1
- package/distribution/component/touchpoint/plate/type.js.map +0 -1
- package/distribution/component/touchpoint/type.d.ts.map +0 -1
- package/distribution/component/touchpoint/type.js.map +0 -1
- package/distribution/content/statement/index.d.ts +0 -6
- package/distribution/content/statement/index.d.ts.map +0 -1
- package/distribution/content/statement/index.js +0 -6
- package/distribution/content/statement/index.js.map +0 -1
- package/distribution/content/touchpoint/index.d.ts +0 -37
- package/distribution/content/touchpoint/index.d.ts.map +0 -1
- package/distribution/content/touchpoint/index.js +0 -17
- package/distribution/content/touchpoint/index.js.map +0 -1
- /package/distribution/component/{statement → about/feed}/type.js +0 -0
- /package/distribution/component/{touchpoint/plate → about}/type.js +0 -0
- /package/distribution/component/{touchpoint → faq}/type.js +0 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { StructuredData } from "@sharadox/metadata-web-library/structured-data";
|
|
3
|
+
import { structuredDataGraph } from "@sharadox/metadata-web-library/structured-data-graph";
|
|
4
|
+
import { Icon } from "@sharadox/icon-web-library/icon";
|
|
5
|
+
import { translate } from "@sharadox/internationalization-web-library/translate";
|
|
6
|
+
import { Button } from "@sharadox/sharadox-web-library/component/button";
|
|
7
|
+
import { Section } from "@sharadox/sharadox-web-library/component/section";
|
|
8
|
+
import { SectionHeading } from "@sharadox/sharadox-web-library/component/section-heading";
|
|
9
|
+
import { FAQ } from "@sharadox/sharadox-web-library/content/faq";
|
|
10
|
+
import { LOCALES } from "@sharadox/sharadox-web-library/content/locale";
|
|
11
|
+
import { SECTION } from "@sharadox/sharadox-web-library/content/section";
|
|
12
|
+
import { SITE } from "@sharadox/sharadox-web-library/content/site";
|
|
13
|
+
import styles from "./index.module.css";
|
|
14
|
+
/**
|
|
15
|
+
* "Questions": the heading and a way to ask anything else on the left, the questions on the right, each opening to
|
|
16
|
+
* its answer. Native disclosure elements (`details`), so they open with a keyboard, a tap or the page's search
|
|
17
|
+
* (find in page opens the one that matches), with no script. The same questions and answers go to search engines as
|
|
18
|
+
* an FAQ page, here, on the page that shows them.
|
|
19
|
+
*/
|
|
20
|
+
export function Faq({ locale }) {
|
|
21
|
+
const data = structuredDataGraph({
|
|
22
|
+
"@type": "FAQPage",
|
|
23
|
+
"@id": `${SITE.url}/${locale}#${SECTION.faq.id}`,
|
|
24
|
+
inLanguage: LOCALES.languageTag(locale),
|
|
25
|
+
mainEntity: FAQ.items.map((item) => ({
|
|
26
|
+
"@type": "Question",
|
|
27
|
+
name: translate(item.question, locale),
|
|
28
|
+
acceptedAnswer: { "@type": "Answer", text: translate(item.answer, locale) },
|
|
29
|
+
})),
|
|
30
|
+
});
|
|
31
|
+
return (_jsxs(Section, { id: SECTION.faq.id, className: styles.faq, children: [_jsx(StructuredData, { data: data }), _jsxs("div", { className: styles.aside, children: [_jsx(SectionHeading, { eyebrow: translate(SECTION.faq, locale), title: translate(FAQ.title, locale) }), _jsx("p", { children: translate(FAQ.more.text, locale) }), _jsx(Button, { href: `#${SECTION.contact.id}`, variant: "ghost", arrow: true, children: translate(FAQ.more.action, locale) })] }), _jsx("div", { className: styles.list, children: FAQ.items.map((item) => (_jsxs("details", { className: styles.item, children: [_jsxs("summary", { children: [translate(item.question, locale), _jsx(Icon, { name: "chevron-down", strokeWidth: 1.8, className: styles.chevron })] }), _jsx("p", { children: translate(item.answer, locale) })] }, item.question.en))) })] }));
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,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|
+
.faq{display:grid;grid-template-columns:1fr 1.5fr;align-items:start;gap:clamp(32px,6vw,96px)}@media(max-width: 900px){.faq{grid-template-columns:1fr}}.aside{position:sticky;top:120px;display:grid;justify-content:stretch;justify-items:start;gap:18px}.aside>:first-child{margin-bottom:0}.aside p{color:var(--foreground-2)}@media(max-width: 900px){.aside{position:static}}.list{display:grid;justify-content:stretch;border-top:1px dashed var(--line-2)}.item{border-bottom:1px dashed var(--line-2);interpolate-size:allow-keywords}.item summary{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 0;font-size:clamp(1.05rem,1.6vw,1.25rem);font-weight:500;letter-spacing:-0.02em;list-style:none;cursor:pointer;transition:color .2s}.item summary::-webkit-details-marker{display:none}.item summary:hover{color:var(--foreground)}.item p{max-width:62ch;padding:0 0 24px;color:var(--foreground-2);text-wrap:pretty}.item::details-content{block-size:0;overflow:hidden;transition:block-size .45s cubic-bezier(0.22, 1, 0.36, 1),content-visibility .45s allow-discrete}.item[open]::details-content{block-size:auto}.chevron{flex:none;width:18px;height:18px;color:var(--foreground-2);transition:transform .4s cubic-bezier(0.22, 1, 0.36, 1)}.item[open] .chevron{transform:rotate(180deg)}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
@use "style/token" as *;
|
|
2
|
+
|
|
3
|
+
/* The heading on the left (staying in view while the questions scroll by), the questions on the right. */
|
|
4
|
+
.faq {
|
|
5
|
+
display: grid;
|
|
6
|
+
grid-template-columns: 1fr 1.5fr;
|
|
7
|
+
align-items: start;
|
|
8
|
+
gap: clamp(32px, 6vw, 96px);
|
|
9
|
+
@include below(900px) {
|
|
10
|
+
grid-template-columns: 1fr;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
.aside {
|
|
14
|
+
position: sticky;
|
|
15
|
+
top: 120px;
|
|
16
|
+
display: grid;
|
|
17
|
+
justify-content: stretch;
|
|
18
|
+
justify-items: start;
|
|
19
|
+
gap: 18px;
|
|
20
|
+
> :first-child {
|
|
21
|
+
margin-bottom: 0;
|
|
22
|
+
}
|
|
23
|
+
p {
|
|
24
|
+
color: var(--foreground-2);
|
|
25
|
+
}
|
|
26
|
+
@include below(900px) {
|
|
27
|
+
position: static;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
.list {
|
|
31
|
+
display: grid;
|
|
32
|
+
justify-content: stretch;
|
|
33
|
+
border-top: 1px dashed var(--line-2);
|
|
34
|
+
}
|
|
35
|
+
/* A question: a row that opens to its answer, its chevron turning; the answer's height eases open and shut. */
|
|
36
|
+
.item {
|
|
37
|
+
border-bottom: 1px dashed var(--line-2);
|
|
38
|
+
interpolate-size: allow-keywords;
|
|
39
|
+
summary {
|
|
40
|
+
display: flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
justify-content: space-between;
|
|
43
|
+
gap: 24px;
|
|
44
|
+
padding: 22px 0;
|
|
45
|
+
font-size: clamp(1.05rem, 1.6vw, 1.25rem);
|
|
46
|
+
font-weight: 500;
|
|
47
|
+
letter-spacing: -0.02em;
|
|
48
|
+
list-style: none;
|
|
49
|
+
cursor: pointer;
|
|
50
|
+
transition: color 0.2s;
|
|
51
|
+
&::-webkit-details-marker {
|
|
52
|
+
display: none;
|
|
53
|
+
}
|
|
54
|
+
&:hover {
|
|
55
|
+
color: var(--foreground);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
p {
|
|
59
|
+
max-width: 62ch;
|
|
60
|
+
padding: 0 0 24px;
|
|
61
|
+
color: var(--foreground-2);
|
|
62
|
+
text-wrap: pretty;
|
|
63
|
+
}
|
|
64
|
+
&::details-content {
|
|
65
|
+
block-size: 0;
|
|
66
|
+
overflow: hidden;
|
|
67
|
+
transition:
|
|
68
|
+
block-size 0.45s $ease,
|
|
69
|
+
content-visibility 0.45s allow-discrete;
|
|
70
|
+
}
|
|
71
|
+
&[open]::details-content {
|
|
72
|
+
block-size: auto;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
.chevron {
|
|
76
|
+
flex: none;
|
|
77
|
+
width: 18px;
|
|
78
|
+
height: 18px;
|
|
79
|
+
color: var(--foreground-2);
|
|
80
|
+
transition: transform 0.4s $ease;
|
|
81
|
+
.item[open] & {
|
|
82
|
+
transform: rotate(180deg);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../source/component/faq/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oDAAoD,CAAC;AAEjF,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../source/component/faq/type.ts"],"names":[],"mappings":""}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { FooterProperties } from "@sharadox/sharadox-web-library/component/footer/type";
|
|
2
2
|
/**
|
|
3
3
|
* The footer, in the grid frame. Four columns: the brand (slogan, email and Start a Project), the services, the
|
|
4
|
-
* studio's sections, and the language and style. Under them, everything legal in a row of its own (the
|
|
5
|
-
* license, privacy, cookie preferences, Portugal's complaints book
|
|
4
|
+
* studio's sections, and the language and style. Under them, everything legal in a row of its own (the consumer
|
|
5
|
+
* dispute notice, with the links under it: license, privacy, cookie preferences, Portugal's complaints book), and at the very
|
|
6
6
|
* bottom the copyright and the way back up.
|
|
7
7
|
*/
|
|
8
8
|
export declare function Footer({ locale, path }: FooterProperties): import("react").JSX.Element;
|
|
@@ -29,13 +29,13 @@ import { LOCALES } from "@sharadox/sharadox-web-library/content/locale";
|
|
|
29
29
|
import styles from "./index.module.css";
|
|
30
30
|
/**
|
|
31
31
|
* The footer, in the grid frame. Four columns: the brand (slogan, email and Start a Project), the services, the
|
|
32
|
-
* studio's sections, and the language and style. Under them, everything legal in a row of its own (the
|
|
33
|
-
* license, privacy, cookie preferences, Portugal's complaints book
|
|
32
|
+
* studio's sections, and the language and style. Under them, everything legal in a row of its own (the consumer
|
|
33
|
+
* dispute notice, with the links under it: license, privacy, cookie preferences, Portugal's complaints book), and at the very
|
|
34
34
|
* bottom the copyright and the way back up.
|
|
35
35
|
*/
|
|
36
36
|
export function Footer({ locale, path = "" }) {
|
|
37
37
|
const home = path ? `/${locale}` : "";
|
|
38
|
-
const studio = [SECTION.
|
|
39
|
-
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 }), _jsx(Button, { href: `${home}#${SECTION.contact.id}`, size: "small", arrow: true, className: styles.start, children: translate(ACTION.startProject, locale) })] }), _jsxs("nav", { "aria-label": translate(SECTION.services, locale), children: [_jsx("h2", { className: "monospace", children: translate(SECTION.services, locale) }), SERVICES.items.map((service) => (_jsx(SectionLink, { 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(SectionLink, { href: `${home}#${section.id}`, children: translate(section, locale) }, section.id)))] }), _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 })] })] }), _jsxs("div", { className: styles.legal, children: [_jsxs("nav", { "aria-label": translate(FOOTER.legal, locale), className: styles.links, children: [_jsx(Link, { href: `/${locale}${LICENSE.path}`, "aria-current": path === LICENSE.path ? "page" : undefined, children: translate(LICENSE.title, locale) }), _jsx(Link, { 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 })] })
|
|
38
|
+
const studio = [SECTION.about, SECTION.capabilities, SECTION.process, SECTION.faq, SECTION.contact];
|
|
39
|
+
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 }), _jsx(Button, { href: `${home}#${SECTION.contact.id}`, size: "small", arrow: true, className: styles.start, children: translate(ACTION.startProject, locale) })] }), _jsxs("nav", { "aria-label": translate(SECTION.services, locale), children: [_jsx("h2", { className: "monospace", children: translate(SECTION.services, locale) }), SERVICES.items.map((service) => (_jsx(SectionLink, { 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(SectionLink, { href: `${home}#${section.id}`, children: translate(section, locale) }, section.id)))] }), _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 })] })] }), _jsxs("div", { className: styles.legal, children: [_jsx("p", { className: styles.disputes, children: _jsx(DisputeNotice, { center: DISPUTE_RESOLUTION_CENTERS.algarve, locale: locale }) }), _jsxs("nav", { "aria-label": translate(FOOTER.legal, locale), className: styles.links, children: [_jsx(Link, { href: `/${locale}${LICENSE.path}`, "aria-current": path === LICENSE.path ? "page" : undefined, children: translate(LICENSE.title, locale) }), _jsx(Link, { 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("div", { className: styles.bottom, children: [_jsxs("p", { className: `monospace ${styles.copyright}`, children: ["\u00A9 ", _jsx(CopyrightYears, { since: FOUNDED }), " ", separate("Sharadox", translate(FOOTER.rights, locale))] }), _jsxs(SectionLink, { 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 }) })] })] })] }));
|
|
40
40
|
}
|
|
41
41
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/footer/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AACxE,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,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,gDAAgD,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,wDAAwD,CAAC;AACpF,OAAO,EAAE,WAAW,EAAE,MAAM,uDAAuD,CAAC;AACpF,OAAO,EAAE,QAAQ,EAAE,MAAM,mDAAm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AG,SAAS,EAAE,aAAa,MAAM,CAAC,SAAS,EAAE,wBACzC,KAAC,cAAc,IAAC,KAAK,EAAE,OAAO,GAAI,OAAE,QAAQ,CAAC,UAAU,EAAE,SAAS,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,IAC1F,EACJ,MAAC,WAAW,IAAC,IAAI,EAAC,MAAM,EAAC,SAAS,EAAE,MAAM,CAAC,GAAG,aAC3C,SAAS,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,EAC9B,eAAM,SAAS,EAAE,MAAM,CAAC,MAAM,iCAC5B,KAAC,IAAI,IAAC,IAAI,EAAC,YAAY,EAAC,WAAW,EAAE,GAAG,GAAI,GACvC,IACK,IACV,IACC,CACV,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.footer{text-align:left;position:relative;width:min(100% - 2*var(--gutter),var(--maximum-width));margin:0 auto;border:1px solid var(--line);border-bottom:0}.columns{align-items:stretch;display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;border-bottom:1px solid var(--line)}.columns>*{justify-content:stretch;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}.columns a:not(.start){transition:color .2s}.columns a:not(.start):hover{color:var(--foreground)}@media(max-width: 900px){.columns{grid-template-columns:1fr 1fr}.columns>.brand,.columns>.settings{grid-column:1/-1}.columns>.brand::after,.columns>.settings::after{display:none}.columns>:nth-child(3)::after{display:none}.columns>*:not(:last-child){border-bottom:1px dashed var(--line-2)}}.legal{
|
|
1
|
+
.footer{text-align:left;position:relative;width:min(100% - 2*var(--gutter),var(--maximum-width));margin:0 auto;border:1px solid var(--line);border-bottom:0}.columns{align-items:stretch;display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;border-bottom:1px solid var(--line)}.columns>*{justify-content:stretch;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}.columns a:not(.start){transition:color .2s}.columns a:not(.start):hover{color:var(--foreground)}@media(max-width: 900px){.columns{grid-template-columns:1fr 1fr}.columns>.brand,.columns>.settings{grid-column:1/-1}.columns>.brand::after,.columns>.settings::after{display:none}.columns>:nth-child(3)::after{display:none}.columns>*:not(:last-child){border-bottom:1px dashed var(--line-2)}}.legal{display:grid;justify-content:stretch;justify-items:center;text-align:center;gap:14px;padding:28px var(--padding);border-bottom:1px solid var(--line);font-size:13px}.bottom{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;padding:18px var(--padding);border-bottom:1px solid var(--line)}.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{justify-items:start}.settings h2:not(:first-child){margin-top:18px}.start{margin-top:12px}.copyright{font-size:12px;color:var(--foreground-3)}.links{align-content:flex-start;justify-content:center;display:flex;flex-wrap:wrap;align-items:center;gap:8px 24px}.links a,.links [data-preferences-link]{padding:0;border:0;background:none;font:inherit;color:var(--foreground-2);text-align:center;transition:color .2s}.links a:hover,.links [data-preferences-link]:hover,.links a[aria-current]{color:var(--foreground)}@media(max-width: 640px){.links{display:grid;grid-template-columns:1fr 1fr;gap:12px 18px}}.disputes{max-width:120ch;font-size:12px;line-height:1.6;color:var(--foreground-3);text-wrap:pretty}.disputes a{color:var(--foreground-2);transition:color .2s}.disputes a:hover{color:var(--foreground)}.top{font-size:14px;display:inline-flex;align-items:center;width:fit-content;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)}
|
|
@@ -68,37 +68,17 @@
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
/* Everything legal
|
|
71
|
+
/* Everything legal, across the frame and centered in it: the dispute notice as one line of text, the links in a row
|
|
72
|
+
under it. */
|
|
72
73
|
.legal {
|
|
73
|
-
align-items: stretch;
|
|
74
74
|
display: grid;
|
|
75
|
-
|
|
75
|
+
justify-content: stretch;
|
|
76
|
+
justify-items: center;
|
|
77
|
+
text-align: center;
|
|
78
|
+
gap: 14px;
|
|
79
|
+
padding: 28px var(--padding);
|
|
76
80
|
border-bottom: 1px solid var(--line);
|
|
77
81
|
font-size: 13px;
|
|
78
|
-
> * {
|
|
79
|
-
padding: 28px var(--padding);
|
|
80
|
-
}
|
|
81
|
-
> :first-child {
|
|
82
|
-
position: relative;
|
|
83
|
-
&::after {
|
|
84
|
-
content: "";
|
|
85
|
-
position: absolute;
|
|
86
|
-
top: 0;
|
|
87
|
-
bottom: 0;
|
|
88
|
-
right: 0;
|
|
89
|
-
width: 1px;
|
|
90
|
-
@include dashed(vertical);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
@include below(900px) {
|
|
94
|
-
grid-template-columns: 1fr;
|
|
95
|
-
> :first-child {
|
|
96
|
-
padding-bottom: 0;
|
|
97
|
-
&::after {
|
|
98
|
-
display: none;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
82
|
}
|
|
103
83
|
/* The very bottom: the copyright on the left, the way back up on the right. */
|
|
104
84
|
.bottom {
|
|
@@ -146,7 +126,7 @@
|
|
|
146
126
|
/* The legal links, wrapping as they need; on phones, two to a row. */
|
|
147
127
|
.links {
|
|
148
128
|
align-content: flex-start;
|
|
149
|
-
justify-content:
|
|
129
|
+
justify-content: center;
|
|
150
130
|
display: flex;
|
|
151
131
|
flex-wrap: wrap;
|
|
152
132
|
align-items: center;
|
|
@@ -158,7 +138,7 @@
|
|
|
158
138
|
background: none;
|
|
159
139
|
font: inherit;
|
|
160
140
|
color: var(--foreground-2);
|
|
161
|
-
text-align:
|
|
141
|
+
text-align: center;
|
|
162
142
|
transition: color 0.2s;
|
|
163
143
|
}
|
|
164
144
|
a:hover,
|
|
@@ -173,7 +153,7 @@
|
|
|
173
153
|
}
|
|
174
154
|
}
|
|
175
155
|
.disputes {
|
|
176
|
-
max-width:
|
|
156
|
+
max-width: 120ch;
|
|
177
157
|
font-size: 12px;
|
|
178
158
|
line-height: 1.6;
|
|
179
159
|
color: var(--foreground-3);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.hero{text-align:left;position:relative;min-height:min(100svh,980px);width:min(100% - 2*var(--gutter),var(--maximum-width));margin:0 auto;padding:104px var(--padding) 56px;border-inline:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:24px}@media(max-width: 900px){.hero{grid-template-columns:1fr;padding-top:72px;gap:0}}.copy{position:relative;z-index:2;container-type:inline-size}.eyebrow{padding:6px 12px 6px 10px;border:1px solid var(--line-2);border-radius:99px;background:color-mix(in srgb, var(--background) 60%, transparent);backdrop-filter:blur(6px)}.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)}}.title{margin:26px 0 26px;font-size:min(clamp(3rem,7vw,6.4rem),14.6cqi);white-space:nowrap;letter-spacing:-0.06em;line-height:.95}@media(max-width: 900px){.title{margin-top:18px}}.line{display:block;overflow:hidden;padding-bottom:.06em}.lineInner{display:inline-block}.dim{background:linear-gradient(180deg, var(--foreground) 10%, var(--foreground-3) 120%);-webkit-background-clip:text;background-clip:text;color:rgba(0,0,0,0)}.subtitle{max-width:31rem;font-size:clamp(1.05rem,1.4vw,1.2rem);color:var(--foreground-2);line-height:1.55}.actions{justify-content:flex-start;display:flex;flex-wrap:wrap;gap:12px;margin-top:34px}.globe{position:absolute;z-index:1;left:75%;top:50%;width:61.3%;aspect-ratio:1;margin:calc(61.3%/-2) 0 0 calc(61.3%/-2)}@media(max-width: 900px){.globe{position:relative;left:auto;top:auto;order:-1;width:112%;margin:0 -6%;justify-self:center}}.hint{position:absolute;left:50%;bottom:2%;transform:translateX(-50%);font-size:11.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--foreground-3);pointer-events:none}
|
|
1
|
+
.hero{text-align:left;position:relative;min-height:min(100svh,980px);width:min(100% - 2*var(--gutter),var(--maximum-width));margin:0 auto;padding:104px var(--padding) 56px;border-inline:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:24px}@media(min-width: 961px){.hero{min-height:calc(min(100svh,980px) - 140px);padding-bottom:32px}}@media(max-width: 900px){.hero{grid-template-columns:1fr;padding-top:72px;gap:0}}.copy{position:relative;z-index:2;container-type:inline-size}.eyebrow{padding:6px 12px 6px 10px;border:1px solid var(--line-2);border-radius:99px;background:color-mix(in srgb, var(--background) 60%, transparent);backdrop-filter:blur(6px)}.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)}}.title{margin:26px 0 26px;font-size:min(clamp(3rem,7vw,6.4rem),14.6cqi);white-space:nowrap;letter-spacing:-0.06em;line-height:.95}@media(max-width: 900px){.title{margin-top:18px}}.line{display:block;overflow:hidden;padding-bottom:.06em}.lineInner{display:inline-block}.dim{background:linear-gradient(180deg, var(--foreground) 10%, var(--foreground-3) 120%);-webkit-background-clip:text;background-clip:text;color:rgba(0,0,0,0)}.subtitle{max-width:31rem;font-size:clamp(1.05rem,1.4vw,1.2rem);color:var(--foreground-2);line-height:1.55}.actions{justify-content:flex-start;display:flex;flex-wrap:wrap;gap:12px;margin-top:34px}.globe{position:absolute;z-index:1;left:75%;top:50%;width:61.3%;aspect-ratio:1;margin:calc(61.3%/-2) 0 0 calc(61.3%/-2)}@media(max-width: 900px){.globe{position:relative;left:auto;top:auto;order:-1;width:112%;margin:0 -6%;justify-self:center}}.hint{position:absolute;left:50%;bottom:2%;transform:translateX(-50%);font-size:11.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--foreground-3);pointer-events:none}
|
|
@@ -12,6 +12,12 @@
|
|
|
12
12
|
grid-template-columns: 1fr 1fr;
|
|
13
13
|
align-items: center;
|
|
14
14
|
gap: 24px;
|
|
15
|
+
/* On wide screens the service index (one row of four, about 140px) sits under the hero, so the two together fill
|
|
16
|
+
the first screen and the four shortcuts show at its bottom. */
|
|
17
|
+
@media (min-width: 961px) {
|
|
18
|
+
min-height: calc(min(100svh, 980px) - 140px);
|
|
19
|
+
padding-bottom: 32px;
|
|
20
|
+
}
|
|
15
21
|
@include below(900px) {
|
|
16
22
|
grid-template-columns: 1fr;
|
|
17
23
|
padding-top: 72px;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ProcessProperties } from "@sharadox/sharadox-web-library/component/process/type";
|
|
2
|
-
/** Four steps on a line that draws itself as you scroll through the section. */
|
|
2
|
+
/** Four steps on a line that draws itself as you scroll through the section, each dot lighting as it is reached. */
|
|
3
3
|
export declare function Process({ locale }: ProcessProperties): import("react").JSX.Element;
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/process/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/process/index.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uDAAuD,CAAC;AAE/F,oHAAoH;AACpH,wBAAgB,OAAO,CAAC,EAAE,MAAM,EAAE,EAAE,iBAAiB,+BAmCpD"}
|
|
@@ -1,21 +1,31 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { motion, useScroll, useTransform } from "motion/react";
|
|
4
|
-
import { useRef } from "react";
|
|
4
|
+
import { useEffect, useRef, useState } from "react";
|
|
5
5
|
import { Section } from "@sharadox/sharadox-web-library/component/section";
|
|
6
6
|
import { SectionHeading } from "@sharadox/sharadox-web-library/component/section-heading";
|
|
7
7
|
import { PROCESS } from "@sharadox/sharadox-web-library/content/process";
|
|
8
8
|
import { translate } from "@sharadox/internationalization-web-library/translate";
|
|
9
9
|
import { SECTION } from "@sharadox/sharadox-web-library/content/section";
|
|
10
10
|
import styles from "./index.module.css";
|
|
11
|
+
import { measureStops } from "@sharadox/sharadox-web-library/component/process/measure-stops";
|
|
11
12
|
import { Step } from "@sharadox/sharadox-web-library/component/process/step";
|
|
12
|
-
/** Four steps on a line that draws itself as you scroll through the section. */
|
|
13
|
+
/** Four steps on a line that draws itself as you scroll through the section, each dot lighting as it is reached. */
|
|
13
14
|
export function Process({ locale }) {
|
|
14
15
|
const container = useRef(null);
|
|
15
16
|
const { scrollYProgress } = useScroll({ target: container, offset: ["start 75%", "end 55%"] });
|
|
16
17
|
// How much of the line is drawn: across on wide screens, down on phones (see the styles).
|
|
17
18
|
const drawn = useTransform(scrollYProgress, [0, 1], ["0%", "100%"]);
|
|
18
19
|
const steps = PROCESS.steps;
|
|
19
|
-
|
|
20
|
+
const line = useRef(null);
|
|
21
|
+
const [stops, setStops] = useState(null);
|
|
22
|
+
useEffect(() => {
|
|
23
|
+
const measure = () => setStops(measureStops(line.current));
|
|
24
|
+
measure();
|
|
25
|
+
const observer = new ResizeObserver(measure);
|
|
26
|
+
observer.observe(container.current);
|
|
27
|
+
return () => observer.disconnect();
|
|
28
|
+
}, []);
|
|
29
|
+
return (_jsxs(Section, { id: SECTION.process.id, children: [_jsx(SectionHeading, { eyebrow: translate(PROCESS.eyebrow, locale), title: translate(PROCESS.title, locale) }), _jsxs("div", { ref: container, className: styles.process, children: [_jsx("div", { ref: line, className: styles.line, "aria-hidden": true, children: _jsx(motion.span, { style: { "--drawn": drawn } }) }), steps.map((step, index) => (_jsx(Step, { at: stops?.[index] ?? index / (steps.length - 1), progress: scrollYProgress, number: step.number, title: translate(step.title, locale), text: translate(step.text, locale) }, step.number)))] })] }));
|
|
20
30
|
}
|
|
21
31
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/process/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAsB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/process/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAsB,MAAM,OAAO,CAAC;AACxE,OAAO,EAAE,OAAO,EAAE,MAAM,kDAAkD,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,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UAAU,EAAE,CAAC;IACrC,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,OAAO,CACL,MAAC,OAAO,IAAC,EAAE,EAAE,OAAO,CAAC,OAAO,CAAC,EAAE,aAC7B,KAAC,cAAc,IAAC,OAAO,EAAE,SAAS,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,KAAK,EAAE,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,GAAI,EACxG,eAAK,GAAG,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,CAAC,OAAO,aAC5C,cAAK,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,CAAC,IAAI,iCACpC,KAAC,MAAM,CAAC,IAAI,IAAC,KAAK,EAAE,EAAE,SAAS,EAAE,KAAK,EAAmB,GAAI,GACzD,EACL,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CAC1B,KAAC,IAAI,IAEH,EAAE,EAAE,KAAK,EAAE,CAAC,KAAK,CAAC,IAAI,KAAK,GAAG,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,EAChD,QAAQ,EAAE,eAAe,EACzB,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,KAAK,EAAE,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,EACpC,IAAI,EAAE,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,IAL7B,IAAI,CAAC,MAAM,CAMhB,CACH,CAAC,IACE,IACE,CACX,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.process{align-items:stretch;position:relative;display:grid;grid-template-columns:repeat(4, 1fr);gap:24px;padding-top:34px}@media(max-width: 860px){.process{grid-template-columns:1fr;gap:44px;padding:0 0 0 30px}}.line{position:absolute;left:0;right:0;top:6px;height:1px;background:linear-gradient(90deg, var(--line-2) 50%, transparent 0) 0 0/8px 1px repeat-x}.line span{display:block;width:var(--drawn, 0%);height:100%;background:linear-gradient(90deg, color-mix(in srgb, var(--foreground) 20%, transparent), var(--foreground));box-shadow:0 0 12px color-mix(in srgb, var(--foreground) 60%, transparent)}@media(max-width: 860px){.line{left:5px;right:auto;top:0;bottom:0;width:1px;height:auto}.line span{width:100%;height:var(--drawn, 0%);background:linear-gradient(180deg, color-mix(in srgb, var(--foreground) 20%, transparent), var(--foreground))}}
|
|
1
|
+
.process{align-items:stretch;position:relative;display:grid;grid-template-columns:repeat(4, 1fr);gap:24px;padding-top:34px}@media(max-width: 860px){.process{grid-template-columns:1fr;gap:44px;padding:0 0 0 30px}}.line{align-content:start;position:absolute;left:0;right:0;top:6px;height:1px;background:linear-gradient(90deg, var(--line-2) 50%, transparent 0) 0 0/8px 1px repeat-x}.line span{display:block;width:var(--drawn, 0%);height:100%;background:linear-gradient(90deg, color-mix(in srgb, var(--foreground) 20%, transparent), var(--foreground));box-shadow:0 0 12px color-mix(in srgb, var(--foreground) 60%, transparent)}@media(max-width: 860px){.line{left:5px;right:auto;top:0;bottom:0;width:1px;height:auto}.line span{width:100%;height:var(--drawn, 0%);background:linear-gradient(180deg, color-mix(in srgb, var(--foreground) 20%, transparent), var(--foreground))}}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Where each dot sits along the line, from 0 to 1: across on wide screens, down on phones. The dots are the elements
|
|
3
|
+
* marked `data-dot` beside the line, in its parent. Null where nothing has a size yet, so the steps fall back to even
|
|
4
|
+
* spacing.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* setStops(measureStops(line)); // [0, 0.26, 0.51, 0.77] across a four-column row
|
|
8
|
+
*/
|
|
9
|
+
export declare function measureStops(line: HTMLElement): number[] | null;
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/process/measure-stops/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,WAAW,GAAG,MAAM,EAAE,GAAG,IAAI,CAU/D"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Where each dot sits along the line, from 0 to 1: across on wide screens, down on phones. The dots are the elements
|
|
3
|
+
* marked `data-dot` beside the line, in its parent. Null where nothing has a size yet, so the steps fall back to even
|
|
4
|
+
* spacing.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* setStops(measureStops(line)); // [0, 0.26, 0.51, 0.77] across a four-column row
|
|
8
|
+
*/
|
|
9
|
+
export function measureStops(line) {
|
|
10
|
+
const box = line.getBoundingClientRect();
|
|
11
|
+
const across = box.width >= box.height;
|
|
12
|
+
const length = across ? box.width : box.height;
|
|
13
|
+
if (!length)
|
|
14
|
+
return null;
|
|
15
|
+
return [...line.parentElement.querySelectorAll("[data-dot]")].map((dot) => {
|
|
16
|
+
const place = dot.getBoundingClientRect();
|
|
17
|
+
const center = across ? place.left + place.width / 2 - box.left : place.top + place.height / 2 - box.top;
|
|
18
|
+
return Math.min(1, Math.max(0, center / length));
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/process/measure-stops/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,UAAU,YAAY,CAAC,IAAiB;IAC5C,MAAM,GAAG,GAAG,IAAI,CAAC,qBAAqB,EAAE,CAAC;IACzC,MAAM,MAAM,GAAG,GAAG,CAAC,KAAK,IAAI,GAAG,CAAC,MAAM,CAAC;IACvC,MAAM,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC;IAC/C,IAAI,CAAC,MAAM;QAAE,OAAO,IAAI,CAAC;IACzB,OAAO,CAAC,GAAG,IAAI,CAAC,aAAc,CAAC,gBAAgB,CAAc,YAAY,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE;QACtF,MAAM,KAAK,GAAG,GAAG,CAAC,qBAAqB,EAAE,CAAC;QAC1C,MAAM,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC,KAAK,GAAG,CAAC,GAAG,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC;QACzG,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC;IACnD,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { StepProperties } from "@sharadox/sharadox-web-library/component/process/step/type";
|
|
2
|
-
/** One process step
|
|
3
|
-
export declare function Step({
|
|
2
|
+
/** One process step: brightens as the line nears it, and lights its dot the moment the line reaches it. */
|
|
3
|
+
export declare function Step({ at, progress, number, title, text }: StepProperties): import("react").JSX.Element;
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/process/step/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4DAA4D,CAAC;AAEjG
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/process/step/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4DAA4D,CAAC;AAEjG,2GAA2G;AAC3G,wBAAgB,IAAI,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,cAAc,+BAWzE"}
|
|
@@ -2,11 +2,10 @@
|
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { motion, useTransform } from "motion/react";
|
|
4
4
|
import styles from "./index.module.css";
|
|
5
|
-
/** One process step
|
|
6
|
-
export function Step({
|
|
7
|
-
const at = index / (count - 1);
|
|
5
|
+
/** One process step: brightens as the line nears it, and lights its dot the moment the line reaches it. */
|
|
6
|
+
export function Step({ at, progress, number, title, text }) {
|
|
8
7
|
const opacity = useTransform(progress, [Math.max(0, at - 0.25), at], [0.3, 1]);
|
|
9
|
-
const glow = useTransform(progress, [Math.max(0, at - 0.
|
|
10
|
-
return (_jsxs(motion.div, { className: styles.step, style: { opacity }, children: [_jsx(motion.span, { className: styles.dot, style: { opacity: glow }, "aria-hidden": true }), _jsx("span", { className: `monospace ${styles.number}`, children: number }), _jsx("h3", { children: title }), _jsx("p", { children: text })] }));
|
|
8
|
+
const glow = useTransform(progress, [Math.max(0, at - 0.01), at], [0, 1]);
|
|
9
|
+
return (_jsxs(motion.div, { className: styles.step, style: { opacity }, children: [_jsx(motion.span, { className: styles.dot, style: { opacity: glow }, "data-dot": true, "aria-hidden": true }), _jsx("span", { className: `monospace ${styles.number}`, children: number }), _jsx("h3", { children: title }), _jsx("p", { children: text })] }));
|
|
11
10
|
}
|
|
12
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/process/step/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/process/step/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC,2GAA2G;AAC3G,MAAM,UAAU,IAAI,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAkB;IACxE,MAAM,OAAO,GAAG,YAAY,CAAC,QAAQ,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC;IAC/E,MAAM,IAAI,GAAG,YAAY,CAAC,QAAQ,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IAC1E,OAAO,CACL,MAAC,MAAM,CAAC,GAAG,IAAC,SAAS,EAAE,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,aACpD,KAAC,MAAM,CAAC,IAAI,IAAC,SAAS,EAAE,MAAM,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,0CAAyB,EACrF,eAAM,SAAS,EAAE,aAAa,MAAM,CAAC,MAAM,EAAE,YAAG,MAAM,GAAQ,EAC9D,uBAAK,KAAK,GAAM,EAChB,sBAAI,IAAI,GAAK,IACF,CACd,CAAC;AACJ,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { MotionValue } from "motion/react";
|
|
2
2
|
export interface StepProperties {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/** How far along the line this step's dot sits, from 0 (its start) to 1 (its end). */
|
|
4
|
+
at: number;
|
|
5
5
|
progress: MotionValue<number>;
|
|
6
6
|
number: string;
|
|
7
7
|
title: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../source/component/process/step/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,MAAM,WAAW,cAAc;IAC7B,
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../source/component/process/step/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,MAAM,WAAW,cAAc;IAC7B,sFAAsF;IACtF,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.indicator{text-align:left;--page: 0;--within: 0;position:fixed;z-index:40;
|
|
1
|
+
.indicator{text-align:left;--page: 0;--within: 0;position:fixed;z-index:40;left:calc(50% + min(100% - 2*var(--gutter),var(--maximum-width))/2 + 14px);top:50%;transform:translateY(-50%);padding:14px 0;animation:enter 1s 1.2s cubic-bezier(0.22, 1, 0.36, 1) both}:global(:root[data-soft-navigation]) .indicator{animation-duration:0s !important;animation-delay:0s !important}.indicator ol{position:relative;display:grid;gap:14px;margin:0;padding:0;list-style:none}@media(max-width: 1180px){.indicator{display:none}}@keyframes enter{from{opacity:0;transform:translate(16px, -50%)}}.rail{position:absolute;right:0;top:0;bottom:0;width:1px;background:linear-gradient(180deg, var(--line-2) 50%, transparent 0) 0 0/1px 6px repeat-y}.rail span{position:absolute;inset:0 0 auto;height:calc(var(--page)*100%);background:linear-gradient(180deg, transparent, var(--foreground));box-shadow:0 0 8px color-mix(in srgb, var(--foreground) 60%, transparent)}.indicator a{position:relative;display:flex;align-items:center;justify-content:flex-end;gap:10px;height:26px;padding-right:0;color:var(--foreground-3);transition:color .3s}.indicator a:hover{color:var(--foreground)}.number{font-size:10.5px;letter-spacing:.04em;transition:color .3s}.tick{position:relative;width:12px;height:1px;background:var(--line-2);transition:width .6s cubic-bezier(0.22, 1, 0.36, 1),background .3s}.tick span{position:absolute;inset:0 auto 0 0;width:0;background:var(--foreground)}.name{position:absolute;right:64px;padding:5px 11px;border-radius:99px;border:1px solid var(--line-2);background:color-mix(in srgb, var(--background) 75%, transparent);backdrop-filter:blur(10px);color:var(--foreground);font-size:12.5px;font-weight:500;letter-spacing:-0.01em;white-space:nowrap;opacity:0;transform:translateX(8px);filter:blur(4px);pointer-events:none;transition:opacity .35s,transform .5s cubic-bezier(0.22, 1, 0.36, 1),filter .35s}.indicator:hover .name{opacity:1;transform:none;filter:none}.current{color:var(--foreground) !important}.current .tick{width:34px;background:color-mix(in srgb, var(--foreground) 25%, transparent)}.current .tick span{width:calc(var(--within)*100%);box-shadow:0 0 8px color-mix(in srgb, var(--foreground) 70%, transparent)}.current .name{animation:flash 2.2s cubic-bezier(0.22, 1, 0.36, 1) both}@keyframes flash{0%{opacity:0;transform:translateX(10px);filter:blur(4px)}15%,70%{opacity:1;transform:none;filter:none}100%{opacity:0;transform:translateX(4px);filter:blur(2px)}}.indicator:hover .current .name{animation:none}@media(max-width: 1399px){.indicator{left:calc(50% + min(100% - 2*var(--gutter),var(--maximum-width))/2 + 8px)}.number{display:none}.tick{width:8px}.current .tick{width:18px}}
|
|
@@ -7,7 +7,8 @@
|
|
|
7
7
|
--within: 0;
|
|
8
8
|
position: fixed;
|
|
9
9
|
z-index: 40;
|
|
10
|
-
|
|
10
|
+
/* Outside the grid frame: just past its right line, in the margin beside it. */
|
|
11
|
+
left: calc(50% + min(100% - 2 * var(--gutter), var(--maximum-width)) / 2 + 14px);
|
|
11
12
|
top: 50%;
|
|
12
13
|
transform: translateY(-50%);
|
|
13
14
|
padding: 14px 0;
|
|
@@ -144,3 +145,18 @@
|
|
|
144
145
|
.indicator:hover .current .name {
|
|
145
146
|
animation: none;
|
|
146
147
|
}
|
|
148
|
+
/* Where the margin beside the frame is too narrow for the numbers (under 1400px wide), ticks only, shorter. */
|
|
149
|
+
@include below(1399px) {
|
|
150
|
+
.indicator {
|
|
151
|
+
left: calc(50% + min(100% - 2 * var(--gutter), var(--maximum-width)) / 2 + 8px);
|
|
152
|
+
}
|
|
153
|
+
.number {
|
|
154
|
+
display: none;
|
|
155
|
+
}
|
|
156
|
+
.tick {
|
|
157
|
+
width: 8px;
|
|
158
|
+
}
|
|
159
|
+
.current .tick {
|
|
160
|
+
width: 18px;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Rebranding:
|
|
3
|
-
*
|
|
4
|
-
*
|
|
2
|
+
* Rebranding: one logo, before and after. A divider sways gently left and right across it: on its left the dated
|
|
3
|
+
* version (a lopsided star with a gradient, a hard drop shadow, a gloss and a chunky name), on its right the same
|
|
4
|
+
* star reimagined (even, crisp, in a fine ring, with a light name).
|
|
5
5
|
*/
|
|
6
6
|
export declare function Rebranding(): import("react").JSX.Element;
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/service-object/rebranding/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/service-object/rebranding/index.tsx"],"names":[],"mappings":"AAmBA;;;;GAIG;AACH,wBAAgB,UAAU,gCA0BzB"}
|