@sharadox/sharadox-web-library 0.46.0 → 0.48.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/distribution/component/about/feed/index.d.ts +3 -1
- package/distribution/component/about/feed/index.d.ts.map +1 -1
- package/distribution/component/about/feed/index.js +6 -2
- package/distribution/component/about/feed/index.js.map +1 -1
- package/distribution/component/about/feed/index.module.css +1 -1
- package/distribution/component/about/feed/index.module.scss +27 -0
- package/distribution/component/button/index.d.ts +1 -1
- package/distribution/component/button/index.d.ts.map +1 -1
- package/distribution/component/button/index.js +5 -4
- package/distribution/component/button/index.js.map +1 -1
- package/distribution/component/contact/form/index.d.ts.map +1 -1
- package/distribution/component/contact/form/index.js +2 -1
- package/distribution/component/contact/form/index.js.map +1 -1
- package/distribution/component/contact/index.d.ts.map +1 -1
- package/distribution/component/contact/index.js +2 -1
- package/distribution/component/contact/index.js.map +1 -1
- package/distribution/component/footer/index.d.ts.map +1 -1
- package/distribution/component/footer/index.js +2 -1
- 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 +2 -1
- package/distribution/component/portfolio/screens/index.d.ts +3 -1
- package/distribution/component/portfolio/screens/index.d.ts.map +1 -1
- package/distribution/component/portfolio/screens/index.js +7 -2
- package/distribution/component/portfolio/screens/index.js.map +1 -1
- package/distribution/component/portfolio/screens/index.module.css +1 -1
- package/distribution/component/portfolio/screens/index.module.scss +56 -17
- package/distribution/component/project-page/chapter/index.d.ts +3 -3
- package/distribution/component/project-page/chapter/index.d.ts.map +1 -1
- package/distribution/component/project-page/chapter/index.js +5 -4
- package/distribution/component/project-page/chapter/index.js.map +1 -1
- package/distribution/component/project-page/chapter/index.module.css +1 -1
- package/distribution/component/project-page/chapter/index.module.scss +46 -5
- package/distribution/component/project-page/chapter/type.d.ts +3 -0
- package/distribution/component/project-page/chapter/type.d.ts.map +1 -1
- package/distribution/component/project-page/index.d.ts +3 -2
- package/distribution/component/project-page/index.d.ts.map +1 -1
- package/distribution/component/project-page/index.js +4 -3
- package/distribution/component/project-page/index.js.map +1 -1
- package/distribution/component/project-page/index.module.css +1 -1
- package/distribution/component/project-page/index.module.scss +22 -1
- package/distribution/component/social-image/index.d.ts +2 -1
- package/distribution/component/social-image/index.d.ts.map +1 -1
- package/distribution/component/social-image/index.js +9 -6
- package/distribution/component/social-image/index.js.map +1 -1
- package/distribution/content/portfolio/index.d.ts +99 -31
- package/distribution/content/portfolio/index.d.ts.map +1 -1
- package/distribution/content/portfolio/index.js +111 -26
- package/distribution/content/portfolio/index.js.map +1 -1
- package/llms.txt +2 -0
- package/package.json +5 -5
|
@@ -4,7 +4,9 @@ import type { FeedProperties } from "@sharadox/sharadox-web-library/component/ab
|
|
|
4
4
|
* three tabs, Activity, Project and Client, all about one job. Once the panel is in view a pointer plays through
|
|
5
5
|
* them: the log fills, the pointer reads an entry, clicks Project, reads the budget and ticks the next task, clicks
|
|
6
6
|
* Client and reads its charts, then goes back to Activity, over and over. Out of view it stops and starts over; with
|
|
7
|
-
* less motion asked for, it rests on the full log.
|
|
7
|
+
* less motion asked for, it rests on the full log. It is a little aware of the visitor's own pointer too: the panel
|
|
8
|
+
* leans a few degrees towards it and a soft light follows it across. A picture, so it's hidden from assistive
|
|
9
|
+
* technology.
|
|
8
10
|
*/
|
|
9
11
|
export declare function Feed({ locale }: FeedProperties): import("react").JSX.Element;
|
|
10
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/about/feed/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/about/feed/index.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0DAA0D,CAAC;AAoC/F;;;;;;;;GAQG;AACH,wBAAgB,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,cAAc,+BAiI9C"}
|
|
@@ -3,6 +3,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { AnimatePresence, motion } from "motion/react";
|
|
4
4
|
import { useEffect, useLayoutEffect, useRef, useState } from "react";
|
|
5
5
|
import { Icon } from "@sharadox/icon-web-library/icon";
|
|
6
|
+
import { useParallax } from "@sharadox/pointer-web-library/parallax";
|
|
6
7
|
import { translate } from "@sharadox/internationalization-web-library/translate";
|
|
7
8
|
import { Activity } from "@sharadox/sharadox-web-library/component/about/feed/activity";
|
|
8
9
|
import { Client } from "@sharadox/sharadox-web-library/component/about/feed/client";
|
|
@@ -48,10 +49,13 @@ function placeOf(root, target) {
|
|
|
48
49
|
* three tabs, Activity, Project and Client, all about one job. Once the panel is in view a pointer plays through
|
|
49
50
|
* them: the log fills, the pointer reads an entry, clicks Project, reads the budget and ticks the next task, clicks
|
|
50
51
|
* Client and reads its charts, then goes back to Activity, over and over. Out of view it stops and starts over; with
|
|
51
|
-
* less motion asked for, it rests on the full log.
|
|
52
|
+
* less motion asked for, it rests on the full log. It is a little aware of the visitor's own pointer too: the panel
|
|
53
|
+
* leans a few degrees towards it and a soft light follows it across. A picture, so it's hidden from assistive
|
|
54
|
+
* technology.
|
|
52
55
|
*/
|
|
53
56
|
export function Feed({ locale }) {
|
|
54
57
|
const root = useRef(null);
|
|
58
|
+
const stage = useParallax(0.07);
|
|
55
59
|
const [inView, setInView] = useState(false);
|
|
56
60
|
useEffect(() => {
|
|
57
61
|
const observer = new IntersectionObserver(([entry]) => setInView(entry.isIntersecting), { threshold: 0.4 });
|
|
@@ -102,6 +106,6 @@ export function Feed({ locale }) {
|
|
|
102
106
|
if (!pointed.startsWith("tab"))
|
|
103
107
|
panel.querySelector(`[data-target="${pointed}"]`).setAttribute("data-pointed", "");
|
|
104
108
|
}, [pointed, tab, shown]);
|
|
105
|
-
return (_jsxs("div", { ref: root, className: styles.feed, "data-playing": playing || undefined,
|
|
109
|
+
return (_jsx("div", { ref: stage, className: styles.stage, "aria-hidden": true, children: _jsxs("div", { ref: root, className: styles.feed, "data-playing": playing || undefined, children: [_jsxs("div", { className: styles.header, children: [_jsxs("span", { className: styles.live, children: [_jsx("i", {}), translate(feed.live, locale)] }), _jsxs("span", { className: styles.viewing, children: [translate(feed.viewing, locale), _jsx("span", { className: styles.places, children: feed.places[locale].map((place) => (_jsx("b", { children: place }, place))) })] })] }), _jsxs("div", { className: styles.tabs, children: [feed.tabs.map((name, index) => (_jsx("span", { "data-target": `tab-${index}`, "data-active": tab === index || undefined, children: translate(name, locale) }, name.en))), _jsx("i", { className: styles.underline, style: { transform: `translateX(${tab * 100}%)` } })] }), _jsxs("div", { className: styles.panes, children: [_jsx("div", { "data-active": tab === 0 || undefined, children: _jsx(Activity, { locale: locale, shown: shown }) }), _jsx("div", { "data-active": tab === 1 || undefined, children: _jsx(Project, { locale: locale, ticked: ticked }) }), _jsx("div", { "data-active": tab === 2 || undefined, children: _jsx(Client, { locale: locale }) })] }), _jsx(AnimatePresence, { children: tip && (_jsx(motion.div, { className: styles.tip, style: { left: places.tip.x, top: places.tip.y, x: "-50%", y: "-100%" }, initial: { opacity: 0, scale: 0.92 }, animate: { opacity: 1, scale: 1 }, exit: { opacity: 0, scale: 0.96 }, transition: { duration: 0.25, ease: EASE }, children: tipFor(tip, locale) }, tip)) }), _jsxs(motion.div, { className: styles.pointer, initial: false, animate: { x: places.pointer.x, y: places.pointer.y, opacity: pointed ? 1 : 0 }, transition: { duration: 0.8, ease: EASE }, children: [_jsx(AnimatePresence, { children: pressed > 0 && (_jsx(motion.span, { className: styles.ripple, initial: { opacity: 0.9, scale: 0.3 }, animate: { opacity: 0, scale: 1.4 }, transition: { duration: 0.6 } }, pressed)) }), _jsx(Icon, { name: "pointer", strokeWidth: 1.4 })] })] }) }));
|
|
106
110
|
}
|
|
107
111
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
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KAAC,eAAe,cACb,OAAO,GAAG,CAAC,IAAI,CACd,KAAC,MAAM,CAAC,IAAI,IAEV,SAAS,EAAE,MAAM,CAAC,MAAM,EACxB,OAAO,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,EACrC,OAAO,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,EACnC,UAAU,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAE,IAJxB,OAAO,CAKZ,CACH,GACe,EAClB,KAAC,IAAI,IAAC,IAAI,EAAC,SAAS,EAAC,WAAW,EAAE,GAAG,GAAI,IAC9B,IACT,GACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.feed{box-sizing:border-box;background:color-mix(in srgb, var(--foreground) 9%, var(--background));border:1px solid color-mix(in srgb, var(--foreground) 50%, transparent);display:grid;justify-content:stretch;gap:14px;padding:18px;border-radius:14px;box-shadow:0 30px 60px -30px color-mix(in srgb, var(--foreground) 35%, transparent)}.header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;padding-bottom:12px;border-bottom:1px dashed var(--line-2);font-family:var(--monospace);font-size:11.5px;letter-spacing:.04em;text-transform:uppercase;color:var(--foreground-2)}.live{display:inline-flex;align-items:center;gap:8px}.live i{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:feed-live 2.4s infinite}@media(prefers-reduced-motion: reduce){.live i{animation:none}}@keyframes feed-live{70%{box-shadow:0 0 0 8px color-mix(in srgb, var(--foreground) 0%, transparent)}100%{box-shadow:0 0 0 0 color-mix(in srgb, var(--foreground) 0%, transparent)}}.viewing{display:inline-flex;align-items:center;gap:6px}.places{display:inline-grid;justify-items:start}.places b{grid-area:1/1;font-weight:400;color:var(--foreground);opacity:0}.places b:nth-child(1){animation:feed-place 12s cubic-bezier(0.22, 1, 0.36, 1) infinite 0s backwards}@media(prefers-reduced-motion: reduce){.places b:nth-child(1){animation:none}}.places b:nth-child(2){animation:feed-place 12s cubic-bezier(0.22, 1, 0.36, 1) infinite 3s backwards}@media(prefers-reduced-motion: reduce){.places b:nth-child(2){animation:none}}.places b:nth-child(3){animation:feed-place 12s cubic-bezier(0.22, 1, 0.36, 1) infinite 6s backwards}@media(prefers-reduced-motion: reduce){.places b:nth-child(3){animation:none}}.places b:nth-child(4){animation:feed-place 12s cubic-bezier(0.22, 1, 0.36, 1) infinite 9s backwards}@media(prefers-reduced-motion: reduce){.places b:nth-child(4){animation:none}}@media(prefers-reduced-motion: reduce){.places b:first-child{opacity:1}}@keyframes feed-place{0%{opacity:0;transform:translateY(6px)}6%,22%{opacity:1;transform:none}28%,100%{opacity:0;transform:translateY(-6px)}}.feed:not([data-playing]) *{animation-play-state:paused !important}.feed{position:relative;container-type:inline-size}.tabs{position:relative;display:grid;grid-template-columns:repeat(3, 1fr);padding-bottom:8px;border-bottom:1px solid var(--line-2);font-size:12.5px;font-weight:500}.tabs span{padding:4px 0;color:var(--foreground-3);transition:color .3s}.tabs span[data-active]{color:var(--foreground)}.underline{position:absolute;left:0;bottom:-1px;width:33.3333333333%;height:2px;background:var(--foreground);transition:transform .5s cubic-bezier(0.22, 1, 0.36, 1)}.panes{display:grid;justify-content:stretch}.panes>*{grid-area:1/1;align-self:start;opacity:0;visibility:hidden;transform:translateY(6px);transition:opacity .45s cubic-bezier(0.22, 1, 0.36, 1),transform .45s cubic-bezier(0.22, 1, 0.36, 1),visibility 0s .45s}.panes>*[data-active]{opacity:1;visibility:visible;transform:none;transition:opacity .45s cubic-bezier(0.22, 1, 0.36, 1) .1s,transform .45s cubic-bezier(0.22, 1, 0.36, 1) .1s}.pointer{position:absolute;top:0;left:0;z-index:3;width:22px;height:22px;pointer-events:none}.pointer svg{width:22px;height:22px;filter:drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45))}.pointer path{fill:var(--foreground);stroke:var(--background);stroke-width:1.4}.ripple{position:absolute;top:-12px;left:-12px;width:30px;height:30px;border:1.5px solid var(--foreground);border-radius:50%}.tip{position:absolute;z-index:2;padding:6px 10px;border-radius:8px;background:var(--foreground);color:var(--background);font-size:12px;font-weight:500;white-space:nowrap;pointer-events:none;box-shadow:0 10px 24px -10px rgba(0,0,0,.6)}.tip::after{content:"";position:absolute;left:50%;bottom:-4px;width:8px;height:8px;margin-left:-4px;background:inherit;transform:rotate(45deg)}.feed [data-target][data-pointed]{outline:1px solid color-mix(in srgb, var(--foreground) 50%, transparent);outline-offset:2px;border-radius:10px}
|
|
1
|
+
.stage{display:grid;justify-content:stretch;perspective:1400px}.feed{box-sizing:border-box;background:color-mix(in srgb, var(--foreground) 9%, var(--background));border:1px solid color-mix(in srgb, var(--foreground) 50%, transparent);position:relative;transform:rotateX(calc(var(--parallax-y, 0) * -3deg)) rotateY(calc(var(--parallax-x, 0) * 4deg))}.feed::after{content:"";position:absolute;inset:0;border-radius:inherit;background:radial-gradient(420px circle at calc(50% + var(--parallax-x, 0) * 50%) calc(50% + var(--parallax-y, 0) * 50%), color-mix(in srgb, var(--foreground) 9%, transparent), transparent 70%);opacity:var(--parallax-hover, 0);pointer-events:none}@media(prefers-reduced-motion: reduce){.feed{transform:none}}.feed{display:grid;justify-content:stretch;gap:14px;padding:18px;border-radius:14px;box-shadow:0 30px 60px -30px color-mix(in srgb, var(--foreground) 35%, transparent)}.header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;padding-bottom:12px;border-bottom:1px dashed var(--line-2);font-family:var(--monospace);font-size:11.5px;letter-spacing:.04em;text-transform:uppercase;color:var(--foreground-2)}.live{display:inline-flex;align-items:center;gap:8px}.live i{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:feed-live 2.4s infinite}@media(prefers-reduced-motion: reduce){.live i{animation:none}}@keyframes feed-live{70%{box-shadow:0 0 0 8px color-mix(in srgb, var(--foreground) 0%, transparent)}100%{box-shadow:0 0 0 0 color-mix(in srgb, var(--foreground) 0%, transparent)}}.viewing{display:inline-flex;align-items:center;gap:6px}.places{display:inline-grid;justify-items:start}.places b{grid-area:1/1;font-weight:400;color:var(--foreground);opacity:0}.places b:nth-child(1){animation:feed-place 12s cubic-bezier(0.22, 1, 0.36, 1) infinite 0s backwards}@media(prefers-reduced-motion: reduce){.places b:nth-child(1){animation:none}}.places b:nth-child(2){animation:feed-place 12s cubic-bezier(0.22, 1, 0.36, 1) infinite 3s backwards}@media(prefers-reduced-motion: reduce){.places b:nth-child(2){animation:none}}.places b:nth-child(3){animation:feed-place 12s cubic-bezier(0.22, 1, 0.36, 1) infinite 6s backwards}@media(prefers-reduced-motion: reduce){.places b:nth-child(3){animation:none}}.places b:nth-child(4){animation:feed-place 12s cubic-bezier(0.22, 1, 0.36, 1) infinite 9s backwards}@media(prefers-reduced-motion: reduce){.places b:nth-child(4){animation:none}}@media(prefers-reduced-motion: reduce){.places b:first-child{opacity:1}}@keyframes feed-place{0%{opacity:0;transform:translateY(6px)}6%,22%{opacity:1;transform:none}28%,100%{opacity:0;transform:translateY(-6px)}}.feed:not([data-playing]) *{animation-play-state:paused !important}.feed{position:relative;container-type:inline-size}.tabs{position:relative;display:grid;grid-template-columns:repeat(3, 1fr);padding-bottom:8px;border-bottom:1px solid var(--line-2);font-size:12.5px;font-weight:500}.tabs span{padding:4px 0;color:var(--foreground-3);transition:color .3s}.tabs span[data-active]{color:var(--foreground)}.underline{position:absolute;left:0;bottom:-1px;width:33.3333333333%;height:2px;background:var(--foreground);transition:transform .5s cubic-bezier(0.22, 1, 0.36, 1)}.panes{display:grid;justify-content:stretch}.panes>*{grid-area:1/1;align-self:start;opacity:0;visibility:hidden;transform:translateY(6px);transition:opacity .45s cubic-bezier(0.22, 1, 0.36, 1),transform .45s cubic-bezier(0.22, 1, 0.36, 1),visibility 0s .45s}.panes>*[data-active]{opacity:1;visibility:visible;transform:none;transition:opacity .45s cubic-bezier(0.22, 1, 0.36, 1) .1s,transform .45s cubic-bezier(0.22, 1, 0.36, 1) .1s}.pointer{position:absolute;top:0;left:0;z-index:3;width:22px;height:22px;pointer-events:none}.pointer svg{width:22px;height:22px;filter:drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45))}.pointer path{fill:var(--foreground);stroke:var(--background);stroke-width:1.4}.ripple{position:absolute;top:-12px;left:-12px;width:30px;height:30px;border:1.5px solid var(--foreground);border-radius:50%}.tip{position:absolute;z-index:2;padding:6px 10px;border-radius:8px;background:var(--foreground);color:var(--background);font-size:12px;font-weight:500;white-space:nowrap;pointer-events:none;box-shadow:0 10px 24px -10px rgba(0,0,0,.6)}.tip::after{content:"";position:absolute;left:50%;bottom:-4px;width:8px;height:8px;margin-left:-4px;background:inherit;transform:rotate(45deg)}.feed [data-target][data-pointed]{outline:1px solid color-mix(in srgb, var(--foreground) 50%, transparent);outline-offset:2px;border-radius:10px}
|
|
@@ -5,8 +5,35 @@
|
|
|
5
5
|
$places: 4;
|
|
6
6
|
$place: 3s;
|
|
7
7
|
|
|
8
|
+
/* The panel's surroundings: depth for it to lean in, towards the visitor's pointer (useParallax). */
|
|
9
|
+
$x: var(--parallax-x, 0);
|
|
10
|
+
$y: var(--parallax-y, 0);
|
|
11
|
+
.stage {
|
|
12
|
+
display: grid;
|
|
13
|
+
justify-content: stretch;
|
|
14
|
+
perspective: 1400px;
|
|
15
|
+
}
|
|
8
16
|
.feed {
|
|
9
17
|
@include face;
|
|
18
|
+
position: relative;
|
|
19
|
+
transform: rotateX(calc(#{$y} * -3deg)) rotateY(calc(#{$x} * 4deg));
|
|
20
|
+
/* A soft light where the pointer is, fading in while it's over the panel. */
|
|
21
|
+
&::after {
|
|
22
|
+
content: "";
|
|
23
|
+
position: absolute;
|
|
24
|
+
inset: 0;
|
|
25
|
+
border-radius: inherit;
|
|
26
|
+
background: radial-gradient(
|
|
27
|
+
420px circle at calc(50% + #{$x} * 50%) calc(50% + #{$y} * 50%),
|
|
28
|
+
tint(9%),
|
|
29
|
+
transparent 70%
|
|
30
|
+
);
|
|
31
|
+
opacity: var(--parallax-hover, 0);
|
|
32
|
+
pointer-events: none;
|
|
33
|
+
}
|
|
34
|
+
@media (prefers-reduced-motion: reduce) {
|
|
35
|
+
transform: none;
|
|
36
|
+
}
|
|
10
37
|
display: grid;
|
|
11
38
|
justify-content: stretch;
|
|
12
39
|
gap: 14px;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ButtonProperties } from "@sharadox/sharadox-web-library/component/button/type";
|
|
2
2
|
/**
|
|
3
3
|
* Pill button or link: solid (the foreground color) or ghost (outlined). Links to the site's own pages and sections are
|
|
4
|
-
* Next.js links; email and other sites are plain links.
|
|
4
|
+
* Next.js links; email, phones and other sites are plain links that open in a new tab.
|
|
5
5
|
*/
|
|
6
6
|
export declare function Button({ children, href, variant, size, arrow, disabled, 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":"
|
|
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"}
|
|
@@ -2,17 +2,18 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
2
2
|
import { Icon } from "@sharadox/icon-web-library/icon";
|
|
3
3
|
import { SectionLink } from "@sharadox/scroll-web-library/section-link";
|
|
4
4
|
import { classNames } from "@sharadox/web-library/class-name";
|
|
5
|
+
import { leavesSite, newTab } from "@sharadox/web-library/navigation/new-tab";
|
|
5
6
|
import styles from "./index.module.css";
|
|
6
7
|
/**
|
|
7
8
|
* Pill button or link: solid (the foreground color) or ghost (outlined). Links to the site's own pages and sections are
|
|
8
|
-
* Next.js links; email and other sites are plain links.
|
|
9
|
+
* Next.js links; email, phones and other sites are plain links that open in a new tab.
|
|
9
10
|
*/
|
|
10
11
|
export function Button({ children, href, variant = "solid", size = "medium", arrow, disabled, className, onClick, }) {
|
|
11
12
|
const names = classNames(styles.button, styles[variant], size !== "medium" && styles[size], className);
|
|
12
13
|
const content = (_jsxs(_Fragment, { children: [children, arrow && _jsx(Icon, { name: "chevron-right", className: styles.arrow, strokeWidth: 1.8 })] }));
|
|
13
|
-
// The site's own pages and sections go through Next.js; anything else (email, other sites)
|
|
14
|
-
if (href &&
|
|
15
|
-
return (_jsx("a", { href: href, className: names, onClick: onClick, children: content }));
|
|
14
|
+
// The site's own pages and sections go through Next.js; anything else (email, other sites) opens in a new tab.
|
|
15
|
+
if (href && leavesSite(href))
|
|
16
|
+
return (_jsx("a", { href: href, className: names, onClick: onClick, ...newTab(href), children: content }));
|
|
16
17
|
return href ? (_jsx(SectionLink, { href: href, className: names, onClick: onClick, children: content })) : (_jsx("button", { className: names, disabled: disabled, onClick: onClick, children: content }));
|
|
17
18
|
}
|
|
18
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,MAAM,MAAM,qBAAqB,CAAC;AAGzC;;;GAGG;AACH,MAAM,UAAU,MAAM,CAAC,EACrB,QAAQ,EAC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AAM,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,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,KAAM,MAAM,CAAC,IAAI,CAAC,YAChE,OAAO,GACN,CACL,CAAC;IACJ,OAAO,IAAI,CAAC,CAAC,CAAC,CACZ,KAAC,WAAW,IAAC,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,YACxD,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/contact/form/index.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4DAA4D,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/contact/form/index.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4DAA4D,CAAC;AAGxG;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,qBAAqB,+BA2LhF"}
|
|
@@ -12,6 +12,7 @@ import { CONTACT_NEED_EVENT } from "@sharadox/sharadox-web-library/utility/conta
|
|
|
12
12
|
import { Chip } from "@sharadox/sharadox-web-library/component/contact/form/chip";
|
|
13
13
|
import { contactProblems } from "@sharadox/sharadox-web-library/utility/contact-problem";
|
|
14
14
|
import styles from "./index.module.css";
|
|
15
|
+
import { newTab } from "@sharadox/web-library/navigation/new-tab";
|
|
15
16
|
/**
|
|
16
17
|
* The enquiry form: name, company, email and phone (one of them is enough), the choices grouped like the services, and
|
|
17
18
|
* a message. On wide screens, the visitor's details, the message and the send button on the left, the choices on the
|
|
@@ -86,6 +87,6 @@ export function ContactForm({ locale, action: sendAction }) {
|
|
|
86
87
|
}, onChange: (event) => {
|
|
87
88
|
if (problems)
|
|
88
89
|
setProblems(contactProblems(new FormData(event.currentTarget)));
|
|
89
|
-
}, className: styles.form, exit: { opacity: 0, scale: 0.98 }, children: [_jsx("input", { type: "hidden", name: "started-at", defaultValue: "0" }), _jsx("input", { type: "hidden", name: "page", defaultValue: "" }), _jsx("input", { type: "hidden", name: "locale", value: locale }), _jsx("div", { className: styles.honeypot, "aria-hidden": true, children: _jsxs("label", { children: ["Website", _jsx("input", { name: "website", tabIndex: -1, autoComplete: "off" })] }) }), _jsxs("div", { className: styles.about, children: [_jsxs("div", { className: styles.row, children: [_jsxs("label", { className: styles.field, children: [_jsx("span", { children: translate(CONTACT.name, locale) }), _jsx("input", { name: "name", required: true, autoComplete: "name", maxLength: 120, ...described("name") }), problem("name")] }), _jsxs("label", { className: styles.field, children: [_jsx("span", { children: translate(CONTACT.company, locale) }), _jsx("input", { name: "company", autoComplete: "organization", maxLength: 160 })] })] }), _jsxs("label", { className: styles.field, children: [_jsx("span", { children: translate(CONTACT.email, locale) }), _jsx("input", { name: "email", type: "email", autoComplete: "email", maxLength: 200, ...described("reach", "email") }), problem("email")] }), _jsxs("label", { className: styles.field, children: [_jsx("span", { children: translate(CONTACT.phone, locale) }), _jsx("input", { name: "phone", type: "tel", autoComplete: "tel", maxLength: 40, ...described("reach", "phone") }), problem("phone")] }), has("reach") ? problem("reach") : _jsx("span", { className: styles.hint, children: translate(CONTACT.reach, locale) })] }), _jsxs("fieldset", { ref: needs, className: styles.services, "data-invalid": has("needs") || undefined, "aria-describedby": has("needs") ? "contact-needs-problem" : undefined, children: [_jsx("legend", { children: translate(CONTACT.needs.label, locale) }), CONTACT.needs.groups.map((group) => (_jsxs("div", { className: styles.group, role: "group", "aria-label": translate(group.title, locale), children: [_jsx("span", { className: "monospace", children: translate(group.title, locale) }), group.options.map((need) => (_jsx(Chip, { need: need.key, label: need[locale] }, need.key)))] }, group.key))), _jsxs("div", { className: styles.group, role: "group", "aria-label": translate(CONTACT.needs.unsure.title, locale), children: [_jsx("span", { className: "monospace", children: translate(CONTACT.needs.unsure.title, locale) }), CONTACT.needs.unsure.options.map((need) => (_jsx(Chip, { need: need.key, label: need[locale] }, need.key)))] }), problem("needs")] }), _jsxs("label", { className: `${styles.field} ${styles.message}`, children: [_jsx("span", { children: translate(CONTACT.message, locale) }), _jsx("textarea", { name: "message", required: true, rows: 5, minLength: CONTACT.minimumMessageLength, maxLength: 5000, ...described("message") }), problem("message")] }), _jsxs("div", { className: styles.submit, children: [state.status !== "idle" && (_jsx("p", { className: styles.error, role: "alert", children: state.status === "failed" ? (_jsxs(_Fragment, { children: [translate(CONTACT.errors.failed, locale), " ", _jsx("a", { href: `mailto:${SITE.email}`, children: SITE.email }), "."] })) : (translate(CONTACT.errors[state.status], locale)) })), _jsx(Button, { size: "block", disabled: pending, arrow: !pending, children: pending ? translate(CONTACT.sending, locale) : translate(CONTACT.send, locale) })] })] }, "form")) }));
|
|
90
|
+
}, className: styles.form, exit: { opacity: 0, scale: 0.98 }, children: [_jsx("input", { type: "hidden", name: "started-at", defaultValue: "0" }), _jsx("input", { type: "hidden", name: "page", defaultValue: "" }), _jsx("input", { type: "hidden", name: "locale", value: locale }), _jsx("div", { className: styles.honeypot, "aria-hidden": true, children: _jsxs("label", { children: ["Website", _jsx("input", { name: "website", tabIndex: -1, autoComplete: "off" })] }) }), _jsxs("div", { className: styles.about, children: [_jsxs("div", { className: styles.row, children: [_jsxs("label", { className: styles.field, children: [_jsx("span", { children: translate(CONTACT.name, locale) }), _jsx("input", { name: "name", required: true, autoComplete: "name", maxLength: 120, ...described("name") }), problem("name")] }), _jsxs("label", { className: styles.field, children: [_jsx("span", { children: translate(CONTACT.company, locale) }), _jsx("input", { name: "company", autoComplete: "organization", maxLength: 160 })] })] }), _jsxs("label", { className: styles.field, children: [_jsx("span", { children: translate(CONTACT.email, locale) }), _jsx("input", { name: "email", type: "email", autoComplete: "email", maxLength: 200, ...described("reach", "email") }), problem("email")] }), _jsxs("label", { className: styles.field, children: [_jsx("span", { children: translate(CONTACT.phone, locale) }), _jsx("input", { name: "phone", type: "tel", autoComplete: "tel", maxLength: 40, ...described("reach", "phone") }), problem("phone")] }), has("reach") ? problem("reach") : _jsx("span", { className: styles.hint, children: translate(CONTACT.reach, locale) })] }), _jsxs("fieldset", { ref: needs, className: styles.services, "data-invalid": has("needs") || undefined, "aria-describedby": has("needs") ? "contact-needs-problem" : undefined, children: [_jsx("legend", { children: translate(CONTACT.needs.label, locale) }), CONTACT.needs.groups.map((group) => (_jsxs("div", { className: styles.group, role: "group", "aria-label": translate(group.title, locale), children: [_jsx("span", { className: "monospace", children: translate(group.title, locale) }), group.options.map((need) => (_jsx(Chip, { need: need.key, label: need[locale] }, need.key)))] }, group.key))), _jsxs("div", { className: styles.group, role: "group", "aria-label": translate(CONTACT.needs.unsure.title, locale), children: [_jsx("span", { className: "monospace", children: translate(CONTACT.needs.unsure.title, locale) }), CONTACT.needs.unsure.options.map((need) => (_jsx(Chip, { need: need.key, label: need[locale] }, need.key)))] }), problem("needs")] }), _jsxs("label", { className: `${styles.field} ${styles.message}`, children: [_jsx("span", { children: translate(CONTACT.message, locale) }), _jsx("textarea", { name: "message", required: true, rows: 5, minLength: CONTACT.minimumMessageLength, maxLength: 5000, ...described("message") }), problem("message")] }), _jsxs("div", { className: styles.submit, children: [state.status !== "idle" && (_jsx("p", { className: styles.error, role: "alert", children: state.status === "failed" ? (_jsxs(_Fragment, { children: [translate(CONTACT.errors.failed, locale), " ", _jsx("a", { href: `mailto:${SITE.email}`, ...newTab(`mailto:${SITE.email}`), children: SITE.email }), "."] })) : (translate(CONTACT.errors[state.status], locale)) })), _jsx(Button, { size: "block", disabled: pending, arrow: !pending, children: pending ? translate(CONTACT.sending, locale) : translate(CONTACT.send, locale) })] })] }, "form")) }));
|
|
90
91
|
}
|
|
91
92
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/contact/form/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,8CAA8C,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEpE,OAAO,EAAE,MAAM,EAAE,MAAM,iDAAiD,CAAC;AACzE,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AACzE,OAAO,EAAE,IAAI,EAAE,MAAM,6CAA6C,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,EAAE,kBAAkB,EAAE,MAAM,qDAAqD,CAAC;AACzF,OAAO,EAAE,IAAI,EAAE,MAAM,4DAA4D,CAAC;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,wDAAwD,CAAC;AAEzF,OAAO,MAAM,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/contact/form/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,8CAA8C,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEpE,OAAO,EAAE,MAAM,EA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AE,UAAU,IAAI,CAAC,KAAK,EAAE,KAAM,MAAM,CAAC,UAAU,IAAI,CAAC,KAAK,EAAE,CAAC,YAChE,IAAI,CAAC,KAAK,GACT,SAEH,CACJ,CAAC,CAAC,CAAC,CACF,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAChD,GACC,CACL,EACD,KAAC,MAAM,IAAC,IAAI,EAAC,OAAO,EAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,OAAO,YACpD,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,GACxE,IACL,KAhHF,MAAM,CAiHE,CACf,GACe,CACnB,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/contact/index.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uDAAuD,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/contact/index.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uDAAuD,CAAC;AAG/F,sHAAsH;AACtH,wBAAgB,OAAO,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,iBAAiB,+BAoB5D"}
|
|
@@ -8,8 +8,9 @@ import { translate } from "@sharadox/internationalization-web-library/translate"
|
|
|
8
8
|
import { ContactForm } from "@sharadox/sharadox-web-library/component/contact/form";
|
|
9
9
|
import { SECTION } from "@sharadox/sharadox-web-library/content/section";
|
|
10
10
|
import styles from "./index.module.css";
|
|
11
|
+
import { newTab } from "@sharadox/web-library/navigation/new-tab";
|
|
11
12
|
/** Contact section: the invitation on the left and the direct email on the right, the form across both under them. */
|
|
12
13
|
export function Contact({ locale, action }) {
|
|
13
|
-
return (_jsxs(Section, { id: SECTION.contact.id, className: styles.contact, children: [_jsx("div", { className: styles.glow, "aria-hidden": true }), _jsxs(Reveal, { className: styles.heading, children: [_jsx(Eyebrow, { children: translate(SECTION.contact, locale) }), _jsx("h2", { children: translate(CONTACT.title, locale) }), _jsx("p", { className: styles.text, children: translate(CONTACT.text, locale) })] }), _jsxs(Reveal, { delay: 0.05, className: styles.direct, children: [_jsx("span", { className: "monospace", children: translate(CONTACT.direct, locale) }), _jsx("a", { href: `mailto:${SITE.email}`, children: SITE.email })] }), _jsx(Reveal, { delay: 0.1, className: styles.form, children: _jsx(ContactForm, { locale: locale, action: action }) })] }));
|
|
14
|
+
return (_jsxs(Section, { id: SECTION.contact.id, className: styles.contact, children: [_jsx("div", { className: styles.glow, "aria-hidden": true }), _jsxs(Reveal, { className: styles.heading, children: [_jsx(Eyebrow, { children: translate(SECTION.contact, locale) }), _jsx("h2", { children: translate(CONTACT.title, locale) }), _jsx("p", { className: styles.text, children: translate(CONTACT.text, locale) })] }), _jsxs(Reveal, { delay: 0.05, className: styles.direct, children: [_jsx("span", { className: "monospace", children: translate(CONTACT.direct, locale) }), _jsx("a", { href: `mailto:${SITE.email}`, ...newTab(`mailto:${SITE.email}`), children: SITE.email })] }), _jsx(Reveal, { delay: 0.1, className: styles.form, children: _jsx(ContactForm, { locale: locale, action: action }) })] }));
|
|
14
15
|
}
|
|
15
16
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/contact/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kDAAkD,CAAC;AAC3E,OAAO,EAAE,MAAM,EAAE,MAAM,wCAAwC,CAAC;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,kDAAkD,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CA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,KAAK,EAAE,MAAM,CAAC,GAAM,EAC3C,YAAG,SAAS,EAAE,MAAM,CAAC,IAAI,YAAG,SAAS,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,GAAK,IACzD,EACT,MAAC,MAAM,IAAC,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,CAAC,MAAM,aAC3C,eAAM,SAAS,EAAC,WAAW,YAAE,SAAS,CAAC,OAAO,CAAC,MAAM,EAAE,MAAM,CAAC,GAAQ,EACtE,YAAG,IAAI,EAAE,UAAU,IAAI,CAAC,KAAK,EAAE,KAAM,MAAM,CAAC,UAAU,IAAI,CAAC,KAAK,EAAE,CAAC,YAChE,IAAI,CAAC,KAAK,GACT,IACG,EACT,KAAC,MAAM,IAAC,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,CAAC,IAAI,YACxC,KAAC,WAAW,IAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAI,GACxC,IACD,CACX,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/footer/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/footer/index.tsx"],"names":[],"mappings":"AA8BA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sDAAsD,CAAC;AAE7F;;;;;GAKG;AACH,wBAAgB,MAAM,CAAC,EAAE,MAAM,EAAE,IAAS,EAAE,EAAE,gBAAgB,+BA4F7D"}
|
|
@@ -3,6 +3,7 @@ import { SectionLink } from "@sharadox/scroll-web-library/section-link";
|
|
|
3
3
|
import Link from "next/link";
|
|
4
4
|
import { Icon } from "@sharadox/icon-web-library/icon";
|
|
5
5
|
import { BrandIcon } from "@sharadox/icon-web-library/brand-icon";
|
|
6
|
+
import { newTab } from "@sharadox/web-library/navigation/new-tab";
|
|
6
7
|
import { separate } from "@sharadox/sharadox-web-library/utility/separate";
|
|
7
8
|
import { translate } from "@sharadox/internationalization-web-library/translate";
|
|
8
9
|
import { Cross } from "@sharadox/sharadox-web-library/component/cross";
|
|
@@ -44,6 +45,6 @@ export function Footer({ locale, path = "" }) {
|
|
|
44
45
|
SECTION.faq,
|
|
45
46
|
SECTION.contact,
|
|
46
47
|
];
|
|
47
|
-
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(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 }) })] })] })] }), _jsxs("div", { className: styles.legal, children: [_jsxs("p", { className: `monospace ${styles.copyright}`, children: ["\u00A9 ", _jsx(CopyrightYears, { since: FOUNDED }), " ", separate("Sharadox", translate(FOOTER.rights, locale))] }), _jsx("p", { className: styles.disputes, children: _jsx(DisputeNotice, { center: DISPUTE_RESOLUTION_CENTERS.algarve, locale: locale }) }), _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 }), _jsx("a", { href: GOOGLE_REVIEW, children: translate(FOOTER.review, locale) })] }), _jsx("nav", { "aria-label": translate(FOOTER.social, locale), className: styles.social, children: SOCIAL.map((profile) => (_jsx("a", { href: profile.url, target: "_blank", rel: "noopener noreferrer me", children: _jsx(BrandIcon, { name: profile.icon, label: profile.name }) }, profile.icon))) })] })] }));
|
|
48
|
+
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}`, ...newTab(`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(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 }) })] })] })] }), _jsxs("div", { className: styles.legal, children: [_jsxs("p", { className: `monospace ${styles.copyright}`, children: ["\u00A9 ", _jsx(CopyrightYears, { since: FOUNDED }), " ", separate("Sharadox", translate(FOOTER.rights, locale))] }), _jsx("p", { className: styles.disputes, children: _jsx(DisputeNotice, { center: DISPUTE_RESOLUTION_CENTERS.algarve, locale: locale }) }), _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 }), _jsx("a", { href: GOOGLE_REVIEW, ...newTab(GOOGLE_REVIEW), children: translate(FOOTER.review, locale) })] }), _jsx("nav", { "aria-label": translate(FOOTER.social, locale), className: styles.social, children: SOCIAL.map((profile) => (_jsx("a", { href: profile.url, target: "_blank", rel: "noopener noreferrer me", children: _jsx(BrandIcon, { name: profile.icon, label: profile.name }) }, profile.icon))) })] })] }));
|
|
48
49
|
}
|
|
49
50
|
//# 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,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAClE,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,mDAAmD,CAAC;AAC7E,OAAO,EAAE,MAAM,EAAE,MAAM,iDAAiD,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,mEAAmE,CAAC;AACpG,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kDAAkD,CAAC;AACtF,OAAO,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAC3E,OAAO,EAAE,0BAA0B,EAAE,MAAM,gDAAgD,CAAC;AAC5F,OAAO,EAAE,MAAM,EAAE,MAAM,+CAA+C,CAAC;AACvE,OAAO,EAAE,MAAM,EAAE,MAAM,+CAA+C,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,MAAM,gDAAgD,CAAC;AAC9E,OAAO,EAAE,OAAO,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AAI,CAEhB,CACL,CAAC,GACE,IACF,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{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;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}}.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)}
|
|
@@ -143,10 +143,11 @@
|
|
|
143
143
|
gap: 12px 18px;
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
|
-
/* The profiles' marks, on one line. */
|
|
146
|
+
/* The profiles' marks, on one line, centered like everything around them. */
|
|
147
147
|
.social {
|
|
148
148
|
display: flex;
|
|
149
149
|
flex-wrap: wrap;
|
|
150
|
+
justify-content: center;
|
|
150
151
|
gap: 4px 6px;
|
|
151
152
|
padding-top: 6px;
|
|
152
153
|
a {
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type { ScreensProperties } from "@sharadox/sharadox-web-library/component/portfolio/screens/type";
|
|
2
2
|
/**
|
|
3
3
|
* The project's first screen, on a computer and on a phone: a browser window, slightly turned, with a phone standing
|
|
4
|
-
* in front of it
|
|
4
|
+
* in front of it. Under the pointer the whole scene turns to face it and follows it in depth: the phone, nearer,
|
|
5
|
+
* moves more than the window, the glow behind moves the other way, and a soft glare slides across both screens. The
|
|
6
|
+
* window keeps the screenshot's own proportions, so it is never taller than the page it shows.
|
|
5
7
|
*/
|
|
6
8
|
export declare function Screens({ project, label, priority }: ScreensProperties): import("react").JSX.Element;
|
|
7
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/portfolio/screens/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/portfolio/screens/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iEAAiE,CAAC;AAEzG;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,iBAAiB,+BA4CtE"}
|
|
@@ -1,13 +1,18 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
3
|
import Image from "next/image";
|
|
4
|
+
import { useParallax } from "@sharadox/pointer-web-library/parallax";
|
|
3
5
|
import styles from "./index.module.css";
|
|
4
6
|
/**
|
|
5
7
|
* The project's first screen, on a computer and on a phone: a browser window, slightly turned, with a phone standing
|
|
6
|
-
* in front of it
|
|
8
|
+
* in front of it. Under the pointer the whole scene turns to face it and follows it in depth: the phone, nearer,
|
|
9
|
+
* moves more than the window, the glow behind moves the other way, and a soft glare slides across both screens. The
|
|
10
|
+
* window keeps the screenshot's own proportions, so it is never taller than the page it shows.
|
|
7
11
|
*/
|
|
8
12
|
export function Screens({ project, label, priority }) {
|
|
9
13
|
const { computer, phone } = project.screens;
|
|
10
14
|
const domain = new URL(project.url).host;
|
|
11
|
-
|
|
15
|
+
const stage = useParallax(0.08);
|
|
16
|
+
return (_jsxs("div", { ref: stage, className: styles.stage, role: "img", "aria-label": label, children: [_jsx("div", { className: styles.glow, "aria-hidden": true }), _jsxs("div", { className: styles.scene, "aria-hidden": true, children: [_jsxs("div", { className: styles.browser, children: [_jsxs("div", { className: styles.bar, children: [_jsxs("span", { className: styles.dots, children: [_jsx("i", {}), _jsx("i", {}), _jsx("i", {})] }), _jsx("span", { className: `monospace ${styles.address}`, children: domain })] }), _jsx("div", { className: styles.viewport, style: { aspectRatio: `${computer.width} / ${computer.height}` }, children: _jsx(Image, { src: computer.src, width: computer.width, height: computer.height, alt: "", sizes: "(min-width: 960px) 760px, 100vw", priority: priority, className: styles.page }) })] }), _jsx("div", { className: styles.phone, children: _jsx("div", { className: styles.viewport, children: _jsx(Image, { src: phone.src, width: phone.width, height: phone.height, alt: "", sizes: "220px", className: styles.page }) }) })] })] }));
|
|
12
17
|
}
|
|
13
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/portfolio/screens/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,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,CAAC,MAAM,EACvB,GAAG,EAAC,EAAE,EACN,KAAK,EAAC,iCAAiC,EACvC,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,MAAM,CAAC,IAAI,GACtB,GACE,IACF,EACN,cAAK,SAAS,EAAE,MAAM,CAAC,KAAK,YAC1B,cAAK,SAAS,EAAE,MAAM,CAAC,QAAQ,YAC7B,KAAC,KAAK,IACJ,GAAG,EAAE,KAAK,CAAC,GAAG,EACd,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,MAAM,EAAE,KAAK,CAAC,MAAM,EACpB,GAAG,EAAC,EAAE,EACN,KAAK,EAAC,OAAO,EACb,SAAS,EAAE,MAAM,CAAC,IAAI,GACtB,GACE,GACF,IACF,IACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.stage{position:relative;display:grid;justify-content:stretch;padding:clamp(28px,5vw,64px) clamp(28px,7vw,96px) clamp(48px,7vw,88px) clamp(20px,4vw,48px);perspective:1600px}.glow{position:absolute;inset:10% 6% 0;background:radial-gradient(closest-side, color-mix(in srgb, var(--foreground) 35%, transparent), transparent);filter:blur(40px);opacity
|
|
1
|
+
.stage{position:relative;display:grid;align-content:center;justify-content:stretch;padding:clamp(28px,5vw,64px) clamp(28px,7vw,96px) clamp(48px,7vw,88px) clamp(20px,4vw,48px);perspective:1600px}.glow{position:absolute;inset:10% 6% 0;background:radial-gradient(closest-side, color-mix(in srgb, var(--foreground) 35%, transparent), transparent);filter:blur(40px);opacity:calc(.5 + .3*var(--parallax-hover, 0));transform:translate(calc(var(--parallax-x, 0) * -36px), calc(var(--parallax-y, 0) * -24px));pointer-events:none}.scene{position:relative;display:grid;justify-content:stretch;transform-style:preserve-3d;transform:rotateX(calc(var(--parallax-y, 0) * -6deg)) rotateY(calc(var(--parallax-x, 0) * 9deg))}.browser,.phone{position:relative;box-sizing:border-box;background:color-mix(in srgb, var(--foreground) 9%, var(--background));border:1px solid color-mix(in srgb, var(--foreground) 50%, transparent);overflow:hidden;box-shadow:0 40px 80px -40px color-mix(in srgb, var(--foreground) 35%, transparent),0 1px 0 color-mix(in srgb, var(--foreground) 20%, transparent) inset}.browser::after,.phone::after{content:"";position:absolute;inset:0;z-index:2;background:linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.09) 46%, rgba(255, 255, 255, 0.03) 54%, transparent 70%);background-size:250% 100%;background-position:calc(50% - var(--parallax-x, 0)*40%) 0;opacity:var(--parallax-hover, 0);pointer-events:none}.browser{display:grid;grid-template-rows:auto auto;align-self:center;justify-content:stretch;border-radius:14px;transform-origin:left center;transform:rotateY(calc(8deg * (1 - var(--parallax-hover, 0)))) rotateX(calc(2deg * (1 - var(--parallax-hover, 0))))}.bar{display:grid;grid-template-columns:auto 1fr auto;gap:12px;padding:10px 14px;border-bottom:1px solid var(--line-2)}.bar::after{content:"";width:42px}.dots{display:flex;gap:6px}.dots i{width:9px;height:9px;border-radius:50%;background:color-mix(in srgb, var(--foreground) 20%, transparent)}.address{justify-self:center;padding:4px 14px;border:1px solid var(--line-2);border-radius:99px;background:color-mix(in srgb, var(--foreground) 10%, var(--background));font-size:11px;color:var(--foreground-2)}.phone{position:absolute;right:clamp(-28px,-2vw,-8px);bottom:clamp(-40px,-3vw,-16px);width:clamp(96px,24%,190px);padding:5px;border-radius:26px;transform:translate3d(calc(var(--parallax-x, 0) * 16px), calc(var(--parallax-y, 0) * 10px), 70px) rotateY(calc(-10deg * (1 - var(--parallax-hover, 0)) + var(--parallax-x, 0) * 4deg))}.phone .viewport{aspect-ratio:9/19.5;border-radius:21px}.viewport{position:relative;overflow:hidden;background:var(--background)}.page{display:block;width:100%;height:100%;object-fit:cover;object-position:top}@media(prefers-reduced-motion: reduce){.scene,.browser,.phone,.glow{transform:none}}
|