@sharadox/sharadox-web-library 0.48.0 → 0.50.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 +4 -3
- package/distribution/component/about/feed/index.d.ts.map +1 -1
- package/distribution/component/about/feed/index.js +5 -4
- 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 +13 -1
- package/distribution/component/about/feed/type.d.ts +2 -0
- package/distribution/component/about/feed/type.d.ts.map +1 -1
- package/distribution/component/about/index.js +1 -1
- package/distribution/component/about/index.js.map +1 -1
- package/distribution/component/about/index.module.css +1 -1
- package/distribution/component/about/index.module.scss +13 -1
- package/distribution/component/contact/form/index.d.ts.map +1 -1
- package/distribution/component/contact/form/index.js +7 -3
- package/distribution/component/contact/form/index.js.map +1 -1
- package/distribution/component/contact/form/index.module.css +1 -1
- package/distribution/component/contact/form/index.module.scss +25 -1
- package/distribution/component/globe/index.module.css +1 -1
- package/distribution/component/globe/index.module.scss +5 -22
- package/distribution/component/navigation/index.d.ts.map +1 -1
- package/distribution/component/navigation/index.js +1 -1
- package/distribution/component/navigation/index.js.map +1 -1
- package/distribution/component/navigation/index.module.css +1 -1
- package/distribution/component/navigation/index.module.scss +10 -3
- package/distribution/component/portfolio/project/index.js +1 -1
- package/distribution/component/portfolio/project/index.js.map +1 -1
- package/distribution/component/portfolio/screens/index.d.ts +2 -1
- package/distribution/component/portfolio/screens/index.d.ts.map +1 -1
- package/distribution/component/portfolio/screens/index.js +2 -1
- 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 +2 -0
- package/distribution/component/project-page/chapter/index.d.ts +3 -2
- 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 +4 -3
- 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 +2 -4
- package/distribution/component/service-index/index.module.css +1 -1
- package/distribution/component/service-index/index.module.scss +3 -2
- package/distribution/content/contact/index.d.ts +9 -0
- package/distribution/content/contact/index.d.ts.map +1 -1
- package/distribution/content/contact/index.js +3 -0
- package/distribution/content/contact/index.js.map +1 -1
- package/distribution/content/email-design/index.js +1 -1
- package/distribution/content/email-design/index.js.map +1 -1
- package/distribution/content/portfolio/index.d.ts +15 -8
- package/distribution/content/portfolio/index.d.ts.map +1 -1
- package/distribution/content/portfolio/index.js +11 -6
- package/distribution/content/portfolio/index.js.map +1 -1
- package/distribution/style/object/index.scss +32 -0
- package/distribution/style/token/index.scss +5 -4
- package/package.json +5 -5
|
@@ -5,8 +5,9 @@ import type { FeedProperties } from "@sharadox/sharadox-web-library/component/ab
|
|
|
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
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
|
|
9
|
-
*
|
|
8
|
+
* leans a few degrees towards it and a soft light follows it across, and it floats like the globe. It keeps one
|
|
9
|
+
* height throughout, its tallest tab's: the log never grows it, the oldest entries slipping out under its bottom edge
|
|
10
|
+
* as new ones arrive. A picture, so it's hidden from assistive technology.
|
|
10
11
|
*/
|
|
11
|
-
export declare function Feed({ locale }: FeedProperties): import("react").JSX.Element;
|
|
12
|
+
export declare function Feed({ locale, className }: FeedProperties): import("react").JSX.Element;
|
|
12
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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
|
|
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;;;;;;;;;GASG;AACH,wBAAgB,IAAI,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,cAAc,+BAiIzD"}
|
|
@@ -50,10 +50,11 @@ function placeOf(root, target) {
|
|
|
50
50
|
* them: the log fills, the pointer reads an entry, clicks Project, reads the budget and ticks the next task, clicks
|
|
51
51
|
* Client and reads its charts, then goes back to Activity, over and over. Out of view it stops and starts over; with
|
|
52
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
|
|
54
|
-
*
|
|
53
|
+
* leans a few degrees towards it and a soft light follows it across, and it floats like the globe. It keeps one
|
|
54
|
+
* height throughout, its tallest tab's: the log never grows it, the oldest entries slipping out under its bottom edge
|
|
55
|
+
* as new ones arrive. A picture, so it's hidden from assistive technology.
|
|
55
56
|
*/
|
|
56
|
-
export function Feed({ locale }) {
|
|
57
|
+
export function Feed({ locale, className }) {
|
|
57
58
|
const root = useRef(null);
|
|
58
59
|
const stage = useParallax(0.07);
|
|
59
60
|
const [inView, setInView] = useState(false);
|
|
@@ -106,6 +107,6 @@ export function Feed({ locale }) {
|
|
|
106
107
|
if (!pointed.startsWith("tab"))
|
|
107
108
|
panel.querySelector(`[data-target="${pointed}"]`).setAttribute("data-pointed", "");
|
|
108
109
|
}, [pointed, tab, shown]);
|
|
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 })] })] }) }));
|
|
110
|
+
return (_jsx("div", { ref: stage, className: [styles.stage, className].filter(Boolean).join(" "), "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", { className: styles.log, "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 })] })] }) }));
|
|
110
111
|
}
|
|
111
112
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/about/feed/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EA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/E,UAAU,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,aAEzC,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
|
-
.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}
|
|
1
|
+
.stage{display:grid;justify-content:stretch;perspective:1400px;animation:float 9s ease-in-out 0s infinite}@media(prefers-reduced-motion: reduce){.stage{animation:none}}@keyframes float{0%,100%{translate:0 0;rotate:0deg}25%{translate:.4% -1.1%;rotate:.6deg}50%{translate:0 -2%;rotate:0deg}75%{translate:-0.4% -1.1%;rotate:-0.6deg}}.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}.panes>.log{height:0;min-height:calc(100% + 8px);margin:-4px;padding:4px;overflow:hidden;mask-image:linear-gradient(to bottom, #000 calc(100% - 56px), transparent calc(100% - 4px))}.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}
|
|
@@ -12,6 +12,7 @@ $y: var(--parallax-y, 0);
|
|
|
12
12
|
display: grid;
|
|
13
13
|
justify-content: stretch;
|
|
14
14
|
perspective: 1400px;
|
|
15
|
+
@include float;
|
|
15
16
|
}
|
|
16
17
|
.feed {
|
|
17
18
|
@include face;
|
|
@@ -154,7 +155,8 @@ $y: var(--parallax-y, 0);
|
|
|
154
155
|
background: var(--foreground);
|
|
155
156
|
transition: transform 0.5s $ease;
|
|
156
157
|
}
|
|
157
|
-
/* The panes share one place,
|
|
158
|
+
/* The panes share one place, as tall as the tallest of Project and Client, so the panel keeps its height whatever
|
|
159
|
+
tab shows; the one shown fades in. */
|
|
158
160
|
.panes {
|
|
159
161
|
display: grid;
|
|
160
162
|
justify-content: stretch;
|
|
@@ -178,6 +180,16 @@ $y: var(--parallax-y, 0);
|
|
|
178
180
|
}
|
|
179
181
|
}
|
|
180
182
|
}
|
|
183
|
+
/* The log takes no room of its own: it fills the panes' height, and entries pushed past the bottom fade out under
|
|
184
|
+
it. A few pixels of room around it keep the outline of the entry being read clear of the edge. */
|
|
185
|
+
.panes > .log {
|
|
186
|
+
height: 0;
|
|
187
|
+
min-height: calc(100% + 8px);
|
|
188
|
+
margin: -4px;
|
|
189
|
+
padding: 4px;
|
|
190
|
+
overflow: hidden;
|
|
191
|
+
mask-image: linear-gradient(to bottom, #000 calc(100% - 56px), transparent calc(100% - 4px));
|
|
192
|
+
}
|
|
181
193
|
/* The pointer, solid with a dark edge, and the ring it leaves where it clicks. */
|
|
182
194
|
.pointer {
|
|
183
195
|
position: absolute;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { Locale } from "@sharadox/sharadox-web-library/content/locale/type";
|
|
2
2
|
export interface FeedProperties {
|
|
3
3
|
locale: Locale;
|
|
4
|
+
/** Extra classes for the stage around the panel, to size or place it in the page. */
|
|
5
|
+
className?: string;
|
|
4
6
|
}
|
|
5
7
|
//# sourceMappingURL=type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../source/component/about/feed/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oDAAoD,CAAC;AAEjF,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../source/component/about/feed/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oDAAoD,CAAC;AAEjF,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,qFAAqF;IACrF,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -17,6 +17,6 @@ import styles from "./index.module.css";
|
|
|
17
17
|
*/
|
|
18
18
|
export function About({ locale }) {
|
|
19
19
|
const { brand, business } = ABOUT;
|
|
20
|
-
return (_jsxs(Section, { id: SECTION.about.id, className: styles.about, children: [_jsx(Eyebrow, { children: translate(SECTION.about, locale) }), _jsx(ScrollWords, { text: translate(ABOUT.statement, locale), className: styles.statement }), _jsxs("div", { className: styles.panels, children: [_jsxs(Reveal, { className: styles.brand, children: [_jsxs("div", { className: styles.copy, children: [_jsx(Eyebrow, { children: translate(brand.eyebrow, locale) }), _jsx("h3", { children: translate(brand.title, locale) }), _jsx("p", { children: translate(brand.text, locale) })] }), _jsx("ol", { className: styles.parts, children: brand.parts[locale].map((part) => (_jsx("li", { children: part }, part))) })] }), _jsxs(Reveal, { delay: 0.1, className: styles.business, children: [_jsxs("div", { className: styles.copy, children: [_jsx(Eyebrow, { children: translate(business.eyebrow, locale) }), _jsx("h3", { children: translate(business.title, locale) }), _jsx("p", { children: translate(business.text, locale) })] }), _jsx(Feed, { locale: locale }), _jsx("ul", { className: styles.points, children: business.points.map((point) => (_jsxs("li", { children: [_jsx("b", { children: translate(point.title, locale) }), _jsx("span", { children: translate(point.text, locale) })] }, point.title.en))) })] })] })] }));
|
|
20
|
+
return (_jsxs(Section, { id: SECTION.about.id, className: styles.about, children: [_jsx(Eyebrow, { children: translate(SECTION.about, locale) }), _jsx(ScrollWords, { text: translate(ABOUT.statement, locale), className: styles.statement }), _jsxs("div", { className: styles.panels, children: [_jsxs(Reveal, { className: styles.brand, children: [_jsxs("div", { className: styles.copy, children: [_jsx(Eyebrow, { children: translate(brand.eyebrow, locale) }), _jsx("h3", { children: translate(brand.title, locale) }), _jsx("p", { children: translate(brand.text, locale) })] }), _jsx("ol", { className: styles.parts, children: brand.parts[locale].map((part) => (_jsx("li", { children: part }, part))) })] }), _jsxs(Reveal, { delay: 0.1, className: styles.business, children: [_jsxs("div", { className: styles.copy, children: [_jsx(Eyebrow, { children: translate(business.eyebrow, locale) }), _jsx("h3", { children: translate(business.title, locale) }), _jsx("p", { children: translate(business.text, locale) })] }), _jsx(Feed, { locale: locale, className: styles.feed }), _jsx("ul", { className: styles.points, children: business.points.map((point) => (_jsxs("li", { children: [_jsx("b", { children: translate(point.title, locale) }), _jsx("span", { children: translate(point.text, locale) })] }, point.title.en))) })] })] })] }));
|
|
21
21
|
}
|
|
22
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/about/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,wCAAwC,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,6CAA6C,CAAC;AAC1E,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,EAAE,OAAO,EAAE,MAAM,kDAAkD,CAAC;AAC3E,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,kDAAkD,CAAC;AAC3E,OAAO,EAAE,KAAK,EAAE,MAAM,8CAA8C,CAAC;A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rC,KAAK,CAAC,KAAK,CAAC,EAAE,CAGlB,CACN,CAAC,GACC,IACE,IACL,IACE,CACX,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.about{padding-block:clamp(100px,16vh,180px) clamp(72px,10vw,128px)}.statement{margin-top:24px;font-size:clamp(1.9rem,4.2vw,3.8rem);font-weight:500;letter-spacing:-0.045em;line-height:1.08;max-width:24ch}.panels{display:grid;justify-content:stretch;align-items:stretch;gap:1px;margin-top:clamp(56px,8vw,96px);border:1px solid var(--line);border-radius:18px;overflow:hidden;background:var(--line)}.panels>*{background:var(--background);padding:clamp(24px,3.4vw,48px)}.panels h3{font-size:clamp(1.6rem,2.8vw,2.5rem);letter-spacing:-0.04em;text-wrap:balance}.panels p{color:var(--foreground-2);text-wrap:pretty}.copy{display:grid;justify-content:stretch;justify-items:start;align-content:start;gap:16px}.brand{display:grid;grid-template-columns:minmax(0, 1fr) minmax(0, 1.3fr);align-items:end;gap:clamp(24px,4vw,64px)}@media(max-width: 1000px){.brand{grid-template-columns:1fr}}.parts{display:grid;grid-template-columns:repeat(5, 1fr);align-items:stretch;margin:0;padding:0;list-style:none;counter-reset:part}.parts li{display:grid;align-content:start;justify-items:start;gap:10px;padding:16px 14px 4px;border-left:1px dashed var(--line-2);font-weight:500;letter-spacing:-0.02em;counter-increment:part}.parts li::before{content:counter(part, decimal-leading-zero);font-family:var(--monospace);font-size:11.5px;font-weight:400;color:var(--foreground-3)}@media(max-width: 640px){.parts{grid-template-columns:1fr}.parts li{display:flex;align-items:baseline;justify-content:flex-start;gap:14px;padding:12px 0;border-left:0;border-bottom:1px dashed var(--line-2)}.parts li:last-child{border-bottom:0}}.business{display:grid;grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);grid-template-areas:"copy feed" "points points";align-items:center;gap:clamp(28px,4vw,56px) clamp(24px,4vw,64px);background:radial-gradient(70% 80% at 80% 40%, color-mix(in srgb, var(--foreground) 7%, transparent), transparent 70%),var(--background) !important}.business>.copy{grid-area:copy}.business>:nth-child(2){grid-area:feed}@media(max-width: 1000px){.business{grid-template-columns:1fr;grid-template-areas:"copy" "feed" "points"}}.points{grid-area:points;display:grid;grid-template-columns:repeat(3, 1fr);align-items:start;gap:16px clamp(16px,3vw,40px);margin:0;padding:24px 0 0;border-top:1px dashed var(--line-2);list-style:none}.points li{display:grid;justify-content:stretch;align-content:start;gap:6px}.points b{font-weight:600;letter-spacing:-0.02em}.points span{font-size:14.5px;line-height:1.55;color:var(--foreground-2)}@media(max-width: 700px){.points{grid-template-columns:1fr}}
|
|
1
|
+
.about{padding-block:clamp(100px,16vh,180px) clamp(72px,10vw,128px)}.statement{margin-top:24px;font-size:clamp(1.9rem,4.2vw,3.8rem);font-weight:500;letter-spacing:-0.045em;line-height:1.08;max-width:24ch}.panels{display:grid;justify-content:stretch;align-items:stretch;gap:1px;margin-top:clamp(56px,8vw,96px);border:1px solid var(--line);border-radius:18px;overflow:hidden;background:var(--line)}.panels>*{background:var(--background);padding:clamp(24px,3.4vw,48px)}.panels h3{font-size:clamp(1.6rem,2.8vw,2.5rem);letter-spacing:-0.04em;text-wrap:balance}.panels p{color:var(--foreground-2);text-wrap:pretty}.copy{display:grid;justify-content:stretch;justify-items:start;align-content:start;gap:16px}.brand{display:grid;grid-template-columns:minmax(0, 1fr) minmax(0, 1.3fr);align-items:end;gap:clamp(24px,4vw,64px)}@media(max-width: 1000px){.brand{grid-template-columns:1fr}}.parts{display:grid;grid-template-columns:repeat(5, 1fr);align-items:stretch;margin:0;padding:0;list-style:none;counter-reset:part}.parts li{display:grid;align-content:start;justify-items:start;gap:10px;padding:16px 14px 4px;border-left:1px dashed var(--line-2);font-weight:500;letter-spacing:-0.02em;counter-increment:part}.parts li::before{content:counter(part, decimal-leading-zero);font-family:var(--monospace);font-size:11.5px;font-weight:400;color:var(--foreground-3)}@media(max-width: 640px){.parts{grid-template-columns:1fr}.parts li{display:flex;align-items:baseline;justify-content:flex-start;gap:14px;padding:12px 0;border-left:0;border-bottom:1px dashed var(--line-2)}.parts li:last-child{border-bottom:0}}.business{display:grid;grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);grid-template-areas:"copy feed" "points points";align-items:center;gap:clamp(28px,4vw,56px) clamp(24px,4vw,64px);background:radial-gradient(70% 80% at 80% 40%, color-mix(in srgb, var(--foreground) 7%, transparent), transparent 70%),var(--background) !important}.business>.copy{grid-area:copy}.business>:nth-child(2){grid-area:feed}@media(max-width: 1000px){.business{grid-template-columns:1fr;grid-template-areas:"copy" "feed" "points"}}@media(max-width: 640px){.business .feed{margin-inline:calc(-1*clamp(24px, 3.4vw, 48px))}.business .feed>*{border-inline:0;border-radius:0}}.points{grid-area:points;display:grid;grid-template-columns:repeat(3, 1fr);align-items:start;gap:16px clamp(16px,3vw,40px);margin:0;padding:24px 0 0;border-top:1px dashed var(--line-2);list-style:none}.points li{display:grid;justify-content:stretch;align-content:start;gap:6px}.points b{font-weight:600;letter-spacing:-0.02em}.points span{font-size:14.5px;line-height:1.55;color:var(--foreground-2)}@media(max-width: 700px){.points{grid-template-columns:1fr}}
|
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
line-height: 1.08;
|
|
13
13
|
max-width: 24ch;
|
|
14
14
|
}
|
|
15
|
+
/* The room inside each half. */
|
|
16
|
+
$room: clamp(24px, 3.4vw, 48px);
|
|
15
17
|
/* The two halves, one row each, as cells with hairlines between them. */
|
|
16
18
|
.panels {
|
|
17
19
|
display: grid;
|
|
@@ -25,7 +27,7 @@
|
|
|
25
27
|
background: var(--line);
|
|
26
28
|
> * {
|
|
27
29
|
background: var(--background);
|
|
28
|
-
padding:
|
|
30
|
+
padding: $room;
|
|
29
31
|
}
|
|
30
32
|
h3 {
|
|
31
33
|
font-size: clamp(1.6rem, 2.8vw, 2.5rem);
|
|
@@ -124,6 +126,16 @@
|
|
|
124
126
|
"points";
|
|
125
127
|
}
|
|
126
128
|
}
|
|
129
|
+
/* On phones the live feed spans the whole half, edge to edge, the half's own border framing it. */
|
|
130
|
+
.business .feed {
|
|
131
|
+
@include below(640px) {
|
|
132
|
+
margin-inline: calc(-1 * #{$room});
|
|
133
|
+
> * {
|
|
134
|
+
border-inline: 0;
|
|
135
|
+
border-radius: 0;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
127
139
|
/* Automated, your team, anywhere: three promises side by side, each a word and a line. */
|
|
128
140
|
.points {
|
|
129
141
|
grid-area: points;
|
|
@@ -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;AAIxG;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,qBAAqB,+BAuMhF"}
|
|
@@ -13,6 +13,7 @@ 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
15
|
import { newTab } from "@sharadox/web-library/navigation/new-tab";
|
|
16
|
+
import { PhoneField } from "@sharadox/form-web-library/phone-field";
|
|
16
17
|
/**
|
|
17
18
|
* The enquiry form: name, company, email and phone (one of them is enough), the choices grouped like the services, and
|
|
18
19
|
* a message. On wide screens, the visitor's details, the message and the send button on the left, the choices on the
|
|
@@ -85,8 +86,11 @@ export function ContactForm({ locale, action: sendAction }) {
|
|
|
85
86
|
// The page it was sent from, for the email (shown only when it's on the site's own domain).
|
|
86
87
|
form.elements.namedItem("page").value = location.href;
|
|
87
88
|
}, onChange: (event) => {
|
|
88
|
-
if (problems)
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
if (!problems)
|
|
90
|
+
return;
|
|
91
|
+
// Read once this change is on screen: the phone's own field fills its hidden input as it renders.
|
|
92
|
+
const form = event.currentTarget;
|
|
93
|
+
setTimeout(() => setProblems(contactProblems(new FormData(form))));
|
|
94
|
+
}, 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("div", { className: styles.field, children: [_jsx("label", { htmlFor: "contact-phone", children: _jsx("span", { children: translate(CONTACT.phone, locale) }) }), _jsx(PhoneField, { name: "phone", locale: locale, defaultCountry: "PT", labels: { country: translate(CONTACT.country, locale), search: translate(CONTACT.search, locale) }, className: styles.phone, inputProps: { id: "contact-phone", ...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")) }));
|
|
91
95
|
}
|
|
92
96
|
//# 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,C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AAE,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,KA5HF,MAAM,CA6HE,CACf,GACe,CACnB,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.form{justify-content:stretch;align-items:stretch;--pointer-x: -500px;--pointer-y: -500px;position:relative;display:grid;gap:14px;padding:clamp(22px,3vw,34px);border-radius:18px;background:var(--card);border:1px solid var(--line);isolation:isolate}.form::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:radial-gradient(500px circle at var(--pointer-x) var(--pointer-y), color-mix(in srgb, var(--foreground) 5%, transparent), transparent 60%)}@media(min-width: 1000px){.form:not(.done){grid-template-columns:1fr 1fr;grid-template-rows:auto 1fr auto;gap:18px clamp(32px,4vw,56px)}.services{align-content:start;grid-column:2;grid-row:1/-1}.message{grid-template-rows:auto 1fr}.message textarea{height:100%;min-height:140px}}.about,.submit{justify-content:stretch;display:grid;gap:14px}.row{display:grid;grid-template-columns:1fr 1fr;gap:14px}@media(max-width: 860px){.row{grid-template-columns:1fr}}.field{justify-content:stretch;display:grid;align-content:start;gap:7px}.field
|
|
1
|
+
.form{justify-content:stretch;align-items:stretch;--pointer-x: -500px;--pointer-y: -500px;position:relative;display:grid;gap:14px;padding:clamp(22px,3vw,34px);border-radius:18px;background:var(--card);border:1px solid var(--line);isolation:isolate}.form::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:radial-gradient(500px circle at var(--pointer-x) var(--pointer-y), color-mix(in srgb, var(--foreground) 5%, transparent), transparent 60%)}@media(min-width: 1000px){.form:not(.done){grid-template-columns:1fr 1fr;grid-template-rows:auto 1fr auto;gap:18px clamp(32px,4vw,56px)}.services{align-content:start;grid-column:2;grid-row:1/-1}.message{grid-template-rows:auto 1fr}.message textarea{height:100%;min-height:140px}}.about,.submit{justify-content:stretch;display:grid;gap:14px}.row{display:grid;grid-template-columns:1fr 1fr;gap:14px}@media(max-width: 860px){.row{grid-template-columns:1fr}}.field{justify-content:stretch;display:grid;align-content:start;gap:7px}.field>span,.field>label>span{font-size:13px;color:var(--foreground-2)}.field input,.field textarea{width:100%;font:inherit;font-size:15px;color:var(--foreground);background:var(--background);border:1px solid var(--line-2);border-radius:12px;padding:13px 14px;transition:border-color .25s,box-shadow .25s;resize:vertical}.field input:focus,.field textarea:focus{outline:none;border-color:color-mix(in srgb, var(--foreground) 50%, transparent);box-shadow:0 0 0 4px color-mix(in srgb, var(--foreground) 6%, transparent)}.phone{--phone-field-line: var(--line-2);--phone-field-accent: var(--foreground);--phone-field-surface: var(--background);--phone-field-popover: var(--background);--phone-field-radius: 12px;font-size:15px}.phone>button{min-height:48px;color:var(--foreground)}.phone [role=listbox]{font-size:14px;color:var(--foreground-2)}.field .phone input[type=search]{padding:9px 12px;border-radius:9px;font-size:14px}.services{display:grid;gap:12px;margin:4px 0 2px;padding:0;border:0}.services legend{float:left;padding:0;width:100%;margin-bottom:9px;font-size:13px;color:var(--foreground-2)}.honeypot{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.error{font-size:14px;color:var(--error)}.error a{text-decoration:underline}.done{min-height:380px;place-items:center;text-align:center;align-content:center;gap:18px}.done p{max-width:30ch;color:var(--foreground-2)}.check{width:56px;height:56px;fill:none;stroke:var(--foreground);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.check path{stroke-dasharray:40;stroke-dashoffset:40;animation:draw .8s .2s var(--ease) forwards}@keyframes draw{to{stroke-dashoffset:0}}.group{justify-content:flex-start;display:flex;flex-wrap:wrap;align-items:center;gap:8px}.group>span{flex-basis:100%;font-size:11px;letter-spacing:.05em;text-transform:uppercase;color:var(--foreground-3)}.problem{font-size:13px;color:var(--error) !important}.hint{margin-top:-6px;font-size:13px;color:var(--foreground-3)}.field input[aria-invalid],.field textarea[aria-invalid]{border-color:var(--error)}.services[data-invalid] .group label>span{border-color:color-mix(in srgb, var(--error) 55%, transparent)}
|
|
@@ -61,7 +61,8 @@
|
|
|
61
61
|
display: grid;
|
|
62
62
|
align-content: start;
|
|
63
63
|
gap: 7px;
|
|
64
|
-
span
|
|
64
|
+
> span,
|
|
65
|
+
> label > span {
|
|
65
66
|
font-size: 13px;
|
|
66
67
|
color: var(--foreground-2);
|
|
67
68
|
}
|
|
@@ -86,6 +87,29 @@
|
|
|
86
87
|
}
|
|
87
88
|
}
|
|
88
89
|
}
|
|
90
|
+
/* The phone: a country picker (flag and calling code) beside a box for the digits, in the form's own colors. */
|
|
91
|
+
.phone {
|
|
92
|
+
--phone-field-line: var(--line-2);
|
|
93
|
+
--phone-field-accent: var(--foreground);
|
|
94
|
+
--phone-field-surface: var(--background);
|
|
95
|
+
--phone-field-popover: var(--background);
|
|
96
|
+
--phone-field-radius: 12px;
|
|
97
|
+
font-size: 15px;
|
|
98
|
+
> button {
|
|
99
|
+
min-height: 48px;
|
|
100
|
+
color: var(--foreground);
|
|
101
|
+
}
|
|
102
|
+
[role="listbox"] {
|
|
103
|
+
font-size: 14px;
|
|
104
|
+
color: var(--foreground-2);
|
|
105
|
+
}
|
|
106
|
+
/* The search box inside the list keeps its own, smaller look. */
|
|
107
|
+
.field & input[type="search"] {
|
|
108
|
+
padding: 9px 12px;
|
|
109
|
+
border-radius: 9px;
|
|
110
|
+
font-size: 14px;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
89
113
|
.services {
|
|
90
114
|
display: grid;
|
|
91
115
|
gap: 12px;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.globe{--globe-glow: var(--foreground);--globe-surface: var(--background);position:absolute;inset:0;will-change:
|
|
1
|
+
.globe{--globe-glow: var(--foreground);--globe-surface: var(--background);position:absolute;inset:0;will-change:translate,rotate;animation:float 9s ease-in-out 0s infinite}@media(prefers-reduced-motion: reduce){.globe{animation:none}}@keyframes float{0%,100%{translate:0 0;rotate:0deg}25%{translate:.4% -1.1%;rotate:.6deg}50%{translate:0 -2%;rotate:0deg}75%{translate:-0.4% -1.1%;rotate:-0.6deg}}
|
|
@@ -1,28 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
@use "style/object" as *;
|
|
2
|
+
|
|
3
|
+
/* The shared globe's halo and fallback follow the Sharadox style. It floats (the shared float). */
|
|
3
4
|
.globe {
|
|
4
5
|
--globe-glow: var(--foreground);
|
|
5
6
|
--globe-surface: var(--background);
|
|
6
7
|
position: absolute;
|
|
7
8
|
inset: 0;
|
|
8
|
-
will-change:
|
|
9
|
-
|
|
10
|
-
@media (prefers-reduced-motion: reduce) {
|
|
11
|
-
animation: none;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
@keyframes float {
|
|
15
|
-
0%,
|
|
16
|
-
100% {
|
|
17
|
-
transform: translate3d(0, 0, 0) rotate(0deg);
|
|
18
|
-
}
|
|
19
|
-
25% {
|
|
20
|
-
transform: translate3d(0.4%, -1.1%, 0) rotate(0.6deg);
|
|
21
|
-
}
|
|
22
|
-
50% {
|
|
23
|
-
transform: translate3d(0, -2%, 0) rotate(0deg);
|
|
24
|
-
}
|
|
25
|
-
75% {
|
|
26
|
-
transform: translate3d(-0.4%, -1.1%, 0) rotate(-0.6deg);
|
|
27
|
-
}
|
|
9
|
+
will-change: translate, rotate;
|
|
10
|
+
@include float;
|
|
28
11
|
}
|
|
@@ -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,+
|
|
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,
|
|
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,sDAA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AAE,MAAM,CAAC,SAAS,GAAI,IACjD,IACF,CACd,GACe,IACjB,CACJ,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
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)}.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:
|
|
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:rgba(0,0,0,0)}.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 or line between them. */
|
|
22
|
+
.open {
|
|
23
|
+
background: transparent;
|
|
24
|
+
backdrop-filter: none;
|
|
25
|
+
border-color: transparent;
|
|
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
|
|
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:
|
|
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;
|
|
@@ -13,6 +13,6 @@ import styles from "./index.module.css";
|
|
|
13
13
|
export function Project({ project, index, locale }) {
|
|
14
14
|
const { details } = PORTFOLIO;
|
|
15
15
|
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.
|
|
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
17
|
}
|
|
18
18
|
//# 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,OAAO,EAAE,MAAM,CAAC,EAAE,GAAI,EACjG,eAAK,SAAS,EAAE,MAAM,CAAC,KAAK,aAC1B,aAAG,SAAS,EAAE,aAAa,MAAM,CAAC,GAAG,EAAE,aACrC,yBAAO,MAAM,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,GAAQ,EACjD,eAAM,QAAQ,EAAE,OAAO,CAAC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K,QAAC,SAAS,EAAE,MAAM,CAAC,IAAI,YACrF,SAAS,CAAC,SAAS,CAAC,IAAI,EAAE,MAAM,CAAC,GAC3B,IACL,IACE,CACX,CAAC;AACJ,CAAC"}
|
|
@@ -3,7 +3,8 @@ import type { ScreensProperties } from "@sharadox/sharadox-web-library/component
|
|
|
3
3
|
* The project's first screen, on a computer and on a phone: a browser window, slightly turned, with a phone standing
|
|
4
4
|
* in front of it. Under the pointer the whole scene turns to face it and follows it in depth: the phone, nearer,
|
|
5
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.
|
|
6
|
+
* window keeps the screenshot's own proportions, so it is never taller than the page it shows. At rest it floats, like
|
|
7
|
+
* the globe.
|
|
7
8
|
*/
|
|
8
9
|
export declare function Screens({ project, label, priority }: ScreensProperties): import("react").JSX.Element;
|
|
9
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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
|
|
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;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,iBAAiB,+BA4CtE"}
|
|
@@ -7,7 +7,8 @@ import styles from "./index.module.css";
|
|
|
7
7
|
* The project's first screen, on a computer and on a phone: a browser window, slightly turned, with a phone standing
|
|
8
8
|
* in front of it. Under the pointer the whole scene turns to face it and follows it in depth: the phone, nearer,
|
|
9
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.
|
|
10
|
+
* window keeps the screenshot's own proportions, so it is never taller than the page it shows. At rest it floats, like
|
|
11
|
+
* the globe.
|
|
11
12
|
*/
|
|
12
13
|
export function Screens({ project, label, priority }) {
|
|
13
14
|
const { computer, phone } = project.screens;
|