@sharadox/sharadox-web-library 0.47.0 → 0.49.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 +5 -2
- package/distribution/component/about/feed/index.d.ts.map +1 -1
- package/distribution/component/about/feed/index.js +8 -3
- 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 +40 -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/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 +8 -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/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/globe/index.module.css +1 -1
- package/distribution/component/globe/index.module.scss +5 -22
- 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 +4 -1
- package/distribution/component/portfolio/screens/index.d.ts.map +1 -1
- package/distribution/component/portfolio/screens/index.js +8 -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 +58 -17
- package/distribution/component/project-page/chapter/index.d.ts +4 -3
- package/distribution/component/project-page/chapter/index.d.ts.map +1 -1
- package/distribution/component/project-page/chapter/index.js +7 -5
- 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 +50 -8
- 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 +5 -3
- package/distribution/component/project-page/index.d.ts.map +1 -1
- package/distribution/component/project-page/index.js +6 -4
- 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 +18 -1
- 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 +109 -34
- package/distribution/content/portfolio/index.d.ts.map +1 -1
- package/distribution/content/portfolio/index.js +119 -29
- 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/llms.txt +1 -0
- package/package.json +7 -7
|
@@ -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 +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
|
}
|
|
@@ -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":["../../../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@
|
|
|
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. At rest it floats, like
|
|
7
|
+
* the globe.
|
|
5
8
|
*/
|
|
6
9
|
export declare function Screens({ project, label, priority }: ScreensProperties): import("react").JSX.Element;
|
|
7
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":"
|
|
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"}
|
|
@@ -1,13 +1,19 @@
|
|
|
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. At rest it floats, like
|
|
11
|
+
* the globe.
|
|
7
12
|
*/
|
|
8
13
|
export function Screens({ project, label, priority }) {
|
|
9
14
|
const { computer, phone } = project.screens;
|
|
10
15
|
const domain = new URL(project.url).host;
|
|
11
|
-
|
|
16
|
+
const stage = useParallax(0.08);
|
|
17
|
+
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
18
|
}
|
|
13
19
|
//# 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,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/portfolio/screens/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,KAAK,MAAM,YAAY,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAC;AACrE,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC;;;;;;GAMG;AACH,MAAM,UAAU,OAAO,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ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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;animation:float 9s ease-in-out 0s infinite}@media(prefers-reduced-motion: reduce){.scene{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}}.scene{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}}
|
|
@@ -1,23 +1,43 @@
|
|
|
1
1
|
@use "style/token" as *;
|
|
2
2
|
@use "style/object" as *;
|
|
3
3
|
|
|
4
|
-
/*
|
|
4
|
+
/*
|
|
5
|
+
* The scene sits in the middle of the stage, at its own height (the window's height comes from the screenshot), and
|
|
6
|
+
* turns towards the pointer: --parallax-x/-y (-1 to 1) and --parallax-hover (0 to 1) come from useParallax, eased in
|
|
7
|
+
* JavaScript, so nothing here needs a transition. Without a fine pointer they stay unset and the scene rests.
|
|
8
|
+
*/
|
|
9
|
+
$x: var(--parallax-x, 0);
|
|
10
|
+
$y: var(--parallax-y, 0);
|
|
11
|
+
$hover: var(--parallax-hover, 0);
|
|
12
|
+
|
|
5
13
|
.stage {
|
|
6
14
|
position: relative;
|
|
7
15
|
display: grid;
|
|
16
|
+
align-content: center;
|
|
8
17
|
justify-content: stretch;
|
|
9
18
|
padding: clamp(28px, 5vw, 64px) clamp(28px, 7vw, 96px) clamp(48px, 7vw, 88px) clamp(20px, 4vw, 48px);
|
|
10
19
|
perspective: 1600px;
|
|
11
20
|
}
|
|
21
|
+
/* The light behind the scene: it drifts against the pointer and brightens while the scene is held. */
|
|
12
22
|
.glow {
|
|
13
23
|
position: absolute;
|
|
14
24
|
inset: 10% 6% 0;
|
|
15
25
|
background: radial-gradient(closest-side, tint($glow), transparent);
|
|
16
26
|
filter: blur(40px);
|
|
17
|
-
opacity: 0.
|
|
27
|
+
opacity: calc(0.5 + 0.3 * #{$hover});
|
|
28
|
+
transform: translate(calc(#{$x} * -36px), calc(#{$y} * -24px));
|
|
18
29
|
pointer-events: none;
|
|
19
30
|
}
|
|
20
|
-
/*
|
|
31
|
+
/* The whole scene floats, like the globe, under its tilt towards the pointer. */
|
|
32
|
+
.scene {
|
|
33
|
+
position: relative;
|
|
34
|
+
display: grid;
|
|
35
|
+
justify-content: stretch;
|
|
36
|
+
@include float;
|
|
37
|
+
transform-style: preserve-3d;
|
|
38
|
+
transform: rotateX(calc(#{$y} * -6deg)) rotateY(calc(#{$x} * 9deg));
|
|
39
|
+
}
|
|
40
|
+
/* A window or a phone: a raised face, its page inside, and a soft glare that slides across it with the pointer. */
|
|
21
41
|
.browser,
|
|
22
42
|
.phone {
|
|
23
43
|
position: relative;
|
|
@@ -26,22 +46,33 @@
|
|
|
26
46
|
box-shadow:
|
|
27
47
|
0 40px 80px -40px tint($glow),
|
|
28
48
|
0 1px 0 tint($faint) inset;
|
|
29
|
-
|
|
49
|
+
&::after {
|
|
50
|
+
content: "";
|
|
51
|
+
position: absolute;
|
|
52
|
+
inset: 0;
|
|
53
|
+
z-index: 2;
|
|
54
|
+
background: linear-gradient(
|
|
55
|
+
115deg,
|
|
56
|
+
transparent 30%,
|
|
57
|
+
rgb(255 255 255 / 9%) 46%,
|
|
58
|
+
rgb(255 255 255 / 3%) 54%,
|
|
59
|
+
transparent 70%
|
|
60
|
+
);
|
|
61
|
+
background-size: 250% 100%;
|
|
62
|
+
background-position: calc(50% - #{$x} * 40%) 0;
|
|
63
|
+
opacity: $hover;
|
|
64
|
+
pointer-events: none;
|
|
65
|
+
}
|
|
30
66
|
}
|
|
67
|
+
/* At rest it is turned a little away; it turns to face the visitor as the pointer arrives. */
|
|
31
68
|
.browser {
|
|
32
69
|
display: grid;
|
|
33
|
-
grid-template-rows: auto
|
|
70
|
+
grid-template-rows: auto auto;
|
|
71
|
+
align-self: center;
|
|
34
72
|
justify-content: stretch;
|
|
35
73
|
border-radius: 14px;
|
|
36
|
-
transform: rotateY(8deg) rotateX(2deg);
|
|
37
74
|
transform-origin: left center;
|
|
38
|
-
|
|
39
|
-
aspect-ratio: 16 / 10;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
.stage:hover .browser,
|
|
43
|
-
.stage:hover .phone {
|
|
44
|
-
transform: none;
|
|
75
|
+
transform: rotateY(calc(8deg * (1 - #{$hover}))) rotateX(calc(2deg * (1 - #{$hover})));
|
|
45
76
|
}
|
|
46
77
|
.bar {
|
|
47
78
|
display: grid;
|
|
@@ -73,14 +104,16 @@
|
|
|
73
104
|
font-size: 11px;
|
|
74
105
|
color: var(--foreground-2);
|
|
75
106
|
}
|
|
107
|
+
/* The phone stands in front of the window's lower right corner, nearer, so it moves more. */
|
|
76
108
|
.phone {
|
|
77
109
|
position: absolute;
|
|
78
|
-
right: clamp(
|
|
79
|
-
bottom: clamp(
|
|
80
|
-
width: clamp(
|
|
110
|
+
right: clamp(-28px, -2vw, -8px);
|
|
111
|
+
bottom: clamp(-40px, -3vw, -16px);
|
|
112
|
+
width: clamp(96px, 24%, 190px);
|
|
81
113
|
padding: 5px;
|
|
82
114
|
border-radius: 26px;
|
|
83
|
-
transform:
|
|
115
|
+
transform: translate3d(calc(#{$x} * 16px), calc(#{$y} * 10px), 70px)
|
|
116
|
+
rotateY(calc(-10deg * (1 - #{$hover}) + #{$x} * 4deg));
|
|
84
117
|
.viewport {
|
|
85
118
|
aspect-ratio: 9 / 19.5;
|
|
86
119
|
border-radius: 21px;
|
|
@@ -99,3 +132,11 @@
|
|
|
99
132
|
object-fit: cover;
|
|
100
133
|
object-position: top;
|
|
101
134
|
}
|
|
135
|
+
@media (prefers-reduced-motion: reduce) {
|
|
136
|
+
.scene,
|
|
137
|
+
.browser,
|
|
138
|
+
.phone,
|
|
139
|
+
.glow {
|
|
140
|
+
transform: none;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { ChapterProperties } from "@sharadox/sharadox-web-library/component/project-page/chapter/type";
|
|
2
2
|
/**
|
|
3
|
-
* One part of a project
|
|
4
|
-
*
|
|
3
|
+
* One part of a project we're proud of: its number and name, what it is, and a few details of how it works, in the
|
|
4
|
+
* frame; then the website's own component across the whole width of the page, as wide as on the site itself, under a
|
|
5
|
+
* bar with a live dot and the site's address.
|
|
5
6
|
*/
|
|
6
|
-
export declare function Chapter({ number, title, text, live, children }: ChapterProperties): import("react").JSX.Element;
|
|
7
|
+
export declare function Chapter({ number, title, text, points, detailsLabel, live, children }: ChapterProperties): import("react").JSX.Element;
|
|
7
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/project-page/chapter/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/project-page/chapter/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oEAAoE,CAAC;AAE5G;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,iBAAiB,+BAuCvG"}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { Reveal } from "@sharadox/animation-web-library/reveal";
|
|
3
|
+
import { Icon } from "@sharadox/icon-web-library/icon";
|
|
3
4
|
import { Section } from "@sharadox/sharadox-web-library/component/section";
|
|
4
5
|
import styles from "./index.module.css";
|
|
5
6
|
/**
|
|
6
|
-
* One part of a project
|
|
7
|
-
*
|
|
7
|
+
* One part of a project we're proud of: its number and name, what it is, and a few details of how it works, in the
|
|
8
|
+
* frame; then the website's own component across the whole width of the page, as wide as on the site itself, under a
|
|
9
|
+
* bar with a live dot and the site's address.
|
|
8
10
|
*/
|
|
9
|
-
export function Chapter({ number, title, text, live, children }) {
|
|
10
|
-
return (_jsxs(Section, { padded: false, children:
|
|
11
|
+
export function Chapter({ number, title, text, points, detailsLabel, live, children }) {
|
|
12
|
+
return (_jsxs(_Fragment, { children: [_jsx(Section, { padded: false, children: _jsxs(Reveal, { className: styles.copy, children: [_jsx("span", { className: `monospace ${styles.number}`, children: String(number).padStart(2, "0") }), _jsx("h2", { children: title }), _jsxs("div", { className: styles.about, children: [_jsx("p", { children: text }), _jsxs("div", { className: styles.details, children: [_jsx("span", { className: "monospace", children: detailsLabel }), _jsx("ul", { children: points.map((point) => (_jsxs("li", { children: [_jsx(Icon, { name: "check", strokeWidth: 1.6 }), point] }, point))) })] })] })] }) }), _jsxs("div", { className: styles.window, children: [_jsxs("div", { className: `monospace ${styles.bar}`, children: [_jsxs("span", { className: styles.dots, "aria-hidden": true, children: [_jsx("i", {}), _jsx("i", {}), _jsx("i", {})] }), _jsxs("span", { className: styles.live, children: [_jsx("i", { "aria-hidden": true }), live] })] }), _jsx("div", { className: styles.stage, children: children })] })] }));
|
|
11
13
|
}
|
|
12
14
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/project-page/chapter/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,wCAAwC,CAAC;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,kDAAkD,CAAC;AAC3E,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/project-page/chapter/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,wCAAwC,CAAC;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,iCAAiC,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,kDAAkD,CAAC;AAC3E,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC;;;;GAIG;AACH,MAAM,UAAU,OAAO,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAqB;IACtG,OAAO,CACL,8BACE,KAAC,OAAO,IAAC,MAAM,EAAE,KAAK,YACpB,MAAC,MAAM,IAAC,SAAS,EAAE,MAAM,CAAC,IAAI,aAC5B,eAAM,SAAS,EAAE,aAAa,MAAM,CAAC,MAAM,EAAE,YAAG,MAAM,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,GAAQ,EACvF,uBAAK,KAAK,GAAM,EAChB,eAAK,SAAS,EAAE,MAAM,CAAC,KAAK,aAC1B,sBAAI,IAAI,GAAK,EACb,eAAK,SAAS,EAAE,MAAM,CAAC,OAAO,aAC5B,eAAM,SAAS,EAAC,WAAW,YAAE,YAAY,GAAQ,EACjD,uBACG,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CACrB,yBACE,KAAC,IAAI,IAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAE,GAAG,GAAI,EACtC,KAAK,KAFC,KAAK,CAGT,CACN,CAAC,GACC,IACD,IACF,IACC,GACD,EACV,eAAK,SAAS,EAAE,MAAM,CAAC,MAAM,aAC3B,eAAK,SAAS,EAAE,aAAa,MAAM,CAAC,GAAG,EAAE,aACvC,gBAAM,SAAS,EAAE,MAAM,CAAC,IAAI,kCAC1B,aAAK,EACL,aAAK,EACL,aAAK,IACA,EACP,gBAAM,SAAS,EAAE,MAAM,CAAC,IAAI,aAC1B,kCAAiB,EAChB,IAAI,IACA,IACH,EACN,cAAK,SAAS,EAAE,MAAM,CAAC,KAAK,YAAG,QAAQ,GAAO,IAC1C,IACL,CACJ,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.copy{display:grid;grid-template-columns:auto minmax(0, 1fr) minmax(0, 1.
|
|
1
|
+
.copy{display:grid;grid-template-columns:auto minmax(0, 1fr) minmax(0, 1.25fr);align-items:baseline;gap:12px 24px;padding:clamp(40px,6vw,80px) var(--padding) clamp(28px,4vw,44px);text-align:left}.copy h2{font-size:clamp(1.8rem,3.4vw,2.8rem);line-height:1.05;text-wrap:balance}@media(max-width: 900px){.copy{grid-template-columns:auto minmax(0, 1fr)}.copy .about{grid-column:1/-1}}.about{display:grid;justify-content:stretch;gap:22px}.about p{color:var(--foreground-2);line-height:1.65;text-wrap:pretty}.details{display:grid;justify-content:stretch;gap:12px;padding-top:18px;border-top:1px dashed var(--line-2)}.details>span{font-size:11.5px;letter-spacing:.04em;text-transform:uppercase;color:var(--foreground-3)}.details ul{display:grid;gap:10px;margin:0;padding:0;list-style:none}.details li{display:grid;grid-template-columns:auto minmax(0, 1fr);align-items:baseline;gap:10px;font-size:15px;line-height:1.55;color:var(--foreground-2);text-wrap:pretty}.details li svg{position:relative;top:2px;color:var(--foreground)}.number{font-size:12px;color:var(--foreground-3)}.window{border-block:1px solid var(--line)}.bar{display:flex;align-items:center;justify-content:space-between;padding:10px calc(max(var(--gutter),(100% - var(--maximum-width))/2) + var(--padding));border-bottom:1px solid var(--line-2);background:color-mix(in srgb, var(--foreground) 9%, var(--background));font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:var(--foreground-3)}.dots{display:flex;gap:6px}.dots i{width:9px;height:9px;border-radius:50%;background:color-mix(in srgb, var(--foreground) 20%, transparent)}.live{display:flex;align-items:center;gap:8px}.live i{width:7px;height:7px;border-radius:50%;background:var(--foreground);box-shadow:0 0 0 3px color-mix(in srgb, var(--foreground) 20%, transparent);animation:chapter-live 2s ease-in-out infinite}@media(prefers-reduced-motion: reduce){.live i{animation:none}}@keyframes chapter-live{50%{opacity:.45}}.stage{position:relative;min-width:0}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
@use "style/token" as *;
|
|
2
2
|
@use "style/object" as *;
|
|
3
3
|
|
|
4
|
-
/* The number and name on the left
|
|
4
|
+
/* The number and name on the left; what it is and how it works on the right; stacked on phones. */
|
|
5
5
|
.copy {
|
|
6
6
|
display: grid;
|
|
7
|
-
grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.
|
|
7
|
+
grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.25fr);
|
|
8
8
|
align-items: baseline;
|
|
9
9
|
gap: 12px 24px;
|
|
10
10
|
padding: clamp(40px, 6vw, 80px) var(--padding) clamp(28px, 4vw, 44px);
|
|
@@ -14,15 +14,56 @@
|
|
|
14
14
|
line-height: 1.05;
|
|
15
15
|
text-wrap: balance;
|
|
16
16
|
}
|
|
17
|
+
@include below(900px) {
|
|
18
|
+
grid-template-columns: auto minmax(0, 1fr);
|
|
19
|
+
.about {
|
|
20
|
+
grid-column: 1 / -1;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
.about {
|
|
25
|
+
display: grid;
|
|
26
|
+
justify-content: stretch;
|
|
27
|
+
gap: 22px;
|
|
17
28
|
p {
|
|
18
29
|
color: var(--foreground-2);
|
|
19
30
|
line-height: 1.65;
|
|
20
31
|
text-wrap: pretty;
|
|
21
32
|
}
|
|
22
|
-
|
|
33
|
+
}
|
|
34
|
+
/* How it works: a label and a few lines, each after a tick, over a dashed rule. */
|
|
35
|
+
.details {
|
|
36
|
+
display: grid;
|
|
37
|
+
justify-content: stretch;
|
|
38
|
+
gap: 12px;
|
|
39
|
+
padding-top: 18px;
|
|
40
|
+
border-top: 1px dashed var(--line-2);
|
|
41
|
+
> span {
|
|
42
|
+
font-size: 11.5px;
|
|
43
|
+
letter-spacing: 0.04em;
|
|
44
|
+
text-transform: uppercase;
|
|
45
|
+
color: var(--foreground-3);
|
|
46
|
+
}
|
|
47
|
+
ul {
|
|
48
|
+
display: grid;
|
|
49
|
+
gap: 10px;
|
|
50
|
+
margin: 0;
|
|
51
|
+
padding: 0;
|
|
52
|
+
list-style: none;
|
|
53
|
+
}
|
|
54
|
+
li {
|
|
55
|
+
display: grid;
|
|
23
56
|
grid-template-columns: auto minmax(0, 1fr);
|
|
24
|
-
|
|
25
|
-
|
|
57
|
+
align-items: baseline;
|
|
58
|
+
gap: 10px;
|
|
59
|
+
font-size: 15px;
|
|
60
|
+
line-height: 1.55;
|
|
61
|
+
color: var(--foreground-2);
|
|
62
|
+
text-wrap: pretty;
|
|
63
|
+
svg {
|
|
64
|
+
position: relative;
|
|
65
|
+
top: 2px;
|
|
66
|
+
color: var(--foreground);
|
|
26
67
|
}
|
|
27
68
|
}
|
|
28
69
|
}
|
|
@@ -30,15 +71,16 @@
|
|
|
30
71
|
font-size: 12px;
|
|
31
72
|
color: var(--foreground-3);
|
|
32
73
|
}
|
|
33
|
-
/* The live part,
|
|
74
|
+
/* The live part, across the whole page between hairlines, as wide as on its own site. */
|
|
34
75
|
.window {
|
|
35
|
-
border-
|
|
76
|
+
border-block: 1px solid var(--line);
|
|
36
77
|
}
|
|
37
78
|
.bar {
|
|
38
79
|
display: flex;
|
|
39
80
|
align-items: center;
|
|
40
81
|
justify-content: space-between;
|
|
41
|
-
|
|
82
|
+
/* Its ends line up with the frame's content above, however wide the page. */
|
|
83
|
+
padding: 10px calc(max(var(--gutter), (100% - var(--maximum-width)) / 2) + var(--padding));
|
|
42
84
|
border-bottom: 1px solid var(--line-2);
|
|
43
85
|
background: surface($surface);
|
|
44
86
|
font-size: 11px;
|
|
@@ -4,6 +4,9 @@ export interface ChapterProperties {
|
|
|
4
4
|
number: number;
|
|
5
5
|
title: string;
|
|
6
6
|
text: string;
|
|
7
|
+
/** A few details of how it works, under a label (`detailsLabel`). */
|
|
8
|
+
points: readonly string[];
|
|
9
|
+
detailsLabel: string;
|
|
7
10
|
/** The label over the live part ("Live · luispiresdecor.com"). */
|
|
8
11
|
live: string;
|
|
9
12
|
children?: ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../source/component/project-page/chapter/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,iBAAiB;IAChC,4CAA4C;IAC5C,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,kEAAkE;IAClE,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB"}
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../source/component/project-page/chapter/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,iBAAiB;IAChC,4CAA4C;IAC5C,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,qEAAqE;IACrE,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC;IACrB,kEAAkE;IAClE,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { ProjectPageProperties } from "@sharadox/sharadox-web-library/component/project-page/type";
|
|
2
2
|
/**
|
|
3
|
-
* A project's own page. It opens with the
|
|
4
|
-
* made, and the first screen on a computer and a phone. Then
|
|
5
|
-
*
|
|
3
|
+
* A project's own page. It opens with the project's name and the headline, the whole story, the details, the services we
|
|
4
|
+
* made, and the first screen on a computer and a phone. Then a word on what follows: a few of the parts we're proudest
|
|
5
|
+
* of, chapter by chapter, each explained (what it is, how it works) and then running live in a window, the website's
|
|
6
|
+
* own components, across the whole width of the page as on the site itself. At the end, "See it live": the site
|
|
7
|
+
* itself, in a new tab, and the way back.
|
|
6
8
|
*
|
|
7
9
|
* @example
|
|
8
10
|
* <ProjectPage project={PORTFOLIO.projects[0]} locale="en" chapters={{ hero: <Hero locale="en" /> }} />
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/project-page/index.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4DAA4D,CAAC;AAExG
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/project-page/index.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4DAA4D,CAAC;AAExG;;;;;;;;;GASG;AACH,wBAAgB,WAAW,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,qBAAqB,+BAuE/E"}
|
|
@@ -12,9 +12,11 @@ import { PORTFOLIO } from "@sharadox/sharadox-web-library/content/portfolio";
|
|
|
12
12
|
import { SECTION } from "@sharadox/sharadox-web-library/content/section";
|
|
13
13
|
import styles from "./index.module.css";
|
|
14
14
|
/**
|
|
15
|
-
* A project's own page. It opens with the
|
|
16
|
-
* made, and the first screen on a computer and a phone. Then
|
|
17
|
-
*
|
|
15
|
+
* A project's own page. It opens with the project's name and the headline, the whole story, the details, the services we
|
|
16
|
+
* made, and the first screen on a computer and a phone. Then a word on what follows: a few of the parts we're proudest
|
|
17
|
+
* of, chapter by chapter, each explained (what it is, how it works) and then running live in a window, the website's
|
|
18
|
+
* own components, across the whole width of the page as on the site itself. At the end, "See it live": the site
|
|
19
|
+
* itself, in a new tab, and the way back.
|
|
18
20
|
*
|
|
19
21
|
* @example
|
|
20
22
|
* <ProjectPage project={PORTFOLIO.projects[0]} locale="en" chapters={{ hero: <Hero locale="en" /> }} />
|
|
@@ -23,6 +25,6 @@ export function ProjectPage({ project, locale, chapters }) {
|
|
|
23
25
|
const { details, page } = PORTFOLIO;
|
|
24
26
|
const domain = new URL(project.url).host;
|
|
25
27
|
const shown = project.chapters.filter((chapter) => chapters[chapter.key]);
|
|
26
|
-
return (_jsxs("article", { className: styles.page, children: [_jsxs(Section, { className: styles.intro, padded: false, children: [_jsxs(Reveal, { className: styles.copy, children: [_jsxs(Eyebrow, { children: [translate(SECTION.portfolio, locale), " \u00B7 ", launchDate(project.date, locale)] }), _jsxs("h1", { children: [_jsx("span", { className: styles.client, children: project.
|
|
28
|
+
return (_jsxs("article", { className: styles.page, children: [_jsxs(Section, { className: styles.intro, padded: false, children: [_jsxs(Reveal, { className: styles.copy, children: [_jsxs(Eyebrow, { children: [translate(SECTION.portfolio, locale), " \u00B7 ", launchDate(project.date, locale)] }), _jsxs("h1", { children: [_jsx("span", { className: styles.client, children: project.title }), translate(project.name, locale)] }), _jsx("p", { className: styles.story, children: translate(project.story, locale) }), _jsxs("dl", { className: styles.details, children: [_jsxs("div", { children: [_jsx("dt", { children: translate(details.client, locale) }), _jsx("dd", { children: project.client })] }), _jsxs("div", { children: [_jsx("dt", { children: translate(details.place, locale) }), _jsx("dd", { children: translate(project.place, locale) })] }), _jsxs("div", { children: [_jsx("dt", { children: translate(details.launched, locale) }), _jsx("dd", { children: launchDate(project.date, locale) })] })] }), _jsxs("div", { className: styles.services, children: [_jsx("span", { className: "monospace", children: translate(details.services, locale) }), _jsx("ul", { children: project.services.map((service) => (_jsx("li", { children: serviceName(service, locale) }, service))) })] })] }), _jsx(Screens, { project: project, label: `${project.client} ${translate(PORTFOLIO.screens, locale)}`, priority: true })] }), _jsxs(Section, { className: styles.lead, children: [_jsx(Eyebrow, { children: translate(page.intro.eyebrow, locale) }), _jsx("p", { className: styles.leadText, children: translate(page.intro.text, locale) })] }), shown.map((chapter, index) => (_jsx(Chapter, { number: index + 1, title: translate(chapter.title, locale), text: translate(chapter.text, locale), points: chapter.points.map((point) => translate(point, locale)), detailsLabel: translate(page.details, locale), live: `${translate(page.live, locale)} · ${domain}`, children: chapters[chapter.key] }, chapter.key))), _jsxs(Section, { className: styles.end, children: [_jsx("h2", { children: translate(page.visitTitle, locale) }), _jsxs("div", { className: styles.actions, children: [_jsxs(Button, { href: project.url, arrow: true, children: [translate(page.visit, locale), " ", domain] }), _jsx(Button, { href: `/${locale}#${SECTION.portfolio.id}`, variant: "ghost", children: translate(page.back, locale) })] })] })] }));
|
|
27
29
|
}
|
|
28
30
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/project-page/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,wCAAwC,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,EAAE,MAAM,EAAE,MAAM,iDAAiD,CAAC;AACzE,OAAO,EAAE,OAAO,EAAE,MAAM,kDAAkD,CAAC;AAC3E,O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,EAAE,GAAG,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,MAAM,EAAE,YAElD,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,IARjB,OAAO,CAAC,GAAG,CASR,CACX,CAAC,EACF,MAAC,OAAO,IAAC,SAAS,EAAE,MAAM,CAAC,GAAG,aAC5B,uBAAK,SAAS,CAAC,IAAI,CAAC,UAAU,EAAE,MAAM,CAAC,GAAM,EAC7C,eAAK,SAAS,EAAE,MAAM,CAAC,OAAO,aAC5B,MAAC,MAAM,IAAC,IAAI,EAAE,OAAO,CAAC,GAAG,EAAE,KAAK,mBAC7B,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,OAAG,MAAM,IAChC,EACT,KAAC,MAAM,IAAC,IAAI,EAAE,IAAI,MAAM,IAAI,OAAO,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,OAAO,EAAC,OAAO,YAChE,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,GACtB,IACL,IACE,IACF,CACX,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.page{display:grid;grid-template-columns:minmax(0, 1fr)}.intro{display:grid;grid-template-columns:minmax(0, 5fr) minmax(0, 7fr);align-items:center;margin-top:64px}@media(max-width: 1000px){.intro{grid-template-columns:minmax(0, 1fr)}}.copy{display:grid;justify-content:stretch;gap:24px;padding:clamp(40px,6vw,88px) var(--padding);text-align:left}.copy h1{display:grid;gap:14px;font-size:clamp(2.4rem,5vw,4rem);line-height:1;text-wrap:balance}.client{font-size:15px;font-weight:500;letter-spacing:0;color:var(--foreground-2)}.story{color:var(--foreground-2);line-height:1.7;text-wrap:pretty}.details{display:grid;grid-template-columns:repeat(3, minmax(0, 1fr));margin:0;border-block:1px dashed var(--line-2)}.details>div{display:grid;justify-content:stretch;align-content:start;gap:4px;padding:14px 12px 14px 0}.details>div+div{padding-left:12px;border-left:1px dashed var(--line-2)}.details dt{font-family:var(--monospace);font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:var(--foreground-3)}.details dd{margin:0;font-size:14px}.services{display:grid;justify-content:stretch;gap:10px}.services>span{font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:var(--foreground-3)}.services ul{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:8px;margin:0;padding:0;list-style:none}.services li{padding:6px 12px;border:1px solid var(--line-2);border-radius:99px;background:color-mix(in srgb, var(--foreground) 10%, var(--background));font-size:13px}.end{display:grid;justify-items:center;gap:28px;text-align:center}.end h2{max-width:
|
|
1
|
+
.page{display:grid;grid-template-columns:minmax(0, 1fr)}.intro{display:grid;grid-template-columns:minmax(0, 5fr) minmax(0, 7fr);align-items:center;margin-top:64px}@media(max-width: 1000px){.intro{grid-template-columns:minmax(0, 1fr)}}.copy{display:grid;justify-content:stretch;gap:24px;padding:clamp(40px,6vw,88px) var(--padding);text-align:left}.copy h1{display:grid;gap:14px;font-size:clamp(2.4rem,5vw,4rem);line-height:1;text-wrap:balance}.client{font-size:15px;font-weight:500;letter-spacing:0;color:var(--foreground-2)}.story{color:var(--foreground-2);line-height:1.7;text-wrap:pretty}.details{display:grid;grid-template-columns:repeat(3, minmax(0, 1fr));margin:0;border-block:1px dashed var(--line-2)}.details>div{display:grid;justify-content:stretch;align-content:start;gap:4px;padding:14px 12px 14px 0}.details>div+div{padding-left:12px;border-left:1px dashed var(--line-2)}.details dt{font-family:var(--monospace);font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:var(--foreground-3)}.details dd{margin:0;font-size:14px}.services{display:grid;justify-content:stretch;gap:10px}.services>span{font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:var(--foreground-3)}.services ul{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:8px;margin:0;padding:0;list-style:none}.services li{padding:6px 12px;border:1px solid var(--line-2);border-radius:99px;background:color-mix(in srgb, var(--foreground) 10%, var(--background));font-size:13px}.end{display:grid;justify-items:center;gap:28px;text-align:center}.end h2{max-width:22ch;text-wrap:balance}.actions{display:flex;flex-wrap:wrap;gap:12px}.lead{display:grid;justify-items:start;gap:18px;border-top:1px solid var(--line);text-align:left}.lead .leadText{max-width:52ch;font-size:clamp(1.25rem,2.2vw,1.75rem);font-weight:500;line-height:1.3;letter-spacing:-0.03em;text-wrap:pretty}
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
gap: 28px;
|
|
105
105
|
text-align: center;
|
|
106
106
|
h2 {
|
|
107
|
-
max-width:
|
|
107
|
+
max-width: 22ch;
|
|
108
108
|
text-wrap: balance;
|
|
109
109
|
}
|
|
110
110
|
}
|
|
@@ -113,3 +113,20 @@
|
|
|
113
113
|
flex-wrap: wrap;
|
|
114
114
|
gap: 12px;
|
|
115
115
|
}
|
|
116
|
+
|
|
117
|
+
/* Before the chapters: what the page shows, in a few calm lines. */
|
|
118
|
+
.lead {
|
|
119
|
+
display: grid;
|
|
120
|
+
justify-items: start;
|
|
121
|
+
gap: 18px;
|
|
122
|
+
border-top: 1px solid var(--line);
|
|
123
|
+
text-align: left;
|
|
124
|
+
.leadText {
|
|
125
|
+
max-width: 52ch;
|
|
126
|
+
font-size: clamp(1.25rem, 2.2vw, 1.75rem);
|
|
127
|
+
font-weight: 500;
|
|
128
|
+
line-height: 1.3;
|
|
129
|
+
letter-spacing: -0.03em;
|
|
130
|
+
text-wrap: pretty;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.index{align-items:stretch;text-align:left;position:relative;width:min(100% - 2*var(--gutter),var(--maximum-width));margin:0 auto;display:grid;grid-template-columns:repeat(4, 1fr);border:1px solid var(--line)}@media(max-width: 960px){.index{grid-template-columns:repeat(2, 1fr)}}.cell{animation:rise .9s cubic-bezier(0.22, 1, 0.36, 1) both}:global(:root[data-soft-navigation]) .cell{animation-duration:0s !important;animation-delay:0s !important}.cell:not(:last-of-type)::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}@media(max-width: 960px){.cell:nth-of-type(even)::after{display:none}.cell:nth-of-type(-n + 2){
|
|
1
|
+
.index{align-items:stretch;text-align:left;position:relative;width:min(100% - 2*var(--gutter),var(--maximum-width));margin:0 auto;display:grid;grid-template-columns:repeat(4, 1fr);border:1px solid var(--line)}@media(max-width: 960px){.index{grid-template-columns:repeat(2, 1fr)}}.cell{animation:rise .9s cubic-bezier(0.22, 1, 0.36, 1) both}:global(:root[data-soft-navigation]) .cell{animation-duration:0s !important;animation-delay:0s !important}.cell:not(:last-of-type)::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}@media(max-width: 960px){.cell:nth-of-type(even)::after{display:none}.cell:nth-of-type(-n + 2){background:linear-gradient(90deg, var(--line-2) 50%, transparent 0) 0 100%/8px 1px repeat-x}}@keyframes rise{from{opacity:0;transform:translateY(10px)}}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
grid-template-columns: repeat(2, 1fr);
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
/* Each shortcut rises in, one after another; dashed lines stand between them,
|
|
16
|
+
/* Each shortcut rises in, one after another; dashed lines stand between them, across and down alike. */
|
|
17
17
|
.cell {
|
|
18
18
|
animation: rise 0.9s $ease both;
|
|
19
19
|
@include skip-entrance;
|
|
@@ -30,8 +30,9 @@
|
|
|
30
30
|
&:nth-of-type(even)::after {
|
|
31
31
|
display: none;
|
|
32
32
|
}
|
|
33
|
+
/* The line under the first row, drawn along each cell's bottom edge. */
|
|
33
34
|
&:nth-of-type(-n + 2) {
|
|
34
|
-
|
|
35
|
+
@include dashed(horizontal, $at: 0 100%);
|
|
35
36
|
}
|
|
36
37
|
}
|
|
37
38
|
}
|
|
@@ -48,6 +48,15 @@ export declare const CONTACT: {
|
|
|
48
48
|
readonly en: "Phone";
|
|
49
49
|
readonly pt: "Telefone";
|
|
50
50
|
};
|
|
51
|
+
/** The phone's country picker: its name, and the box that searches it. */
|
|
52
|
+
readonly country: {
|
|
53
|
+
readonly en: "Country";
|
|
54
|
+
readonly pt: "País";
|
|
55
|
+
};
|
|
56
|
+
readonly search: {
|
|
57
|
+
readonly en: "Search";
|
|
58
|
+
readonly pt: "Procurar";
|
|
59
|
+
};
|
|
51
60
|
/** Under the email and phone: one of them is enough. */
|
|
52
61
|
readonly reach: {
|
|
53
62
|
readonly en: "Leave an email, a phone number, or both.";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/content/contact/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iDAAiD,CAAC;AAEtF,qCAAqC;AACrC,eAAO,MAAM,OAAO;IAClB,sGAAsG;;IAEtG,mGAAmG;;;;;qCAK/E,MAAM;;;;;;;;;;;qCAWN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAiB1B,wDAAwD;;;;;;;;;;;;;;QAKtD,gIAAgI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAMhI,+EAA+E;;;;;;;;;;;;;;;;;QAS/E,gCAAgC;0BAK3B,SAAS;YAAE,GAAG,EAAE,OAAO,CAAC;YAAC,EAAE,EAAE,MAAM,CAAC;YAAC,EAAE,EAAE,MAAM,CAAA;SAAE,EAAE;;;;;;;;;;;;;;;;;;IAS1D,kDAAkD;;IAElD,sGAAsG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8B9F,CAAC;AAEX,wFAAwF;AACxF,MAAM,MAAM,OAAO,GAAG,cAAc,GAAG,QAAQ,GAAG,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/content/contact/index.ts"],"names":[],"mappings":"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