@sharadox/sharadox-web-library 0.2.0 → 0.4.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 +9 -4
- 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 +13 -0
- package/distribution/component/capability/index.js.map +1 -0
- package/distribution/component/capability/index.module.css +83 -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 +2 -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.module.css +1 -0
- 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 +4 -1
- package/distribution/component/marquee/index.d.ts.map +1 -1
- package/distribution/component/marquee/index.js +8 -3
- package/distribution/component/marquee/index.js.map +1 -1
- package/distribution/component/marquee/index.module.css +20 -4
- 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 +24 -0
- package/distribution/component/style-switch/index.js.map +1 -0
- package/distribution/component/style-switch/index.module.css +45 -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 +86 -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 +12 -4
- package/distribution/content/contact/index.d.ts.map +1 -1
- package/distribution/content/contact/index.js +8 -3
- 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 +4 -4
- package/distribution/content/hero/index.js +3 -3
- package/distribution/content/hero/index.js.map +1 -1
- package/distribution/content/navigation/index.d.ts +8 -0
- package/distribution/content/navigation/index.d.ts.map +1 -1
- package/distribution/content/navigation/index.js +2 -0
- 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 +4 -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
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { WorldProperties } from "@sharadox/sharadox-web-library/component/globe/world/type";
|
|
2
2
|
/** The planet scene: body, atmosphere, land, arcs and markers. Rotation comes from the drag controller. */
|
|
3
|
-
export declare function World({ data, drag }: WorldProperties): import("react").JSX.Element;
|
|
3
|
+
export declare function World({ data, drag, colors }: WorldProperties): import("react").JSX.Element;
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/globe/world/index.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2DAA2D,CAAC;AAEjG,2GAA2G;AAC3G,wBAAgB,KAAK,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,eAAe,+
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/globe/world/index.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2DAA2D,CAAC;AAEjG,2GAA2G;AAC3G,wBAAgB,KAAK,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,eAAe,+BAsD5D"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
3
|
import { useFrame } from "@react-three/fiber";
|
|
4
4
|
import { useMemo, useRef } from "react";
|
|
5
|
-
import { AdditiveBlending, BackSide, MathUtils, ShaderMaterial } from "three";
|
|
5
|
+
import { AdditiveBlending, BackSide, MathUtils, NormalBlending, ShaderMaterial } from "three";
|
|
6
6
|
import { CITIES, HOME } from "@sharadox/sharadox-web-library/content/globe";
|
|
7
7
|
import { ATMOSPHERE_SHADER } from "@sharadox/sharadox-web-library/component/globe/shader/atmosphere";
|
|
8
8
|
import { BODY_SHADER } from "@sharadox/sharadox-web-library/component/globe/shader/body";
|
|
@@ -10,7 +10,7 @@ import { Arc } from "@sharadox/sharadox-web-library/component/globe/arc";
|
|
|
10
10
|
import { Dots } from "@sharadox/sharadox-web-library/component/globe/dots";
|
|
11
11
|
import { Marker } from "@sharadox/sharadox-web-library/component/globe/marker";
|
|
12
12
|
/** The planet scene: body, atmosphere, land, arcs and markers. Rotation comes from the drag controller. */
|
|
13
|
-
export function World({ data, drag }) {
|
|
13
|
+
export function World({ data, drag, colors }) {
|
|
14
14
|
const group = useRef(null);
|
|
15
15
|
useFrame((_, deltaSeconds) => {
|
|
16
16
|
const planet = group.current;
|
|
@@ -20,16 +20,20 @@ export function World({ data, drag }) {
|
|
|
20
20
|
planet.rotation.y = MathUtils.damp(planet.rotation.y, target.y, 6, deltaSeconds);
|
|
21
21
|
planet.rotation.x = MathUtils.damp(planet.rotation.x, target.x, 6, deltaSeconds);
|
|
22
22
|
});
|
|
23
|
-
const body = useMemo(() => new ShaderMaterial({
|
|
23
|
+
const body = useMemo(() => new ShaderMaterial({
|
|
24
|
+
vertexShader: BODY_SHADER.vertex,
|
|
25
|
+
fragmentShader: BODY_SHADER.fragment,
|
|
26
|
+
uniforms: { base: { value: colors.body }, rimColor: { value: colors.rim } },
|
|
27
|
+
}), [colors]);
|
|
24
28
|
const atmosphere = useMemo(() => new ShaderMaterial({
|
|
25
29
|
vertexShader: ATMOSPHERE_SHADER.vertex,
|
|
26
30
|
fragmentShader: ATMOSPHERE_SHADER.fragment,
|
|
27
|
-
uniforms: { strength: { value: 0.42 } },
|
|
31
|
+
uniforms: { strength: { value: colors.additive ? 0.42 : 0.2 }, color: { value: colors.ink } },
|
|
28
32
|
side: BackSide,
|
|
29
33
|
transparent: true,
|
|
30
|
-
blending: AdditiveBlending,
|
|
34
|
+
blending: colors.additive ? AdditiveBlending : NormalBlending,
|
|
31
35
|
depthWrite: false,
|
|
32
|
-
}), []);
|
|
33
|
-
return (_jsxs(_Fragment, { children: [_jsx("mesh", { scale: 1.16, material: atmosphere, children: _jsx("sphereGeometry", { args: [1, 64, 64] }) }), _jsxs("group", { ref: group, children: [_jsx("mesh", { material: body, children: _jsx("sphereGeometry", { args: [0.995, 96, 96] }) }), _jsx(Dots, { data: data }), CITIES.map((city, index) => (_jsx(Arc, { from: HOME, to: city, offset: index / CITIES.length }, index))), CITIES.map((city, index) => (_jsx(Marker, { latitude: city[0], longitude: city[1] }, `marker${index}`))), _jsx(Marker, { latitude: HOME.latitude, longitude: HOME.longitude, home: true })] })] }));
|
|
36
|
+
}), [colors]);
|
|
37
|
+
return (_jsxs(_Fragment, { children: [_jsx("mesh", { scale: 1.16, material: atmosphere, children: _jsx("sphereGeometry", { args: [1, 64, 64] }) }), _jsxs("group", { ref: group, children: [_jsx("mesh", { material: body, children: _jsx("sphereGeometry", { args: [0.995, 96, 96] }) }), _jsx(Dots, { data: data, colors: colors }), CITIES.map((city, index) => (_jsx(Arc, { from: HOME, to: city, offset: index / CITIES.length, colors: colors }, index))), CITIES.map((city, index) => (_jsx(Marker, { latitude: city[0], longitude: city[1], color: colors.inkHex }, `marker${index}`))), _jsx(Marker, { latitude: HOME.latitude, longitude: HOME.longitude, color: colors.inkHex, home: true })] })] }));
|
|
34
38
|
}
|
|
35
39
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/globe/world/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAc,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/globe/world/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE,cAAc,EAAc,MAAM,OAAO,CAAC;AAC1G,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM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zF,CAAC,EACD,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CAC3B,KAAC,MAAM,IAAwB,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,IAA7E,SAAS,KAAK,EAAE,CAAiE,CAC/F,CAAC,EACF,KAAC,MAAM,IAAC,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,SAAG,IACnF,IACP,CACJ,CAAC;AACJ,CAAC"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import type { GlobeColors } from "@sharadox/sharadox-web-library/component/globe/color/type";
|
|
1
2
|
import type { GlobeDrag } from "@sharadox/sharadox-web-library/hook/globe-drag/type";
|
|
2
3
|
export interface WorldProperties {
|
|
3
4
|
/** Float32 [latitude, longitude] land pairs. */
|
|
4
5
|
data: Float32Array;
|
|
5
6
|
/** Supplies the rotation each frame. */
|
|
6
7
|
drag: GlobeDrag;
|
|
8
|
+
colors: GlobeColors;
|
|
7
9
|
}
|
|
8
10
|
//# sourceMappingURL=type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../source/component/globe/world/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qDAAqD,CAAC;AAErF,MAAM,WAAW,eAAe;IAC9B,gDAAgD;IAChD,IAAI,EAAE,YAAY,CAAC;IACnB,wCAAwC;IACxC,IAAI,EAAE,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../source/component/globe/world/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2DAA2D,CAAC;AAC7F,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qDAAqD,CAAC;AAErF,MAAM,WAAW,eAAe;IAC9B,gDAAgD;IAChD,IAAI,EAAE,YAAY,CAAC;IACnB,wCAAwC;IACxC,IAAI,EAAE,SAAS,CAAC;IAChB,MAAM,EAAE,WAAW,CAAC;CACrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/hero/guide/index.tsx"],"names":[],"mappings":"AAKA;;;GAGG;AACH,wBAAgB,SAAS,gCAuBxB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import styles from "./index.module.css";
|
|
3
|
+
const COLUMNS = [1, 2, 3, 4, 5];
|
|
4
|
+
const ROWS = [1, 2, 3];
|
|
5
|
+
/**
|
|
6
|
+
* The hero's blueprint: dashed column and row guides that draw themselves in, with beams of light running along
|
|
7
|
+
* a few of them.
|
|
8
|
+
*/
|
|
9
|
+
export function HeroGuide() {
|
|
10
|
+
return (_jsxs("div", { className: styles.guide, "aria-hidden": true, children: [COLUMNS.map((column) => (_jsx("span", { className: styles.column, style: { left: `${(column / 6) * 100}%`, animationDelay: `${column * 0.08}s` } }, `column${column}`))), ROWS.map((row) => (_jsx("span", { className: styles.row, style: { top: `${(row / 4) * 100}%`, animationDelay: `${0.3 + row * 0.1}s` } }, `row${row}`))), _jsx("span", { className: `${styles.beam} ${styles.down}`, style: { left: `${(2 / 6) * 100}%` } }), _jsx("span", { className: `${styles.beam} ${styles.down} ${styles.late}`, style: { left: `${(5 / 6) * 100}%` } }), _jsx("span", { className: `${styles.beam} ${styles.across}`, style: { top: "75%" } }), _jsx("span", { className: `${styles.beam} ${styles.across} ${styles.late}`, style: { top: "25%" } })] }));
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+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C,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,GAAG,GAAG,EAAE,GAAI,EACzG,eAAM,SAAS,EAAE,GAAG,MAAM,CAAC,IAAI,IAAI,MAAM,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,GAAI,EAC7E,eAAM,SAAS,EAAE,GAAG,MAAM,CAAC,IAAI,IAAI,MAAM,CAAC,MAAM,IAAI,MAAM,CAAC,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,GAAI,IACxF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
.guide {
|
|
2
|
+
position: absolute;
|
|
3
|
+
inset: 0;
|
|
4
|
+
z-index: 0;
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
pointer-events: none;
|
|
7
|
+
mask-image: radial-gradient(75% 70% at 60% 45%, #000 30%, transparent 85%);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.column {
|
|
11
|
+
position: absolute;
|
|
12
|
+
top: 0;
|
|
13
|
+
bottom: 0;
|
|
14
|
+
width: 1px;
|
|
15
|
+
background: linear-gradient(180deg, var(--line-2) 50%, transparent 0) 0 0/1px 10px repeat-y;
|
|
16
|
+
transform-origin: top;
|
|
17
|
+
animation: grow-down 1.6s cubic-bezier(0.22, 1, 0.36, 1) both;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.row {
|
|
21
|
+
position: absolute;
|
|
22
|
+
left: 0;
|
|
23
|
+
right: 0;
|
|
24
|
+
height: 1px;
|
|
25
|
+
background: linear-gradient(90deg, var(--line-2) 50%, transparent 0) 0 0/10px 1px repeat-x;
|
|
26
|
+
transform-origin: left;
|
|
27
|
+
animation: grow-across 1.6s cubic-bezier(0.22, 1, 0.36, 1) both;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@keyframes grow-down {
|
|
31
|
+
from {
|
|
32
|
+
transform: scaleY(0);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
@keyframes grow-across {
|
|
36
|
+
from {
|
|
37
|
+
transform: scaleX(0);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
.beam {
|
|
41
|
+
position: absolute;
|
|
42
|
+
opacity: 0;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.down {
|
|
46
|
+
top: 0;
|
|
47
|
+
width: 1px;
|
|
48
|
+
height: 120px;
|
|
49
|
+
margin-left: -0.5px;
|
|
50
|
+
background: linear-gradient(180deg, transparent, var(--foreground));
|
|
51
|
+
animation: beam-down 7s 1.4s linear infinite;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.across {
|
|
55
|
+
left: 0;
|
|
56
|
+
height: 1px;
|
|
57
|
+
width: 160px;
|
|
58
|
+
margin-top: -0.5px;
|
|
59
|
+
background: linear-gradient(90deg, transparent, var(--foreground));
|
|
60
|
+
animation: beam-across 9s 2.2s linear infinite;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.late {
|
|
64
|
+
animation-delay: 4.6s;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@keyframes beam-down {
|
|
68
|
+
0% {
|
|
69
|
+
opacity: 0;
|
|
70
|
+
transform: translateY(-120px);
|
|
71
|
+
}
|
|
72
|
+
8% {
|
|
73
|
+
opacity: 1;
|
|
74
|
+
}
|
|
75
|
+
45%, 100% {
|
|
76
|
+
opacity: 0;
|
|
77
|
+
transform: translateY(100vh);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
@keyframes beam-across {
|
|
81
|
+
0% {
|
|
82
|
+
opacity: 0;
|
|
83
|
+
transform: translateX(-160px);
|
|
84
|
+
}
|
|
85
|
+
8% {
|
|
86
|
+
opacity: 1;
|
|
87
|
+
}
|
|
88
|
+
50%, 100% {
|
|
89
|
+
opacity: 0;
|
|
90
|
+
transform: translateX(100vw);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
@media (prefers-reduced-motion: reduce) {
|
|
94
|
+
.beam {
|
|
95
|
+
display: none;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { HeroProperties } from "@sharadox/sharadox-web-library/component/hero/type";
|
|
2
|
-
/** First screen: the slogan rising line by line beside the interactive globe. */
|
|
2
|
+
/** First screen, inside the grid frame: the slogan rising line by line beside the interactive globe. */
|
|
3
3
|
export declare function Hero({ locale }: HeroProperties): import("react").JSX.Element;
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -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":"AAWA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oDAAoD,CAAC;AAQzF,wGAAwG;AACxG,wBAAgB,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,cAAc,+BA8D9C"}
|
|
@@ -3,8 +3,10 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { motion } from "motion/react";
|
|
4
4
|
import dynamic from "next/dynamic";
|
|
5
5
|
import { Button } from "@sharadox/sharadox-web-library/component/button";
|
|
6
|
+
import { Cross } from "@sharadox/sharadox-web-library/component/cross";
|
|
6
7
|
import { Eyebrow } from "@sharadox/sharadox-web-library/component/eyebrow";
|
|
7
8
|
import { GlobePlaceholder } from "@sharadox/sharadox-web-library/component/globe/placeholder";
|
|
9
|
+
import { HeroGuide } from "@sharadox/sharadox-web-library/component/hero/guide";
|
|
8
10
|
import { HERO } from "@sharadox/sharadox-web-library/content/hero";
|
|
9
11
|
import { translate } from "@sharadox/web-library/internationalization/translate";
|
|
10
12
|
import styles from "./index.module.css";
|
|
@@ -13,9 +15,9 @@ const Globe = dynamic(() => import("@sharadox/sharadox-web-library/component/glo
|
|
|
13
15
|
loading: () => _jsx(GlobePlaceholder, {}),
|
|
14
16
|
});
|
|
15
17
|
const EASE = [0.22, 1, 0.36, 1];
|
|
16
|
-
/** First screen: the slogan rising line by line beside the interactive globe. */
|
|
18
|
+
/** First screen, inside the grid frame: the slogan rising line by line beside the interactive globe. */
|
|
17
19
|
export function Hero({ locale }) {
|
|
18
20
|
const lines = HERO.lines[locale];
|
|
19
|
-
return (_jsxs("section", { className: styles.hero, children: [_jsx("
|
|
21
|
+
return (_jsxs("section", { 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: "#contact", arrow: true, children: translate(HERO.primary, locale) }), _jsx(Button, { href: "#services", 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) })] })] }));
|
|
20
22
|
}
|
|
21
23
|
//# 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,OAAO,EAAE,MAAM,kDAAkD,CAAC;AAC3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,4DAA4D,CAAC;AAC9F,OAAO,EAAE,IAAI,EAAE,MAAM,6CAA6C,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,gDAAgD,CAAC,EAAE;IACpF,GAAG,EAAE,KAAK;IACV,OAAO,EAAE,GAAG,EAAE,CAAC,KAAC,gBAAgB,KAAG;CACpC,CAAC,CAAC;AACH,MAAM,IAAI,GAAG,CAAC,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,CAAU,CAAC;AAEzC,
|
|
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,KAA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E,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAC7B,UAAU,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,aAErD,KAAC,MAAM,IAAC,IAAI,EAAC,UAAU,EAAC,KAAK,kBAC1B,SAAS,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,GACzB,EACT,KAAC,MAAM,IAAC,IAAI,EAAC,WAAW,EAAC,OAAO,EAAC,OAAO,YACrC,SAAS,CAAC,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,GAC3B,IACE,IACT,EACN,MAAC,MAAM,CAAC,GAAG,IACT,SAAS,EAAE,MAAM,CAAC,KAAK,EACvB,OAAO,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,EACpC,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,11 +1,12 @@
|
|
|
1
1
|
.hero {
|
|
2
2
|
position: relative;
|
|
3
|
-
min-height: 100svh;
|
|
4
|
-
|
|
3
|
+
min-height: min(100svh, 980px);
|
|
4
|
+
width: min(100% - 2 * var(--gutter), var(--maximum-width));
|
|
5
5
|
margin: 0 auto;
|
|
6
|
-
padding:
|
|
6
|
+
padding: 104px var(--padding) 56px;
|
|
7
|
+
border-inline: 1px solid var(--line);
|
|
7
8
|
display: grid;
|
|
8
|
-
grid-template-columns: 1fr
|
|
9
|
+
grid-template-columns: 1fr 1fr;
|
|
9
10
|
align-items: center;
|
|
10
11
|
gap: 24px;
|
|
11
12
|
}
|
|
@@ -17,47 +18,39 @@
|
|
|
17
18
|
}
|
|
18
19
|
}
|
|
19
20
|
|
|
20
|
-
.grid {
|
|
21
|
-
position: absolute;
|
|
22
|
-
inset: 0 -50vw;
|
|
23
|
-
z-index: -1;
|
|
24
|
-
pointer-events: none;
|
|
25
|
-
background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
|
|
26
|
-
background-size: 72px 72px;
|
|
27
|
-
mask-image: radial-gradient(60% 60% at 62% 50%, #000 10%, transparent 70%);
|
|
28
|
-
opacity: 0.55;
|
|
29
|
-
}
|
|
30
|
-
@media (max-width: 900px) {
|
|
31
|
-
.grid {
|
|
32
|
-
mask-image: radial-gradient(70% 40% at 50% 28%, #000 10%, transparent 70%);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
21
|
.copy {
|
|
37
22
|
position: relative;
|
|
38
23
|
z-index: 2;
|
|
39
24
|
}
|
|
40
25
|
|
|
26
|
+
.eyebrow {
|
|
27
|
+
padding: 6px 12px 6px 10px;
|
|
28
|
+
border: 1px solid var(--line-2);
|
|
29
|
+
border-radius: 99px;
|
|
30
|
+
background: color-mix(in srgb, var(--background) 60%, transparent);
|
|
31
|
+
backdrop-filter: blur(6px);
|
|
32
|
+
}
|
|
33
|
+
|
|
41
34
|
.live {
|
|
42
35
|
width: 7px;
|
|
43
36
|
height: 7px;
|
|
44
37
|
border-radius: 50%;
|
|
45
|
-
background:
|
|
46
|
-
box-shadow: 0 0 0 0
|
|
38
|
+
background: var(--foreground);
|
|
39
|
+
box-shadow: 0 0 0 0 color-mix(in srgb, var(--foreground) 60%, transparent);
|
|
47
40
|
animation: live 2.4s infinite;
|
|
48
41
|
}
|
|
49
42
|
|
|
50
43
|
@keyframes live {
|
|
51
44
|
70% {
|
|
52
|
-
box-shadow: 0 0 0 9px
|
|
45
|
+
box-shadow: 0 0 0 9px color-mix(in srgb, var(--foreground) 0%, transparent);
|
|
53
46
|
}
|
|
54
47
|
100% {
|
|
55
|
-
box-shadow: 0 0 0 0
|
|
48
|
+
box-shadow: 0 0 0 0 color-mix(in srgb, var(--foreground) 0%, transparent);
|
|
56
49
|
}
|
|
57
50
|
}
|
|
58
51
|
.title {
|
|
59
52
|
margin: 26px 0 26px;
|
|
60
|
-
font-size: clamp(3rem,
|
|
53
|
+
font-size: clamp(3rem, 7vw, 6.4rem);
|
|
61
54
|
letter-spacing: -0.06em;
|
|
62
55
|
line-height: 0.95;
|
|
63
56
|
}
|
|
@@ -78,14 +71,14 @@
|
|
|
78
71
|
}
|
|
79
72
|
|
|
80
73
|
.dim {
|
|
81
|
-
background: linear-gradient(180deg,
|
|
74
|
+
background: linear-gradient(180deg, var(--foreground) 10%, var(--foreground-3) 120%);
|
|
82
75
|
-webkit-background-clip: text;
|
|
83
76
|
background-clip: text;
|
|
84
77
|
color: transparent;
|
|
85
78
|
}
|
|
86
79
|
|
|
87
80
|
.subtitle {
|
|
88
|
-
max-width:
|
|
81
|
+
max-width: 31rem;
|
|
89
82
|
font-size: clamp(1.05rem, 1.4vw, 1.2rem);
|
|
90
83
|
color: var(--foreground-2);
|
|
91
84
|
line-height: 1.55;
|
|
@@ -100,9 +93,10 @@
|
|
|
100
93
|
|
|
101
94
|
.globe {
|
|
102
95
|
position: relative;
|
|
96
|
+
z-index: 1;
|
|
103
97
|
aspect-ratio: 1;
|
|
104
|
-
width:
|
|
105
|
-
margin: -6% -
|
|
98
|
+
width: 128%;
|
|
99
|
+
margin: -6% -24% -6% 0;
|
|
106
100
|
justify-self: end;
|
|
107
101
|
}
|
|
108
102
|
@media (max-width: 900px) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { LanguageSwitchProperties } from "@sharadox/sharadox-web-library/component/language-switch/type";
|
|
2
|
-
/** EN/PT pill toggle. */
|
|
2
|
+
/** EN/PT pill toggle. A manual choice is remembered, so sharadox.com opens in that language next time. */
|
|
3
3
|
export declare function LanguageSwitch({ locale }: LanguageSwitchProperties): import("react").JSX.Element;
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/language-switch/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/language-switch/index.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,+DAA+D,CAAC;AAE9G,0GAA0G;AAC1G,wBAAgB,cAAc,CAAC,EAAE,MAAM,EAAE,EAAE,wBAAwB,+BAUlE"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import { translate } from "@sharadox/web-library/internationalization/translate";
|
|
3
|
+
import { LocaleLink } from "@sharadox/sharadox-web-library/component/locale-link";
|
|
4
|
+
import { NAVIGATION } from "@sharadox/sharadox-web-library/content/navigation";
|
|
3
5
|
import { LOCALES } from "@sharadox/sharadox-web-library/utility/locale";
|
|
4
6
|
import styles from "./index.module.css";
|
|
5
|
-
/** EN/PT pill toggle. */
|
|
7
|
+
/** EN/PT pill toggle. A manual choice is remembered, so sharadox.com opens in that language next time. */
|
|
6
8
|
export function LanguageSwitch({ locale }) {
|
|
7
|
-
return (_jsx("div", { className: styles.switch, role: "group", "aria-label":
|
|
9
|
+
return (_jsx("div", { className: styles.switch, role: "group", "aria-label": translate(NAVIGATION.language, locale), children: LOCALES.map((other) => (_jsx(LocaleLink, { locale: other, current: other === locale, children: other.toUpperCase() }, other))) }));
|
|
8
10
|
}
|
|
9
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/language-switch/index.tsx"],"names":[],"mappings":";AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/language-switch/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,EAAE,UAAU,EAAE,MAAM,sDAAsD,CAAC;AAClF,OAAO,EAAE,UAAU,EAAE,MAAM,mDAAmD,CAAC;AAC/E,OAAO,EAAE,OAAO,EAAE,MAAM,+CAA+C,CAAC;AACxE,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC,0GAA0G;AAC1G,MAAM,UAAU,cAAc,CAAC,EAAE,MAAM,EAA4B;IACjE,OAAO,CACL,cAAK,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,EAAC,OAAO,gBAAa,SAAS,CAAC,UAAU,CAAC,QAAQ,EAAE,MAAM,CAAC,YAC3F,OAAO,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CACtB,KAAC,UAAU,IAAa,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,KAAK,MAAM,YAC7D,KAAK,CAAC,WAAW,EAAE,IADL,KAAK,CAET,CACd,CAAC,GACE,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -6,12 +6,15 @@
|
|
|
6
6
|
}
|
|
7
7
|
.switch a {
|
|
8
8
|
font: 500 11px/1 var(--monospace);
|
|
9
|
-
padding:
|
|
9
|
+
padding: 7.5px 9px;
|
|
10
10
|
border-radius: 99px;
|
|
11
11
|
color: var(--foreground-3);
|
|
12
12
|
transition: color 0.2s, background 0.2s;
|
|
13
13
|
}
|
|
14
|
+
.switch a:hover {
|
|
15
|
+
color: var(--foreground);
|
|
16
|
+
}
|
|
14
17
|
.switch a[aria-current] {
|
|
15
|
-
background:
|
|
16
|
-
color:
|
|
18
|
+
background: var(--foreground);
|
|
19
|
+
color: var(--background);
|
|
17
20
|
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { LocaleLinkProperties } from "@sharadox/sharadox-web-library/component/locale-link/type";
|
|
2
|
+
/** A link to the site in another language that remembers the choice, so sharadox.com opens in it next time. */
|
|
3
|
+
export declare function LocaleLink({ locale, current, children }: LocaleLinkProperties): import("react").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/locale-link/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2DAA2D,CAAC;AAEtG,+GAA+G;AAC/G,wBAAgB,UAAU,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,oBAAoB,+BAW7E"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import Link from "next/link";
|
|
4
|
+
import { rememberLocale } from "@sharadox/web-library/internationalization/locale-preference";
|
|
5
|
+
/** A link to the site in another language that remembers the choice, so sharadox.com opens in it next time. */
|
|
6
|
+
export function LocaleLink({ locale, current, children }) {
|
|
7
|
+
return (_jsx(Link, { href: `/${locale}`, hrefLang: locale, "aria-current": current ? "true" : undefined, onClick: () => rememberLocale(locale), children: children }));
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/locale-link/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,cAAc,EAAE,MAAM,8DAA8D,CAAC;AAG9F,+GAA+G;AAC/G,MAAM,UAAU,UAAU,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAwB;IAC5E,OAAO,CACL,KAAC,IAAI,IACH,IAAI,EAAE,IAAI,MAAM,EAAE,EAClB,QAAQ,EAAE,MAAM,kBACF,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,EAC1C,OAAO,EAAE,GAAG,EAAE,CAAC,cAAc,CAAC,MAAM,CAAC,YAEpC,QAAQ,GACJ,CACR,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { Locale } from "@sharadox/sharadox-web-library/utility/locale/type";
|
|
3
|
+
export interface LocaleLinkProperties {
|
|
4
|
+
/** The language the link switches to. */
|
|
5
|
+
locale: Locale;
|
|
6
|
+
/** Marks the link for the language being shown. */
|
|
7
|
+
current?: boolean;
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../source/component/locale-link/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oDAAoD,CAAC;AAEjF,MAAM,WAAW,oBAAoB;IACnC,yCAAyC;IACzC,MAAM,EAAE,MAAM,CAAC;IACf,mDAAmD;IACnD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,SAAS,CAAC;CACrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../source/component/locale-link/type.ts"],"names":[],"mappings":""}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* Endless strip of the technologies we work with. Two identical groups slide left by exactly one group's width, so
|
|
3
|
+
* the second group lands where the first started and the loop has no gap or jump.
|
|
4
|
+
*/
|
|
2
5
|
export declare function Marquee(): import("react").JSX.Element;
|
|
3
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/marquee/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/marquee/index.tsx"],"names":[],"mappings":"AAMA;;;GAGG;AACH,wBAAgB,OAAO,gCAiBtB"}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { STACK } from "@sharadox/sharadox-web-library/content/stack";
|
|
3
3
|
import styles from "./index.module.css";
|
|
4
|
-
/**
|
|
4
|
+
/** Times the list repeats inside one group, so a group is always wider than the widest screen. */
|
|
5
|
+
const REPEAT = 3;
|
|
6
|
+
/**
|
|
7
|
+
* Endless strip of the technologies we work with. Two identical groups slide left by exactly one group's width, so
|
|
8
|
+
* the second group lands where the first started and the loop has no gap or jump.
|
|
9
|
+
*/
|
|
5
10
|
export function Marquee() {
|
|
6
|
-
const
|
|
7
|
-
return (_jsx("div", { className: styles.marquee, "aria-label": STACK.join(", "), children: _jsx("div", { className: styles.track, "aria-hidden": true, children:
|
|
11
|
+
const group = Array.from({ length: REPEAT }, () => STACK).flat();
|
|
12
|
+
return (_jsx("div", { className: styles.marquee, "aria-label": STACK.join(", "), children: _jsx("div", { className: styles.track, "aria-hidden": true, children: [0, 1].map((copy) => (_jsx("div", { className: styles.group, children: group.map((technology, index) => (_jsx("span", { className: `${styles.pill} monospace`, children: technology }, index))) }, copy))) }) }));
|
|
8
13
|
}
|
|
9
14
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/marquee/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,8CAA8C,CAAC;AACrE,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/marquee/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,8CAA8C,CAAC;AACrE,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,kGAAkG;AAClG,MAAM,MAAM,GAAG,CAAC,CAAC;AAEjB;;;GAGG;AACH,MAAM,UAAU,OAAO;IACrB,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,CAAC;IACjE,OAAO,CACL,cAAK,SAAS,EAAE,MAAM,CAAC,OAAO,gBAAc,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,YAC1D,cAAK,SAAS,EAAE,MAAM,CAAC,KAAK,iCACzB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CACpB,cAAgB,SAAS,EAAE,MAAM,CAAC,KAAK,YACpC,KAAK,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,KAAK,EAAE,EAAE,CAAC,CAChC,eAAkB,SAAS,EAAE,GAAG,MAAM,CAAC,IAAI,YAAY,YACpD,UAAU,IADF,KAAK,CAET,CACR,CAAC,IALM,IAAI,CAMR,CACP,CAAC,GACE,GACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,15 +1,26 @@
|
|
|
1
1
|
.marquee {
|
|
2
|
+
--marquee-gap: 12px;
|
|
3
|
+
position: relative;
|
|
4
|
+
width: min(100% - 2 * var(--gutter), var(--maximum-width));
|
|
5
|
+
margin-inline: auto;
|
|
2
6
|
overflow: hidden;
|
|
3
|
-
border
|
|
7
|
+
border: 1px solid var(--line);
|
|
8
|
+
border-bottom: 0;
|
|
4
9
|
padding: 22px 0;
|
|
5
10
|
mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
|
|
6
11
|
}
|
|
7
12
|
|
|
8
13
|
.track {
|
|
9
14
|
display: flex;
|
|
10
|
-
gap: 12px;
|
|
11
15
|
width: max-content;
|
|
12
|
-
animation: marquee
|
|
16
|
+
animation: marquee 120s linear infinite;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/* Each group ends with the same gap that separates the pills, so both groups are exactly the same width. */
|
|
20
|
+
.group {
|
|
21
|
+
display: flex;
|
|
22
|
+
gap: var(--marquee-gap);
|
|
23
|
+
padding-right: var(--marquee-gap);
|
|
13
24
|
}
|
|
14
25
|
|
|
15
26
|
.pill {
|
|
@@ -23,6 +34,11 @@
|
|
|
23
34
|
|
|
24
35
|
@keyframes marquee {
|
|
25
36
|
to {
|
|
26
|
-
transform: translateX(
|
|
37
|
+
transform: translateX(-50%);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
@media (prefers-reduced-motion: reduce) {
|
|
41
|
+
.track {
|
|
42
|
+
animation: none;
|
|
27
43
|
}
|
|
28
44
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { NavigationProperties } from "@sharadox/sharadox-web-library/component/navigation/type";
|
|
2
|
-
/** Fixed top bar that frosts once the page scrolls. */
|
|
2
|
+
/** Fixed top bar that frosts once the page scrolls, with the style and language switches. */
|
|
3
3
|
export declare function Navigation({ locale }: NavigationProperties): import("react").JSX.Element;
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/navigation/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/navigation/index.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0DAA0D,CAAC;AAIrG,6FAA6F;AAC7F,wBAAgB,UAAU,CAAC,EAAE,MAAM,EAAE,EAAE,oBAAoB,+BA6B1D"}
|
|
@@ -3,11 +3,13 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { useEffect, useState } from "react";
|
|
4
4
|
import { Button } from "@sharadox/sharadox-web-library/component/button";
|
|
5
5
|
import { LanguageSwitch } from "@sharadox/sharadox-web-library/component/language-switch";
|
|
6
|
+
import { StyleSwitch } from "@sharadox/sharadox-web-library/component/style-switch";
|
|
6
7
|
import { Wordmark } from "@sharadox/sharadox-web-library/component/wordmark";
|
|
7
8
|
import { NAVIGATION } from "@sharadox/sharadox-web-library/content/navigation";
|
|
8
9
|
import { translate } from "@sharadox/web-library/internationalization/translate";
|
|
9
10
|
import styles from "./index.module.css";
|
|
10
|
-
|
|
11
|
+
const LINKS = ["services", "capabilities", "process", "contact"];
|
|
12
|
+
/** Fixed top bar that frosts once the page scrolls, with the style and language switches. */
|
|
11
13
|
export function Navigation({ locale }) {
|
|
12
14
|
const [scrolled, setScrolled] = useState(false);
|
|
13
15
|
useEffect(() => {
|
|
@@ -16,6 +18,6 @@ export function Navigation({ locale }) {
|
|
|
16
18
|
addEventListener("scroll", update, { passive: true });
|
|
17
19
|
return () => removeEventListener("scroll", update);
|
|
18
20
|
}, []);
|
|
19
|
-
return (_jsx("header", { className: [styles.navigation, scrolled && styles.scrolled].filter(Boolean).join(" "), children: _jsxs("div", { className: styles.inner, children: [_jsx(Wordmark, { href: `/${locale}` }),
|
|
21
|
+
return (_jsx("header", { className: [styles.navigation, scrolled && styles.scrolled].filter(Boolean).join(" "), children: _jsxs("div", { className: styles.inner, children: [_jsx(Wordmark, { href: `/${locale}` }), _jsx("nav", { className: styles.links, "aria-label": "Main", children: LINKS.map((link) => (_jsx("a", { href: `#${link}`, children: translate(NAVIGATION[link], locale) }, link))) }), _jsxs("div", { className: styles.end, children: [_jsx(StyleSwitch, { locale: locale, className: styles.style }), _jsx(LanguageSwitch, { locale: locale }), _jsx(Button, { href: "#contact", size: "small", className: styles.callToAction, children: translate(NAVIGATION.callToAction, locale) })] })] }) }));
|
|
20
22
|
}
|
|
21
23
|
//# sourceMappingURL=index.js.map
|