@sharadox/sharadox-web-library 0.11.1 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/distribution/component/hero/guide/index.module.css +1 -1
- package/distribution/component/hero/guide/index.module.scss +2 -0
- package/distribution/component/hero/index.d.ts.map +1 -1
- package/distribution/component/hero/index.js +5 -1
- package/distribution/component/hero/index.js.map +1 -1
- package/distribution/component/hero/index.module.css +1 -1
- package/distribution/component/hero/index.module.scss +2 -1
- package/distribution/component/not-found/index.d.ts.map +1 -1
- package/distribution/component/not-found/index.js +7 -3
- package/distribution/component/not-found/index.js.map +1 -1
- package/distribution/component/section-indicator/index.module.css +1 -1
- package/distribution/component/section-indicator/index.module.scss +1 -0
- package/distribution/component/service-index/index.module.css +1 -1
- package/distribution/component/service-index/index.module.scss +1 -0
- package/distribution/component/services/campaign-visual/index.module.css +1 -1
- package/distribution/component/services/campaign-visual/index.module.scss +3 -0
- package/distribution/component/services/design-visual/index.module.css +1 -1
- package/distribution/component/services/design-visual/index.module.scss +2 -0
- package/distribution/component/services/social-visual/index.module.css +1 -1
- package/distribution/component/services/social-visual/index.module.scss +3 -0
- package/distribution/component/services/web-visual/index.module.css +1 -1
- package/distribution/component/services/web-visual/index.module.scss +1 -0
- package/distribution/style/token/index.scss +13 -0
- package/llms.txt +1 -0
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -38,7 +38,8 @@ Everything generic comes from the open-source Sharadox libraries, configured her
|
|
|
38
38
|
- `NotFound`: the 404 screen, a giant 404 whose zero is the live globe, with the failed request and the way back (put `ServiceIndex base="/<locale>"` under it)
|
|
39
39
|
- **`action/send-contact`:** `sendContact(form, ip)`, the shared contact action set up for Sharadox ("Contact • Name (Company)" subjects, sent to contact@sharadox.com as "Sharadox Web Application").
|
|
40
40
|
- **`utility/`:** `separate()` (the Sharadox separator) and the share card's horizon dots.
|
|
41
|
-
- **`style/token`:** Sass helpers (`tint()`, `shade()`, `dashed()`, `on-scroll()`, `below()`) used by every component's styles.
|
|
41
|
+
- **`style/token`:** Sass helpers (`tint()`, `shade()`, `dashed()`, `on-scroll()`, `below()`, `skip-entrance()`) used by every component's styles. `skip-entrance` marks a time-based entrance animation so it shows its final state at once after a language switch.
|
|
42
|
+
- **Language switch:** the page is rebuilt in place without replaying entrances (hero, 404, guides, service row and visuals), the globe keeps turning from where it was, and changed text animates (the application adds `LocaleTransitionStyle` in `<head>`).
|
|
42
43
|
|
|
43
44
|
## Use in the application
|
|
44
45
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.guide{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none;mask-image:radial-gradient(75% 70% at 60% 45%, #000 30%, transparent 85%)}.column{position:absolute;top:0;bottom:0;width:1px;background:linear-gradient(180deg, var(--line-2) 50%, transparent 0) 0 0/1px 10px repeat-y;transform-origin:top;animation:grow-down 1.6s cubic-bezier(0.22, 1, 0.36, 1) both}.row{position:absolute;left:0;right:0;height:1px;background:linear-gradient(90deg, var(--line-2) 50%, transparent 0) 0 0/10px 1px repeat-x;transform-origin:left;animation:grow-across 1.6s cubic-bezier(0.22, 1, 0.36, 1) both}@keyframes grow-down{from{transform:scaleY(0)}}@keyframes grow-across{from{transform:scaleX(0)}}.beam{position:absolute;opacity:0}.down{top:0;width:1px;height:120px;margin-left:-0.5px;background:linear-gradient(180deg, transparent, var(--foreground));animation:beam-down 7s 1.4s linear infinite}.across{left:0;height:1px;width:160px;margin-top:-0.5px;background:linear-gradient(90deg, transparent, var(--foreground));animation:beam-across 9s 2.2s linear infinite}.late{animation-delay:4.6s}@keyframes beam-down{0%{opacity:0;transform:translateY(-120px)}8%{opacity:1}45%,100%{opacity:0;transform:translateY(100vh)}}@keyframes beam-across{0%{opacity:0;transform:translateX(-160px)}8%{opacity:1}50%,100%{opacity:0;transform:translateX(100vw)}}@media(prefers-reduced-motion: reduce){.beam{display:none}}
|
|
1
|
+
.guide{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none;mask-image:radial-gradient(75% 70% at 60% 45%, #000 30%, transparent 85%)}.column{position:absolute;top:0;bottom:0;width:1px;background:linear-gradient(180deg, var(--line-2) 50%, transparent 0) 0 0/1px 10px repeat-y;transform-origin:top;animation:grow-down 1.6s cubic-bezier(0.22, 1, 0.36, 1) both}:global(:root[data-soft-navigation]) .column{animation-duration:0s !important;animation-delay:0s !important}.row{position:absolute;left:0;right:0;height:1px;background:linear-gradient(90deg, var(--line-2) 50%, transparent 0) 0 0/10px 1px repeat-x;transform-origin:left;animation:grow-across 1.6s cubic-bezier(0.22, 1, 0.36, 1) both}:global(:root[data-soft-navigation]) .row{animation-duration:0s !important;animation-delay:0s !important}@keyframes grow-down{from{transform:scaleY(0)}}@keyframes grow-across{from{transform:scaleX(0)}}.beam{position:absolute;opacity:0}.down{top:0;width:1px;height:120px;margin-left:-0.5px;background:linear-gradient(180deg, transparent, var(--foreground));animation:beam-down 7s 1.4s linear infinite}.across{left:0;height:1px;width:160px;margin-top:-0.5px;background:linear-gradient(90deg, transparent, var(--foreground));animation:beam-across 9s 2.2s linear infinite}.late{animation-delay:4.6s}@keyframes beam-down{0%{opacity:0;transform:translateY(-120px)}8%{opacity:1}45%,100%{opacity:0;transform:translateY(100vh)}}@keyframes beam-across{0%{opacity:0;transform:translateX(-160px)}8%{opacity:1}50%,100%{opacity:0;transform:translateX(100vw)}}@media(prefers-reduced-motion: reduce){.beam{display:none}}
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
@include dashed(vertical, var(--line-2), 5px, 5px);
|
|
17
17
|
transform-origin: top;
|
|
18
18
|
animation: grow-down 1.6s $ease both;
|
|
19
|
+
@include skip-entrance;
|
|
19
20
|
}
|
|
20
21
|
.row {
|
|
21
22
|
position: absolute;
|
|
@@ -25,6 +26,7 @@
|
|
|
25
26
|
@include dashed(horizontal, var(--line-2), 5px, 5px);
|
|
26
27
|
transform-origin: left;
|
|
27
28
|
animation: grow-across 1.6s $ease both;
|
|
29
|
+
@include skip-entrance;
|
|
28
30
|
}
|
|
29
31
|
@keyframes grow-down {
|
|
30
32
|
from {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/hero/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/hero/index.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oDAAoD,CAAC;AAQzF,wGAAwG;AACxG,wBAAgB,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,cAAc,+BAoE9C"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { motion } from "motion/react";
|
|
4
|
+
import { useState } from "react";
|
|
5
|
+
import { isSoftNavigation } from "@sharadox/web-library/navigation/soft-navigation";
|
|
4
6
|
import dynamic from "next/dynamic";
|
|
5
7
|
import { Button } from "@sharadox/sharadox-web-library/component/button";
|
|
6
8
|
import { Cross } from "@sharadox/sharadox-web-library/component/cross";
|
|
@@ -20,7 +22,9 @@ const Globe = dynamic(() => import("@sharadox/sharadox-web-library/component/glo
|
|
|
20
22
|
const EASE = [0.22, 1, 0.36, 1];
|
|
21
23
|
/** First screen, inside the grid frame: the slogan rising line by line beside the interactive globe. */
|
|
22
24
|
export function Hero({ locale }) {
|
|
25
|
+
// After a language switch the page is rebuilt in place: show it as it was, without replaying the entrance.
|
|
26
|
+
const [settled] = useState(isSoftNavigation);
|
|
23
27
|
const lines = SLOGAN_LINES[locale];
|
|
24
|
-
return (_jsxs("section", { id: SECTION.home.id, className: styles.hero, children: [_jsx(HeroGuide, {}), _jsx(Cross, { corner: "bottom-left" }), _jsx(Cross, { corner: "bottom-right" }), _jsxs("div", { className: styles.copy, children: [_jsx(motion.div, { initial: { opacity: 0 }, animate: { opacity: 1 }, transition: { duration: 1, delay: 0.1 }, children: _jsxs(Eyebrow, { className: styles.eyebrow, children: [_jsx("span", { className: styles.live, "aria-hidden": true }), " ", translate(HERO.eyebrow, locale)] }) }), _jsx("h1", { className: styles.title, children: lines.map((line, index) => (_jsx("span", { className: styles.line, children: _jsx(motion.span, { className: index === lines.length - 1 ? `${styles.lineInner} ${styles.dim}` : styles.lineInner, initial: { y: "110%" }, animate: { y: "0%" }, transition: { duration: 1.1, delay: 0.2 + index * 0.12, ease: EASE }, children: line }) }, index))) }), _jsx(motion.p, { className: styles.subtitle, initial: { opacity: 0, y: 14 }, animate: { opacity: 1, y: 0 }, transition: { duration: 0.9, delay: 0.75, ease: EASE }, children: translate(HERO.subtitle, locale) }), _jsxs(motion.div, { className: styles.actions, initial: { opacity: 0, y: 14 }, animate: { opacity: 1, y: 0 }, transition: { duration: 0.9, delay: 0.9, ease: EASE }, children: [_jsx(Button, { href: `#${SECTION.contact.id}`, arrow: true, children: translate(ACTION.startProject, locale) }), _jsx(Button, { href: `#${SECTION.services.id}`, variant: "ghost", children: translate(HERO.secondary, locale) })] })] }), _jsxs(motion.div, { className: styles.globe, initial: { opacity: 0, scale: 0.92 }, animate: { opacity: 1, scale: 1 }, transition: { duration: 1.8, delay: 0.3, ease: EASE }, children: [_jsx(Globe, {}), _jsx("span", { className: `${styles.hint} monospace`, "aria-hidden": true, children: translate(HERO.drag, locale) })] })] }));
|
|
28
|
+
return (_jsxs("section", { id: SECTION.home.id, className: styles.hero, children: [_jsx(HeroGuide, {}), _jsx(Cross, { corner: "bottom-left" }), _jsx(Cross, { corner: "bottom-right" }), _jsxs("div", { className: styles.copy, children: [_jsx(motion.div, { initial: settled ? false : { opacity: 0 }, animate: { opacity: 1 }, transition: { duration: 1, delay: 0.1 }, children: _jsxs(Eyebrow, { className: styles.eyebrow, children: [_jsx("span", { className: styles.live, "aria-hidden": true }), " ", translate(HERO.eyebrow, locale)] }) }), _jsx("h1", { className: styles.title, children: lines.map((line, index) => (_jsx("span", { className: styles.line, children: _jsx(motion.span, { className: index === lines.length - 1 ? `${styles.lineInner} ${styles.dim}` : styles.lineInner, initial: settled ? false : { y: "110%" }, animate: { y: "0%" }, transition: { duration: 1.1, delay: 0.2 + index * 0.12, ease: EASE }, children: line }) }, index))) }), _jsx(motion.p, { className: styles.subtitle, initial: settled ? false : { opacity: 0, y: 14 }, animate: { opacity: 1, y: 0 }, transition: { duration: 0.9, delay: 0.75, ease: EASE }, children: translate(HERO.subtitle, locale) }), _jsxs(motion.div, { className: styles.actions, initial: settled ? false : { opacity: 0, y: 14 }, animate: { opacity: 1, y: 0 }, transition: { duration: 0.9, delay: 0.9, ease: EASE }, children: [_jsx(Button, { href: `#${SECTION.contact.id}`, arrow: true, children: translate(ACTION.startProject, locale) }), _jsx(Button, { href: `#${SECTION.services.id}`, variant: "ghost", children: translate(HERO.secondary, locale) })] })] }), _jsxs(motion.div, { className: styles.globe, initial: settled ? false : { opacity: 0, scale: 0.92 }, animate: { opacity: 1, scale: 1 }, transition: { duration: 1.8, delay: 0.3, ease: EASE }, children: [_jsx(Globe, {}), _jsx("span", { className: `${styles.hint} monospace`, "aria-hidden": true, children: translate(HERO.drag, locale) })] })] }));
|
|
25
29
|
}
|
|
26
30
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/hero/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,iDAAiD,CAAC;AACzE,OAAO,EAAE,KAAK,EAAE,MAAM,gDAAgD,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,kDAAkD,CAAC;AAC3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,4DAA4D,CAAC;AAC9F,OAAO,EAAE,SAAS,EAAE,M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EAAE,IAAI,EAAE,EACtD,OAAO,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EACjC,UAAU,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,aAErD,KAAC,KAAK,KAAG,EACT,eAAM,SAAS,EAAE,GAAG,MAAM,CAAC,IAAI,YAAY,iCACxC,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,GACxB,IACI,IACL,CACX,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.hero{position:relative;min-height:min(100svh,980px);width:min(100% - 2*var(--gutter),var(--maximum-width));margin:0 auto;padding:104px var(--padding) 56px;border-inline:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:24px}@media(max-width: 900px){.hero{grid-template-columns:1fr;padding-top:72px;gap:0}}.copy{position:relative;z-index:2;container-type:inline-size}.eyebrow{padding:6px 12px 6px 10px;border:1px solid var(--line-2);border-radius:99px;background:color-mix(in srgb, var(--background) 60%, transparent);backdrop-filter:blur(6px)}.live{width:7px;height:7px;border-radius:50%;background:var(--foreground);box-shadow:0 0 0 0 color-mix(in srgb, var(--foreground) 60%, transparent);animation:live 2.4s infinite}@keyframes live{70%{box-shadow:0 0 0 9px color-mix(in srgb, var(--foreground) 0%, transparent)}100%{box-shadow:0 0 0 0 color-mix(in srgb, var(--foreground) 0%, transparent)}}.title{margin:26px 0 26px;font-size:min(clamp(3rem,7vw,6.4rem),14.6cqi);white-space:nowrap;letter-spacing:-0.06em;line-height:.95}@media(max-width: 900px){.title{margin-top:18px}}.line{display:block;overflow:hidden;padding-bottom:.06em}.lineInner{display:inline-block}.dim{background:linear-gradient(180deg, var(--foreground) 10%, var(--foreground-3) 120%);-webkit-background-clip:text;background-clip:text;color:rgba(0,0,0,0)}.subtitle{max-width:31rem;font-size:clamp(1.05rem,1.4vw,1.2rem);color:var(--foreground-2);line-height:1.55}.actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:34px}.globe{position:absolute;z-index:1;left:75%;top:50%;width:61.3%;aspect-ratio:1;margin:calc(61.3%/-2) 0 0 calc(61.3%/-2)}@media(max-width: 900px){.globe{position:relative;left:auto;top:auto;order:-1;width:112%;margin:0 -6%;justify-self:center}}.hint{position:absolute;left:50%;bottom:
|
|
1
|
+
.hero{position:relative;min-height:min(100svh,980px);width:min(100% - 2*var(--gutter),var(--maximum-width));margin:0 auto;padding:104px var(--padding) 56px;border-inline:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:24px}@media(max-width: 900px){.hero{grid-template-columns:1fr;padding-top:72px;gap:0}}.copy{position:relative;z-index:2;container-type:inline-size}.eyebrow{padding:6px 12px 6px 10px;border:1px solid var(--line-2);border-radius:99px;background:color-mix(in srgb, var(--background) 60%, transparent);backdrop-filter:blur(6px)}.live{width:7px;height:7px;border-radius:50%;background:var(--foreground);box-shadow:0 0 0 0 color-mix(in srgb, var(--foreground) 60%, transparent);animation:live 2.4s infinite}@keyframes live{70%{box-shadow:0 0 0 9px color-mix(in srgb, var(--foreground) 0%, transparent)}100%{box-shadow:0 0 0 0 color-mix(in srgb, var(--foreground) 0%, transparent)}}.title{margin:26px 0 26px;font-size:min(clamp(3rem,7vw,6.4rem),14.6cqi);white-space:nowrap;letter-spacing:-0.06em;line-height:.95}@media(max-width: 900px){.title{margin-top:18px}}.line{display:block;overflow:hidden;padding-bottom:.06em}.lineInner{display:inline-block}.dim{background:linear-gradient(180deg, var(--foreground) 10%, var(--foreground-3) 120%);-webkit-background-clip:text;background-clip:text;color:rgba(0,0,0,0)}.subtitle{max-width:31rem;font-size:clamp(1.05rem,1.4vw,1.2rem);color:var(--foreground-2);line-height:1.55}.actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:34px}.globe{position:absolute;z-index:1;left:75%;top:50%;width:61.3%;aspect-ratio:1;margin:calc(61.3%/-2) 0 0 calc(61.3%/-2)}@media(max-width: 900px){.globe{position:relative;left:auto;top:auto;order:-1;width:112%;margin:0 -6%;justify-self:center}}.hint{position:absolute;left:50%;bottom:2%;transform:translateX(-50%);font-size:11.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--foreground-3);pointer-events:none}
|
|
@@ -107,10 +107,11 @@ $globe-canvas: 61.3%;
|
|
|
107
107
|
justify-self: center;
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
+
/* Just below the globe body, which ends about 9% above the canvas's bottom edge. */
|
|
110
111
|
.hint {
|
|
111
112
|
position: absolute;
|
|
112
113
|
left: 50%;
|
|
113
|
-
bottom:
|
|
114
|
+
bottom: 2%;
|
|
114
115
|
transform: translateX(-50%);
|
|
115
116
|
font-size: 11.5px;
|
|
116
117
|
letter-spacing: 0.06em;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/not-found/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/not-found/index.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yDAAyD,CAAC;AAclG;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,kBAAkB,+BA6D5D"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { motion } from "motion/react";
|
|
4
|
+
import { useState } from "react";
|
|
5
|
+
import { isSoftNavigation } from "@sharadox/web-library/navigation/soft-navigation";
|
|
4
6
|
import dynamic from "next/dynamic";
|
|
5
7
|
import { translate } from "@sharadox/internationalization-web-library/translate";
|
|
6
8
|
import { Button } from "@sharadox/sharadox-web-library/component/button";
|
|
@@ -17,8 +19,8 @@ const Globe = dynamic(() => import("@sharadox/sharadox-web-library/component/glo
|
|
|
17
19
|
loading: () => _jsx(GlobePlaceholder, {}),
|
|
18
20
|
});
|
|
19
21
|
const EASE = [0.22, 1, 0.36, 1];
|
|
20
|
-
const rise = (delay) => ({
|
|
21
|
-
initial: { opacity: 0, y: 18 },
|
|
22
|
+
const rise = (delay, settled) => ({
|
|
23
|
+
initial: settled ? false : { opacity: 0, y: 18 },
|
|
22
24
|
animate: { opacity: 1, y: 0 },
|
|
23
25
|
transition: { duration: 0.9, delay, ease: EASE },
|
|
24
26
|
});
|
|
@@ -30,6 +32,8 @@ const rise = (delay) => ({
|
|
|
30
32
|
* <NotFound locale="en" path="/en/old-page" />
|
|
31
33
|
*/
|
|
32
34
|
export function NotFound({ locale, path }) {
|
|
33
|
-
|
|
35
|
+
// After a language switch the page is rebuilt in place: show it as it was, without replaying the entrance.
|
|
36
|
+
const [settled] = useState(isSoftNavigation);
|
|
37
|
+
return (_jsxs(Section, { className: styles.notFound, padded: false, children: [_jsx("div", { className: styles.glow, "aria-hidden": true }), _jsx(motion.div, { ...rise(0.05, settled), children: _jsxs(Eyebrow, { className: styles.eyebrow, children: [_jsx("span", { className: styles.live, "aria-hidden": true }), " ", separate(translate(NOT_FOUND.error, locale), "404")] }) }), _jsxs("div", { className: styles.code, "aria-hidden": true, children: [_jsx(motion.span, { className: styles.digit, ...rise(0.15, settled), children: "4" }), _jsx(motion.span, { className: styles.world, initial: settled ? false : { opacity: 0, scale: 0.6, rotate: -20 }, animate: { opacity: 1, scale: 1, rotate: 0 }, transition: { duration: 1.6, delay: 0.25, ease: EASE }, children: _jsx(Globe, {}) }), _jsx(motion.span, { className: styles.digit, ...rise(0.35, settled), children: "4" })] }), _jsx("h1", { className: styles.title, children: _jsx("span", { className: styles.line, children: _jsx(motion.span, { className: styles.lineInner, initial: settled ? false : { y: "110%" }, animate: { y: "0%" }, transition: { duration: 1.1, delay: 0.5, ease: EASE }, children: translate(NOT_FOUND.heading, locale) }) }) }), _jsx(motion.p, { className: styles.text, ...rise(0.7, settled), children: translate(NOT_FOUND.text, locale) }), _jsxs(motion.p, { className: `${styles.request} monospace`, ...rise(0.8, settled), children: [_jsx("span", { className: styles.method, children: "GET" }), _jsx("span", { className: styles.path, children: path }), _jsx("span", { className: styles.status, children: "\u2192 404" }), _jsx("span", { className: styles.caret, "aria-hidden": true })] }), _jsxs(motion.div, { className: styles.actions, ...rise(0.9, settled), children: [_jsx(Button, { href: `/${locale}`, arrow: true, children: translate(NOT_FOUND.home, locale) }), _jsx(Button, { href: `/${locale}#${SECTION.contact.id}`, variant: "ghost", children: translate(ACTION.startProject, locale) })] }), _jsxs(motion.p, { className: `${styles.explore} monospace`, ...rise(1, settled), children: [translate(NOT_FOUND.explore, locale), " \u2193"] })] }));
|
|
34
38
|
}
|
|
35
39
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/not-found/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,EAAE,MAAM,EAAE,MAAM,iDAAiD,CAAC;AACzE,OAAO,EAAE,OAAO,EAAE,MAAM,kDAAkD,CAAC;AAC3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,4DAA4D,CAAC;AAC9F,OAAO,EAAE,OAAO,EAAE,MAAM,kDAAkD,CAAC;AAC3E,OAAO,EAAE,SAAS,EAAE,MAAM,kDAAkD,CAAC;AAC7E,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAC3E,OAAO,EAAE,MAAM,EAAE,MAAM,+CAA+C,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AACzE,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC,MAAM,KAAK,GAAG,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AAC,SAAS,EAAE,GAAG,MAAM,CAAC,OAAO,YAAY,KAAM,IAAI,CAAC,GAAG,EAAE,OAAO,CAAC,aACxE,eAAM,SAAS,EAAE,MAAM,CAAC,MAAM,oBAAY,EAC1C,eAAM,SAAS,EAAE,MAAM,CAAC,IAAI,YAAG,IAAI,GAAQ,EAC3C,eAAM,SAAS,EAAE,MAAM,CAAC,MAAM,2BAAc,EAC5C,eAAM,SAAS,EAAE,MAAM,CAAC,KAAK,wBAAgB,IACpC,EACX,MAAC,MAAM,CAAC,GAAG,IAAC,SAAS,EAAE,MAAM,CAAC,OAAO,KAAM,IAAI,CAAC,GAAG,EAAE,OAAO,CAAC,aAC3D,KAAC,MAAM,IAAC,IAAI,EAAE,IAAI,MAAM,EAAE,EAAE,KAAK,kBAC9B,SAAS,CAAC,SAAS,CAAC,IAAI,EAAE,MAAM,CAAC,GAC3B,EACT,KAAC,MAAM,IAAC,IAAI,EAAE,IAAI,MAAM,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE,EAAE,EAAE,OAAO,EAAC,OAAO,YAC9D,SAAS,CAAC,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,GAChC,IACE,EACb,MAAC,MAAM,CAAC,CAAC,IAAC,SAAS,EAAE,GAAG,MAAM,CAAC,OAAO,YAAY,KAAM,IAAI,CAAC,CAAC,EAAE,OAAO,CAAC,aACrE,SAAS,CAAC,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC,eAC5B,IACH,CACX,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.indicator{--page: 0;--within: 0;position:fixed;z-index:40;right:max(14px,(100vw - var(--maximum-width))/2 - 92px);top:50%;transform:translateY(-50%);padding:14px 0;animation:enter 1s 1.2s cubic-bezier(0.22, 1, 0.36, 1) both}.indicator ol{position:relative;display:grid;gap:14px;margin:0;padding:0;list-style:none}@media(max-width: 1180px){.indicator{display:none}}@keyframes enter{from{opacity:0;transform:translate(16px, -50%)}}.rail{position:absolute;right:0;top:0;bottom:0;width:1px;background:linear-gradient(180deg, var(--line-2) 50%, transparent 0) 0 0/1px 6px repeat-y}.rail span{position:absolute;inset:0 0 auto;height:calc(var(--page)*100%);background:linear-gradient(180deg, transparent, var(--foreground));box-shadow:0 0 8px color-mix(in srgb, var(--foreground) 60%, transparent)}.indicator a{position:relative;display:flex;align-items:center;justify-content:flex-end;gap:10px;height:26px;padding-right:0;color:var(--foreground-3);transition:color .3s}.indicator a:hover{color:var(--foreground)}.number{font-size:10.5px;letter-spacing:.04em;transition:color .3s}.tick{position:relative;width:12px;height:1px;background:var(--line-2);transition:width .6s cubic-bezier(0.22, 1, 0.36, 1),background .3s}.tick span{position:absolute;inset:0 auto 0 0;width:0;background:var(--foreground)}.name{position:absolute;right:64px;padding:5px 11px;border-radius:99px;border:1px solid var(--line-2);background:color-mix(in srgb, var(--background) 75%, transparent);backdrop-filter:blur(10px);color:var(--foreground);font-size:12.5px;font-weight:500;letter-spacing:-0.01em;white-space:nowrap;opacity:0;transform:translateX(8px);filter:blur(4px);pointer-events:none;transition:opacity .35s,transform .5s cubic-bezier(0.22, 1, 0.36, 1),filter .35s}.indicator:hover .name{opacity:1;transform:none;filter:none}.current{color:var(--foreground) !important}.current .tick{width:34px;background:color-mix(in srgb, var(--foreground) 25%, transparent)}.current .tick span{width:calc(var(--within)*100%);box-shadow:0 0 8px color-mix(in srgb, var(--foreground) 70%, transparent)}.current .name{animation:flash 2.2s cubic-bezier(0.22, 1, 0.36, 1) both}@keyframes flash{0%{opacity:0;transform:translateX(10px);filter:blur(4px)}15%,70%{opacity:1;transform:none;filter:none}100%{opacity:0;transform:translateX(4px);filter:blur(2px)}}.indicator:hover .current .name{animation:none}
|
|
1
|
+
.indicator{--page: 0;--within: 0;position:fixed;z-index:40;right:max(14px,(100vw - var(--maximum-width))/2 - 92px);top:50%;transform:translateY(-50%);padding:14px 0;animation:enter 1s 1.2s cubic-bezier(0.22, 1, 0.36, 1) both}:global(:root[data-soft-navigation]) .indicator{animation-duration:0s !important;animation-delay:0s !important}.indicator ol{position:relative;display:grid;gap:14px;margin:0;padding:0;list-style:none}@media(max-width: 1180px){.indicator{display:none}}@keyframes enter{from{opacity:0;transform:translate(16px, -50%)}}.rail{position:absolute;right:0;top:0;bottom:0;width:1px;background:linear-gradient(180deg, var(--line-2) 50%, transparent 0) 0 0/1px 6px repeat-y}.rail span{position:absolute;inset:0 0 auto;height:calc(var(--page)*100%);background:linear-gradient(180deg, transparent, var(--foreground));box-shadow:0 0 8px color-mix(in srgb, var(--foreground) 60%, transparent)}.indicator a{position:relative;display:flex;align-items:center;justify-content:flex-end;gap:10px;height:26px;padding-right:0;color:var(--foreground-3);transition:color .3s}.indicator a:hover{color:var(--foreground)}.number{font-size:10.5px;letter-spacing:.04em;transition:color .3s}.tick{position:relative;width:12px;height:1px;background:var(--line-2);transition:width .6s cubic-bezier(0.22, 1, 0.36, 1),background .3s}.tick span{position:absolute;inset:0 auto 0 0;width:0;background:var(--foreground)}.name{position:absolute;right:64px;padding:5px 11px;border-radius:99px;border:1px solid var(--line-2);background:color-mix(in srgb, var(--background) 75%, transparent);backdrop-filter:blur(10px);color:var(--foreground);font-size:12.5px;font-weight:500;letter-spacing:-0.01em;white-space:nowrap;opacity:0;transform:translateX(8px);filter:blur(4px);pointer-events:none;transition:opacity .35s,transform .5s cubic-bezier(0.22, 1, 0.36, 1),filter .35s}.indicator:hover .name{opacity:1;transform:none;filter:none}.current{color:var(--foreground) !important}.current .tick{width:34px;background:color-mix(in srgb, var(--foreground) 25%, transparent)}.current .tick span{width:calc(var(--within)*100%);box-shadow:0 0 8px color-mix(in srgb, var(--foreground) 70%, transparent)}.current .name{animation:flash 2.2s cubic-bezier(0.22, 1, 0.36, 1) both}@keyframes flash{0%{opacity:0;transform:translateX(10px);filter:blur(4px)}15%,70%{opacity:1;transform:none;filter:none}100%{opacity:0;transform:translateX(4px);filter:blur(2px)}}.indicator:hover .current .name{animation:none}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.index{position:relative;width:min(100% - 2*var(--gutter),var(--maximum-width));margin:0 auto;display:grid;grid-template-columns:repeat(5, 1fr);border:1px solid var(--line)}@media(max-width: 960px){.index{grid-template-columns:repeat(2, 1fr)}}.cell{position:relative;display:grid;align-content:start;gap:6px;padding:22px 22px 24px;overflow:hidden;animation:rise .9s cubic-bezier(0.22, 1, 0.36, 1) both}.cell:not(:last-of-type){border-right:1px solid var(--line)}.cell::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg, color-mix(in srgb, var(--foreground) 7%, transparent), transparent);opacity:0;transition:opacity .4s}.cell:hover::before{opacity:1}.cell:hover .arrow{opacity:1;transform:none}@media(max-width: 960px){.cell{border-right:0 !important;border-bottom:1px solid var(--line)}.cell:nth-of-type(odd){border-right:1px solid var(--line) !important}.cell:last-of-type{grid-column:span 2;border-bottom:0;border-right:0 !important}}@keyframes rise{from{opacity:0;transform:translateY(10px)}}.number{font-size:11.5px;color:var(--foreground-3)}.title{font-weight:600;letter-spacing:-0.02em;font-size:15.5px}.kinds{font-size:11.5px;color:var(--foreground-2)}.arrow{position:absolute;top:18px;right:18px;font-size:14px;opacity:0;transform:translate(-4px, -4px);transition:opacity .3s,transform .4s cubic-bezier(0.22, 1, 0.36, 1)}
|
|
1
|
+
.index{position:relative;width:min(100% - 2*var(--gutter),var(--maximum-width));margin:0 auto;display:grid;grid-template-columns:repeat(5, 1fr);border:1px solid var(--line)}@media(max-width: 960px){.index{grid-template-columns:repeat(2, 1fr)}}.cell{position:relative;display:grid;align-content:start;gap:6px;padding:22px 22px 24px;overflow:hidden;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){border-right:1px solid var(--line)}.cell::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg, color-mix(in srgb, var(--foreground) 7%, transparent), transparent);opacity:0;transition:opacity .4s}.cell:hover::before{opacity:1}.cell:hover .arrow{opacity:1;transform:none}@media(max-width: 960px){.cell{border-right:0 !important;border-bottom:1px solid var(--line)}.cell:nth-of-type(odd){border-right:1px solid var(--line) !important}.cell:last-of-type{grid-column:span 2;border-bottom:0;border-right:0 !important}}@keyframes rise{from{opacity:0;transform:translateY(10px)}}.number{font-size:11.5px;color:var(--foreground-3)}.title{font-weight:600;letter-spacing:-0.02em;font-size:15.5px}.kinds{font-size:11.5px;color:var(--foreground-2)}.arrow{position:absolute;top:18px;right:18px;font-size:14px;opacity:0;transform:translate(-4px, -4px);transition:opacity .3s,transform .4s cubic-bezier(0.22, 1, 0.36, 1)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.visual{position:absolute;inset:0;display:grid;grid-template-columns:1.2fr 1fr;align-items:center;perspective:1000px}.scene{position:relative;justify-self:center;width:150px;height:150px;transform-style:preserve-3d;transform:rotateX(62deg) rotateZ(-38deg);animation:turn 16s linear infinite}@keyframes turn{to{transform:rotateX(62deg) rotateZ(322deg)}}.plate{position:absolute;inset:0;margin:auto;border-radius:16px;border:1px solid var(--foreground-3);background:color-mix(in srgb, var(--foreground) 6%, transparent);box-shadow:0 0 40px -10px color-mix(in srgb, var(--foreground) 30%, transparent)}.plate0{width:150px;height:150px;transform:translateZ(0)}.on .plate0{animation:lift-0 1.4s cubic-bezier(0.22, 1, 0.36, 1) both}.plate1{width:104px;height:104px;transform:translateZ(34px);background:color-mix(in srgb, var(--foreground) 12%, transparent)}.on .plate1{animation:lift-1 1.4s .15s cubic-bezier(0.22, 1, 0.36, 1) both}.plate2{width:58px;height:58px;transform:translateZ(68px);background:var(--foreground);border-color:var(--foreground)}.on .plate2{animation:lift-2 1.4s .3s cubic-bezier(0.22, 1, 0.36, 1) both}@keyframes lift-0{from{transform:translateZ(0);opacity:0}}@keyframes lift-1{from{transform:translateZ(0);opacity:0}}@keyframes lift-2{from{transform:translateZ(0);opacity:0}}.ring{position:absolute;inset:0;margin:auto;width:58px;height:58px;border-radius:16px;border:1px solid var(--foreground);transform:translateZ(68px);animation:ripple 2.6s ease-out infinite}@keyframes ripple{from{transform:translateZ(68px) scale(1);opacity:.8}to{transform:translateZ(68px) scale(3.2);opacity:0}}.legend{margin:0;display:grid;gap:14px;padding-right:22px}.stage{padding-left:12px;border-left:1px dashed var(--line-2)}.stage dt{font-size:10.5px;text-transform:uppercase;letter-spacing:.05em;color:var(--foreground-3)}.stage dd{margin:0;font-size:22px;font-weight:600;letter-spacing:-0.03em;font-variant-numeric:tabular-nums}
|
|
1
|
+
.visual{position:absolute;inset:0;display:grid;grid-template-columns:1.2fr 1fr;align-items:center;perspective:1000px}.scene{position:relative;justify-self:center;width:150px;height:150px;transform-style:preserve-3d;transform:rotateX(62deg) rotateZ(-38deg);animation:turn 16s linear infinite}@keyframes turn{to{transform:rotateX(62deg) rotateZ(322deg)}}.plate{position:absolute;inset:0;margin:auto;border-radius:16px;border:1px solid var(--foreground-3);background:color-mix(in srgb, var(--foreground) 6%, transparent);box-shadow:0 0 40px -10px color-mix(in srgb, var(--foreground) 30%, transparent)}.plate0{width:150px;height:150px;transform:translateZ(0)}.on .plate0{animation:lift-0 1.4s cubic-bezier(0.22, 1, 0.36, 1) both}:global(:root[data-soft-navigation]) .on .plate0{animation-duration:0s !important;animation-delay:0s !important}.plate1{width:104px;height:104px;transform:translateZ(34px);background:color-mix(in srgb, var(--foreground) 12%, transparent)}.on .plate1{animation:lift-1 1.4s .15s cubic-bezier(0.22, 1, 0.36, 1) both}:global(:root[data-soft-navigation]) .on .plate1{animation-duration:0s !important;animation-delay:0s !important}.plate2{width:58px;height:58px;transform:translateZ(68px);background:var(--foreground);border-color:var(--foreground)}.on .plate2{animation:lift-2 1.4s .3s cubic-bezier(0.22, 1, 0.36, 1) both}:global(:root[data-soft-navigation]) .on .plate2{animation-duration:0s !important;animation-delay:0s !important}@keyframes lift-0{from{transform:translateZ(0);opacity:0}}@keyframes lift-1{from{transform:translateZ(0);opacity:0}}@keyframes lift-2{from{transform:translateZ(0);opacity:0}}.ring{position:absolute;inset:0;margin:auto;width:58px;height:58px;border-radius:16px;border:1px solid var(--foreground);transform:translateZ(68px);animation:ripple 2.6s ease-out infinite}@keyframes ripple{from{transform:translateZ(68px) scale(1);opacity:.8}to{transform:translateZ(68px) scale(3.2);opacity:0}}.legend{margin:0;display:grid;gap:14px;padding-right:22px}.stage{padding-left:12px;border-left:1px dashed var(--line-2)}.stage dt{font-size:10.5px;text-transform:uppercase;letter-spacing:.05em;color:var(--foreground-3)}.stage dd{margin:0;font-size:22px;font-weight:600;letter-spacing:-0.03em;font-variant-numeric:tabular-nums}
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
transform: translateZ(0);
|
|
38
38
|
.on & {
|
|
39
39
|
animation: lift-0 1.4s $ease both;
|
|
40
|
+
@include skip-entrance;
|
|
40
41
|
}
|
|
41
42
|
}
|
|
42
43
|
.plate1 {
|
|
@@ -46,6 +47,7 @@
|
|
|
46
47
|
background: tint(12%);
|
|
47
48
|
.on & {
|
|
48
49
|
animation: lift-1 1.4s 0.15s $ease both;
|
|
50
|
+
@include skip-entrance;
|
|
49
51
|
}
|
|
50
52
|
}
|
|
51
53
|
.plate2 {
|
|
@@ -56,6 +58,7 @@
|
|
|
56
58
|
border-color: var(--foreground);
|
|
57
59
|
.on & {
|
|
58
60
|
animation: lift-2 1.4s 0.3s $ease both;
|
|
61
|
+
@include skip-entrance;
|
|
59
62
|
}
|
|
60
63
|
}
|
|
61
64
|
@keyframes lift-0 {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.visual{position:absolute;inset:0;display:grid;place-items:center;perspective:900px}.scene{position:relative;width:150px;height:190px;transform-style:preserve-3d;animation:sway 10s ease-in-out infinite}@keyframes sway{0%,100%{transform:rotateX(12deg) rotateY(-16deg)}50%{transform:rotateX(6deg) rotateY(14deg)}}.card{position:absolute;inset:0;border-radius:14px;border:1px solid var(--line-2);background:var(--card);box-shadow:0 30px 60px -20px color-mix(in srgb, var(--background) 90%, transparent)}.palette{transform:translate3d(-110px, 6px, -70px) rotateY(24deg);display:grid;grid-template-rows:repeat(4, 1fr);padding:10px;gap:6px}.palette span{border-radius:6px;border:1px solid var(--line);transform-origin:left}.on .palette span{animation:fill-in .8s cubic-bezier(0.22, 1, 0.36, 1) both}@keyframes fill-in{from{transform:scaleX(0)}}.type{transform:translate3d(110px, -6px, -50px) rotateY(-24deg);display:grid;align-content:center;justify-items:center;gap:4px}.specimen{font-size:64px;font-weight:600;letter-spacing:-0.06em;line-height:1}.caption{font-size:10px;color:var(--foreground-2)}.glyphs{margin-top:8px;font-size:10px;color:var(--foreground-3);letter-spacing:.2em}.mark{transform:translateZ(40px);display:grid;place-items:center;background:var(--background)}.mark svg{width:120px;height:120px;overflow:visible}.guides{fill:none;stroke:var(--line-2);stroke-width:.6;stroke-dasharray:2 2}.outer,.inner{fill:none;stroke:var(--foreground);stroke-width:2.4;stroke-dasharray:1;stroke-dashoffset:0}.on .outer,.on .inner{animation:draw-line 1.8s .2s cubic-bezier(0.22, 1, 0.36, 1) both}.inner{stroke-width:1.8}.on .inner{animation-delay:.6s}@keyframes draw-line{from{stroke-dashoffset:1}}.anchor{fill:var(--background);stroke:var(--foreground-2);stroke-width:.8}
|
|
1
|
+
.visual{position:absolute;inset:0;display:grid;place-items:center;perspective:900px}.scene{position:relative;width:150px;height:190px;transform-style:preserve-3d;animation:sway 10s ease-in-out infinite}@keyframes sway{0%,100%{transform:rotateX(12deg) rotateY(-16deg)}50%{transform:rotateX(6deg) rotateY(14deg)}}.card{position:absolute;inset:0;border-radius:14px;border:1px solid var(--line-2);background:var(--card);box-shadow:0 30px 60px -20px color-mix(in srgb, var(--background) 90%, transparent)}.palette{transform:translate3d(-110px, 6px, -70px) rotateY(24deg);display:grid;grid-template-rows:repeat(4, 1fr);padding:10px;gap:6px}.palette span{border-radius:6px;border:1px solid var(--line);transform-origin:left}.on .palette span{animation:fill-in .8s cubic-bezier(0.22, 1, 0.36, 1) both}:global(:root[data-soft-navigation]) .on .palette span{animation-duration:0s !important;animation-delay:0s !important}@keyframes fill-in{from{transform:scaleX(0)}}.type{transform:translate3d(110px, -6px, -50px) rotateY(-24deg);display:grid;align-content:center;justify-items:center;gap:4px}.specimen{font-size:64px;font-weight:600;letter-spacing:-0.06em;line-height:1}.caption{font-size:10px;color:var(--foreground-2)}.glyphs{margin-top:8px;font-size:10px;color:var(--foreground-3);letter-spacing:.2em}.mark{transform:translateZ(40px);display:grid;place-items:center;background:var(--background)}.mark svg{width:120px;height:120px;overflow:visible}.guides{fill:none;stroke:var(--line-2);stroke-width:.6;stroke-dasharray:2 2}.outer,.inner{fill:none;stroke:var(--foreground);stroke-width:2.4;stroke-dasharray:1;stroke-dashoffset:0}.on .outer,.on .inner{animation:draw-line 1.8s .2s cubic-bezier(0.22, 1, 0.36, 1) both}:global(:root[data-soft-navigation]) .on .outer,:global(:root[data-soft-navigation]) .on .inner{animation-duration:0s !important;animation-delay:0s !important}.inner{stroke-width:1.8}.on .inner{animation-delay:.6s}@keyframes draw-line{from{stroke-dashoffset:1}}.anchor{fill:var(--background);stroke:var(--foreground-2);stroke-width:.8}
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
transform-origin: left;
|
|
41
41
|
.on & {
|
|
42
42
|
animation: fill-in 0.8s $ease both;
|
|
43
|
+
@include skip-entrance;
|
|
43
44
|
}
|
|
44
45
|
}
|
|
45
46
|
}
|
|
@@ -97,6 +98,7 @@
|
|
|
97
98
|
stroke-dashoffset: 0;
|
|
98
99
|
.on & {
|
|
99
100
|
animation: draw-line 1.8s 0.2s $ease both;
|
|
101
|
+
@include skip-entrance;
|
|
100
102
|
}
|
|
101
103
|
}
|
|
102
104
|
.inner {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.visual{position:absolute;inset:0;display:grid;place-items:center;perspective:900px}.feed{position:absolute;right:6%;top:50%;width:132px;display:grid;grid-template-columns:repeat(3, 1fr);gap:5px;transform:translateY(-56%) rotateY(-28deg) rotateX(10deg) translateZ(-40px)}.feed span{aspect-ratio:1;border-radius:5px;border:1px solid var(--line-2);background:linear-gradient(135deg, color-mix(in srgb, var(--foreground) 14%, transparent), color-mix(in srgb, var(--foreground) 3%, transparent))}.on .feed span{animation:pop .6s cubic-bezier(0.22, 1, 0.36, 1) both}.feed span:nth-child(3n+2){background:linear-gradient(135deg, color-mix(in srgb, var(--foreground) 28%, transparent), color-mix(in srgb, var(--foreground) 8%, transparent))}@keyframes pop{from{opacity:0;transform:scale(0.6)}}.panel{position:relative;width:min(72%,290px);margin-right:22%;padding:16px 16px 10px;border-radius:14px;border:1px solid var(--line-2);background:color-mix(in srgb, var(--background) 80%, transparent);backdrop-filter:blur(8px);box-shadow:0 30px 60px -24px color-mix(in srgb, var(--background) 90%, transparent);transform:rotateY(10deg) rotateX(6deg) translateZ(30px)}.header{display:flex;justify-content:space-between;align-items:center}.label{font-size:10.5px;text-transform:uppercase;letter-spacing:.05em;color:var(--foreground-3)}.growth{font-size:10.5px;padding:2px 7px;border-radius:99px;background:color-mix(in srgb, var(--foreground) 10%, transparent)}.count{display:block;margin:2px 0 6px;font-size:30px;font-weight:600;letter-spacing:-0.04em;font-variant-numeric:tabular-nums}.chart{display:block;width:100%;height:auto;overflow:visible}.gridLine{stroke:var(--line);stroke-dasharray:3 3}.line{fill:none;stroke:var(--foreground);stroke-width:1.8;stroke-linecap:round;stroke-dasharray:1}.on .line{animation:draw-line 2.2s cubic-bezier(0.22, 1, 0.36, 1) both}.on .area{animation:fade 2.2s ease both}@keyframes draw-line{from{stroke-dashoffset:1}}@keyframes fade{from{opacity:0}}.dot{fill:var(--foreground)}.on .dot{animation:pulse 2s 2.2s ease-out infinite}@keyframes pulse{0%{filter:drop-shadow(0 0 0 var(--foreground))}50%{filter:drop-shadow(0 0 6px var(--foreground))}}
|
|
1
|
+
.visual{position:absolute;inset:0;display:grid;place-items:center;perspective:900px}.feed{position:absolute;right:6%;top:50%;width:132px;display:grid;grid-template-columns:repeat(3, 1fr);gap:5px;transform:translateY(-56%) rotateY(-28deg) rotateX(10deg) translateZ(-40px)}.feed span{aspect-ratio:1;border-radius:5px;border:1px solid var(--line-2);background:linear-gradient(135deg, color-mix(in srgb, var(--foreground) 14%, transparent), color-mix(in srgb, var(--foreground) 3%, transparent))}.on .feed span{animation:pop .6s cubic-bezier(0.22, 1, 0.36, 1) both}:global(:root[data-soft-navigation]) .on .feed span{animation-duration:0s !important;animation-delay:0s !important}.feed span:nth-child(3n+2){background:linear-gradient(135deg, color-mix(in srgb, var(--foreground) 28%, transparent), color-mix(in srgb, var(--foreground) 8%, transparent))}@keyframes pop{from{opacity:0;transform:scale(0.6)}}.panel{position:relative;width:min(72%,290px);margin-right:22%;padding:16px 16px 10px;border-radius:14px;border:1px solid var(--line-2);background:color-mix(in srgb, var(--background) 80%, transparent);backdrop-filter:blur(8px);box-shadow:0 30px 60px -24px color-mix(in srgb, var(--background) 90%, transparent);transform:rotateY(10deg) rotateX(6deg) translateZ(30px)}.header{display:flex;justify-content:space-between;align-items:center}.label{font-size:10.5px;text-transform:uppercase;letter-spacing:.05em;color:var(--foreground-3)}.growth{font-size:10.5px;padding:2px 7px;border-radius:99px;background:color-mix(in srgb, var(--foreground) 10%, transparent)}.count{display:block;margin:2px 0 6px;font-size:30px;font-weight:600;letter-spacing:-0.04em;font-variant-numeric:tabular-nums}.chart{display:block;width:100%;height:auto;overflow:visible}.gridLine{stroke:var(--line);stroke-dasharray:3 3}.line{fill:none;stroke:var(--foreground);stroke-width:1.8;stroke-linecap:round;stroke-dasharray:1}.on .line{animation:draw-line 2.2s cubic-bezier(0.22, 1, 0.36, 1) both}:global(:root[data-soft-navigation]) .on .line{animation-duration:0s !important;animation-delay:0s !important}.on .area{animation:fade 2.2s ease both}:global(:root[data-soft-navigation]) .on .area{animation-duration:0s !important;animation-delay:0s !important}@keyframes draw-line{from{stroke-dashoffset:1}}@keyframes fade{from{opacity:0}}.dot{fill:var(--foreground)}.on .dot{animation:pulse 2s 2.2s ease-out infinite}@keyframes pulse{0%{filter:drop-shadow(0 0 0 var(--foreground))}50%{filter:drop-shadow(0 0 6px var(--foreground))}}
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
background: linear-gradient(135deg, tint(14%), tint(3%));
|
|
21
21
|
.on & {
|
|
22
22
|
animation: pop 0.6s $ease both;
|
|
23
|
+
@include skip-entrance;
|
|
23
24
|
}
|
|
24
25
|
}
|
|
25
26
|
span:nth-child(3n + 2) {
|
|
@@ -87,11 +88,13 @@
|
|
|
87
88
|
stroke-dasharray: 1;
|
|
88
89
|
.on & {
|
|
89
90
|
animation: draw-line 2.2s $ease both;
|
|
91
|
+
@include skip-entrance;
|
|
90
92
|
}
|
|
91
93
|
}
|
|
92
94
|
.area {
|
|
93
95
|
.on & {
|
|
94
96
|
animation: fade 2.2s ease both;
|
|
97
|
+
@include skip-entrance;
|
|
95
98
|
}
|
|
96
99
|
}
|
|
97
100
|
@keyframes draw-line {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.visual{position:absolute;inset:0;display:grid;place-items:center}.browser{width:min(78%,520px);border-radius:12px;border:1px solid var(--line-2);background:var(--card);overflow:hidden;box-shadow:0 30px 80px -20px color-mix(in srgb, var(--background) 90%, transparent),0 0 0 1px color-mix(in srgb, var(--foreground) 2%, transparent);transform:perspective(900px) rotateX(10deg) rotateY(-8deg) translateZ(20px);animation:float 7s ease-in-out infinite}.bar{display:flex;align-items:center;gap:6px;height:32px;padding:0 12px;border-bottom:1px solid var(--line)}.bar i{width:8px;height:8px;border-radius:50%;background:var(--line-2)}.url{margin-left:12px;font-size:11px;color:var(--foreground-3);padding:3px 10px;border-radius:6px;background:var(--surface)}.body{padding:16px;display:grid;gap:10px}.skeleton{border-radius:6px;background:linear-gradient(90deg, var(--surface), color-mix(in srgb, var(--foreground) 14%, transparent), var(--surface));background-size:200% 100%;opacity:0;transform:translateY(8px)}.on .skeleton{animation:skin .7s var(--ease) forwards,shimmer 2.4s linear infinite}.navigation{height:12px;width:40%}.hero{height:70px;animation-delay:.15s !important}.row{display:grid;grid-template-columns:repeat(3, 1fr);gap:10px}.row .skeleton:nth-child(1){animation-delay:.3s,0s !important}.row .skeleton:nth-child(2){animation-delay:.42s,0s !important}.row .skeleton:nth-child(3){animation-delay:.54s,0s !important}.card{height:44px}@keyframes skin{to{opacity:1;transform:none}}@keyframes shimmer{to{background-position:-200% 0}}.score{position:absolute;right:7%;bottom:10%;transform:translateZ(60px);width:74px;height:74px;display:grid;place-items:center;border-radius:50%;background:color-mix(in srgb, var(--background) 90%, transparent);border:1px solid var(--line-2);backdrop-filter:blur(8px)}.score svg{position:absolute;inset:8px;transform:rotate(-90deg)}.score span{font-size:17px;font-weight:500}.track{fill:none;stroke:var(--line-2);stroke-width:3}.progress{fill:none;stroke:var(--foreground);stroke-width:3;stroke-linecap:round;transition:stroke-dashoffset .1s linear}@keyframes float{50%{transform:perspective(900px) rotateX(6deg) rotateY(-4deg) translateZ(20px) translateY(-6px)}}
|
|
1
|
+
.visual{position:absolute;inset:0;display:grid;place-items:center}.browser{width:min(78%,520px);border-radius:12px;border:1px solid var(--line-2);background:var(--card);overflow:hidden;box-shadow:0 30px 80px -20px color-mix(in srgb, var(--background) 90%, transparent),0 0 0 1px color-mix(in srgb, var(--foreground) 2%, transparent);transform:perspective(900px) rotateX(10deg) rotateY(-8deg) translateZ(20px);animation:float 7s ease-in-out infinite}.bar{display:flex;align-items:center;gap:6px;height:32px;padding:0 12px;border-bottom:1px solid var(--line)}.bar i{width:8px;height:8px;border-radius:50%;background:var(--line-2)}.url{margin-left:12px;font-size:11px;color:var(--foreground-3);padding:3px 10px;border-radius:6px;background:var(--surface)}.body{padding:16px;display:grid;gap:10px}.skeleton{border-radius:6px;background:linear-gradient(90deg, var(--surface), color-mix(in srgb, var(--foreground) 14%, transparent), var(--surface));background-size:200% 100%;opacity:0;transform:translateY(8px)}.on .skeleton{animation:skin .7s var(--ease) forwards,shimmer 2.4s linear infinite}:global(:root[data-soft-navigation]) .on .skeleton{animation-duration:0s,2.4s !important;animation-delay:0s !important}.navigation{height:12px;width:40%}.hero{height:70px;animation-delay:.15s !important}.row{display:grid;grid-template-columns:repeat(3, 1fr);gap:10px}.row .skeleton:nth-child(1){animation-delay:.3s,0s !important}.row .skeleton:nth-child(2){animation-delay:.42s,0s !important}.row .skeleton:nth-child(3){animation-delay:.54s,0s !important}.card{height:44px}@keyframes skin{to{opacity:1;transform:none}}@keyframes shimmer{to{background-position:-200% 0}}.score{position:absolute;right:7%;bottom:10%;transform:translateZ(60px);width:74px;height:74px;display:grid;place-items:center;border-radius:50%;background:color-mix(in srgb, var(--background) 90%, transparent);border:1px solid var(--line-2);backdrop-filter:blur(8px)}.score svg{position:absolute;inset:8px;transform:rotate(-90deg)}.score span{font-size:17px;font-weight:500}.track{fill:none;stroke:var(--line-2);stroke-width:3}.progress{fill:none;stroke:var(--foreground);stroke-width:3;stroke-linecap:round;transition:stroke-dashoffset .1s linear}@keyframes float{50%{transform:perspective(900px) rotateX(6deg) rotateY(-4deg) translateZ(20px) translateY(-6px)}}
|
|
@@ -47,3 +47,16 @@ $ease: cubic-bezier(0.22, 1, 0.36, 1);
|
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
|
+
|
|
51
|
+
/// Marks a time-based entrance animation: it plays on a first visit, and shows its final state at once when the page
|
|
52
|
+
/// was rebuilt in place (a soft navigation, such as switching language). Pass one duration per listed animation to
|
|
53
|
+
/// keep loops running, for example `skip-entrance(0s, 2.4s)` for `entrance …, shimmer 2.4s infinite`.
|
|
54
|
+
@mixin skip-entrance($durations...) {
|
|
55
|
+
@if length($durations) == 0 {
|
|
56
|
+
$durations: 0s;
|
|
57
|
+
}
|
|
58
|
+
:global(:root[data-soft-navigation]) & {
|
|
59
|
+
animation-duration: $durations !important;
|
|
60
|
+
animation-delay: 0s !important;
|
|
61
|
+
}
|
|
62
|
+
}
|
package/llms.txt
CHANGED
|
@@ -12,3 +12,4 @@
|
|
|
12
12
|
- Navigation, Footer and LanguageSwitch take path? (e.g. "/license"): section links go to /<locale>#section, language links stay on the page; the footer links to the license page
|
|
13
13
|
- component/not-found NotFound({ locale, path }) the 404 screen (giant 404 with the live globe as the zero, failed request line, way home); content/not-found NOT_FOUND; ServiceIndex takes base? ("/<locale>" off the home page)
|
|
14
14
|
- content/slogan SLOGAN (with full stop) and SLOGAN_LINES; content/section SECTION { home, services, touchpoints, capabilities, process, contact } with id + names; content/action ACTION.startProject; content/language LANGUAGE { label, names }. SITE.slogan, HERO.lines, HERO.primary, NAVIGATION.<name>, FOOTER.services/language, CAPABILITY.eyebrow and CONTACT.eyebrow were removed in 0.10.0 in favor of these.
|
|
15
|
+
- Language switch (internationalization-web-library 0.2): entrances skip on soft navigation (hero/not-found Motion initial, Sass mixin skip-entrance($durations...) for CSS entrances); site must render <LocaleTransitionStyle /> in <head>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sharadox/sharadox-web-library",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"description": "Sharadox's own website building blocks: content, components, brand and actions for sharadox-web-application, plus the preview notice and agency credit used on client demos.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "SEE LICENSE IN LICENCA.md",
|
|
@@ -54,16 +54,16 @@
|
|
|
54
54
|
},
|
|
55
55
|
"homepage": "https://github.com/Sharadox/sharadox-web-library#readme",
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@sharadox/animation-web-library": "^0.
|
|
57
|
+
"@sharadox/animation-web-library": "^0.2.0",
|
|
58
58
|
"@sharadox/consent-web-library": "^0.1.0",
|
|
59
59
|
"@sharadox/form-web-library": "^0.1.0",
|
|
60
|
-
"@sharadox/globe-web-library": "^0.
|
|
61
|
-
"@sharadox/internationalization-web-library": "^0.
|
|
60
|
+
"@sharadox/globe-web-library": "^0.2.0",
|
|
61
|
+
"@sharadox/internationalization-web-library": "^0.2.0",
|
|
62
62
|
"@sharadox/metadata-web-library": "^0.1.0",
|
|
63
63
|
"@sharadox/pointer-web-library": "^0.1.0",
|
|
64
64
|
"@sharadox/scroll-web-library": "^0.1.0",
|
|
65
65
|
"@sharadox/style-web-library": "^0.2.0",
|
|
66
|
-
"@sharadox/web-library": "^0.
|
|
66
|
+
"@sharadox/web-library": "^0.6.0",
|
|
67
67
|
"marked": "^17.0.6",
|
|
68
68
|
"motion": "^12.43.0"
|
|
69
69
|
},
|