@sharadox/sharadox-web-library 0.3.0 → 0.5.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 +4 -2
- package/distribution/action/send-contact/index.d.ts.map +1 -1
- package/distribution/action/send-contact/index.js +5 -3
- package/distribution/action/send-contact/index.js.map +1 -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 +2 -2
- package/distribution/component/button/index.js.map +1 -1
- package/distribution/component/button/index.module.css +11 -8
- package/distribution/component/button/type.d.ts +1 -1
- package/distribution/component/capability/index.d.ts +4 -0
- package/distribution/component/capability/index.d.ts.map +1 -0
- package/distribution/component/capability/index.js +14 -0
- package/distribution/component/capability/index.js.map +1 -0
- package/distribution/component/capability/index.module.css +94 -0
- package/distribution/component/{services/application-visual → capability}/type.d.ts +1 -1
- package/distribution/component/capability/type.d.ts.map +1 -0
- package/distribution/component/capability/type.js.map +1 -0
- package/distribution/component/contact/form/index.d.ts.map +1 -1
- package/distribution/component/contact/form/index.js +1 -1
- package/distribution/component/contact/form/index.js.map +1 -1
- package/distribution/component/contact/form/index.module.css +67 -7
- package/distribution/component/contact/index.module.css +2 -2
- package/distribution/component/cross/index.d.ts +4 -0
- package/distribution/component/cross/index.d.ts.map +1 -0
- package/distribution/component/cross/index.js +7 -0
- package/distribution/component/cross/index.js.map +1 -0
- package/distribution/component/cross/index.module.css +53 -0
- package/distribution/component/cross/type.d.ts +6 -0
- package/distribution/component/cross/type.d.ts.map +1 -0
- package/distribution/component/cross/type.js.map +1 -0
- package/distribution/component/cursor/index.js +1 -1
- package/distribution/component/cursor/index.js.map +1 -1
- package/distribution/component/cursor/index.module.css +3 -1
- package/distribution/component/footer/index.d.ts +1 -1
- package/distribution/component/footer/index.d.ts.map +1 -1
- package/distribution/component/footer/index.js +12 -5
- package/distribution/component/footer/index.js.map +1 -1
- package/distribution/component/footer/index.module.css +88 -22
- package/distribution/component/globe/arc/index.d.ts +1 -1
- package/distribution/component/globe/arc/index.d.ts.map +1 -1
- package/distribution/component/globe/arc/index.js +4 -4
- package/distribution/component/globe/arc/index.js.map +1 -1
- package/distribution/component/globe/arc/type.d.ts +2 -0
- package/distribution/component/globe/arc/type.d.ts.map +1 -1
- package/distribution/component/globe/color/index.d.ts +4 -0
- package/distribution/component/globe/color/index.d.ts.map +1 -0
- package/distribution/component/globe/color/index.js +16 -0
- package/distribution/component/globe/color/index.js.map +1 -0
- package/distribution/component/globe/color/type.d.ts +13 -0
- package/distribution/component/globe/color/type.d.ts.map +1 -0
- package/distribution/component/globe/color/type.js +2 -0
- package/distribution/component/globe/color/type.js.map +1 -0
- package/distribution/component/globe/dots/index.d.ts +1 -1
- package/distribution/component/globe/dots/index.d.ts.map +1 -1
- package/distribution/component/globe/dots/index.js +6 -2
- package/distribution/component/globe/dots/index.js.map +1 -1
- package/distribution/component/globe/dots/type.d.ts +2 -0
- package/distribution/component/globe/dots/type.d.ts.map +1 -1
- package/distribution/component/globe/index.d.ts +1 -1
- package/distribution/component/globe/index.d.ts.map +1 -1
- package/distribution/component/globe/index.js +8 -3
- package/distribution/component/globe/index.js.map +1 -1
- package/distribution/component/globe/index.module.css +3 -3
- package/distribution/component/globe/marker/index.d.ts +1 -1
- package/distribution/component/globe/marker/index.d.ts.map +1 -1
- package/distribution/component/globe/marker/index.js +2 -2
- package/distribution/component/globe/marker/index.js.map +1 -1
- package/distribution/component/globe/marker/type.d.ts +2 -0
- package/distribution/component/globe/marker/type.d.ts.map +1 -1
- package/distribution/component/globe/shader/arc/index.d.ts.map +1 -1
- package/distribution/component/globe/shader/arc/index.js +2 -1
- package/distribution/component/globe/shader/arc/index.js.map +1 -1
- package/distribution/component/globe/shader/atmosphere/index.d.ts.map +1 -1
- package/distribution/component/globe/shader/atmosphere/index.js +2 -1
- package/distribution/component/globe/shader/atmosphere/index.js.map +1 -1
- package/distribution/component/globe/shader/body/index.d.ts +1 -1
- package/distribution/component/globe/shader/body/index.d.ts.map +1 -1
- package/distribution/component/globe/shader/body/index.js +4 -2
- package/distribution/component/globe/shader/body/index.js.map +1 -1
- package/distribution/component/globe/shader/dot/index.d.ts.map +1 -1
- package/distribution/component/globe/shader/dot/index.js +2 -1
- package/distribution/component/globe/shader/dot/index.js.map +1 -1
- package/distribution/component/globe/world/index.d.ts +1 -1
- package/distribution/component/globe/world/index.d.ts.map +1 -1
- package/distribution/component/globe/world/index.js +11 -7
- package/distribution/component/globe/world/index.js.map +1 -1
- package/distribution/component/globe/world/type.d.ts +2 -0
- package/distribution/component/globe/world/type.d.ts.map +1 -1
- package/distribution/component/hero/guide/index.d.ts +6 -0
- package/distribution/component/hero/guide/index.d.ts.map +1 -0
- package/distribution/component/hero/guide/index.js +12 -0
- package/distribution/component/hero/guide/index.js.map +1 -0
- package/distribution/component/hero/guide/index.module.css +97 -0
- package/distribution/component/hero/index.d.ts +1 -1
- package/distribution/component/hero/index.d.ts.map +1 -1
- package/distribution/component/hero/index.js +4 -2
- package/distribution/component/hero/index.js.map +1 -1
- package/distribution/component/hero/index.module.css +23 -29
- package/distribution/component/language-switch/index.d.ts +1 -1
- package/distribution/component/language-switch/index.d.ts.map +1 -1
- package/distribution/component/language-switch/index.js +5 -3
- package/distribution/component/language-switch/index.js.map +1 -1
- package/distribution/component/language-switch/index.module.css +6 -3
- package/distribution/component/locale-link/index.d.ts +4 -0
- package/distribution/component/locale-link/index.d.ts.map +1 -0
- package/distribution/component/locale-link/index.js +9 -0
- package/distribution/component/locale-link/index.js.map +1 -0
- package/distribution/component/locale-link/type.d.ts +10 -0
- package/distribution/component/locale-link/type.d.ts.map +1 -0
- package/distribution/component/locale-link/type.js +2 -0
- package/distribution/component/locale-link/type.js.map +1 -0
- package/distribution/component/marquee/index.d.ts +2 -2
- package/distribution/component/marquee/index.d.ts.map +1 -1
- package/distribution/component/marquee/index.js +6 -3
- package/distribution/component/marquee/index.js.map +1 -1
- package/distribution/component/marquee/index.module.css +17 -14
- package/distribution/component/navigation/index.d.ts +1 -1
- package/distribution/component/navigation/index.d.ts.map +1 -1
- package/distribution/component/navigation/index.js +4 -2
- package/distribution/component/navigation/index.js.map +1 -1
- package/distribution/component/navigation/index.module.css +32 -7
- package/distribution/component/process/index.module.css +3 -3
- package/distribution/component/process/step/index.module.css +2 -2
- package/distribution/component/section/index.d.ts +5 -2
- package/distribution/component/section/index.d.ts.map +1 -1
- package/distribution/component/section/index.js +8 -4
- package/distribution/component/section/index.js.map +1 -1
- package/distribution/component/section/index.module.css +32 -3
- package/distribution/component/section/type.d.ts +5 -1
- package/distribution/component/section/type.d.ts.map +1 -1
- package/distribution/component/service-index/index.d.ts +4 -0
- package/distribution/component/service-index/index.d.ts.map +1 -0
- package/distribution/component/service-index/index.js +11 -0
- package/distribution/component/service-index/index.js.map +1 -0
- package/distribution/component/service-index/index.module.css +88 -0
- package/distribution/component/service-index/type.d.ts +5 -0
- package/distribution/component/service-index/type.d.ts.map +1 -0
- package/distribution/component/service-index/type.js +2 -0
- package/distribution/component/service-index/type.js.map +1 -0
- package/distribution/component/services/campaign-visual/index.d.ts +4 -0
- package/distribution/component/services/campaign-visual/index.d.ts.map +1 -0
- package/distribution/component/services/campaign-visual/index.js +18 -0
- package/distribution/component/services/campaign-visual/index.js.map +1 -0
- package/distribution/component/services/campaign-visual/index.module.css +128 -0
- package/distribution/component/services/campaign-visual/stage/index.d.ts +4 -0
- package/distribution/component/services/campaign-visual/stage/index.d.ts.map +1 -0
- package/distribution/component/services/campaign-visual/stage/index.js +11 -0
- package/distribution/component/services/campaign-visual/stage/index.js.map +1 -0
- package/distribution/component/services/campaign-visual/stage/type.d.ts +10 -0
- package/distribution/component/services/campaign-visual/stage/type.d.ts.map +1 -0
- package/distribution/component/services/campaign-visual/stage/type.js +2 -0
- package/distribution/component/services/campaign-visual/stage/type.js.map +1 -0
- package/distribution/component/services/campaign-visual/type.d.ts +5 -0
- package/distribution/component/services/campaign-visual/type.d.ts.map +1 -0
- package/distribution/component/services/campaign-visual/type.js +2 -0
- package/distribution/component/services/campaign-visual/type.js.map +1 -0
- package/distribution/component/services/cell/index.d.ts +7 -0
- package/distribution/component/services/cell/index.d.ts.map +1 -0
- package/distribution/component/services/cell/index.js +15 -0
- package/distribution/component/services/cell/index.js.map +1 -0
- package/distribution/component/services/cell/index.module.css +86 -0
- package/distribution/component/services/cell/type.d.ts +14 -0
- package/distribution/component/services/cell/type.d.ts.map +1 -0
- package/distribution/component/services/cell/type.js +2 -0
- package/distribution/component/services/cell/type.js.map +1 -0
- package/distribution/component/services/design-visual/index.d.ts +5 -0
- package/distribution/component/services/design-visual/index.d.ts.map +1 -0
- package/distribution/component/services/design-visual/index.js +20 -0
- package/distribution/component/services/design-visual/index.js.map +1 -0
- package/distribution/component/services/design-visual/index.module.css +130 -0
- package/distribution/component/services/index.d.ts +1 -1
- package/distribution/component/services/index.d.ts.map +1 -1
- package/distribution/component/services/index.js +16 -10
- package/distribution/component/services/index.js.map +1 -1
- package/distribution/component/services/index.module.css +73 -8
- package/distribution/component/services/mobile-visual/index.d.ts +4 -0
- package/distribution/component/services/mobile-visual/index.d.ts.map +1 -0
- package/distribution/component/services/{application-visual → mobile-visual}/index.js +1 -1
- package/distribution/component/services/mobile-visual/index.js.map +1 -0
- package/distribution/component/services/{application-visual → mobile-visual}/index.module.css +15 -6
- package/distribution/component/services/mobile-visual/type.d.ts +5 -0
- package/distribution/component/services/mobile-visual/type.d.ts.map +1 -0
- package/distribution/component/services/mobile-visual/type.js +2 -0
- package/distribution/component/services/mobile-visual/type.js.map +1 -0
- package/distribution/component/services/platform-visual/index.js +1 -1
- package/distribution/component/services/platform-visual/index.js.map +1 -1
- package/distribution/component/services/platform-visual/index.module.css +8 -8
- package/distribution/component/services/social-visual/index.d.ts +4 -0
- package/distribution/component/services/social-visual/index.d.ts.map +1 -0
- package/distribution/component/services/social-visual/index.js +17 -0
- package/distribution/component/services/social-visual/index.js.map +1 -0
- package/distribution/component/services/social-visual/index.module.css +131 -0
- package/distribution/component/services/social-visual/type.d.ts +5 -0
- package/distribution/component/services/social-visual/type.d.ts.map +1 -0
- package/distribution/component/services/social-visual/type.js +2 -0
- package/distribution/component/services/social-visual/type.js.map +1 -0
- package/distribution/component/services/web-visual/index.module.css +19 -11
- package/distribution/component/statement/index.d.ts.map +1 -1
- package/distribution/component/statement/index.js +2 -1
- package/distribution/component/statement/index.js.map +1 -1
- package/distribution/component/statement/index.module.css +1 -3
- package/distribution/component/structured-data/index.d.ts +1 -1
- package/distribution/component/structured-data/index.d.ts.map +1 -1
- package/distribution/component/structured-data/index.js +28 -2
- package/distribution/component/structured-data/index.js.map +1 -1
- package/distribution/component/style-switch/index.d.ts +7 -0
- package/distribution/component/style-switch/index.d.ts.map +1 -0
- package/distribution/component/style-switch/index.js +34 -0
- package/distribution/component/style-switch/index.js.map +1 -0
- package/distribution/component/style-switch/index.module.css +36 -0
- package/distribution/component/style-switch/type.d.ts +6 -0
- package/distribution/component/style-switch/type.d.ts.map +1 -0
- package/distribution/component/style-switch/type.js +2 -0
- package/distribution/component/style-switch/type.js.map +1 -0
- package/distribution/component/touchpoint/index.d.ts +7 -0
- package/distribution/component/touchpoint/index.d.ts.map +1 -0
- package/distribution/component/touchpoint/index.js +25 -0
- package/distribution/component/touchpoint/index.js.map +1 -0
- package/distribution/component/touchpoint/index.module.css +85 -0
- package/distribution/component/touchpoint/plate/index.d.ts +4 -0
- package/distribution/component/touchpoint/plate/index.d.ts.map +1 -0
- package/distribution/component/touchpoint/plate/index.js +9 -0
- package/distribution/component/touchpoint/plate/index.js.map +1 -0
- package/distribution/component/touchpoint/plate/index.module.css +136 -0
- package/distribution/component/touchpoint/plate/type.d.ts +8 -0
- package/distribution/component/touchpoint/plate/type.d.ts.map +1 -0
- package/distribution/component/touchpoint/plate/type.js +2 -0
- package/distribution/component/touchpoint/plate/type.js.map +1 -0
- package/distribution/component/touchpoint/type.d.ts +5 -0
- package/distribution/component/touchpoint/type.d.ts.map +1 -0
- package/distribution/component/touchpoint/type.js +2 -0
- package/distribution/component/touchpoint/type.js.map +1 -0
- package/distribution/component/wordmark/index.module.css +2 -2
- package/distribution/content/capability/index.d.ts +12 -0
- package/distribution/content/capability/index.d.ts.map +1 -0
- package/distribution/content/capability/index.js +6 -0
- package/distribution/content/capability/index.js.map +1 -0
- package/distribution/content/contact/index.d.ts +46 -6
- package/distribution/content/contact/index.d.ts.map +1 -1
- package/distribution/content/contact/index.js +19 -4
- package/distribution/content/contact/index.js.map +1 -1
- package/distribution/content/footer/index.d.ts +12 -0
- package/distribution/content/footer/index.d.ts.map +1 -1
- package/distribution/content/footer/index.js +3 -0
- package/distribution/content/footer/index.js.map +1 -1
- package/distribution/content/hero/index.d.ts +6 -6
- package/distribution/content/hero/index.js +4 -4
- package/distribution/content/hero/index.js.map +1 -1
- package/distribution/content/navigation/index.d.ts +10 -2
- package/distribution/content/navigation/index.d.ts.map +1 -1
- package/distribution/content/navigation/index.js +3 -1
- package/distribution/content/navigation/index.js.map +1 -1
- package/distribution/content/process/index.d.ts +7 -7
- package/distribution/content/process/index.d.ts.map +1 -1
- package/distribution/content/process/index.js +8 -5
- package/distribution/content/process/index.js.map +1 -1
- package/distribution/content/separator/index.d.ts +2 -5
- package/distribution/content/separator/index.d.ts.map +1 -1
- package/distribution/content/separator/index.js +2 -5
- package/distribution/content/separator/index.js.map +1 -1
- package/distribution/content/services/index.d.ts +120 -29
- package/distribution/content/services/index.d.ts.map +1 -1
- package/distribution/content/services/index.js +146 -21
- package/distribution/content/services/index.js.map +1 -1
- package/distribution/content/site/index.d.ts.map +1 -1
- package/distribution/content/site/index.js +28 -4
- package/distribution/content/site/index.js.map +1 -1
- package/distribution/content/stack/index.d.ts +2 -2
- package/distribution/content/stack/index.d.ts.map +1 -1
- package/distribution/content/stack/index.js +8 -1
- package/distribution/content/stack/index.js.map +1 -1
- package/distribution/content/statement/index.d.ts +2 -2
- package/distribution/content/statement/index.js +2 -2
- package/distribution/content/statement/index.js.map +1 -1
- package/distribution/content/style/index.d.ts +59 -0
- package/distribution/content/style/index.d.ts.map +1 -0
- package/distribution/content/style/index.js +48 -0
- package/distribution/content/style/index.js.map +1 -0
- package/distribution/content/touchpoint/index.d.ts +37 -0
- package/distribution/content/touchpoint/index.d.ts.map +1 -0
- package/distribution/content/touchpoint/index.js +17 -0
- package/distribution/content/touchpoint/index.js.map +1 -0
- package/distribution/style/token/index.scss +33 -2
- package/distribution/utility/hex-channel/index.d.ts +3 -0
- package/distribution/utility/hex-channel/index.d.ts.map +1 -0
- package/distribution/utility/hex-channel/index.js +8 -0
- package/distribution/utility/hex-channel/index.js.map +1 -0
- package/distribution/utility/parse-contact/index.d.ts.map +1 -1
- package/distribution/utility/parse-contact/index.js +4 -0
- package/distribution/utility/parse-contact/index.js.map +1 -1
- package/distribution/utility/parse-contact/type.d.ts +3 -0
- package/distribution/utility/parse-contact/type.d.ts.map +1 -1
- package/package.json +2 -2
- package/distribution/component/services/application-visual/index.d.ts +0 -4
- package/distribution/component/services/application-visual/index.d.ts.map +0 -1
- package/distribution/component/services/application-visual/index.js.map +0 -1
- package/distribution/component/services/application-visual/type.d.ts.map +0 -1
- package/distribution/component/services/application-visual/type.js.map +0 -1
- package/distribution/component/services/card/index.d.ts +0 -4
- package/distribution/component/services/card/index.d.ts.map +0 -1
- package/distribution/component/services/card/index.js +0 -10
- package/distribution/component/services/card/index.js.map +0 -1
- package/distribution/component/services/card/index.module.css +0 -92
- package/distribution/component/services/card/type.d.ts +0 -12
- package/distribution/component/services/card/type.d.ts.map +0 -1
- package/distribution/component/services/card/type.js.map +0 -1
- /package/distribution/component/{services/application-visual → capability}/type.js +0 -0
- /package/distribution/component/{services/card → cross}/type.js +0 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useCountUp } from "@sharadox/web-library/animation/count-up";
|
|
4
|
+
import { useInView } from "@sharadox/web-library/animation/in-view";
|
|
5
|
+
import { languageTag } from "@sharadox/web-library/internationalization/locale";
|
|
6
|
+
import { translate } from "@sharadox/web-library/internationalization/translate";
|
|
7
|
+
import { SERVICES } from "@sharadox/sharadox-web-library/content/services";
|
|
8
|
+
import styles from "./index.module.css";
|
|
9
|
+
const LINE = "M0 86 C 30 84, 46 74, 70 70 S 112 66, 132 52 S 170 40, 196 30 S 232 14, 260 8";
|
|
10
|
+
const POSTS = Array.from({ length: 9 }, (_, index) => index);
|
|
11
|
+
/** A growth chart drawing itself as the follower count climbs, beside a feed of posts filling in, in 3D. */
|
|
12
|
+
export function SocialVisual({ locale }) {
|
|
13
|
+
const [container, on] = useInView();
|
|
14
|
+
const followers = useCountUp(12480, on, 2200);
|
|
15
|
+
return (_jsxs("div", { ref: container, className: [styles.visual, on && styles.on].filter(Boolean).join(" "), "aria-hidden": true, children: [_jsx("div", { className: styles.feed, children: POSTS.map((post) => (_jsx("span", { style: { animationDelay: `${0.2 + post * 0.09}s` } }, post))) }), _jsxs("div", { className: styles.panel, children: [_jsxs("div", { className: styles.header, children: [_jsx("span", { className: `${styles.label} monospace`, children: translate(SERVICES.visual.followers, locale) }), _jsx("span", { className: `${styles.growth} monospace`, children: "+38%" })] }), _jsx("span", { className: styles.count, children: followers.toLocaleString(languageTag(locale)) }), _jsxs("svg", { viewBox: "0 0 260 96", className: styles.chart, children: [_jsx("defs", { children: _jsxs("linearGradient", { id: "social-area", x1: "0", x2: "0", y1: "0", y2: "1", children: [_jsx("stop", { offset: "0", stopColor: "var(--foreground)", stopOpacity: "0.22" }), _jsx("stop", { offset: "1", stopColor: "var(--foreground)", stopOpacity: "0" })] }) }), [24, 48, 72].map((y) => (_jsx("line", { x1: "0", x2: "260", y1: y, y2: y, className: styles.gridLine }, y))), _jsx("path", { d: `${LINE} L 260 96 L 0 96 Z`, className: styles.area, fill: "url(#social-area)" }), _jsx("path", { d: LINE, className: styles.line, pathLength: 1 }), _jsx("circle", { cx: "260", cy: "8", r: "3.5", className: styles.dot })] })] })] }));
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/services/social-visual/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,UAAU,EAAE,MAAM,0CAA0C,CAAC;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,mDAAmD,CAAC;AAChF,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAC3E,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC,MAAM,IAAI,GAAG,+EAA+E,CAAC;AAC7F,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC;AAE7D,4GAA4G;AAC5G,MAAM,UAAU,YAAY,CAAC,EAAE,MAAM,EAA0B;IAC7D,MAAM,CAAC,SAAS,EAAE,EAAE,CAAC,GAAG,SAAS,EAAkB,CAAC;IACpD,MAAM,SAAS,GAAG,UAAU,CAAC,KAAK,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;IAC9C,OAAO,CACL,eAAK,GAAG,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,IAAI,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,kCACxF,cAAK,SAAS,EAAE,MAAM,CAAC,IAAI,YACxB,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CACnB,eAAiB,KAAK,EAAE,EAAE,cAAc,EAAE,GAAG,GAAG,GAAG,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eAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,CAAC,IAAI,EAAE,UAAU,EAAE,CAAC,GAAI,EACxD,iBAAQ,EAAE,EAAC,KAAK,EAAC,EAAE,EAAC,GAAG,EAAC,CAAC,EAAC,KAAK,EAAC,SAAS,EAAE,MAAM,CAAC,GAAG,GAAI,IACrD,IACF,IACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
.visual {
|
|
2
|
+
position: absolute;
|
|
3
|
+
inset: 0;
|
|
4
|
+
display: grid;
|
|
5
|
+
place-items: center;
|
|
6
|
+
perspective: 900px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.feed {
|
|
10
|
+
position: absolute;
|
|
11
|
+
right: 6%;
|
|
12
|
+
top: 50%;
|
|
13
|
+
width: 132px;
|
|
14
|
+
display: grid;
|
|
15
|
+
grid-template-columns: repeat(3, 1fr);
|
|
16
|
+
gap: 5px;
|
|
17
|
+
transform: translateY(-56%) rotateY(-28deg) rotateX(10deg) translateZ(-40px);
|
|
18
|
+
}
|
|
19
|
+
.feed span {
|
|
20
|
+
aspect-ratio: 1;
|
|
21
|
+
border-radius: 5px;
|
|
22
|
+
border: 1px solid var(--line-2);
|
|
23
|
+
background: linear-gradient(135deg, color-mix(in srgb, var(--foreground) 14%, transparent), color-mix(in srgb, var(--foreground) 3%, transparent));
|
|
24
|
+
}
|
|
25
|
+
.on .feed span {
|
|
26
|
+
animation: pop 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
|
|
27
|
+
}
|
|
28
|
+
.feed span:nth-child(3n+2) {
|
|
29
|
+
background: linear-gradient(135deg, color-mix(in srgb, var(--foreground) 28%, transparent), color-mix(in srgb, var(--foreground) 8%, transparent));
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@keyframes pop {
|
|
33
|
+
from {
|
|
34
|
+
opacity: 0;
|
|
35
|
+
transform: scale(0.6);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
.panel {
|
|
39
|
+
position: relative;
|
|
40
|
+
width: min(72%, 290px);
|
|
41
|
+
margin-right: 22%;
|
|
42
|
+
padding: 16px 16px 10px;
|
|
43
|
+
border-radius: 14px;
|
|
44
|
+
border: 1px solid var(--line-2);
|
|
45
|
+
background: color-mix(in srgb, var(--background) 80%, transparent);
|
|
46
|
+
backdrop-filter: blur(8px);
|
|
47
|
+
box-shadow: 0 30px 60px -24px color-mix(in srgb, var(--background) 90%, transparent);
|
|
48
|
+
transform: rotateY(10deg) rotateX(6deg) translateZ(30px);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.header {
|
|
52
|
+
display: flex;
|
|
53
|
+
justify-content: space-between;
|
|
54
|
+
align-items: center;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.label {
|
|
58
|
+
font-size: 10.5px;
|
|
59
|
+
text-transform: uppercase;
|
|
60
|
+
letter-spacing: 0.05em;
|
|
61
|
+
color: var(--foreground-3);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.growth {
|
|
65
|
+
font-size: 10.5px;
|
|
66
|
+
padding: 2px 7px;
|
|
67
|
+
border-radius: 99px;
|
|
68
|
+
background: color-mix(in srgb, var(--foreground) 10%, transparent);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.count {
|
|
72
|
+
display: block;
|
|
73
|
+
margin: 2px 0 6px;
|
|
74
|
+
font-size: 30px;
|
|
75
|
+
font-weight: 600;
|
|
76
|
+
letter-spacing: -0.04em;
|
|
77
|
+
font-variant-numeric: tabular-nums;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.chart {
|
|
81
|
+
display: block;
|
|
82
|
+
width: 100%;
|
|
83
|
+
height: auto;
|
|
84
|
+
overflow: visible;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.gridLine {
|
|
88
|
+
stroke: var(--line);
|
|
89
|
+
stroke-dasharray: 3 3;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.line {
|
|
93
|
+
fill: none;
|
|
94
|
+
stroke: var(--foreground);
|
|
95
|
+
stroke-width: 1.8;
|
|
96
|
+
stroke-linecap: round;
|
|
97
|
+
stroke-dasharray: 1;
|
|
98
|
+
}
|
|
99
|
+
.on .line {
|
|
100
|
+
animation: draw-line 2.2s cubic-bezier(0.22, 1, 0.36, 1) both;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.on .area {
|
|
104
|
+
animation: fade 2.2s ease both;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
@keyframes draw-line {
|
|
108
|
+
from {
|
|
109
|
+
stroke-dashoffset: 1;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
@keyframes fade {
|
|
113
|
+
from {
|
|
114
|
+
opacity: 0;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
.dot {
|
|
118
|
+
fill: var(--foreground);
|
|
119
|
+
}
|
|
120
|
+
.on .dot {
|
|
121
|
+
animation: pulse 2s 2.2s ease-out infinite;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
@keyframes pulse {
|
|
125
|
+
0% {
|
|
126
|
+
filter: drop-shadow(0 0 0 var(--foreground));
|
|
127
|
+
}
|
|
128
|
+
50% {
|
|
129
|
+
filter: drop-shadow(0 0 6px var(--foreground));
|
|
130
|
+
}
|
|
131
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../source/component/services/social-visual/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oDAAoD,CAAC;AAEjF,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../source/component/services/social-visual/type.ts"],"names":[],"mappings":""}
|
|
@@ -9,10 +9,11 @@
|
|
|
9
9
|
width: min(78%, 520px);
|
|
10
10
|
border-radius: 12px;
|
|
11
11
|
border: 1px solid var(--line-2);
|
|
12
|
-
background:
|
|
12
|
+
background: var(--card);
|
|
13
13
|
overflow: hidden;
|
|
14
|
-
box-shadow: 0 30px 80px -20px
|
|
15
|
-
transform: perspective(900px) rotateX(8deg);
|
|
14
|
+
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);
|
|
15
|
+
transform: perspective(900px) rotateX(10deg) rotateY(-8deg) translateZ(20px);
|
|
16
|
+
animation: float 7s ease-in-out infinite;
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
.bar {
|
|
@@ -27,7 +28,7 @@
|
|
|
27
28
|
width: 8px;
|
|
28
29
|
height: 8px;
|
|
29
30
|
border-radius: 50%;
|
|
30
|
-
background:
|
|
31
|
+
background: var(--line-2);
|
|
31
32
|
}
|
|
32
33
|
|
|
33
34
|
.url {
|
|
@@ -36,7 +37,7 @@
|
|
|
36
37
|
color: var(--foreground-3);
|
|
37
38
|
padding: 3px 10px;
|
|
38
39
|
border-radius: 6px;
|
|
39
|
-
background:
|
|
40
|
+
background: var(--surface);
|
|
40
41
|
}
|
|
41
42
|
|
|
42
43
|
.body {
|
|
@@ -47,7 +48,7 @@
|
|
|
47
48
|
|
|
48
49
|
.skeleton {
|
|
49
50
|
border-radius: 6px;
|
|
50
|
-
background: linear-gradient(90deg,
|
|
51
|
+
background: linear-gradient(90deg, var(--surface), color-mix(in srgb, var(--foreground) 14%, transparent), var(--surface));
|
|
51
52
|
background-size: 200% 100%;
|
|
52
53
|
opacity: 0;
|
|
53
54
|
transform: translateY(8px);
|
|
@@ -98,14 +99,15 @@
|
|
|
98
99
|
}
|
|
99
100
|
.score {
|
|
100
101
|
position: absolute;
|
|
101
|
-
right:
|
|
102
|
-
bottom:
|
|
102
|
+
right: 7%;
|
|
103
|
+
bottom: 10%;
|
|
104
|
+
transform: translateZ(60px);
|
|
103
105
|
width: 74px;
|
|
104
106
|
height: 74px;
|
|
105
107
|
display: grid;
|
|
106
108
|
place-items: center;
|
|
107
109
|
border-radius: 50%;
|
|
108
|
-
background:
|
|
110
|
+
background: color-mix(in srgb, var(--background) 90%, transparent);
|
|
109
111
|
border: 1px solid var(--line-2);
|
|
110
112
|
backdrop-filter: blur(8px);
|
|
111
113
|
}
|
|
@@ -121,14 +123,20 @@
|
|
|
121
123
|
|
|
122
124
|
.track {
|
|
123
125
|
fill: none;
|
|
124
|
-
stroke:
|
|
126
|
+
stroke: var(--line-2);
|
|
125
127
|
stroke-width: 3;
|
|
126
128
|
}
|
|
127
129
|
|
|
128
130
|
.progress {
|
|
129
131
|
fill: none;
|
|
130
|
-
stroke:
|
|
132
|
+
stroke: var(--foreground);
|
|
131
133
|
stroke-width: 3;
|
|
132
134
|
stroke-linecap: round;
|
|
133
135
|
transition: stroke-dashoffset 0.1s linear;
|
|
134
136
|
}
|
|
137
|
+
|
|
138
|
+
@keyframes float {
|
|
139
|
+
50% {
|
|
140
|
+
transform: perspective(900px) rotateX(6deg) rotateY(-4deg) translateZ(20px) translateY(-6px);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/statement/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/statement/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yDAAyD,CAAC;AAGnG,uFAAuF;AACvF,wBAAgB,SAAS,CAAC,EAAE,IAAI,EAAE,EAAE,mBAAmB,+BAMtD"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { ScrollWords } from "@sharadox/web-library/animation/scroll-word";
|
|
4
|
+
import { Section } from "@sharadox/sharadox-web-library/component/section";
|
|
4
5
|
import styles from "./index.module.css";
|
|
5
6
|
/** A large sentence that lights up word by word as it scrolls through the viewport. */
|
|
6
7
|
export function Statement({ text }) {
|
|
7
|
-
return (_jsx(
|
|
8
|
+
return (_jsx(Section, { className: styles.wrapper, crosses: false, children: _jsx(ScrollWords, { text: text, className: styles.statement }) }));
|
|
8
9
|
}
|
|
9
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/statement/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,WAAW,EAAE,MAAM,6CAA6C,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/statement/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,WAAW,EAAE,MAAM,6CAA6C,CAAC;AAC1E,OAAO,EAAE,OAAO,EAAE,MAAM,kDAAkD,CAAC;AAE3E,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,uFAAuF;AACvF,MAAM,UAAU,SAAS,CAAC,EAAE,IAAI,EAAuB;IACrD,OAAO,CACL,KAAC,OAAO,IAAC,SAAS,EAAE,MAAM,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,YAChD,KAAC,WAAW,IAAC,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,CAAC,SAAS,GAAI,GAChD,CACX,CAAC;AACJ,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { StructuredDataProperties } from "@sharadox/sharadox-web-library/component/structured-data/type";
|
|
2
|
-
/** JSON-LD for search engines: the Sharadox organization and website. */
|
|
2
|
+
/** JSON-LD for search engines: the Sharadox organization with its five services, and the website. */
|
|
3
3
|
export declare function StructuredData({ locale }: StructuredDataProperties): import("react").JSX.Element;
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/structured-data/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/structured-data/index.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,+DAA+D,CAAC;AAE9G,qGAAqG;AACrG,wBAAgB,cAAc,CAAC,EAAE,MAAM,EAAE,EAAE,wBAAwB,+BAqDlE"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { SERVICES } from "@sharadox/sharadox-web-library/content/services";
|
|
2
3
|
import { SITE } from "@sharadox/sharadox-web-library/content/site";
|
|
3
4
|
import { languageTag } from "@sharadox/web-library/internationalization/locale";
|
|
4
5
|
import { StructuredData as JsonLinkedData } from "@sharadox/web-library/search-engine/structured-data";
|
|
5
6
|
import { translate } from "@sharadox/web-library/internationalization/translate";
|
|
6
|
-
/** JSON-LD for search engines: the Sharadox organization and website. */
|
|
7
|
+
/** JSON-LD for search engines: the Sharadox organization with its five services, and the website. */
|
|
7
8
|
export function StructuredData({ locale }) {
|
|
8
9
|
const data = {
|
|
9
10
|
"@context": "https://schema.org",
|
|
@@ -19,7 +20,32 @@ export function StructuredData({ locale }) {
|
|
|
19
20
|
logo: `${SITE.url}/icon.svg`,
|
|
20
21
|
address: { "@type": "PostalAddress", addressRegion: "Algarve", addressCountry: "PT" },
|
|
21
22
|
areaServed: "Worldwide",
|
|
22
|
-
knowsAbout: [
|
|
23
|
+
knowsAbout: [
|
|
24
|
+
"Brand management",
|
|
25
|
+
"Graphic design",
|
|
26
|
+
"Web development",
|
|
27
|
+
"Web design",
|
|
28
|
+
"Software platforms",
|
|
29
|
+
"Mobile applications",
|
|
30
|
+
"Social media management",
|
|
31
|
+
"Digital marketing",
|
|
32
|
+
],
|
|
33
|
+
hasOfferCatalog: {
|
|
34
|
+
"@type": "OfferCatalog",
|
|
35
|
+
name: translate(SERVICES.eyebrow, locale),
|
|
36
|
+
itemListElement: SERVICES.items.map((service) => ({
|
|
37
|
+
"@type": "Offer",
|
|
38
|
+
itemOffered: {
|
|
39
|
+
"@type": "Service",
|
|
40
|
+
"@id": `${SITE.url}/${locale}#${service.key}`,
|
|
41
|
+
name: translate(service.title, locale),
|
|
42
|
+
description: translate(service.text, locale),
|
|
43
|
+
serviceType: service.kinds[locale].join(", "),
|
|
44
|
+
provider: { "@id": `${SITE.url}/#organization` },
|
|
45
|
+
areaServed: "Worldwide",
|
|
46
|
+
},
|
|
47
|
+
})),
|
|
48
|
+
},
|
|
23
49
|
},
|
|
24
50
|
{
|
|
25
51
|
"@type": "WebSite",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/structured-data/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,6CAA6C,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,mDAAmD,CAAC;AAChF,OAAO,EAAE,cAAc,IAAI,cAAc,EAAE,MAAM,qDAAqD,CAAC;AACvG,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AAGjF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/structured-data/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAC3E,OAAO,EAAE,IAAI,EAAE,MAAM,6CAA6C,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,mDAAmD,CAAC;AAChF,OAAO,EAAE,cAAc,IAAI,cAAc,EAAE,MAAM,qDAAqD,CAAC;AACvG,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AAGjF,qGAAqG;AACrG,MAAM,UAAU,cAAc,CAAC,EAAE,MAAM,EAA4B;IACjE,MAAM,IAAI,GAAG;QACX,U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C,CAAC,IAAI,CAAC,IAAI,CAAC;4BAC7C,QAAQ,EAAE,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC,GAAG,gBAAgB,EAAE;4BAChD,UAAU,EAAE,WAAW;yBACxB;qBACF,CAAC,CAAC;iBACJ;aACF;YACD;gBACE,OAAO,EAAE,SAAS;gBAClB,KAAK,EAAE,GAAG,IAAI,CAAC,GAAG,WAAW;gBAC7B,GAAG,EAAE,GAAG,IAAI,CAAC,GAAG,IAAI,MAAM,EAAE;gBAC5B,IAAI,EAAE,IAAI,CAAC,IAAI;gBACf,UAAU,EAAE,WAAW,CAAC,MAAM,CAAC;gBAC/B,SAAS,EAAE,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC,GAAG,gBAAgB,EAAE;aAClD;SACF;KACF,CAAC;IACF,OAAO,KAAC,cAAc,IAAC,IAAI,EAAE,IAAI,GAAI,CAAC;AACxC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { StyleSwitchProperties } from "@sharadox/sharadox-web-library/component/style-switch/type";
|
|
2
|
+
/**
|
|
3
|
+
* Picks the style: light styles on the left, System (the default, follows the device) in the middle, dark styles on
|
|
4
|
+
* the right. Light styles show a sun and dark ones a moon; every style in content/style appears automatically.
|
|
5
|
+
*/
|
|
6
|
+
export declare function StyleSwitch({ locale, className }: StyleSwitchProperties): import("react").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/style-switch/index.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4DAA4D,CAAC;AAqBxG;;;GAGG;AACH,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,qBAAqB,+BAmCvE"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { SYSTEM_STYLE } from "@sharadox/web-library/style/definition";
|
|
4
|
+
import { useStyle } from "@sharadox/web-library/style/use-style";
|
|
5
|
+
import { translate } from "@sharadox/web-library/internationalization/translate";
|
|
6
|
+
import { STYLE, STYLE_CONFIGURATION } from "@sharadox/sharadox-web-library/content/style";
|
|
7
|
+
import styles from "./index.module.css";
|
|
8
|
+
const ICON = {
|
|
9
|
+
// A monitor: follow the device.
|
|
10
|
+
system: (_jsxs(_Fragment, { children: [_jsx("rect", { x: "1.5", y: "2.5", width: "13", height: "9", rx: "1.5" }), _jsx("path", { d: "M5.5 14h5M8 11.5V14" })] })),
|
|
11
|
+
// A sun for light styles.
|
|
12
|
+
light: (_jsxs(_Fragment, { children: [_jsx("circle", { cx: "8", cy: "8", r: "3" }), _jsx("path", { d: "M8 1.5v1.5M8 13v1.5M1.5 8H3M13 8h1.5M3.4 3.4l1.1 1.1M11.5 11.5l1.1 1.1M3.4 12.6l1.1-1.1M11.5 4.5l1.1-1.1" })] })),
|
|
13
|
+
// A moon for dark styles.
|
|
14
|
+
dark: _jsx("path", { d: "M13.5 9.6A5.8 5.8 0 0 1 6.4 2.5a5.8 5.8 0 1 0 7.1 7.1Z" }),
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Picks the style: light styles on the left, System (the default, follows the device) in the middle, dark styles on
|
|
18
|
+
* the right. Light styles show a sun and dark ones a moon; every style in content/style appears automatically.
|
|
19
|
+
*/
|
|
20
|
+
export function StyleSwitch({ locale, className }) {
|
|
21
|
+
const { choice, choose } = useStyle(STYLE_CONFIGURATION);
|
|
22
|
+
const option = (style) => ({
|
|
23
|
+
name: style.name,
|
|
24
|
+
label: STYLE.names[style.name] ?? style.name,
|
|
25
|
+
icon: ICON[style.scheme],
|
|
26
|
+
});
|
|
27
|
+
const options = [
|
|
28
|
+
...STYLE_CONFIGURATION.styles.filter((style) => style.scheme === "light").map(option),
|
|
29
|
+
{ name: SYSTEM_STYLE, label: translate(STYLE.system, locale), icon: ICON.system },
|
|
30
|
+
...STYLE_CONFIGURATION.styles.filter((style) => style.scheme === "dark").map(option),
|
|
31
|
+
];
|
|
32
|
+
return (_jsx("div", { className: [styles.switch, className].filter(Boolean).join(" "), role: "radiogroup", "aria-label": translate(STYLE.label, locale), children: options.map((item) => (_jsx("button", { type: "button", role: "radio", "aria-checked": choice === item.name, "aria-label": item.label, title: item.label, onClick: () => choose(item.name), children: _jsx("svg", { viewBox: "0 0 16 16", className: styles.icon, "aria-hidden": true, children: item.icon }) }, item.name))) }));
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/style-switch/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAC;AACtE,OAAO,EAAE,QAAQ,EAAE,MAAM,uCAAuC,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,EAAE,KAAK,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AAC1F,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC,MAAM,IAAI,GAAG;IACX,gCAAgC;IAChC,MAAM,EAAE,CACN,8BACE,eAAM,CAAC,EAAC,KAAK,EAAC,CAAC,EAAC,KAAK,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,GAAG,EAAC,EAAE,EAAC,KAAK,GAAG,EACvD,eAAM,CAAC,EAAC,qBAAqB,GAAG,IAC/B,CACJ;IACD,0BAA0B;IAC1B,KAAK,EAAE,CACL,8BACE,iBAAQ,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,CAAC,EAAC,GAAG,GAAG,EAC9B,eAAM,CAAC,EAAC,0GAA0G,GAAG,IACpH,CACJ;IACD,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CACrB,iBAEE,IAAI,EAAC,QAAQ,EACb,IAAI,EAAC,OAAO,kBACE,MAAM,KAAK,IAAI,CAAC,IAAI,gBACtB,IAAI,CAAC,KAAK,EACtB,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,YAEhC,cAAK,OAAO,EAAC,WAAW,EAAC,SAAS,EAAE,MAAM,CAAC,IAAI,iCAC5C,IAAI,CAAC,IAAI,GACN,IAVD,IAAI,CAAC,IAAI,CAWP,CACV,CAAC,GACE,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
.switch {
|
|
2
|
+
display: flex;
|
|
3
|
+
padding: 3px;
|
|
4
|
+
gap: 2px;
|
|
5
|
+
border: 1px solid var(--line-2);
|
|
6
|
+
border-radius: 99px;
|
|
7
|
+
}
|
|
8
|
+
.switch button {
|
|
9
|
+
display: grid;
|
|
10
|
+
place-items: center;
|
|
11
|
+
width: 26px;
|
|
12
|
+
height: 26px;
|
|
13
|
+
padding: 0;
|
|
14
|
+
border: 0;
|
|
15
|
+
border-radius: 99px;
|
|
16
|
+
background: none;
|
|
17
|
+
color: var(--foreground-3);
|
|
18
|
+
transition: color 0.2s, background 0.2s;
|
|
19
|
+
}
|
|
20
|
+
.switch button:hover {
|
|
21
|
+
color: var(--foreground);
|
|
22
|
+
}
|
|
23
|
+
.switch button[aria-checked=true] {
|
|
24
|
+
background: var(--line-2);
|
|
25
|
+
color: var(--foreground);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.icon {
|
|
29
|
+
width: 15px;
|
|
30
|
+
height: 15px;
|
|
31
|
+
fill: none;
|
|
32
|
+
stroke: currentColor;
|
|
33
|
+
stroke-width: 1.3;
|
|
34
|
+
stroke-linecap: round;
|
|
35
|
+
stroke-linejoin: round;
|
|
36
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../source/component/style-switch/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oDAAoD,CAAC;AAEjF,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../source/component/style-switch/type.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TouchpointProperties } from "@sharadox/sharadox-web-library/component/touchpoint/type";
|
|
2
|
+
/**
|
|
3
|
+
* "One brand. Every touchpoint.": the brand's layers stacked in 3D on one identity, separating as the section
|
|
4
|
+
* scrolls through, and tilting towards the pointer.
|
|
5
|
+
*/
|
|
6
|
+
export declare function Touchpoint({ locale }: TouchpointProperties): import("react").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/touchpoint/index.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0DAA0D,CAAC;AAErG;;;GAGG;AACH,wBAAgB,UAAU,CAAC,EAAE,MAAM,EAAE,EAAE,oBAAoB,+BAmC1D"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { motion, useScroll, useTransform } from "motion/react";
|
|
4
|
+
import { useRef } from "react";
|
|
5
|
+
import { Reveal } from "@sharadox/web-library/animation/reveal";
|
|
6
|
+
import { translate } from "@sharadox/web-library/internationalization/translate";
|
|
7
|
+
import { useTilt } from "@sharadox/web-library/pointer/tilt";
|
|
8
|
+
import { Section } from "@sharadox/sharadox-web-library/component/section";
|
|
9
|
+
import { SectionHeading } from "@sharadox/sharadox-web-library/component/section-heading";
|
|
10
|
+
import { Plate } from "@sharadox/sharadox-web-library/component/touchpoint/plate";
|
|
11
|
+
import { TOUCHPOINT } from "@sharadox/sharadox-web-library/content/touchpoint";
|
|
12
|
+
import styles from "./index.module.css";
|
|
13
|
+
/**
|
|
14
|
+
* "One brand. Every touchpoint.": the brand's layers stacked in 3D on one identity, separating as the section
|
|
15
|
+
* scrolls through, and tilting towards the pointer.
|
|
16
|
+
*/
|
|
17
|
+
export function Touchpoint({ locale }) {
|
|
18
|
+
const container = useRef(null);
|
|
19
|
+
const tilt = useTilt(6);
|
|
20
|
+
const { scrollYProgress } = useScroll({ target: container, offset: ["start end", "center center"] });
|
|
21
|
+
const spread = useTransform(scrollYProgress, [0, 1], [10, 52]);
|
|
22
|
+
const turn = useTransform(scrollYProgress, [0, 1], [-52, -38]);
|
|
23
|
+
return (_jsxs(Section, { id: "touchpoints", className: styles.touchpoint, children: [_jsxs("div", { className: styles.copy, children: [_jsx(SectionHeading, { eyebrow: translate(TOUCHPOINT.eyebrow, locale), title: translate(TOUCHPOINT.title, locale) }), _jsx(Reveal, { delay: 0.1, children: _jsx("p", { className: styles.text, children: translate(TOUCHPOINT.text, locale) }) }), _jsx("ol", { className: styles.layers, children: [...TOUCHPOINT.layers].reverse().map((layer, index) => (_jsx(Reveal, { delay: 0.15 + index * 0.06, y: 10, blur: 0, children: _jsxs("li", { children: [_jsx("span", { className: "monospace", children: String(TOUCHPOINT.layers.length - index).padStart(2, "0") }), layer[locale]] }) }, layer.key))) })] }), _jsx("div", { ref: container, className: styles.stage, "aria-hidden": true, children: _jsx("div", { ref: tilt, className: styles.tilt, children: _jsx(motion.div, { className: styles.stack, style: { "--spread": spread, "--turn": turn }, children: TOUCHPOINT.layers.map((layer, index) => (_jsx(Plate, { layer: layer.key, label: layer[locale], index: index }, layer.key))) }) }) })] }));
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
|
@@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,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,CACvC,KAAC,KAAK,IAAiB,KAAK,EAAE,KAAK,CAAC,GAAG,EAAE,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,KAAK,IAA/D,KAAK,CAAC,GAAG,CAA0D,CAChF,CAAC,GACS,GACT,GACF,IACE,CACX,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
.touchpoint {
|
|
2
|
+
display: grid;
|
|
3
|
+
grid-template-columns: 1fr 1.15fr;
|
|
4
|
+
gap: clamp(32px, 5vw, 72px);
|
|
5
|
+
align-items: center;
|
|
6
|
+
}
|
|
7
|
+
@media (max-width: 900px) {
|
|
8
|
+
.touchpoint {
|
|
9
|
+
grid-template-columns: 1fr;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.text {
|
|
14
|
+
margin-top: -16px;
|
|
15
|
+
color: var(--foreground-2);
|
|
16
|
+
font-size: 1.08rem;
|
|
17
|
+
max-width: 40ch;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.layers {
|
|
21
|
+
margin: 36px 0 0;
|
|
22
|
+
padding: 0;
|
|
23
|
+
list-style: none;
|
|
24
|
+
border-top: 1px dashed var(--line-2);
|
|
25
|
+
}
|
|
26
|
+
.layers li {
|
|
27
|
+
display: flex;
|
|
28
|
+
align-items: baseline;
|
|
29
|
+
gap: 16px;
|
|
30
|
+
padding: 13px 0;
|
|
31
|
+
border-bottom: 1px dashed var(--line-2);
|
|
32
|
+
font-weight: 500;
|
|
33
|
+
letter-spacing: -0.02em;
|
|
34
|
+
}
|
|
35
|
+
.layers li span {
|
|
36
|
+
font-size: 11.5px;
|
|
37
|
+
color: var(--foreground-3);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.stage {
|
|
41
|
+
position: relative;
|
|
42
|
+
height: clamp(420px, 52vw, 600px);
|
|
43
|
+
display: grid;
|
|
44
|
+
place-items: center;
|
|
45
|
+
perspective: 1600px;
|
|
46
|
+
}
|
|
47
|
+
@media (max-width: 600px) {
|
|
48
|
+
.stage {
|
|
49
|
+
height: 380px;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/* A soft floor light under the stack. */
|
|
54
|
+
.stage::before {
|
|
55
|
+
content: "";
|
|
56
|
+
position: absolute;
|
|
57
|
+
inset: 18% 8% 8%;
|
|
58
|
+
border-radius: 50%;
|
|
59
|
+
background: radial-gradient(closest-side, color-mix(in srgb, var(--foreground) 10%, transparent), transparent);
|
|
60
|
+
filter: blur(20px);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.tilt {
|
|
64
|
+
--tilt-x: 0deg;
|
|
65
|
+
--tilt-y: 0deg;
|
|
66
|
+
transform-style: preserve-3d;
|
|
67
|
+
transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
|
|
68
|
+
transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.stack {
|
|
72
|
+
--spread: 18;
|
|
73
|
+
--turn: -40;
|
|
74
|
+
position: relative;
|
|
75
|
+
width: 300px;
|
|
76
|
+
height: 200px;
|
|
77
|
+
transform-style: preserve-3d;
|
|
78
|
+
transform: translateY(10%) rotateX(58deg) rotateZ(calc(var(--turn) * 1deg));
|
|
79
|
+
}
|
|
80
|
+
@media (max-width: 600px) {
|
|
81
|
+
.stack {
|
|
82
|
+
width: 240px;
|
|
83
|
+
height: 160px;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { PlateProperties } from "@sharadox/sharadox-web-library/component/touchpoint/plate/type";
|
|
2
|
+
/** One layer of the brand stack, drawn as a miniature of that touchpoint. */
|
|
3
|
+
export declare function Plate({ layer, label, index }: PlateProperties): import("react").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/touchpoint/plate/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gEAAgE,CAAC;AAKtG,6EAA6E;AAC7E,wBAAgB,KAAK,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,eAAe,+BA+C7D"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import styles from "./index.module.css";
|
|
3
|
+
const SQUARES = Array.from({ length: 9 }, (_, index) => index);
|
|
4
|
+
const BARS = [38, 54, 46, 72, 64, 90];
|
|
5
|
+
/** One layer of the brand stack, drawn as a miniature of that touchpoint. */
|
|
6
|
+
export function Plate({ layer, label, index }) {
|
|
7
|
+
return (_jsxs("div", { className: styles.plate, style: { "--index": index }, children: [_jsx("span", { className: `${styles.label} monospace`, children: label }), layer === "identity" && (_jsxs("div", { className: styles.identity, children: [_jsx("span", { className: styles.mark }), _jsxs("span", { className: styles.swatches, children: [_jsx("i", {}), _jsx("i", {}), _jsx("i", {})] })] })), layer === "website" && (_jsxs("div", { className: styles.website, children: [_jsx("span", { className: styles.bar }), _jsx("span", { className: styles.block }), _jsxs("span", { className: styles.row, children: [_jsx("i", {}), _jsx("i", {}), _jsx("i", {})] })] })), layer === "application" && (_jsxs("div", { className: styles.application, children: [_jsx("span", {}), _jsx("span", {})] })), layer === "social" && (_jsx("div", { className: styles.social, children: SQUARES.map((square) => (_jsx("i", {}, square))) })), layer === "campaign" && (_jsx("div", { className: styles.campaign, children: BARS.map((height, bar) => (_jsx("i", { style: { height: `${height}%` } }, bar))) }))] }));
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":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