@sharadox/sharadox-web-library 0.49.0 → 0.51.0-development.68

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/distribution/component/button/index.d.ts +1 -1
  2. package/distribution/component/button/index.d.ts.map +1 -1
  3. package/distribution/component/button/index.js +3 -3
  4. package/distribution/component/button/index.js.map +1 -1
  5. package/distribution/component/button/type.d.ts +2 -0
  6. package/distribution/component/button/type.d.ts.map +1 -1
  7. package/distribution/component/footer/index.module.css +1 -1
  8. package/distribution/component/footer/index.module.scss +5 -1
  9. package/distribution/component/navigation/index.d.ts.map +1 -1
  10. package/distribution/component/navigation/index.js +1 -1
  11. package/distribution/component/navigation/index.js.map +1 -1
  12. package/distribution/component/navigation/index.module.css +1 -1
  13. package/distribution/component/navigation/index.module.scss +10 -3
  14. package/distribution/component/portfolio/project/index.d.ts.map +1 -1
  15. package/distribution/component/portfolio/project/index.js +2 -1
  16. package/distribution/component/portfolio/project/index.js.map +1 -1
  17. package/distribution/component/portfolio/project/index.module.css +1 -1
  18. package/distribution/component/portfolio/project/index.module.scss +2 -0
  19. package/distribution/component/project-page/index.d.ts +1 -1
  20. package/distribution/component/project-page/index.d.ts.map +1 -1
  21. package/distribution/component/project-page/index.js +3 -2
  22. package/distribution/component/project-page/index.js.map +1 -1
  23. package/distribution/component/project-page/index.module.css +1 -1
  24. package/distribution/component/project-page/index.module.scss +2 -0
  25. package/distribution/utility/project-anchor/index.d.ts +9 -0
  26. package/distribution/utility/project-anchor/index.d.ts.map +1 -0
  27. package/distribution/utility/project-anchor/index.js +11 -0
  28. package/distribution/utility/project-anchor/index.js.map +1 -0
  29. package/llms.txt +3 -0
  30. package/package.json +1 -1
@@ -3,5 +3,5 @@ import type { ButtonProperties } from "@sharadox/sharadox-web-library/component/
3
3
  * Pill button or link: solid (the foreground color) or ghost (outlined). Links to the site's own pages and sections are
4
4
  * Next.js links; email, phones and other sites are plain links that open in a new tab.
5
5
  */
6
- export declare function Button({ children, href, variant, size, arrow, disabled, className, onClick, }: ButtonProperties): import("react").JSX.Element;
6
+ export declare function Button({ children, href, variant, size, arrow, disabled, id, className, onClick, }: ButtonProperties): import("react").JSX.Element;
7
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/button/index.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sDAAsD,CAAC;AAE7F;;;GAGG;AACH,wBAAgB,MAAM,CAAC,EACrB,QAAQ,EACR,IAAI,EACJ,OAAiB,EACjB,IAAe,EACf,KAAK,EACL,QAAQ,EACR,SAAS,EACT,OAAO,GACR,EAAE,gBAAgB,+BAwBlB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/button/index.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sDAAsD,CAAC;AAE7F;;;GAGG;AACH,wBAAgB,MAAM,CAAC,EACrB,QAAQ,EACR,IAAI,EACJ,OAAiB,EACjB,IAAe,EACf,KAAK,EACL,QAAQ,EACR,EAAE,EACF,SAAS,EACT,OAAO,GACR,EAAE,gBAAgB,+BAwBlB"}
@@ -8,12 +8,12 @@ import styles from "./index.module.css";
8
8
  * Pill button or link: solid (the foreground color) or ghost (outlined). Links to the site's own pages and sections are
9
9
  * Next.js links; email, phones and other sites are plain links that open in a new tab.
10
10
  */
11
- export function Button({ children, href, variant = "solid", size = "medium", arrow, disabled, className, onClick, }) {
11
+ export function Button({ children, href, variant = "solid", size = "medium", arrow, disabled, id, className, onClick, }) {
12
12
  const names = classNames(styles.button, styles[variant], size !== "medium" && styles[size], className);
13
13
  const content = (_jsxs(_Fragment, { children: [children, arrow && _jsx(Icon, { name: "chevron-right", className: styles.arrow, strokeWidth: 1.8 })] }));
14
14
  // The site's own pages and sections go through Next.js; anything else (email, other sites) opens in a new tab.
15
15
  if (href && leavesSite(href))
16
- return (_jsx("a", { href: href, className: names, onClick: onClick, ...newTab(href), children: content }));
17
- return href ? (_jsx(SectionLink, { href: href, className: names, onClick: onClick, children: content })) : (_jsx("button", { className: names, disabled: disabled, onClick: onClick, children: content }));
16
+ return (_jsx("a", { id: id, href: href, className: names, onClick: onClick, ...newTab(href), children: content }));
17
+ return href ? (_jsx(SectionLink, { id: id, href: href, className: names, onClick: onClick, children: content })) : (_jsx("button", { className: names, disabled: disabled, onClick: onClick, children: content }));
18
18
  }
19
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/button/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,iCAAiC,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AACxE,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC;;;GAGG;AACH,MAAM,UAAU,MAAM,CAAC,EACrB,QAAQ,EACR,IAAI,EACJ,OAAO,GAAG,OAAO,EACjB,IAAI,GAAG,QAAQ,EACf,KAAK,EACL,QAAQ,EACR,SAAS,EACT,OAAO,GACU;IACjB,MAAM,KAAK,GAAG,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE,IAAI,KAAK,QAAQ,IAAI,MAAM,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC,CAAC;IACvG,MAAM,OAAO,GAAG,CACd,8BACG,QAAQ,EACR,KAAK,IAAI,KAAC,IAAI,IAAC,IAAI,EAAC,eAAe,EAAC,SAAS,EAAE,MAAM,CAAC,KAAK,EAAE,WAAW,EAAE,GAAG,GAAI,IACjF,CACJ,CAAC;IACF,+GAA+G;IAC/G,IAAI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eAAe,EAAC,SAAS,EAAE,MAAM,CAAC,KAAK,EAAE,WAAW,EAAE,GAAG,GAAI,IACjF,CACJ,CAAC;IACF,+GAA+G;IAC/G,IAAI,IAAI,IAAI,UAAU,CAAC,IAAI,CAAC;QAC1B,OAAO,CACL,YAAG,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,KAAM,MAAM,CAAC,IAAI,CAAC,YACxE,OAAO,GACN,CACL,CAAC;IACJ,OAAO,IAAI,CAAC,CAAC,CAAC,CACZ,KAAC,WAAW,IAAC,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,YAChE,OAAO,GACI,CACf,CAAC,CAAC,CAAC,CACF,iBAAQ,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,YAC3D,OAAO,GACD,CACV,CAAC;AACJ,CAAC"}
@@ -9,6 +9,8 @@ export interface ButtonProperties {
9
9
  arrow?: boolean;
10
10
  disabled?: boolean;
11
11
  onClick?: () => void;
12
+ /** The element's id, for links that lead back to it. */
13
+ id?: string;
12
14
  className?: string;
13
15
  }
14
16
  //# sourceMappingURL=type.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../source/component/button/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,SAAS,CAAC;IACpB,mDAAmD;IACnD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IAC5B,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,OAAO,CAAC;IACpC,gDAAgD;IAChD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../source/component/button/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,SAAS,CAAC;IACpB,mDAAmD;IACnD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IAC5B,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,OAAO,CAAC;IACpC,gDAAgD;IAChD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,wDAAwD;IACxD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
@@ -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{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}.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}}.social{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 6px;padding-top:6px}.social a{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;font-size:18px;color:var(--foreground-3);transition:color .2s,background-color .2s}.social a:hover,.social a:focus-visible{color:var(--foreground);background:color-mix(in srgb, var(--foreground) 10%, var(--background))}@media(max-width: 480px){.social{container-type:inline-size;width:100%;gap:0}.social a{width:min(32px,11.1111111111cqi);height:32px;font-size:17px}}.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{margin-top:22px;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)}
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}.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}.links>:last-child:nth-child(odd){grid-column:1/-1;justify-self:center}}.social{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 6px;padding-top:6px}.social a{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;font-size:18px;color:var(--foreground-3);transition:color .2s,background-color .2s}.social a:hover,.social a:focus-visible{color:var(--foreground);background:color-mix(in srgb, var(--foreground) 10%, var(--background))}@media(max-width: 480px){.social{container-type:inline-size;width:100%;gap:0}.social a{width:min(32px,11.1111111111cqi);height:32px;font-size:17px}}.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{margin-top:22px;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)}
@@ -114,7 +114,7 @@
114
114
  font-size: 12px;
115
115
  color: var(--foreground-3);
116
116
  }
117
- /* The legal links, wrapping as they need; on phones, two to a row. */
117
+ /* The legal links, wrapping as they need; on phones, two to a row, a last one on its own centered under both. */
118
118
  .links {
119
119
  align-content: flex-start;
120
120
  justify-content: center;
@@ -141,6 +141,10 @@
141
141
  display: grid;
142
142
  grid-template-columns: 1fr 1fr;
143
143
  gap: 12px 18px;
144
+ > :last-child:nth-child(odd) {
145
+ grid-column: 1 / -1;
146
+ justify-self: center;
147
+ }
144
148
  }
145
149
  }
146
150
  /* The profiles' marks, on one line, centered like everything around them. */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/navigation/index.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0DAA0D,CAAC;AAUrG;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,EAAE,MAAM,EAAE,IAAS,EAAE,EAAE,oBAAoB,+BAwFrE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/navigation/index.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0DAA0D,CAAC;AAUrG;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,EAAE,MAAM,EAAE,IAAS,EAAE,EAAE,oBAAoB,+BA2FrE"}
@@ -39,6 +39,6 @@ export function Navigation({ locale, path = "" }) {
39
39
  name: translate(section, locale),
40
40
  }));
41
41
  const contact = `${home}#${SECTION.contact.id}`;
42
- 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(SectionLink, { 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(MotionSectionLink, { 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 })] })] })) })] }));
42
+ return (_jsxs(_Fragment, { children: [_jsx("header", { className: classNames(styles.navigation, scrolled && styles.scrolled, menu.open && styles.open), ...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(SectionLink, { 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(MotionSectionLink, { 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 })] })] })) })] }));
43
43
  }
44
44
  //# 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,WAAW,EAAE,MAAM,2CAA2C,CAAC;AACxE,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,qCAAqC,CAAC;AAC9D,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,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AACzE,OAAO,EAAE,MAAM,EAAE,MAAM,+CAA+C,CAAC;AACvE,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC,MAAM,IAAI,GAAG,CAAC,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,CAAU,CAAC;AAEzC,4DAA4D;AAC5D,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;AAErD,8GAA8G;AAC9G,MAAM,IAAI,GAAG,qBAAqB,CAAC;AAEnC;;;;GAI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- .navigation{text-align:left;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: 1200px){.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{align-items:stretch;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: 1200px){.toggle{display:flex}}.menu{text-align:left;align-items:stretch;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{justify-content:flex-start;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: 1201px){.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}}
1
+ .navigation{text-align:left;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)}.open{background:rgba(0,0,0,0);backdrop-filter:none;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: 1200px){.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{align-items:stretch;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: 1200px){.toggle{display:flex}}.menu{text-align:left;align-items:stretch;position:fixed;inset: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:81px 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{justify-content:flex-start;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: 1201px){.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}}
@@ -17,6 +17,13 @@
17
17
  backdrop-filter: blur(16px) saturate(1.6);
18
18
  border-color: var(--line);
19
19
  }
20
+ /* With the menu open, the bar sits on the menu's own frosted surface, which runs from the top of the screen: one
21
+ surface, no seam, only the bar's hairline between them. */
22
+ .open {
23
+ background: transparent;
24
+ backdrop-filter: none;
25
+ border-color: var(--line);
26
+ }
20
27
  .inner {
21
28
  width: min(100% - 2 * var(--gutter), var(--maximum-width));
22
29
  margin: 0 auto;
@@ -106,12 +113,12 @@
106
113
  display: flex;
107
114
  }
108
115
  }
109
- /* The bar's frosted background, under the bar, so the two read as one. */
116
+ /* The bar's frosted background, from the top of the screen under the bar, so the two are one surface. */
110
117
  .menu {
111
118
  text-align: left;
112
119
  align-items: stretch;
113
120
  position: fixed;
114
- inset: 65px 0 0;
121
+ inset: 0;
115
122
  z-index: 49;
116
123
  overflow-y: auto;
117
124
  overscroll-behavior: contain;
@@ -119,7 +126,7 @@
119
126
  backdrop-filter: blur(16px) saturate(1.6);
120
127
  display: flex;
121
128
  flex-direction: column;
122
- padding: 16px max(var(--gutter), 20px) calc(28px + env(safe-area-inset-bottom));
129
+ padding: calc(65px + 16px) max(var(--gutter), 20px) calc(28px + env(safe-area-inset-bottom));
123
130
  /* Centered when it fits; when it doesn't (a phone held sideways), it starts at the top and scrolls. */
124
131
  > :first-child {
125
132
  margin-top: auto;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/portfolio/project/index.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iEAAiE,CAAC;AAEzG;;;GAGG;AACH,wBAAgB,OAAO,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,iBAAiB,+BA4CpE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/portfolio/project/index.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iEAAiE,CAAC;AAEzG;;;GAGG;AACH,wBAAgB,OAAO,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,iBAAiB,+BAiDpE"}
@@ -5,6 +5,7 @@ import { Screens } from "@sharadox/sharadox-web-library/component/portfolio/scre
5
5
  import { launchDate } from "@sharadox/sharadox-web-library/component/portfolio/launch-date";
6
6
  import { serviceName } from "@sharadox/sharadox-web-library/component/portfolio/service-name";
7
7
  import { PORTFOLIO } from "@sharadox/sharadox-web-library/content/portfolio";
8
+ import { projectAnchor } from "@sharadox/sharadox-web-library/utility/project-anchor";
8
9
  import styles from "./index.module.css";
9
10
  /**
10
11
  * One project: its first screen on a computer and a phone beside its story: number, launch day, client, headline,
@@ -13,6 +14,6 @@ import styles from "./index.module.css";
13
14
  export function Project({ project, index, locale }) {
14
15
  const { details } = PORTFOLIO;
15
16
  const launched = launchDate(project.date, locale);
16
- return (_jsxs("article", { className: styles.project, "aria-labelledby": `project-${project.key}`, children: [_jsx(Screens, { project: project, label: `${project.client} ${translate(PORTFOLIO.screens, locale)}` }), _jsxs("div", { className: styles.story, children: [_jsxs("p", { className: `monospace ${styles.top}`, children: [_jsx("span", { children: String(index + 1).padStart(2, "0") }), _jsx("time", { dateTime: project.date, children: launched })] }), _jsxs("h3", { id: `project-${project.key}`, children: [_jsx("span", { className: styles.client, children: project.title }), translate(project.name, locale)] }), _jsx("p", { className: styles.text, children: translate(project.text, locale) }), _jsxs("dl", { className: styles.details, children: [_jsxs("div", { children: [_jsx("dt", { children: translate(details.client, locale) }), _jsx("dd", { children: project.client })] }), _jsxs("div", { children: [_jsx("dt", { children: translate(details.place, locale) }), _jsx("dd", { children: translate(project.place, locale) })] }), _jsxs("div", { children: [_jsx("dt", { children: translate(details.launched, locale) }), _jsx("dd", { children: launched })] })] }), _jsxs("div", { className: styles.services, children: [_jsx("span", { className: `monospace ${styles.label}`, children: translate(details.services, locale) }), _jsx("ul", { children: project.services.map((service) => (_jsx("li", { children: serviceName(service, locale) }, service))) })] }), _jsx(Button, { href: `/${locale}${PORTFOLIO.path}/${project.key}`, arrow: true, className: styles.open, children: translate(PORTFOLIO.open, locale) })] })] }));
17
+ return (_jsxs("article", { className: styles.project, "aria-labelledby": `project-${project.key}`, children: [_jsx(Screens, { project: project, label: `${project.client} ${translate(PORTFOLIO.screens, locale)}` }), _jsxs("div", { className: styles.story, children: [_jsxs("p", { className: `monospace ${styles.top}`, children: [_jsx("span", { children: String(index + 1).padStart(2, "0") }), _jsx("time", { dateTime: project.date, children: launched })] }), _jsxs("h3", { id: `project-${project.key}`, children: [_jsx("span", { className: styles.client, children: project.title }), translate(project.name, locale)] }), _jsx("p", { className: styles.text, children: translate(project.text, locale) }), _jsxs("dl", { className: styles.details, children: [_jsxs("div", { children: [_jsx("dt", { children: translate(details.client, locale) }), _jsx("dd", { children: project.client })] }), _jsxs("div", { children: [_jsx("dt", { children: translate(details.place, locale) }), _jsx("dd", { children: translate(project.place, locale) })] }), _jsxs("div", { children: [_jsx("dt", { children: translate(details.launched, locale) }), _jsx("dd", { children: launched })] })] }), _jsxs("div", { className: styles.services, children: [_jsx("span", { className: `monospace ${styles.label}`, children: translate(details.services, locale) }), _jsx("ul", { children: project.services.map((service) => (_jsx("li", { children: serviceName(service, locale) }, service))) })] }), _jsx(Button, { id: projectAnchor(project.key), href: `/${locale}${PORTFOLIO.path}/${project.key}`, arrow: true, className: styles.open, children: translate(PORTFOLIO.open, locale) })] })] }));
17
18
  }
18
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/portfolio/project/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,EAAE,MAAM,EAAE,MAAM,iDAAiD,CAAC;AACzE,OAAO,EAAE,OAAO,EAAE,MAAM,4DAA4D,CAAC;AACrF,OAAO,EAAE,UAAU,EAAE,MAAM,gEAAgE,CAAC;AAC5F,OAAO,EAAE,WAAW,EAAE,MAAM,iEAAiE,CAAC;AAC9F,OAAO,EAAE,SAAS,EAAE,MAAM,kDAAkD,CAAC;AAC7E,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC;;;GAGG;AACH,MAAM,UAAU,OAAO,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAqB;IACnE,MAAM,EAAE,OAAO,EAAE,GAAG,SAAS,CAAC;IAC9B,MAAM,QAAQ,GAAG,UAAU,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IAClD,OAAO,CACL,mBAAS,SAAS,EAAE,MAAM,CAAC,OAAO,qBAAmB,WAAW,OAAO,CAAC,GAAG,EAAE,aAC3E,KAAC,OAAO,IAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC,MAAM,IAAI,SAAS,CAAC,SAAS,CAAC,OA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AAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CACjC,uBAAmB,WAAW,CAAC,OAAO,EAAE,MAAM,CAAC,IAAtC,OAAO,CAAqC,CACtD,CAAC,GACC,IACD,EACN,KAAC,MAAM,IACL,EAAE,EAAE,aAAa,CAAC,OAAO,CAAC,GAAG,CAAC,EAC9B,IAAI,EAAE,IAAI,MAAM,GAAG,SAAS,CAAC,IAAI,IAAI,OAAO,CAAC,GAAG,EAAE,EAClD,KAAK,QACL,SAAS,EAAE,MAAM,CAAC,IAAI,YAErB,SAAS,CAAC,SAAS,CAAC,IAAI,EAAE,MAAM,CAAC,GAC3B,IACL,IACE,CACX,CAAC;AACJ,CAAC"}
@@ -1 +1 @@
1
- .project{display:grid;grid-template-columns:minmax(0, 7fr) minmax(0, 5fr);align-items:stretch;justify-content:stretch;border-top:1px solid var(--line)}@media(max-width: 960px){.project{grid-template-columns:minmax(0, 1fr)}}.story{display:grid;justify-content:stretch;align-content:center;gap:22px;padding:clamp(28px,4vw,56px) var(--padding);border-left:1px solid var(--line);text-align:left}@media(max-width: 960px){.story{border-left:0;border-top:1px dashed var(--line-2)}}.top{display:flex;justify-content:space-between;font-size:12px;color:var(--foreground-3);text-transform:uppercase;letter-spacing:.04em}.project h3{display:grid;justify-content:stretch;gap:8px;font-size:clamp(1.7rem,3vw,2.4rem);font-weight:600;line-height:1.1;letter-spacing:-0.04em;text-wrap:balance}.client{font-size:13.5px;font-weight:500;letter-spacing:0;color:var(--foreground-2)}.text{color:var(--foreground-2);line-height:1.65;text-wrap:pretty}.details{display:grid;grid-template-columns:repeat(3, minmax(0, 1fr));justify-content:stretch;margin:0;border-block:1px dashed var(--line-2)}.details>div{display:grid;justify-content:stretch;align-content:start;gap:4px;padding:14px 12px 14px 0}.details>div+div{padding-left:12px;border-left:1px dashed var(--line-2)}.details dt{font-family:var(--monospace);font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:var(--foreground-3)}.details dd{margin:0;font-size:14px}.services{display:grid;justify-content:stretch;gap:10px}.services ul{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:8px;margin:0;padding:0;list-style:none}.services li{padding:6px 12px;border:1px solid var(--line-2);border-radius:99px;background:color-mix(in srgb, var(--foreground) 10%, var(--background));font-size:13px}.label{font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:var(--foreground-3)}.open{justify-self:start}
1
+ .project{display:grid;grid-template-columns:minmax(0, 7fr) minmax(0, 5fr);align-items:stretch;justify-content:stretch;border-top:1px solid var(--line)}@media(max-width: 960px){.project{grid-template-columns:minmax(0, 1fr)}}.story{display:grid;justify-content:stretch;align-content:center;gap:22px;padding:clamp(28px,4vw,56px) var(--padding);border-left:1px solid var(--line);text-align:left}@media(max-width: 960px){.story{border-left:0;border-top:1px dashed var(--line-2)}}.top{display:flex;justify-content:space-between;font-size:12px;color:var(--foreground-3);text-transform:uppercase;letter-spacing:.04em}.project h3{display:grid;justify-content:stretch;gap:8px;font-size:clamp(1.7rem,3vw,2.4rem);font-weight:600;line-height:1.1;letter-spacing:-0.04em;text-wrap:balance}.client{font-size:13.5px;font-weight:500;letter-spacing:0;color:var(--foreground-2)}.text{color:var(--foreground-2);line-height:1.65;text-wrap:pretty}.details{display:grid;grid-template-columns:repeat(3, minmax(0, 1fr));justify-content:stretch;margin:0;border-block:1px dashed var(--line-2)}.details>div{display:grid;justify-content:stretch;align-content:start;gap:4px;padding:14px 12px 14px 0}.details>div+div{padding-left:12px;border-left:1px dashed var(--line-2)}.details dt{font-family:var(--monospace);font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:var(--foreground-3)}.details dd{margin:0;font-size:14px}.services{display:grid;justify-content:stretch;gap:10px}.services ul{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:8px;margin:0;padding:0;list-style:none}.services li{padding:6px 12px;border:1px solid var(--line-2);border-radius:99px;background:color-mix(in srgb, var(--foreground) 10%, var(--background));font-size:13px}.label{font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:var(--foreground-3)}.open{justify-self:start;scroll-margin-block:calc(50svh - 28px)}
@@ -111,6 +111,8 @@
111
111
  text-transform: uppercase;
112
112
  color: var(--foreground-3);
113
113
  }
114
+ /* Coming back from the project's page, the button lands in the middle of the screen. */
114
115
  .open {
115
116
  justify-self: start;
117
+ scroll-margin-block: calc(50svh - 28px);
116
118
  }
@@ -4,7 +4,7 @@ import type { ProjectPageProperties } from "@sharadox/sharadox-web-library/compo
4
4
  * made, and the first screen on a computer and a phone. Then a word on what follows: a few of the parts we're proudest
5
5
  * of, chapter by chapter, each explained (what it is, how it works) and then running live in a window, the website's
6
6
  * own components, across the whole width of the page as on the site itself. At the end, "See it live": the site
7
- * itself, in a new tab, and the way back.
7
+ * itself, in a new tab, and the way back to the project's button in the portfolio.
8
8
  *
9
9
  * @example
10
10
  * <ProjectPage project={PORTFOLIO.projects[0]} locale="en" chapters={{ hero: <Hero locale="en" /> }} />
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/project-page/index.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4DAA4D,CAAC;AAExG;;;;;;;;;GASG;AACH,wBAAgB,WAAW,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,qBAAqB,+BAuE/E"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/project-page/index.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4DAA4D,CAAC;AAExG;;;;;;;;;GASG;AACH,wBAAgB,WAAW,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,qBAAqB,+BAuE/E"}
@@ -10,13 +10,14 @@ import { Section } from "@sharadox/sharadox-web-library/component/section";
10
10
  import { Chapter } from "@sharadox/sharadox-web-library/component/project-page/chapter";
11
11
  import { PORTFOLIO } from "@sharadox/sharadox-web-library/content/portfolio";
12
12
  import { SECTION } from "@sharadox/sharadox-web-library/content/section";
13
+ import { projectAnchor } from "@sharadox/sharadox-web-library/utility/project-anchor";
13
14
  import styles from "./index.module.css";
14
15
  /**
15
16
  * A project's own page. It opens with the project's name and the headline, the whole story, the details, the services we
16
17
  * made, and the first screen on a computer and a phone. Then a word on what follows: a few of the parts we're proudest
17
18
  * of, chapter by chapter, each explained (what it is, how it works) and then running live in a window, the website's
18
19
  * own components, across the whole width of the page as on the site itself. At the end, "See it live": the site
19
- * itself, in a new tab, and the way back.
20
+ * itself, in a new tab, and the way back to the project's button in the portfolio.
20
21
  *
21
22
  * @example
22
23
  * <ProjectPage project={PORTFOLIO.projects[0]} locale="en" chapters={{ hero: <Hero locale="en" /> }} />
@@ -25,6 +26,6 @@ export function ProjectPage({ project, locale, chapters }) {
25
26
  const { details, page } = PORTFOLIO;
26
27
  const domain = new URL(project.url).host;
27
28
  const shown = project.chapters.filter((chapter) => chapters[chapter.key]);
28
- return (_jsxs("article", { className: styles.page, children: [_jsxs(Section, { className: styles.intro, padded: false, children: [_jsxs(Reveal, { className: styles.copy, children: [_jsxs(Eyebrow, { children: [translate(SECTION.portfolio, locale), " \u00B7 ", launchDate(project.date, locale)] }), _jsxs("h1", { children: [_jsx("span", { className: styles.client, children: project.title }), translate(project.name, locale)] }), _jsx("p", { className: styles.story, children: translate(project.story, locale) }), _jsxs("dl", { className: styles.details, children: [_jsxs("div", { children: [_jsx("dt", { children: translate(details.client, locale) }), _jsx("dd", { children: project.client })] }), _jsxs("div", { children: [_jsx("dt", { children: translate(details.place, locale) }), _jsx("dd", { children: translate(project.place, locale) })] }), _jsxs("div", { children: [_jsx("dt", { children: translate(details.launched, locale) }), _jsx("dd", { children: launchDate(project.date, locale) })] })] }), _jsxs("div", { className: styles.services, children: [_jsx("span", { className: "monospace", children: translate(details.services, locale) }), _jsx("ul", { children: project.services.map((service) => (_jsx("li", { children: serviceName(service, locale) }, service))) })] })] }), _jsx(Screens, { project: project, label: `${project.client} ${translate(PORTFOLIO.screens, locale)}`, priority: true })] }), _jsxs(Section, { className: styles.lead, children: [_jsx(Eyebrow, { children: translate(page.intro.eyebrow, locale) }), _jsx("p", { className: styles.leadText, children: translate(page.intro.text, locale) })] }), shown.map((chapter, index) => (_jsx(Chapter, { number: index + 1, title: translate(chapter.title, locale), text: translate(chapter.text, locale), points: chapter.points.map((point) => translate(point, locale)), detailsLabel: translate(page.details, locale), live: `${translate(page.live, locale)} · ${domain}`, children: chapters[chapter.key] }, chapter.key))), _jsxs(Section, { className: styles.end, children: [_jsx("h2", { children: translate(page.visitTitle, locale) }), _jsxs("div", { className: styles.actions, children: [_jsxs(Button, { href: project.url, arrow: true, children: [translate(page.visit, locale), " ", domain] }), _jsx(Button, { href: `/${locale}#${SECTION.portfolio.id}`, variant: "ghost", children: translate(page.back, locale) })] })] })] }));
29
+ return (_jsxs("article", { className: styles.page, children: [_jsxs(Section, { className: styles.intro, padded: false, children: [_jsxs(Reveal, { className: styles.copy, children: [_jsxs(Eyebrow, { children: [translate(SECTION.portfolio, locale), " \u00B7 ", launchDate(project.date, locale)] }), _jsxs("h1", { children: [_jsx("span", { className: styles.client, children: project.title }), translate(project.name, locale)] }), _jsx("p", { className: styles.story, children: translate(project.story, locale) }), _jsxs("dl", { className: styles.details, children: [_jsxs("div", { children: [_jsx("dt", { children: translate(details.client, locale) }), _jsx("dd", { children: project.client })] }), _jsxs("div", { children: [_jsx("dt", { children: translate(details.place, locale) }), _jsx("dd", { children: translate(project.place, locale) })] }), _jsxs("div", { children: [_jsx("dt", { children: translate(details.launched, locale) }), _jsx("dd", { children: launchDate(project.date, locale) })] })] }), _jsxs("div", { className: styles.services, children: [_jsx("span", { className: "monospace", children: translate(details.services, locale) }), _jsx("ul", { children: project.services.map((service) => (_jsx("li", { children: serviceName(service, locale) }, service))) })] })] }), _jsx(Screens, { project: project, label: `${project.client} ${translate(PORTFOLIO.screens, locale)}`, priority: true })] }), _jsxs(Section, { className: styles.lead, children: [_jsx(Eyebrow, { children: translate(page.intro.eyebrow, locale) }), _jsx("p", { className: styles.leadText, children: translate(page.intro.text, locale) })] }), shown.map((chapter, index) => (_jsx(Chapter, { number: index + 1, title: translate(chapter.title, locale), text: translate(chapter.text, locale), points: chapter.points.map((point) => translate(point, locale)), detailsLabel: translate(page.details, locale), live: `${translate(page.live, locale)} · ${domain}`, children: chapters[chapter.key] }, chapter.key))), _jsxs(Section, { className: styles.end, children: [_jsx("h2", { children: translate(page.visitTitle, locale) }), _jsxs("div", { className: styles.actions, children: [_jsxs(Button, { href: project.url, arrow: true, children: [translate(page.visit, locale), " ", domain] }), _jsx(Button, { href: `/${locale}#${projectAnchor(project.key)}`, variant: "ghost", children: translate(page.back, locale) })] })] })] }));
29
30
  }
30
31
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/project-page/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,wCAAwC,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,EAAE,MAAM,EAAE,MAAM,iDAAiD,CAAC;AACzE,OAAO,EAAE,OAAO,EAAE,MAAM,kDAAkD,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,gEAAgE,CAAC;AAC5F,OAAO,EAAE,OAAO,EAAE,MAAM,4DAA4D,CAAC;AACrF,OAAO,EAAE,WAAW,EAAE,MAAM,iEAAiE,CAAC;AAC9F,OAAO,EAAE,OAAO,EAAE,MAAM,kDAAkD,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,+DAA+D,CAAC;AACxF,OAAO,EAAE,SAAS,EAAE,MAAM,kDAAkD,CAAC;AAC7E,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AACzE,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC;;;;;;;;;GASG;AACH,MAAM,UAAU,WAAW,CAAC,EAAE,OAAO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AAE,KAAK,EAAE,EAAE,CAAC,CAC7B,KAAC,OAAO,IAEN,MAAM,EAAE,KAAK,GAAG,CAAC,EACjB,KAAK,EAAE,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,EACvC,IAAI,EAAE,SAAS,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,EACrC,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,SAAS,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,EAC/D,YAAY,EAAE,SAAS,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,EAC7C,IAAI,EAAE,GAAG,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,MAAM,EAAE,YAElD,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,IARjB,OAAO,CAAC,GAAG,CASR,CACX,CAAC,EACF,MAAC,OAAO,IAAC,SAAS,EAAE,MAAM,CAAC,GAAG,aAC5B,uBAAK,SAAS,CAAC,IAAI,CAAC,UAAU,EAAE,MAAM,CAAC,GAAM,EAC7C,eAAK,SAAS,EAAE,MAAM,CAAC,OAAO,aAC5B,MAAC,MAAM,IAAC,IAAI,EAAE,OAAO,CAAC,GAAG,EAAE,KAAK,mBAC7B,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,OAAG,MAAM,IAChC,EACT,KAAC,MAAM,IAAC,IAAI,EAAE,IAAI,MAAM,IAAI,aAAa,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,EAAE,OAAO,EAAC,OAAO,YACtE,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,GACtB,IACL,IACE,IACF,CACX,CAAC;AACJ,CAAC"}
@@ -1 +1 @@
1
- .page{display:grid;grid-template-columns:minmax(0, 1fr)}.intro{display:grid;grid-template-columns:minmax(0, 5fr) minmax(0, 7fr);align-items:center;margin-top:64px}@media(max-width: 1000px){.intro{grid-template-columns:minmax(0, 1fr)}}.copy{display:grid;justify-content:stretch;gap:24px;padding:clamp(40px,6vw,88px) var(--padding);text-align:left}.copy h1{display:grid;gap:14px;font-size:clamp(2.4rem,5vw,4rem);line-height:1;text-wrap:balance}.client{font-size:15px;font-weight:500;letter-spacing:0;color:var(--foreground-2)}.story{color:var(--foreground-2);line-height:1.7;text-wrap:pretty}.details{display:grid;grid-template-columns:repeat(3, minmax(0, 1fr));margin:0;border-block:1px dashed var(--line-2)}.details>div{display:grid;justify-content:stretch;align-content:start;gap:4px;padding:14px 12px 14px 0}.details>div+div{padding-left:12px;border-left:1px dashed var(--line-2)}.details dt{font-family:var(--monospace);font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:var(--foreground-3)}.details dd{margin:0;font-size:14px}.services{display:grid;justify-content:stretch;gap:10px}.services>span{font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:var(--foreground-3)}.services ul{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:8px;margin:0;padding:0;list-style:none}.services li{padding:6px 12px;border:1px solid var(--line-2);border-radius:99px;background:color-mix(in srgb, var(--foreground) 10%, var(--background));font-size:13px}.end{display:grid;justify-items:center;gap:28px;text-align:center}.end h2{max-width:22ch;text-wrap:balance}.actions{display:flex;flex-wrap:wrap;gap:12px}.lead{display:grid;justify-items:start;gap:18px;border-top:1px solid var(--line);text-align:left}.lead .leadText{max-width:52ch;font-size:clamp(1.25rem,2.2vw,1.75rem);font-weight:500;line-height:1.3;letter-spacing:-0.03em;text-wrap:pretty}
1
+ .page{display:grid;grid-template-columns:minmax(0, 1fr)}.intro{display:grid;grid-template-columns:minmax(0, 5fr) minmax(0, 7fr);align-items:center;margin-top:64px}@media(max-width: 1000px){.intro{grid-template-columns:minmax(0, 1fr)}}.copy{display:grid;justify-content:stretch;gap:24px;padding:clamp(40px,6vw,88px) var(--padding);text-align:left}.copy h1{display:grid;gap:14px;font-size:clamp(2.4rem,5vw,4rem);line-height:1;text-wrap:balance}.client{font-size:15px;font-weight:500;letter-spacing:0;color:var(--foreground-2)}.story{color:var(--foreground-2);line-height:1.7;text-wrap:pretty}.details{display:grid;grid-template-columns:repeat(3, minmax(0, 1fr));margin:0;border-block:1px dashed var(--line-2)}.details>div{display:grid;justify-content:stretch;align-content:start;gap:4px;padding:14px 12px 14px 0}.details>div+div{padding-left:12px;border-left:1px dashed var(--line-2)}.details dt{font-family:var(--monospace);font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:var(--foreground-3)}.details dd{margin:0;font-size:14px}.services{display:grid;justify-content:stretch;gap:10px}.services>span{font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:var(--foreground-3)}.services ul{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:8px;margin:0;padding:0;list-style:none}.services li{padding:6px 12px;border:1px solid var(--line-2);border-radius:99px;background:color-mix(in srgb, var(--foreground) 10%, var(--background));font-size:13px}.end{display:grid;justify-items:center;gap:28px;text-align:center}.end h2{max-width:22ch;text-wrap:balance}.actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}.lead{display:grid;justify-items:start;gap:18px;border-top:1px solid var(--line);text-align:left}.lead .leadText{max-width:52ch;font-size:clamp(1.25rem,2.2vw,1.75rem);font-weight:500;line-height:1.3;letter-spacing:-0.03em;text-wrap:pretty}
@@ -108,9 +108,11 @@
108
108
  text-wrap: balance;
109
109
  }
110
110
  }
111
+ /* Centered under the title, also when they wrap onto two lines on phones. */
111
112
  .actions {
112
113
  display: flex;
113
114
  flex-wrap: wrap;
115
+ justify-content: center;
114
116
  gap: 12px;
115
117
  }
116
118
 
@@ -0,0 +1,9 @@
1
+ /**
2
+ * The id of a project's "See the Project" button in the portfolio, where its page's "Back to the Portfolio" returns,
3
+ * so the visitor lands right where they left.
4
+ *
5
+ * @example
6
+ * projectAnchor("luis-pires-decor-website-and-rebranding"); // "see-luis-pires-decor-website-and-rebranding"
7
+ */
8
+ export declare function projectAnchor(key: string): string;
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/utility/project-anchor/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,UAExC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * The id of a project's "See the Project" button in the portfolio, where its page's "Back to the Portfolio" returns,
3
+ * so the visitor lands right where they left.
4
+ *
5
+ * @example
6
+ * projectAnchor("luis-pires-decor-website-and-rebranding"); // "see-luis-pires-decor-website-and-rebranding"
7
+ */
8
+ export function projectAnchor(key) {
9
+ return `see-${key}`;
10
+ }
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/utility/project-anchor/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,UAAU,aAAa,CAAC,GAAW;IACvC,OAAO,OAAO,GAAG,EAAE,CAAC;AACtB,CAAC"}
package/llms.txt CHANGED
@@ -51,3 +51,6 @@
51
51
  - 0.46.0: Emails in Sharadox's own design: SHARADOX_EMAIL (content/email-design: black, the globe mark and name, a hairline, monospace capitals, dashed rules, a white pill, the grid frame with "+" corners; signature Algarve, Portugal · sharadox.com) for every email Sharadox sends, through sharadoxEmail(content) and sharadoxEmailImages() (utility/sharadox-email); the contact action uses it (form-web-library ^0.5.1, email-web-library ^0.4.0), its notice with a Reply button, its automatic reply with Visit sharadox.com; EMAIL_LOGO is the white globe on transparent, 60 px for 30
52
52
  - 0.47.0: renderSocialImage draws the new social images (metadata-web-library ^0.7.0): background.png (black alone) and email-card.png (the landscape headline at 256 by 144, in proportion, corners rounded)
53
53
  - 0.48.0: portfolio Screens keep the screenshot's proportions (no stretched window) and turn in depth under the pointer (pointer-web-library ^0.2.0 useParallax: scene rotation, phone nearer, glow against it, glass glare); the About feed leans towards the pointer with a soft light; the LPD project is "A lifelong craft, now easy to find." with copy about search engines and AI assistants; ProjectPage has an intro (page.intro: a few parts, explained, live), Chapter takes `points` and `detailsLabel` ("How it works"), five chapters (hero, sequence, fabric, work, booking; process gone), PORTFOLIO.page.demo for the demo form, and ends "See it live on <domain>" with the visit in a new tab; Button and every email or external link opens in a new tab (web-library ^0.8.0 newTab); footer networks centered on phones; animation-web-library ^0.2.4 lights the last scroll word fully
54
+ - 0.49.0: About feed keeps one height (its tallest tab; the log's oldest entries slip out under the bottom edge) and spans the card on phones (Feed className); style/object `float` mixin (the globe's float on translate/rotate, so it adds to transforms) used by the globe, the About feed and portfolio Screens; dashed mixin `$at`, hero shortcuts' row line dashed on phones; the LPD project is "Luis Pires Decor Website & Rebranding" (project.title; key luis-pires-decor-website-and-rebranding), headline "A craft of decades, now easy to find.", PORTFOLIO.pageTitle ("Sharadox Portfolio"), end title "See it live"; Chapter's live part runs the full page width; ContactForm phone is form-web-library PhoneField (CONTACT.country/search); email signature is just the site's address
55
+ - 0.50.0: the open phone menu runs from the top of the screen under the bar (one frosted surface; header gets `open`); ProjectPage end buttons centered
56
+ - 0.51.0: the open menu keeps the bar's hairline; footer legal links on phones center a last odd one; Button `id`; utility/project-anchor projectAnchor(key) ("see-<key>"): the card's See the Project button has it and the project page's Back to the Portfolio returns to it (scrolled to the middle of the screen)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sharadox/sharadox-web-library",
3
- "version": "0.49.0",
3
+ "version": "0.51.0-development.68",
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",