@sharadox/sharadox-web-library 0.6.5 → 0.7.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 +46 -8
- package/distribution/action/send-contact/index.d.ts +5 -6
- package/distribution/action/send-contact/index.d.ts.map +1 -1
- package/distribution/action/send-contact/index.js +13 -49
- package/distribution/action/send-contact/index.js.map +1 -1
- package/distribution/action/send-contact/type.d.ts +1 -3
- package/distribution/action/send-contact/type.d.ts.map +1 -1
- package/distribution/component/button/index.module.css +1 -58
- package/distribution/component/button/index.module.scss +60 -0
- package/distribution/component/capability/index.js +2 -2
- package/distribution/component/capability/index.module.css +1 -94
- package/distribution/component/capability/index.module.scss +85 -0
- package/distribution/component/capability/type.d.ts +1 -1
- package/distribution/component/consent/index.d.ts +1 -4
- package/distribution/component/consent/index.d.ts.map +1 -1
- package/distribution/component/consent/index.js +19 -32
- package/distribution/component/consent/index.js.map +1 -1
- package/distribution/component/consent/index.module.css +1 -183
- package/distribution/component/consent/index.module.scss +45 -0
- package/distribution/component/consent/preferences-link/index.js +1 -1
- package/distribution/component/consent/type.d.ts +1 -1
- package/distribution/component/contact/form/index.d.ts.map +1 -1
- package/distribution/component/contact/form/index.js +4 -4
- package/distribution/component/contact/form/index.js.map +1 -1
- package/distribution/component/contact/form/index.module.css +1 -168
- package/distribution/component/contact/form/index.module.scss +163 -0
- package/distribution/component/contact/form/type.d.ts +1 -1
- package/distribution/component/contact/index.js +2 -2
- package/distribution/component/contact/index.module.css +1 -56
- package/distribution/component/contact/index.module.scss +52 -0
- package/distribution/component/contact/type.d.ts +1 -1
- package/distribution/component/cross/index.module.css +1 -53
- package/distribution/component/cross/index.module.scss +50 -0
- package/distribution/component/eyebrow/index.module.css +1 -9
- package/distribution/component/eyebrow/index.module.scss +9 -0
- package/distribution/component/footer/index.js +4 -4
- package/distribution/component/footer/index.js.map +1 -1
- package/distribution/component/footer/index.module.css +1 -138
- package/distribution/component/footer/index.module.scss +125 -0
- package/distribution/component/footer/type.d.ts +1 -1
- package/distribution/component/globe/index.d.ts +2 -2
- package/distribution/component/globe/index.d.ts.map +1 -1
- package/distribution/component/globe/index.js +23 -32
- package/distribution/component/globe/index.js.map +1 -1
- package/distribution/component/globe/index.module.css +1 -25
- package/distribution/component/globe/index.module.scss +7 -0
- package/distribution/component/hero/guide/index.module.css +1 -97
- package/distribution/component/hero/guide/index.module.scss +94 -0
- package/distribution/component/hero/index.js +1 -1
- package/distribution/component/hero/index.module.css +1 -124
- package/distribution/component/hero/index.module.scss +109 -0
- package/distribution/component/hero/type.d.ts +1 -1
- package/distribution/component/language-switch/index.js +4 -4
- package/distribution/component/language-switch/index.js.map +1 -1
- package/distribution/component/language-switch/index.module.css +1 -20
- package/distribution/component/language-switch/index.module.scss +22 -0
- package/distribution/component/language-switch/type.d.ts +1 -1
- package/distribution/component/marquee/index.js +1 -1
- package/distribution/component/marquee/index.module.css +1 -43
- package/distribution/component/marquee/index.module.scss +39 -0
- package/distribution/component/navigation/index.js +1 -1
- package/distribution/component/navigation/index.module.css +1 -81
- package/distribution/component/navigation/index.module.scss +76 -0
- package/distribution/component/navigation/type.d.ts +1 -1
- package/distribution/component/process/index.js +1 -1
- package/distribution/component/process/index.module.css +1 -43
- package/distribution/component/process/index.module.scss +40 -0
- package/distribution/component/process/step/index.module.css +1 -33
- package/distribution/component/process/step/index.module.scss +31 -0
- package/distribution/component/process/type.d.ts +1 -1
- package/distribution/component/section/index.module.css +1 -35
- package/distribution/component/section/index.module.scss +32 -0
- package/distribution/component/section-heading/index.js +1 -1
- package/distribution/component/section-heading/index.module.css +1 -7
- package/distribution/component/section-heading/index.module.scss +7 -0
- package/distribution/component/section-indicator/index.js +2 -2
- package/distribution/component/section-indicator/index.module.css +1 -145
- package/distribution/component/section-indicator/index.module.scss +143 -0
- package/distribution/component/section-indicator/type.d.ts +1 -1
- package/distribution/component/service-index/index.js +1 -1
- package/distribution/component/service-index/index.module.css +1 -88
- package/distribution/component/service-index/index.module.scss +83 -0
- package/distribution/component/service-index/type.d.ts +1 -1
- package/distribution/component/services/campaign-visual/index.js +2 -2
- package/distribution/component/services/campaign-visual/index.module.css +1 -128
- package/distribution/component/services/campaign-visual/index.module.scss +122 -0
- package/distribution/component/services/campaign-visual/stage/index.js +3 -3
- package/distribution/component/services/campaign-visual/stage/index.js.map +1 -1
- package/distribution/component/services/campaign-visual/stage/type.d.ts +1 -1
- package/distribution/component/services/campaign-visual/type.d.ts +1 -1
- package/distribution/component/services/cell/index.js +2 -2
- package/distribution/component/services/cell/index.module.css +1 -86
- package/distribution/component/services/cell/index.module.scss +81 -0
- package/distribution/component/services/design-visual/index.js +1 -1
- package/distribution/component/services/design-visual/index.module.css +1 -130
- package/distribution/component/services/design-visual/index.module.scss +117 -0
- package/distribution/component/services/index.js +2 -2
- package/distribution/component/services/index.module.css +1 -84
- package/distribution/component/services/index.module.scss +66 -0
- package/distribution/component/services/mobile-visual/index.d.ts.map +1 -1
- package/distribution/component/services/mobile-visual/index.js +2 -1
- package/distribution/component/services/mobile-visual/index.js.map +1 -1
- package/distribution/component/services/mobile-visual/index.module.css +1 -104
- package/distribution/component/services/mobile-visual/index.module.scss +93 -0
- package/distribution/component/services/mobile-visual/type.d.ts +1 -1
- package/distribution/component/services/platform-visual/index.module.css +1 -46
- package/distribution/component/services/platform-visual/index.module.scss +39 -0
- package/distribution/component/services/social-visual/index.js +5 -5
- package/distribution/component/services/social-visual/index.js.map +1 -1
- package/distribution/component/services/social-visual/index.module.css +1 -131
- package/distribution/component/services/social-visual/index.module.scss +120 -0
- package/distribution/component/services/social-visual/type.d.ts +1 -1
- package/distribution/component/services/type.d.ts +1 -1
- package/distribution/component/services/web-visual/index.js +1 -1
- package/distribution/component/services/web-visual/index.module.css +1 -142
- package/distribution/component/services/web-visual/index.module.scss +132 -0
- package/distribution/component/share-image/index.d.ts +1 -2
- package/distribution/component/share-image/index.d.ts.map +1 -1
- package/distribution/component/share-image/index.js +3 -3
- package/distribution/component/share-image/index.js.map +1 -1
- package/distribution/component/share-image/type.d.ts +1 -1
- package/distribution/component/statement/index.js +1 -1
- package/distribution/component/statement/index.module.css +1 -11
- package/distribution/component/statement/index.module.scss +10 -0
- package/distribution/component/structured-data/index.d.ts.map +1 -1
- package/distribution/component/structured-data/index.js +48 -53
- package/distribution/component/structured-data/index.js.map +1 -1
- package/distribution/component/structured-data/type.d.ts +1 -1
- package/distribution/component/style-switch/index.d.ts +2 -2
- package/distribution/component/style-switch/index.d.ts.map +1 -1
- package/distribution/component/style-switch/index.js +11 -18
- package/distribution/component/style-switch/index.js.map +1 -1
- package/distribution/component/style-switch/index.module.css +1 -36
- package/distribution/component/style-switch/index.module.scss +37 -0
- package/distribution/component/style-switch/type.d.ts +1 -1
- package/distribution/component/touchpoint/index.js +3 -3
- package/distribution/component/touchpoint/index.module.css +1 -85
- package/distribution/component/touchpoint/index.module.scss +75 -0
- package/distribution/component/touchpoint/plate/index.module.css +1 -136
- package/distribution/component/touchpoint/plate/index.module.scss +129 -0
- package/distribution/component/touchpoint/type.d.ts +1 -1
- package/distribution/component/wordmark/index.module.css +1 -23
- package/distribution/component/wordmark/index.module.scss +22 -0
- package/distribution/content/locale/index.d.ts +6 -0
- package/distribution/content/locale/index.d.ts.map +1 -0
- package/distribution/content/locale/index.js +7 -0
- package/distribution/content/locale/index.js.map +1 -0
- package/distribution/{utility → content}/locale/type.d.ts +3 -2
- package/distribution/content/locale/type.d.ts.map +1 -0
- package/distribution/{utility → content}/locale/type.js.map +1 -1
- package/distribution/content/style/index.d.ts +47 -43
- package/distribution/content/style/index.d.ts.map +1 -1
- package/distribution/content/style/index.js +20 -13
- package/distribution/content/style/index.js.map +1 -1
- package/distribution/utility/separate/index.d.ts +6 -1
- package/distribution/utility/separate/index.d.ts.map +1 -1
- package/distribution/utility/separate/index.js +8 -2
- package/distribution/utility/separate/index.js.map +1 -1
- package/llms.txt +10 -0
- package/package.json +37 -28
- package/distribution/component/consent/toggle/index.d.ts +0 -4
- package/distribution/component/consent/toggle/index.d.ts.map +0 -1
- package/distribution/component/consent/toggle/index.js +0 -7
- package/distribution/component/consent/toggle/index.js.map +0 -1
- package/distribution/component/consent/toggle/type.d.ts +0 -10
- package/distribution/component/consent/toggle/type.d.ts.map +0 -1
- package/distribution/component/consent/toggle/type.js.map +0 -1
- package/distribution/component/cursor/index.d.ts +0 -3
- package/distribution/component/cursor/index.d.ts.map +0 -1
- package/distribution/component/cursor/index.js +0 -45
- package/distribution/component/cursor/index.js.map +0 -1
- package/distribution/component/cursor/index.module.css +0 -55
- package/distribution/component/globe/arc/index.d.ts +0 -4
- package/distribution/component/globe/arc/index.d.ts.map +0 -1
- package/distribution/component/globe/arc/index.js +0 -29
- package/distribution/component/globe/arc/index.js.map +0 -1
- package/distribution/component/globe/arc/type.d.ts +0 -12
- package/distribution/component/globe/arc/type.d.ts.map +0 -1
- package/distribution/component/globe/arc/type.js +0 -2
- package/distribution/component/globe/arc/type.js.map +0 -1
- package/distribution/component/globe/color/index.d.ts +0 -4
- package/distribution/component/globe/color/index.d.ts.map +0 -1
- package/distribution/component/globe/color/index.js +0 -16
- package/distribution/component/globe/color/index.js.map +0 -1
- package/distribution/component/globe/color/type.d.ts +0 -13
- package/distribution/component/globe/color/type.d.ts.map +0 -1
- package/distribution/component/globe/color/type.js +0 -2
- package/distribution/component/globe/color/type.js.map +0 -1
- package/distribution/component/globe/dots/index.d.ts +0 -4
- package/distribution/component/globe/dots/index.d.ts.map +0 -1
- package/distribution/component/globe/dots/index.js +0 -38
- package/distribution/component/globe/dots/index.js.map +0 -1
- package/distribution/component/globe/dots/type.d.ts +0 -7
- package/distribution/component/globe/dots/type.d.ts.map +0 -1
- package/distribution/component/globe/dots/type.js +0 -2
- package/distribution/component/globe/dots/type.js.map +0 -1
- package/distribution/component/globe/marker/index.d.ts +0 -4
- package/distribution/component/globe/marker/index.d.ts.map +0 -1
- package/distribution/component/globe/marker/index.js +0 -21
- package/distribution/component/globe/marker/index.js.map +0 -1
- package/distribution/component/globe/marker/type.d.ts +0 -9
- package/distribution/component/globe/marker/type.d.ts.map +0 -1
- package/distribution/component/globe/marker/type.js +0 -2
- package/distribution/component/globe/marker/type.js.map +0 -1
- package/distribution/component/globe/shader/arc/index.d.ts +0 -6
- package/distribution/component/globe/shader/arc/index.d.ts.map +0 -1
- package/distribution/component/globe/shader/arc/index.js +0 -24
- package/distribution/component/globe/shader/arc/index.js.map +0 -1
- package/distribution/component/globe/shader/atmosphere/index.d.ts +0 -6
- package/distribution/component/globe/shader/atmosphere/index.d.ts.map +0 -1
- package/distribution/component/globe/shader/atmosphere/index.js +0 -15
- package/distribution/component/globe/shader/atmosphere/index.js.map +0 -1
- package/distribution/component/globe/shader/body/index.d.ts +0 -6
- package/distribution/component/globe/shader/body/index.d.ts.map +0 -1
- package/distribution/component/globe/shader/body/index.js +0 -15
- package/distribution/component/globe/shader/body/index.js.map +0 -1
- package/distribution/component/globe/shader/dot/index.d.ts +0 -6
- package/distribution/component/globe/shader/dot/index.d.ts.map +0 -1
- package/distribution/component/globe/shader/dot/index.js +0 -29
- package/distribution/component/globe/shader/dot/index.js.map +0 -1
- package/distribution/component/globe/shader/glow-vertex/index.d.ts +0 -3
- package/distribution/component/globe/shader/glow-vertex/index.d.ts.map +0 -1
- package/distribution/component/globe/shader/glow-vertex/index.js +0 -9
- package/distribution/component/globe/shader/glow-vertex/index.js.map +0 -1
- package/distribution/component/globe/world/index.d.ts +0 -4
- package/distribution/component/globe/world/index.d.ts.map +0 -1
- package/distribution/component/globe/world/index.js +0 -39
- package/distribution/component/globe/world/index.js.map +0 -1
- package/distribution/component/globe/world/type.d.ts +0 -10
- package/distribution/component/globe/world/type.d.ts.map +0 -1
- package/distribution/component/globe/world/type.js +0 -2
- package/distribution/component/globe/world/type.js.map +0 -1
- package/distribution/component/locale-link/index.d.ts +0 -4
- package/distribution/component/locale-link/index.d.ts.map +0 -1
- package/distribution/component/locale-link/index.js +0 -9
- package/distribution/component/locale-link/index.js.map +0 -1
- package/distribution/component/locale-link/type.d.ts +0 -10
- package/distribution/component/locale-link/type.d.ts.map +0 -1
- package/distribution/component/locale-link/type.js +0 -2
- package/distribution/component/locale-link/type.js.map +0 -1
- package/distribution/hook/globe-drag/index.d.ts +0 -10
- package/distribution/hook/globe-drag/index.d.ts.map +0 -1
- package/distribution/hook/globe-drag/index.js +0 -99
- package/distribution/hook/globe-drag/index.js.map +0 -1
- package/distribution/hook/globe-drag/type.d.ts +0 -11
- package/distribution/hook/globe-drag/type.d.ts.map +0 -1
- package/distribution/hook/globe-drag/type.js +0 -2
- package/distribution/hook/globe-drag/type.js.map +0 -1
- package/distribution/hook/land-points/index.d.ts +0 -3
- package/distribution/hook/land-points/index.d.ts.map +0 -1
- package/distribution/hook/land-points/index.js +0 -17
- package/distribution/hook/land-points/index.js.map +0 -1
- package/distribution/style/token/index.css +0 -1
- package/distribution/utility/hex-channel/index.d.ts +0 -3
- package/distribution/utility/hex-channel/index.d.ts.map +0 -1
- package/distribution/utility/hex-channel/index.js +0 -8
- package/distribution/utility/hex-channel/index.js.map +0 -1
- package/distribution/utility/latitude-longitude-to-vector/index.d.ts +0 -7
- package/distribution/utility/latitude-longitude-to-vector/index.d.ts.map +0 -1
- package/distribution/utility/latitude-longitude-to-vector/index.js +0 -12
- package/distribution/utility/latitude-longitude-to-vector/index.js.map +0 -1
- package/distribution/utility/locale/index.d.ts +0 -6
- package/distribution/utility/locale/index.d.ts.map +0 -1
- package/distribution/utility/locale/index.js +0 -8
- package/distribution/utility/locale/index.js.map +0 -1
- package/distribution/utility/locale/type.d.ts.map +0 -1
- package/distribution/utility/locale/type.js +0 -2
- package/distribution/utility/parse-contact/index.d.ts +0 -4
- package/distribution/utility/parse-contact/index.d.ts.map +0 -1
- package/distribution/utility/parse-contact/index.js +0 -23
- package/distribution/utility/parse-contact/index.js.map +0 -1
- package/distribution/utility/parse-contact/type.d.ts +0 -20
- package/distribution/utility/parse-contact/type.d.ts.map +0 -1
- package/distribution/utility/parse-contact/type.js +0 -2
- package/distribution/utility/parse-contact/type.js.map +0 -1
- package/distribution/utility/web-gl-support/index.d.ts +0 -3
- package/distribution/utility/web-gl-support/index.d.ts.map +0 -1
- package/distribution/utility/web-gl-support/index.js +0 -11
- package/distribution/utility/web-gl-support/index.js.map +0 -1
- /package/distribution/{component/consent/toggle → content/locale}/type.js +0 -0
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { motion, useScroll, useTransform } from "motion/react";
|
|
4
4
|
import { useRef } from "react";
|
|
5
|
-
import { Reveal } from "@sharadox/web-library/
|
|
6
|
-
import { translate } from "@sharadox/web-library/
|
|
7
|
-
import { useTilt } from "@sharadox/web-library/
|
|
5
|
+
import { Reveal } from "@sharadox/animation-web-library/reveal";
|
|
6
|
+
import { translate } from "@sharadox/internationalization-web-library/translate";
|
|
7
|
+
import { useTilt } from "@sharadox/pointer-web-library/tilt";
|
|
8
8
|
import { Section } from "@sharadox/sharadox-web-library/component/section";
|
|
9
9
|
import { SectionHeading } from "@sharadox/sharadox-web-library/component/section-heading";
|
|
10
10
|
import { Plate } from "@sharadox/sharadox-web-library/component/touchpoint/plate";
|
|
@@ -1,85 +1 @@
|
|
|
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
|
-
}
|
|
1
|
+
.touchpoint{display:grid;grid-template-columns:1fr 1.15fr;gap:clamp(32px,5vw,72px);align-items:center}@media(max-width: 900px){.touchpoint{grid-template-columns:1fr}}.text{margin-top:-16px;color:var(--foreground-2);font-size:1.08rem;max-width:40ch}.layers{margin:36px 0 0;padding:0;list-style:none;border-top:1px dashed var(--line-2)}.layers li{display:flex;align-items:baseline;gap:16px;padding:13px 0;border-bottom:1px dashed var(--line-2);font-weight:500;letter-spacing:-0.02em}.layers li span{font-size:11.5px;color:var(--foreground-3)}.stage{position:relative;height:clamp(420px,52vw,600px);display:grid;place-items:center;perspective:1600px}@media(max-width: 600px){.stage{height:380px}}.stage::before{content:"";position:absolute;inset:18% 8% 8%;border-radius:50%;background:radial-gradient(closest-side, color-mix(in srgb, var(--foreground) 10%, transparent), transparent);filter:blur(20px)}.tilt{--tilt-x: 0deg;--tilt-y: 0deg;transform-style:preserve-3d;transform:rotateX(var(--tilt-x)) rotateY(var(--tilt-y));transition:transform .6s cubic-bezier(0.22, 1, 0.36, 1)}.stack{--spread: 18;--turn: -40;position:relative;width:300px;height:200px;transform-style:preserve-3d;transform:translateY(10%) rotateX(58deg) rotateZ(calc(var(--turn) * 1deg))}@media(max-width: 600px){.stack{width:240px;height:160px}}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
@use "style/token" as *;
|
|
2
|
+
|
|
3
|
+
.touchpoint {
|
|
4
|
+
display: grid;
|
|
5
|
+
grid-template-columns: 1fr 1.15fr;
|
|
6
|
+
gap: clamp(32px, 5vw, 72px);
|
|
7
|
+
align-items: center;
|
|
8
|
+
@include below(900px) {
|
|
9
|
+
grid-template-columns: 1fr;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
.text {
|
|
13
|
+
margin-top: -16px;
|
|
14
|
+
color: var(--foreground-2);
|
|
15
|
+
font-size: 1.08rem;
|
|
16
|
+
max-width: 40ch;
|
|
17
|
+
}
|
|
18
|
+
.layers {
|
|
19
|
+
margin: 36px 0 0;
|
|
20
|
+
padding: 0;
|
|
21
|
+
list-style: none;
|
|
22
|
+
border-top: 1px dashed var(--line-2);
|
|
23
|
+
li {
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: baseline;
|
|
26
|
+
gap: 16px;
|
|
27
|
+
padding: 13px 0;
|
|
28
|
+
border-bottom: 1px dashed var(--line-2);
|
|
29
|
+
font-weight: 500;
|
|
30
|
+
letter-spacing: -0.02em;
|
|
31
|
+
span {
|
|
32
|
+
font-size: 11.5px;
|
|
33
|
+
color: var(--foreground-3);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
.stage {
|
|
38
|
+
position: relative;
|
|
39
|
+
height: clamp(420px, 52vw, 600px);
|
|
40
|
+
display: grid;
|
|
41
|
+
place-items: center;
|
|
42
|
+
perspective: 1600px;
|
|
43
|
+
@include below(600px) {
|
|
44
|
+
height: 380px;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
/* A soft floor light under the stack. */
|
|
48
|
+
.stage::before {
|
|
49
|
+
content: "";
|
|
50
|
+
position: absolute;
|
|
51
|
+
inset: 18% 8% 8%;
|
|
52
|
+
border-radius: 50%;
|
|
53
|
+
background: radial-gradient(closest-side, tint(10%), transparent);
|
|
54
|
+
filter: blur(20px);
|
|
55
|
+
}
|
|
56
|
+
.tilt {
|
|
57
|
+
--tilt-x: 0deg;
|
|
58
|
+
--tilt-y: 0deg;
|
|
59
|
+
transform-style: preserve-3d;
|
|
60
|
+
transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
|
|
61
|
+
transition: transform 0.6s $ease;
|
|
62
|
+
}
|
|
63
|
+
.stack {
|
|
64
|
+
--spread: 18;
|
|
65
|
+
--turn: -40;
|
|
66
|
+
position: relative;
|
|
67
|
+
width: 300px;
|
|
68
|
+
height: 200px;
|
|
69
|
+
transform-style: preserve-3d;
|
|
70
|
+
transform: translateY(10%) rotateX(58deg) rotateZ(calc(var(--turn) * 1deg));
|
|
71
|
+
@include below(600px) {
|
|
72
|
+
width: 240px;
|
|
73
|
+
height: 160px;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
@@ -1,136 +1 @@
|
|
|
1
|
-
.plate {
|
|
2
|
-
position: absolute;
|
|
3
|
-
inset: 0;
|
|
4
|
-
border-radius: 16px;
|
|
5
|
-
border: 1px solid var(--line-2);
|
|
6
|
-
background: color-mix(in srgb, var(--background) 90%, transparent);
|
|
7
|
-
box-shadow: 0 0 0 1px color-mix(in srgb, var(--foreground) 3%, transparent), 0 40px 60px -30px color-mix(in srgb, var(--background) 90%, transparent);
|
|
8
|
-
transform: translateZ(calc(var(--index) * var(--spread, 18) * 1px));
|
|
9
|
-
transform-style: preserve-3d;
|
|
10
|
-
padding: 18px;
|
|
11
|
-
display: grid;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.label {
|
|
15
|
-
position: absolute;
|
|
16
|
-
left: 14px;
|
|
17
|
-
top: -22px;
|
|
18
|
-
font-size: 11px;
|
|
19
|
-
letter-spacing: 0.06em;
|
|
20
|
-
text-transform: uppercase;
|
|
21
|
-
color: var(--foreground-2);
|
|
22
|
-
white-space: nowrap;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.identity {
|
|
26
|
-
display: flex;
|
|
27
|
-
align-items: center;
|
|
28
|
-
justify-content: space-between;
|
|
29
|
-
padding: 0 14px;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.mark {
|
|
33
|
-
width: 74px;
|
|
34
|
-
height: 74px;
|
|
35
|
-
border-radius: 50%;
|
|
36
|
-
border: 2.5px solid var(--foreground);
|
|
37
|
-
position: relative;
|
|
38
|
-
}
|
|
39
|
-
.mark::after {
|
|
40
|
-
content: "";
|
|
41
|
-
position: absolute;
|
|
42
|
-
inset: -2.5px 18px;
|
|
43
|
-
border-radius: 50%;
|
|
44
|
-
border: 2px solid var(--foreground-2);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.swatches {
|
|
48
|
-
display: grid;
|
|
49
|
-
gap: 8px;
|
|
50
|
-
}
|
|
51
|
-
.swatches i {
|
|
52
|
-
display: block;
|
|
53
|
-
width: 64px;
|
|
54
|
-
height: 22px;
|
|
55
|
-
border-radius: 6px;
|
|
56
|
-
background: var(--foreground);
|
|
57
|
-
}
|
|
58
|
-
.swatches i:nth-child(2) {
|
|
59
|
-
background: var(--foreground-3);
|
|
60
|
-
}
|
|
61
|
-
.swatches i:nth-child(3) {
|
|
62
|
-
background: var(--surface);
|
|
63
|
-
border: 1px solid var(--line-2);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.website {
|
|
67
|
-
display: grid;
|
|
68
|
-
grid-template-rows: auto 1fr auto;
|
|
69
|
-
gap: 8px;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.bar {
|
|
73
|
-
height: 10px;
|
|
74
|
-
width: 45%;
|
|
75
|
-
border-radius: 4px;
|
|
76
|
-
background: color-mix(in srgb, var(--foreground) 22%, transparent);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.block {
|
|
80
|
-
border-radius: 8px;
|
|
81
|
-
background: linear-gradient(135deg, color-mix(in srgb, var(--foreground) 18%, transparent), color-mix(in srgb, var(--foreground) 5%, transparent));
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.row {
|
|
85
|
-
display: grid;
|
|
86
|
-
grid-template-columns: repeat(3, 1fr);
|
|
87
|
-
gap: 8px;
|
|
88
|
-
}
|
|
89
|
-
.row i {
|
|
90
|
-
height: 30px;
|
|
91
|
-
border-radius: 6px;
|
|
92
|
-
background: color-mix(in srgb, var(--foreground) 10%, transparent);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.application {
|
|
96
|
-
display: flex;
|
|
97
|
-
justify-content: center;
|
|
98
|
-
gap: 16px;
|
|
99
|
-
}
|
|
100
|
-
.application span {
|
|
101
|
-
width: 64px;
|
|
102
|
-
border-radius: 14px;
|
|
103
|
-
border: 1.5px solid var(--foreground-2);
|
|
104
|
-
background: linear-gradient(180deg, color-mix(in srgb, var(--foreground) 14%, transparent), transparent);
|
|
105
|
-
}
|
|
106
|
-
.application span:last-child {
|
|
107
|
-
transform: translateY(10px);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.social {
|
|
111
|
-
display: grid;
|
|
112
|
-
grid-template-columns: repeat(3, 1fr);
|
|
113
|
-
gap: 7px;
|
|
114
|
-
width: 62%;
|
|
115
|
-
margin: auto;
|
|
116
|
-
}
|
|
117
|
-
.social i {
|
|
118
|
-
aspect-ratio: 1.6;
|
|
119
|
-
border-radius: 5px;
|
|
120
|
-
background: color-mix(in srgb, var(--foreground) 12%, transparent);
|
|
121
|
-
}
|
|
122
|
-
.social i:nth-child(2n) {
|
|
123
|
-
background: color-mix(in srgb, var(--foreground) 24%, transparent);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.campaign {
|
|
127
|
-
display: flex;
|
|
128
|
-
align-items: flex-end;
|
|
129
|
-
gap: 10px;
|
|
130
|
-
padding: 6px 10px 0;
|
|
131
|
-
}
|
|
132
|
-
.campaign i {
|
|
133
|
-
flex: 1;
|
|
134
|
-
border-radius: 5px 5px 2px 2px;
|
|
135
|
-
background: linear-gradient(180deg, var(--foreground), color-mix(in srgb, var(--foreground) 20%, transparent));
|
|
136
|
-
}
|
|
1
|
+
.plate{position:absolute;inset:0;border-radius:16px;border:1px solid var(--line-2);background:color-mix(in srgb, var(--background) 90%, transparent);box-shadow:0 0 0 1px color-mix(in srgb, var(--foreground) 3%, transparent),0 40px 60px -30px color-mix(in srgb, var(--background) 90%, transparent);transform:translateZ(calc(var(--index) * var(--spread, 18) * 1px));transform-style:preserve-3d;padding:18px;display:grid}.label{position:absolute;left:14px;top:-22px;font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--foreground-2);white-space:nowrap}.identity{display:flex;align-items:center;justify-content:space-between;padding:0 14px}.mark{width:74px;height:74px;border-radius:50%;border:2.5px solid var(--foreground);position:relative}.mark::after{content:"";position:absolute;inset:-2.5px 18px;border-radius:50%;border:2px solid var(--foreground-2)}.swatches{display:grid;gap:8px}.swatches i{display:block;width:64px;height:22px;border-radius:6px;background:var(--foreground)}.swatches i:nth-child(2){background:var(--foreground-3)}.swatches i:nth-child(3){background:var(--surface);border:1px solid var(--line-2)}.website{display:grid;grid-template-rows:auto 1fr auto;gap:8px}.bar{height:10px;width:45%;border-radius:4px;background:color-mix(in srgb, var(--foreground) 22%, transparent)}.block{border-radius:8px;background:linear-gradient(135deg, color-mix(in srgb, var(--foreground) 18%, transparent), color-mix(in srgb, var(--foreground) 5%, transparent))}.row{display:grid;grid-template-columns:repeat(3, 1fr);gap:8px}.row i{height:30px;border-radius:6px;background:color-mix(in srgb, var(--foreground) 10%, transparent)}.application{display:flex;justify-content:center;gap:16px}.application span{width:64px;border-radius:14px;border:1.5px solid var(--foreground-2);background:linear-gradient(180deg, color-mix(in srgb, var(--foreground) 14%, transparent), transparent)}.application span:last-child{transform:translateY(10px)}.social{display:grid;grid-template-columns:repeat(3, 1fr);gap:7px;width:62%;margin:auto}.social i{aspect-ratio:1.6;border-radius:5px;background:color-mix(in srgb, var(--foreground) 12%, transparent)}.social i:nth-child(2n){background:color-mix(in srgb, var(--foreground) 24%, transparent)}.campaign{display:flex;align-items:flex-end;gap:10px;padding:6px 10px 0}.campaign i{flex:1;border-radius:5px 5px 2px 2px;background:linear-gradient(180deg, var(--foreground), color-mix(in srgb, var(--foreground) 20%, transparent))}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
@use "style/token" as *;
|
|
2
|
+
|
|
3
|
+
.plate {
|
|
4
|
+
position: absolute;
|
|
5
|
+
inset: 0;
|
|
6
|
+
border-radius: 16px;
|
|
7
|
+
border: 1px solid var(--line-2);
|
|
8
|
+
background: shade(90%);
|
|
9
|
+
box-shadow:
|
|
10
|
+
0 0 0 1px tint(3%),
|
|
11
|
+
0 40px 60px -30px shade(90%);
|
|
12
|
+
transform: translateZ(calc(var(--index) * var(--spread, 18) * 1px));
|
|
13
|
+
transform-style: preserve-3d;
|
|
14
|
+
padding: 18px;
|
|
15
|
+
display: grid;
|
|
16
|
+
}
|
|
17
|
+
.label {
|
|
18
|
+
position: absolute;
|
|
19
|
+
left: 14px;
|
|
20
|
+
top: -22px;
|
|
21
|
+
font-size: 11px;
|
|
22
|
+
letter-spacing: 0.06em;
|
|
23
|
+
text-transform: uppercase;
|
|
24
|
+
color: var(--foreground-2);
|
|
25
|
+
white-space: nowrap;
|
|
26
|
+
}
|
|
27
|
+
.identity {
|
|
28
|
+
display: flex;
|
|
29
|
+
align-items: center;
|
|
30
|
+
justify-content: space-between;
|
|
31
|
+
padding: 0 14px;
|
|
32
|
+
}
|
|
33
|
+
.mark {
|
|
34
|
+
width: 74px;
|
|
35
|
+
height: 74px;
|
|
36
|
+
border-radius: 50%;
|
|
37
|
+
border: 2.5px solid var(--foreground);
|
|
38
|
+
position: relative;
|
|
39
|
+
&::after {
|
|
40
|
+
content: "";
|
|
41
|
+
position: absolute;
|
|
42
|
+
inset: -2.5px 18px;
|
|
43
|
+
border-radius: 50%;
|
|
44
|
+
border: 2px solid var(--foreground-2);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
.swatches {
|
|
48
|
+
display: grid;
|
|
49
|
+
gap: 8px;
|
|
50
|
+
i {
|
|
51
|
+
display: block;
|
|
52
|
+
width: 64px;
|
|
53
|
+
height: 22px;
|
|
54
|
+
border-radius: 6px;
|
|
55
|
+
background: var(--foreground);
|
|
56
|
+
}
|
|
57
|
+
i:nth-child(2) {
|
|
58
|
+
background: var(--foreground-3);
|
|
59
|
+
}
|
|
60
|
+
i:nth-child(3) {
|
|
61
|
+
background: var(--surface);
|
|
62
|
+
border: 1px solid var(--line-2);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
.website {
|
|
66
|
+
display: grid;
|
|
67
|
+
grid-template-rows: auto 1fr auto;
|
|
68
|
+
gap: 8px;
|
|
69
|
+
}
|
|
70
|
+
.bar {
|
|
71
|
+
height: 10px;
|
|
72
|
+
width: 45%;
|
|
73
|
+
border-radius: 4px;
|
|
74
|
+
background: tint(22%);
|
|
75
|
+
}
|
|
76
|
+
.block {
|
|
77
|
+
border-radius: 8px;
|
|
78
|
+
background: linear-gradient(135deg, tint(18%), tint(5%));
|
|
79
|
+
}
|
|
80
|
+
.row {
|
|
81
|
+
display: grid;
|
|
82
|
+
grid-template-columns: repeat(3, 1fr);
|
|
83
|
+
gap: 8px;
|
|
84
|
+
i {
|
|
85
|
+
height: 30px;
|
|
86
|
+
border-radius: 6px;
|
|
87
|
+
background: tint(10%);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
.application {
|
|
91
|
+
display: flex;
|
|
92
|
+
justify-content: center;
|
|
93
|
+
gap: 16px;
|
|
94
|
+
span {
|
|
95
|
+
width: 64px;
|
|
96
|
+
border-radius: 14px;
|
|
97
|
+
border: 1.5px solid var(--foreground-2);
|
|
98
|
+
background: linear-gradient(180deg, tint(14%), transparent);
|
|
99
|
+
}
|
|
100
|
+
span:last-child {
|
|
101
|
+
transform: translateY(10px);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
.social {
|
|
105
|
+
display: grid;
|
|
106
|
+
grid-template-columns: repeat(3, 1fr);
|
|
107
|
+
gap: 7px;
|
|
108
|
+
width: 62%;
|
|
109
|
+
margin: auto;
|
|
110
|
+
i {
|
|
111
|
+
aspect-ratio: 1.6;
|
|
112
|
+
border-radius: 5px;
|
|
113
|
+
background: tint(12%);
|
|
114
|
+
}
|
|
115
|
+
i:nth-child(2n) {
|
|
116
|
+
background: tint(24%);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
.campaign {
|
|
120
|
+
display: flex;
|
|
121
|
+
align-items: flex-end;
|
|
122
|
+
gap: 10px;
|
|
123
|
+
padding: 6px 10px 0;
|
|
124
|
+
i {
|
|
125
|
+
flex: 1;
|
|
126
|
+
border-radius: 5px 5px 2px 2px;
|
|
127
|
+
background: linear-gradient(180deg, var(--foreground), tint(20%));
|
|
128
|
+
}
|
|
129
|
+
}
|
|
@@ -1,23 +1 @@
|
|
|
1
|
-
.wordmark {
|
|
2
|
-
display: inline-flex;
|
|
3
|
-
align-items: center;
|
|
4
|
-
gap: 10px;
|
|
5
|
-
font-weight: 600;
|
|
6
|
-
font-size: 18px;
|
|
7
|
-
letter-spacing: -0.04em;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.glyph {
|
|
11
|
-
width: 18px;
|
|
12
|
-
height: 18px;
|
|
13
|
-
border-radius: 50%;
|
|
14
|
-
border: 1.6px solid var(--foreground);
|
|
15
|
-
position: relative;
|
|
16
|
-
}
|
|
17
|
-
.glyph::after {
|
|
18
|
-
content: "";
|
|
19
|
-
position: absolute;
|
|
20
|
-
inset: -1.6px 4px;
|
|
21
|
-
border-radius: 50%;
|
|
22
|
-
border: 1.2px solid var(--foreground-2);
|
|
23
|
-
}
|
|
1
|
+
.wordmark{display:inline-flex;align-items:center;gap:10px;font-weight:600;font-size:18px;letter-spacing:-0.04em}.glyph{width:18px;height:18px;border-radius:50%;border:1.6px solid var(--foreground);position:relative}.glyph::after{content:"";position:absolute;inset:-1.6px 4px;border-radius:50%;border:1.2px solid var(--foreground-2)}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
.wordmark {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
gap: 10px;
|
|
5
|
+
font-weight: 600;
|
|
6
|
+
font-size: 18px;
|
|
7
|
+
letter-spacing: -0.04em;
|
|
8
|
+
}
|
|
9
|
+
.glyph {
|
|
10
|
+
width: 18px;
|
|
11
|
+
height: 18px;
|
|
12
|
+
border-radius: 50%;
|
|
13
|
+
border: 1.6px solid var(--foreground);
|
|
14
|
+
position: relative;
|
|
15
|
+
&::after {
|
|
16
|
+
content: "";
|
|
17
|
+
position: absolute;
|
|
18
|
+
inset: -1.6px 4px;
|
|
19
|
+
border-radius: 50%;
|
|
20
|
+
border: 1.2px solid var(--foreground-2);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Every language sharadox.com is published in (the default is the x-default alternate). Adding a language is one
|
|
3
|
+
* more entry here, plus its copy in content/.
|
|
4
|
+
*/
|
|
5
|
+
export declare const LOCALES: import("@sharadox/internationalization-web-library/locale/type").Locales<"en" | "pt">;
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/content/locale/index.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,eAAO,MAAM,OAAO,uFAA+F,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { defineLocales } from "@sharadox/internationalization-web-library/locale";
|
|
2
|
+
/**
|
|
3
|
+
* Every language sharadox.com is published in (the default is the x-default alternate). Adding a language is one
|
|
4
|
+
* more entry here, plus its copy in content/.
|
|
5
|
+
*/
|
|
6
|
+
export const LOCALES = defineLocales({ locales: ["en", "pt"], defaultLocale: "en", languageTags: { pt: "pt-PT" } });
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/content/locale/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mDAAmD,CAAC;AAElF;;;GAGG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,aAAa,CAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,aAAa,EAAE,IAAI,EAAE,YAAY,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,CAAC,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import type { Translated as GenericTranslated } from "@sharadox/web-library/
|
|
1
|
+
import type { Translated as GenericTranslated } from "@sharadox/internationalization-web-library/locale/type";
|
|
2
|
+
import type { LOCALES } from "@sharadox/sharadox-web-library/content/locale";
|
|
2
3
|
/** A language sharadox.com is published in. */
|
|
3
|
-
export type Locale =
|
|
4
|
+
export type Locale = (typeof LOCALES.locales)[number];
|
|
4
5
|
/** A piece of copy written in every published language. */
|
|
5
6
|
export type Translated = GenericTranslated<Locale>;
|
|
6
7
|
//# sourceMappingURL=type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../source/content/locale/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,IAAI,iBAAiB,EAAE,MAAM,wDAAwD,CAAC;AAC9G,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,+CAA+C,CAAC;AAE7E,+CAA+C;AAC/C,MAAM,MAAM,MAAM,GAAG,CAAC,OAAO,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC;AAEtD,2DAA2D;AAC3D,MAAM,MAAM,UAAU,GAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../source/
|
|
1
|
+
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../source/content/locale/type.ts"],"names":[],"mappings":""}
|
|
@@ -1,50 +1,54 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Every Sharadox style (what other projects call a theme)
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
2
|
+
* Every Sharadox style (what other projects call a theme), as style groups. The colour group holds Black (dark,
|
|
3
|
+
* where the site opens) and White (its exact inverse); add a dark or light option there — name, scheme and the same
|
|
4
|
+
* palette keys — and it appears in the style switch. `systemDefaults` picks what "System" uses for each scheme;
|
|
5
|
+
* set `defaultChoice` to "system" to follow the device from the start. More groups (corners, fonts…) go next to it.
|
|
6
|
+
* The colour choice stays under the "style" storage key, so visitors keep the choice they made before.
|
|
6
7
|
*/
|
|
7
|
-
export declare const
|
|
8
|
-
readonly
|
|
9
|
-
readonly name: "
|
|
10
|
-
readonly
|
|
11
|
-
readonly
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"foreground-2": string;
|
|
15
|
-
"foreground-3": string;
|
|
16
|
-
line: string;
|
|
17
|
-
"line-2": string;
|
|
18
|
-
card: string;
|
|
19
|
-
surface: string;
|
|
20
|
-
error: string;
|
|
21
|
-
"globe-body": string;
|
|
22
|
-
"globe-rim": string;
|
|
23
|
-
};
|
|
24
|
-
}, {
|
|
25
|
-
readonly name: "white";
|
|
26
|
-
readonly scheme: "light";
|
|
27
|
-
readonly palette: {
|
|
28
|
-
background: string;
|
|
29
|
-
foreground: string;
|
|
30
|
-
"foreground-2": string;
|
|
31
|
-
"foreground-3": string;
|
|
32
|
-
line: string;
|
|
33
|
-
"line-2": string;
|
|
34
|
-
card: string;
|
|
35
|
-
surface: string;
|
|
36
|
-
error: string;
|
|
37
|
-
"globe-body": string;
|
|
38
|
-
"globe-rim": string;
|
|
8
|
+
export declare const STYLES: {
|
|
9
|
+
readonly groups: readonly [{
|
|
10
|
+
readonly name: "color";
|
|
11
|
+
readonly defaultChoice: "black";
|
|
12
|
+
readonly systemDefaults: {
|
|
13
|
+
readonly dark: "black";
|
|
14
|
+
readonly light: "white";
|
|
39
15
|
};
|
|
16
|
+
readonly fallbackScheme: "dark";
|
|
17
|
+
readonly storageKey: "style";
|
|
18
|
+
readonly options: readonly [{
|
|
19
|
+
readonly name: "black";
|
|
20
|
+
readonly scheme: "dark";
|
|
21
|
+
readonly palette: {
|
|
22
|
+
background: string;
|
|
23
|
+
foreground: string;
|
|
24
|
+
"foreground-2": string;
|
|
25
|
+
"foreground-3": string;
|
|
26
|
+
line: string;
|
|
27
|
+
"line-2": string;
|
|
28
|
+
card: string;
|
|
29
|
+
surface: string;
|
|
30
|
+
error: string;
|
|
31
|
+
"globe-body": string;
|
|
32
|
+
"globe-rim": string;
|
|
33
|
+
};
|
|
34
|
+
}, {
|
|
35
|
+
readonly name: "white";
|
|
36
|
+
readonly scheme: "light";
|
|
37
|
+
readonly palette: {
|
|
38
|
+
background: string;
|
|
39
|
+
foreground: string;
|
|
40
|
+
"foreground-2": string;
|
|
41
|
+
"foreground-3": string;
|
|
42
|
+
line: string;
|
|
43
|
+
"line-2": string;
|
|
44
|
+
card: string;
|
|
45
|
+
surface: string;
|
|
46
|
+
error: string;
|
|
47
|
+
"globe-body": string;
|
|
48
|
+
"globe-rim": string;
|
|
49
|
+
};
|
|
50
|
+
}];
|
|
40
51
|
}];
|
|
41
|
-
readonly defaults: {
|
|
42
|
-
readonly dark: "black";
|
|
43
|
-
readonly light: "white";
|
|
44
|
-
};
|
|
45
|
-
readonly fallback: "dark";
|
|
46
|
-
readonly storageKey: "style";
|
|
47
|
-
readonly defaultChoice: "black";
|
|
48
52
|
};
|
|
49
53
|
/** Names shown in the style switch. Style names are proper names, the same in every language. */
|
|
50
54
|
export declare const STYLE: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/content/style/index.ts"],"names":[],"mappings":"AA8BA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/content/style/index.ts"],"names":[],"mappings":"AA8BA;;;;;;GAMG;AACH,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAcjB,CAAC;AAEH,iGAAiG;AACjG,eAAO,MAAM,KAAK;;;;;;;;;oBAG6B,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;CAC3D,CAAC"}
|