@sharadox/sharadox-web-library 0.18.0 → 0.20.1
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 +3 -2
- package/distribution/component/capability/index.d.ts +1 -1
- package/distribution/component/capability/index.d.ts.map +1 -1
- package/distribution/component/capability/index.js +1 -1
- package/distribution/component/capability/index.js.map +1 -1
- package/distribution/component/capability/index.module.css +1 -1
- package/distribution/component/capability/index.module.scss +1 -1
- package/distribution/component/contact/form/chip/index.d.ts +4 -0
- package/distribution/component/contact/form/chip/index.d.ts.map +1 -0
- package/distribution/component/contact/form/chip/index.js +7 -0
- package/distribution/component/contact/form/chip/index.js.map +1 -0
- package/distribution/component/contact/form/chip/index.module.css +1 -0
- package/distribution/component/contact/form/chip/index.module.scss +59 -0
- package/distribution/component/contact/form/chip/type.d.ts +7 -0
- package/distribution/component/contact/form/chip/type.d.ts.map +1 -0
- package/distribution/component/contact/form/chip/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 +1 -1
- package/distribution/component/contact/form/index.module.scss +17 -60
- package/distribution/component/footer/index.d.ts +3 -3
- package/distribution/component/footer/index.d.ts.map +1 -1
- package/distribution/component/footer/index.js +6 -4
- package/distribution/component/footer/index.js.map +1 -1
- package/distribution/component/footer/index.module.css +1 -1
- package/distribution/component/footer/index.module.scss +128 -35
- package/distribution/component/globe/index.module.css +1 -1
- package/distribution/component/globe/index.module.scss +22 -1
- 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 -19
- package/distribution/component/navigation/index.js.map +1 -1
- package/distribution/component/process/index.d.ts.map +1 -1
- package/distribution/component/process/index.js +3 -2
- package/distribution/component/process/index.js.map +1 -1
- package/distribution/component/process/index.module.css +1 -1
- package/distribution/component/process/index.module.scss +4 -2
- package/distribution/component/service-card/index.d.ts +10 -0
- package/distribution/component/service-card/index.d.ts.map +1 -0
- package/distribution/component/service-card/index.js +23 -0
- package/distribution/component/service-card/index.js.map +1 -0
- package/distribution/component/service-card/index.module.css +1 -0
- package/distribution/component/service-card/index.module.scss +59 -0
- package/distribution/component/service-card/type.d.ts +8 -0
- package/distribution/component/service-card/type.d.ts.map +1 -0
- package/distribution/component/service-card/type.js.map +1 -0
- package/distribution/component/service-index/index.d.ts +1 -1
- package/distribution/component/service-index/index.d.ts.map +1 -1
- package/distribution/component/service-index/index.js +3 -2
- package/distribution/component/service-index/index.js.map +1 -1
- package/distribution/component/service-index/index.module.css +1 -1
- package/distribution/component/service-index/index.module.scss +4 -5
- package/distribution/component/service-object/android-application/index.d.ts +3 -0
- package/distribution/component/service-object/android-application/index.d.ts.map +1 -0
- package/distribution/component/service-object/android-application/index.js +8 -0
- package/distribution/component/service-object/android-application/index.js.map +1 -0
- package/distribution/component/service-object/android-application/index.module.css +1 -0
- package/distribution/component/service-object/android-application/index.module.scss +90 -0
- package/distribution/component/service-object/brand-awareness/index.d.ts +3 -0
- package/distribution/component/service-object/brand-awareness/index.d.ts.map +1 -0
- package/distribution/component/service-object/brand-awareness/index.js +8 -0
- package/distribution/component/service-object/brand-awareness/index.js.map +1 -0
- package/distribution/component/service-object/brand-awareness/index.module.css +1 -0
- package/distribution/component/service-object/brand-awareness/index.module.scss +89 -0
- package/distribution/component/service-object/branding/index.d.ts +3 -0
- package/distribution/component/service-object/branding/index.d.ts.map +1 -0
- package/distribution/component/service-object/branding/index.js +7 -0
- package/distribution/component/service-object/branding/index.js.map +1 -0
- package/distribution/component/service-object/branding/index.module.css +1 -0
- package/distribution/component/service-object/branding/index.module.scss +63 -0
- package/distribution/component/service-object/branding-design/index.d.ts +3 -0
- package/distribution/component/service-object/branding-design/index.d.ts.map +1 -0
- package/distribution/component/service-object/branding-design/index.js +7 -0
- package/distribution/component/service-object/branding-design/index.js.map +1 -0
- package/distribution/component/service-object/branding-design/index.module.css +1 -0
- package/distribution/component/service-object/branding-design/index.module.scss +61 -0
- package/distribution/component/service-object/cuboid/index.d.ts +11 -0
- package/distribution/component/service-object/cuboid/index.d.ts.map +1 -0
- package/distribution/component/service-object/cuboid/index.js +15 -0
- package/distribution/component/service-object/cuboid/index.js.map +1 -0
- package/distribution/component/service-object/cuboid/index.module.css +1 -0
- package/distribution/component/service-object/cuboid/index.module.scss +61 -0
- package/distribution/component/service-object/cuboid/type.d.ts +10 -0
- package/distribution/component/service-object/cuboid/type.d.ts.map +1 -0
- package/distribution/component/service-object/cuboid/type.js.map +1 -0
- package/distribution/component/service-object/e-commerce/index.d.ts +3 -0
- package/distribution/component/service-object/e-commerce/index.d.ts.map +1 -0
- package/distribution/component/service-object/e-commerce/index.js +8 -0
- package/distribution/component/service-object/e-commerce/index.js.map +1 -0
- package/distribution/component/service-object/e-commerce/index.module.css +1 -0
- package/distribution/component/service-object/e-commerce/index.module.scss +78 -0
- package/distribution/component/service-object/index.d.ts +10 -0
- package/distribution/component/service-object/index.d.ts.map +1 -0
- package/distribution/component/service-object/index.js +45 -0
- package/distribution/component/service-object/index.js.map +1 -0
- package/distribution/component/service-object/index.module.css +1 -0
- package/distribution/component/service-object/index.module.scss +16 -0
- package/distribution/component/service-object/ios-application/index.d.ts +3 -0
- package/distribution/component/service-object/ios-application/index.d.ts.map +1 -0
- package/distribution/component/service-object/ios-application/index.js +8 -0
- package/distribution/component/service-object/ios-application/index.js.map +1 -0
- package/distribution/component/service-object/ios-application/index.module.css +1 -0
- package/distribution/component/service-object/ios-application/index.module.scss +93 -0
- package/distribution/component/service-object/lead-generation/index.d.ts +3 -0
- package/distribution/component/service-object/lead-generation/index.d.ts.map +1 -0
- package/distribution/component/service-object/lead-generation/index.js +7 -0
- package/distribution/component/service-object/lead-generation/index.js.map +1 -0
- package/distribution/component/service-object/lead-generation/index.module.css +1 -0
- package/distribution/component/service-object/lead-generation/index.module.scss +82 -0
- package/distribution/component/service-object/platform/index.d.ts +3 -0
- package/distribution/component/service-object/platform/index.d.ts.map +1 -0
- package/distribution/component/service-object/platform/index.js +8 -0
- package/distribution/component/service-object/platform/index.js.map +1 -0
- package/distribution/component/service-object/platform/index.module.css +1 -0
- package/distribution/component/service-object/platform/index.module.scss +54 -0
- package/distribution/component/service-object/product-launch/index.d.ts +3 -0
- package/distribution/component/service-object/product-launch/index.d.ts.map +1 -0
- package/distribution/component/service-object/product-launch/index.js +8 -0
- package/distribution/component/service-object/product-launch/index.js.map +1 -0
- package/distribution/component/service-object/product-launch/index.module.css +1 -0
- package/distribution/component/service-object/product-launch/index.module.scss +110 -0
- package/distribution/component/service-object/progressive-web-application/index.d.ts +3 -0
- package/distribution/component/service-object/progressive-web-application/index.d.ts.map +1 -0
- package/distribution/component/service-object/progressive-web-application/index.js +8 -0
- package/distribution/component/service-object/progressive-web-application/index.js.map +1 -0
- package/distribution/component/service-object/progressive-web-application/index.module.css +1 -0
- package/distribution/component/service-object/progressive-web-application/index.module.scss +91 -0
- package/distribution/component/service-object/rebranding/index.d.ts +3 -0
- package/distribution/component/service-object/rebranding/index.d.ts.map +1 -0
- package/distribution/component/service-object/rebranding/index.js +8 -0
- package/distribution/component/service-object/rebranding/index.js.map +1 -0
- package/distribution/component/service-object/rebranding/index.module.css +1 -0
- package/distribution/component/service-object/rebranding/index.module.scss +76 -0
- package/distribution/component/service-object/sales-generation/index.d.ts +3 -0
- package/distribution/component/service-object/sales-generation/index.d.ts.map +1 -0
- package/distribution/component/service-object/sales-generation/index.js +8 -0
- package/distribution/component/service-object/sales-generation/index.js.map +1 -0
- package/distribution/component/service-object/sales-generation/index.module.css +1 -0
- package/distribution/component/service-object/sales-generation/index.module.scss +65 -0
- package/distribution/component/service-object/social-media-strategy/index.d.ts +3 -0
- package/distribution/component/service-object/social-media-strategy/index.d.ts.map +1 -0
- package/distribution/component/service-object/social-media-strategy/index.js +7 -0
- package/distribution/component/service-object/social-media-strategy/index.js.map +1 -0
- package/distribution/component/service-object/social-media-strategy/index.module.css +1 -0
- package/distribution/component/service-object/social-media-strategy/index.module.scss +77 -0
- package/distribution/component/service-object/type.d.ts +6 -0
- package/distribution/component/service-object/type.d.ts.map +1 -0
- package/distribution/component/service-object/type.js.map +1 -0
- package/distribution/component/service-object/website/index.d.ts +3 -0
- package/distribution/component/service-object/website/index.d.ts.map +1 -0
- package/distribution/component/service-object/website/index.js +7 -0
- package/distribution/component/service-object/website/index.js.map +1 -0
- package/distribution/component/service-object/website/index.module.css +1 -0
- package/distribution/component/service-object/website/index.module.scss +73 -0
- package/distribution/component/services/index.d.ts +4 -1
- package/distribution/component/services/index.d.ts.map +1 -1
- package/distribution/component/services/index.js +6 -17
- package/distribution/component/services/index.js.map +1 -1
- package/distribution/component/services/index.module.css +1 -1
- package/distribution/component/services/index.module.scss +49 -43
- 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 +13 -10
- package/distribution/component/structured-data/index.js.map +1 -1
- package/distribution/content/contact/index.d.ts +85 -29
- package/distribution/content/contact/index.d.ts.map +1 -1
- package/distribution/content/contact/index.js +10 -7
- package/distribution/content/contact/index.js.map +1 -1
- package/distribution/content/footer/index.d.ts +5 -0
- package/distribution/content/footer/index.d.ts.map +1 -1
- package/distribution/content/footer/index.js +2 -0
- package/distribution/content/footer/index.js.map +1 -1
- package/distribution/content/hero/index.d.ts +1 -1
- package/distribution/content/hero/index.js +1 -1
- package/distribution/content/hero/index.js.map +1 -1
- package/distribution/content/services/index.d.ts +286 -132
- package/distribution/content/services/index.d.ts.map +1 -1
- package/distribution/content/services/index.js +172 -105
- 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 +12 -8
- package/distribution/content/site/index.js.map +1 -1
- package/distribution/style/object/index.scss +28 -0
- package/distribution/utility/llms-text/index.js +1 -1
- package/distribution/utility/llms-text/index.js.map +1 -1
- package/llms.txt +5 -2
- package/package.json +2 -1
- package/distribution/component/service-action/index.d.ts +0 -10
- package/distribution/component/service-action/index.d.ts.map +0 -1
- package/distribution/component/service-action/index.js +0 -18
- package/distribution/component/service-action/index.js.map +0 -1
- package/distribution/component/service-action/index.module.css +0 -1
- package/distribution/component/service-action/index.module.scss +0 -6
- package/distribution/component/service-action/type.d.ts +0 -7
- package/distribution/component/service-action/type.d.ts.map +0 -1
- package/distribution/component/service-action/type.js.map +0 -1
- package/distribution/component/services/campaign-visual/index.d.ts +0 -4
- package/distribution/component/services/campaign-visual/index.d.ts.map +0 -1
- package/distribution/component/services/campaign-visual/index.js +0 -19
- package/distribution/component/services/campaign-visual/index.js.map +0 -1
- package/distribution/component/services/campaign-visual/index.module.css +0 -1
- package/distribution/component/services/campaign-visual/index.module.scss +0 -125
- package/distribution/component/services/campaign-visual/stage/index.d.ts +0 -4
- package/distribution/component/services/campaign-visual/stage/index.d.ts.map +0 -1
- package/distribution/component/services/campaign-visual/stage/index.js +0 -11
- package/distribution/component/services/campaign-visual/stage/index.js.map +0 -1
- package/distribution/component/services/campaign-visual/stage/type.d.ts +0 -10
- package/distribution/component/services/campaign-visual/stage/type.d.ts.map +0 -1
- package/distribution/component/services/campaign-visual/stage/type.js.map +0 -1
- package/distribution/component/services/campaign-visual/type.d.ts +0 -5
- package/distribution/component/services/campaign-visual/type.d.ts.map +0 -1
- package/distribution/component/services/campaign-visual/type.js.map +0 -1
- package/distribution/component/services/cell/index.d.ts +0 -7
- package/distribution/component/services/cell/index.d.ts.map +0 -1
- package/distribution/component/services/cell/index.js +0 -16
- package/distribution/component/services/cell/index.js.map +0 -1
- package/distribution/component/services/cell/index.module.css +0 -1
- package/distribution/component/services/cell/index.module.scss +0 -81
- package/distribution/component/services/cell/type.d.ts +0 -16
- package/distribution/component/services/cell/type.d.ts.map +0 -1
- package/distribution/component/services/cell/type.js.map +0 -1
- package/distribution/component/services/design-visual/index.d.ts +0 -5
- package/distribution/component/services/design-visual/index.d.ts.map +0 -1
- package/distribution/component/services/design-visual/index.js +0 -21
- package/distribution/component/services/design-visual/index.js.map +0 -1
- package/distribution/component/services/design-visual/index.module.css +0 -1
- package/distribution/component/services/design-visual/index.module.scss +0 -119
- package/distribution/component/services/mobile-visual/index.d.ts +0 -4
- package/distribution/component/services/mobile-visual/index.d.ts.map +0 -1
- package/distribution/component/services/mobile-visual/index.js +0 -18
- package/distribution/component/services/mobile-visual/index.js.map +0 -1
- package/distribution/component/services/mobile-visual/index.module.css +0 -1
- package/distribution/component/services/mobile-visual/index.module.scss +0 -93
- package/distribution/component/services/mobile-visual/type.d.ts +0 -5
- package/distribution/component/services/mobile-visual/type.d.ts.map +0 -1
- package/distribution/component/services/mobile-visual/type.js +0 -2
- package/distribution/component/services/mobile-visual/type.js.map +0 -1
- package/distribution/component/services/platform-visual/index.d.ts +0 -3
- package/distribution/component/services/platform-visual/index.d.ts.map +0 -1
- package/distribution/component/services/platform-visual/index.js +0 -16
- package/distribution/component/services/platform-visual/index.js.map +0 -1
- package/distribution/component/services/platform-visual/index.module.css +0 -1
- package/distribution/component/services/platform-visual/index.module.scss +0 -39
- package/distribution/component/services/social-visual/index.d.ts +0 -4
- package/distribution/component/services/social-visual/index.d.ts.map +0 -1
- package/distribution/component/services/social-visual/index.js +0 -18
- package/distribution/component/services/social-visual/index.js.map +0 -1
- package/distribution/component/services/social-visual/index.module.css +0 -1
- package/distribution/component/services/social-visual/index.module.scss +0 -123
- package/distribution/component/services/social-visual/type.d.ts +0 -5
- package/distribution/component/services/social-visual/type.d.ts.map +0 -1
- package/distribution/component/services/social-visual/type.js +0 -2
- package/distribution/component/services/social-visual/type.js.map +0 -1
- package/distribution/component/services/web-visual/index.d.ts +0 -3
- package/distribution/component/services/web-visual/index.d.ts.map +0 -1
- package/distribution/component/services/web-visual/index.js +0 -26
- package/distribution/component/services/web-visual/index.js.map +0 -1
- package/distribution/component/services/web-visual/index.module.css +0 -1
- package/distribution/component/services/web-visual/index.module.scss +0 -133
- package/distribution/content/services/type.d.ts +0 -8
- package/distribution/content/services/type.d.ts.map +0 -1
- package/distribution/content/services/type.js +0 -2
- package/distribution/content/services/type.js.map +0 -1
- /package/distribution/component/{service-action → contact/form/chip}/type.js +0 -0
- /package/distribution/component/{services/campaign-visual/stage → service-card}/type.js +0 -0
- /package/distribution/component/{services/campaign-visual → service-object/cuboid}/type.js +0 -0
- /package/distribution/component/{services/cell → service-object}/type.js +0 -0
|
@@ -37,22 +37,13 @@
|
|
|
37
37
|
text-transform: uppercase;
|
|
38
38
|
color: var(--foreground-3);
|
|
39
39
|
}
|
|
40
|
-
|
|
41
|
-
a,
|
|
42
|
-
[data-preferences-link] {
|
|
40
|
+
a {
|
|
43
41
|
width: fit-content;
|
|
44
|
-
transition: color 0.2s;
|
|
45
42
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
border: 0;
|
|
49
|
-
background: none;
|
|
50
|
-
font-size: inherit;
|
|
51
|
-
color: inherit;
|
|
52
|
-
text-align: left;
|
|
43
|
+
a:not(.start) {
|
|
44
|
+
transition: color 0.2s;
|
|
53
45
|
}
|
|
54
|
-
a:hover
|
|
55
|
-
[data-preferences-link]:hover {
|
|
46
|
+
a:not(.start):hover {
|
|
56
47
|
color: var(--foreground);
|
|
57
48
|
}
|
|
58
49
|
@include below(900px) {
|
|
@@ -103,35 +94,115 @@
|
|
|
103
94
|
.settings h2:not(:first-child) {
|
|
104
95
|
margin-top: 18px;
|
|
105
96
|
}
|
|
106
|
-
.
|
|
107
|
-
|
|
108
|
-
font-size: clamp(4rem, 17vw, 15rem);
|
|
109
|
-
font-weight: 600;
|
|
110
|
-
letter-spacing: -0.075em;
|
|
111
|
-
line-height: 0.8;
|
|
112
|
-
text-align: center;
|
|
113
|
-
background: linear-gradient(180deg, var(--foreground) 0%, transparent 85%);
|
|
114
|
-
-webkit-background-clip: text;
|
|
115
|
-
background-clip: text;
|
|
116
|
-
color: transparent;
|
|
117
|
-
user-select: none;
|
|
118
|
-
overflow: hidden;
|
|
97
|
+
.start {
|
|
98
|
+
margin-top: 10px;
|
|
119
99
|
}
|
|
100
|
+
/* Everything legal in one section, ruled like the columns above: the title and copyright under the brand, the links
|
|
101
|
+
and the dispute notice across the rest, the way back up at the end. */
|
|
120
102
|
.legal {
|
|
103
|
+
position: relative;
|
|
121
104
|
display: grid;
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
105
|
+
grid-template-columns: 1.6fr 2.4fr auto;
|
|
106
|
+
font-size: 13px;
|
|
107
|
+
color: var(--foreground-2);
|
|
108
|
+
&::after {
|
|
109
|
+
content: "";
|
|
110
|
+
position: absolute;
|
|
111
|
+
left: 0;
|
|
112
|
+
right: 0;
|
|
113
|
+
bottom: 0;
|
|
114
|
+
height: 1px;
|
|
115
|
+
@include dashed(horizontal);
|
|
116
|
+
}
|
|
117
|
+
h2 {
|
|
118
|
+
font-size: 11.5px;
|
|
119
|
+
font-weight: 400;
|
|
120
|
+
letter-spacing: 0.05em;
|
|
121
|
+
text-transform: uppercase;
|
|
122
|
+
color: var(--foreground-3);
|
|
123
|
+
}
|
|
124
|
+
@include below(900px) {
|
|
125
|
+
grid-template-columns: 1fr auto;
|
|
126
|
+
.legalEnd {
|
|
127
|
+
grid-column: 1 / -1;
|
|
128
|
+
grid-row: 2;
|
|
129
|
+
border-top: 1px dashed var(--line-2);
|
|
130
|
+
}
|
|
131
|
+
.legalStart::after {
|
|
132
|
+
display: none;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
.legalStart,
|
|
137
|
+
.legalEnd {
|
|
138
|
+
position: relative;
|
|
139
|
+
display: grid;
|
|
140
|
+
align-content: start;
|
|
141
|
+
gap: 12px;
|
|
142
|
+
padding: 30px var(--padding) 34px;
|
|
143
|
+
}
|
|
144
|
+
.legalStart::after {
|
|
145
|
+
content: "";
|
|
146
|
+
position: absolute;
|
|
147
|
+
top: 0;
|
|
148
|
+
bottom: 0;
|
|
149
|
+
right: 0;
|
|
150
|
+
width: 1px;
|
|
151
|
+
@include dashed(vertical);
|
|
152
|
+
}
|
|
153
|
+
.copyright {
|
|
125
154
|
font-size: 12px;
|
|
126
155
|
color: var(--foreground-3);
|
|
127
|
-
text-align: center;
|
|
128
156
|
}
|
|
129
|
-
/* The
|
|
157
|
+
/* The legal links, a small dot between each; on phones, two to a row without dots. */
|
|
158
|
+
.links {
|
|
159
|
+
display: flex;
|
|
160
|
+
flex-wrap: wrap;
|
|
161
|
+
align-items: center;
|
|
162
|
+
gap: 8px 22px;
|
|
163
|
+
a,
|
|
164
|
+
[data-preferences-link] {
|
|
165
|
+
position: relative;
|
|
166
|
+
padding: 0;
|
|
167
|
+
border: 0;
|
|
168
|
+
background: none;
|
|
169
|
+
font: inherit;
|
|
170
|
+
color: var(--foreground-2);
|
|
171
|
+
text-align: left;
|
|
172
|
+
justify-self: start;
|
|
173
|
+
transition: color 0.2s;
|
|
174
|
+
}
|
|
175
|
+
> * + *::before {
|
|
176
|
+
content: "";
|
|
177
|
+
position: absolute;
|
|
178
|
+
left: -13px;
|
|
179
|
+
top: 50%;
|
|
180
|
+
width: 3px;
|
|
181
|
+
height: 3px;
|
|
182
|
+
margin-top: -1.5px;
|
|
183
|
+
border-radius: 50%;
|
|
184
|
+
background: var(--foreground-3);
|
|
185
|
+
}
|
|
186
|
+
a:hover,
|
|
187
|
+
[data-preferences-link]:hover,
|
|
188
|
+
a[aria-current] {
|
|
189
|
+
color: var(--foreground);
|
|
190
|
+
}
|
|
191
|
+
@include below(640px) {
|
|
192
|
+
display: grid;
|
|
193
|
+
grid-template-columns: 1fr 1fr;
|
|
194
|
+
gap: 12px 18px;
|
|
195
|
+
> * + *::before {
|
|
196
|
+
display: none;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
130
200
|
.disputes {
|
|
131
|
-
max-width:
|
|
132
|
-
font-size:
|
|
201
|
+
max-width: 72ch;
|
|
202
|
+
font-size: 12px;
|
|
133
203
|
line-height: 1.6;
|
|
134
|
-
|
|
204
|
+
color: var(--foreground-3);
|
|
205
|
+
text-wrap: pretty;
|
|
135
206
|
a {
|
|
136
207
|
color: var(--foreground-2);
|
|
137
208
|
transition: color 0.2s;
|
|
@@ -143,5 +214,27 @@
|
|
|
143
214
|
.top {
|
|
144
215
|
display: inline-flex;
|
|
145
216
|
align-items: center;
|
|
146
|
-
|
|
217
|
+
align-self: start;
|
|
218
|
+
padding: 26px var(--padding) 0 0;
|
|
219
|
+
gap: 10px;
|
|
220
|
+
color: var(--foreground-2);
|
|
221
|
+
transition: color 0.2s;
|
|
222
|
+
&:hover {
|
|
223
|
+
color: var(--foreground);
|
|
224
|
+
}
|
|
225
|
+
&:hover .circle {
|
|
226
|
+
border-color: var(--foreground);
|
|
227
|
+
transform: translateY(-2px);
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
.circle {
|
|
231
|
+
display: grid;
|
|
232
|
+
place-items: center;
|
|
233
|
+
width: 30px;
|
|
234
|
+
height: 30px;
|
|
235
|
+
border: 1px solid var(--line);
|
|
236
|
+
border-radius: 50%;
|
|
237
|
+
transition:
|
|
238
|
+
border-color 0.3s,
|
|
239
|
+
transform 0.4s $ease;
|
|
147
240
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.globe{--globe-glow: var(--foreground);--globe-surface: var(--background);position:absolute;inset:0}
|
|
1
|
+
.globe{--globe-glow: var(--foreground);--globe-surface: var(--background);position:absolute;inset:0;will-change:transform;animation:float 9s ease-in-out infinite}@media(prefers-reduced-motion: reduce){.globe{animation:none}}@keyframes float{0%,100%{transform:translate3d(0, 0, 0) rotate(0deg)}25%{transform:translate3d(0.4%, -1.1%, 0) rotate(0.6deg)}50%{transform:translate3d(0, -2%, 0) rotate(0deg)}75%{transform:translate3d(-0.4%, -1.1%, 0) rotate(-0.6deg)}}
|
|
@@ -1,7 +1,28 @@
|
|
|
1
|
-
/* The shared globe's halo and fallback follow the Sharadox style.
|
|
1
|
+
/* The shared globe's halo and fallback follow the Sharadox style. It floats: a slow rise and fall with a slight
|
|
2
|
+
sway, eased at both ends so it never stops sharply. Held still with reduced motion. */
|
|
2
3
|
.globe {
|
|
3
4
|
--globe-glow: var(--foreground);
|
|
4
5
|
--globe-surface: var(--background);
|
|
5
6
|
position: absolute;
|
|
6
7
|
inset: 0;
|
|
8
|
+
will-change: transform;
|
|
9
|
+
animation: float 9s ease-in-out infinite;
|
|
10
|
+
@media (prefers-reduced-motion: reduce) {
|
|
11
|
+
animation: none;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
@keyframes float {
|
|
15
|
+
0%,
|
|
16
|
+
100% {
|
|
17
|
+
transform: translate3d(0, 0, 0) rotate(0deg);
|
|
18
|
+
}
|
|
19
|
+
25% {
|
|
20
|
+
transform: translate3d(0.4%, -1.1%, 0) rotate(0.6deg);
|
|
21
|
+
}
|
|
22
|
+
50% {
|
|
23
|
+
transform: translate3d(0, -2%, 0) rotate(0deg);
|
|
24
|
+
}
|
|
25
|
+
75% {
|
|
26
|
+
transform: translate3d(-0.4%, -1.1%, 0) rotate(-0.6deg);
|
|
27
|
+
}
|
|
7
28
|
}
|
|
@@ -2,7 +2,7 @@ import type { NavigationProperties } from "@sharadox/sharadox-web-library/compon
|
|
|
2
2
|
/**
|
|
3
3
|
* Fixed top bar that frosts once the page scrolls, with the style and language switches. Below 1100px the links
|
|
4
4
|
* open in a menu under the bar, in the bar's frosted background; it scrolls when it doesn't fit (a phone held
|
|
5
|
-
* sideways). The menu sits beside the bar, not in it: the bar's blur would otherwise make the menu the bar's size.
|
|
5
|
+
* sideways), and any tap on a link or button in the bar or menu closes it (`useMenu`). The menu sits beside the bar, not in it: the bar's blur would otherwise make the menu the bar's size.
|
|
6
6
|
*/
|
|
7
7
|
export declare function Navigation({ locale, path }: NavigationProperties): import("react").JSX.Element;
|
|
8
8
|
//# 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":"AAcA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0DAA0D,CAAC;AAOrG;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,EAAE,MAAM,EAAE,IAAS,EAAE,EAAE,oBAAoB,+BAwFrE"}
|
|
@@ -3,6 +3,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
3
3
|
import { classNames } from "@sharadox/web-library/class-name";
|
|
4
4
|
import { AnimatePresence, motion } from "motion/react";
|
|
5
5
|
import { useEffect, useState } from "react";
|
|
6
|
+
import { useMenu } from "@sharadox/menu-web-library/use-menu";
|
|
6
7
|
import { Button } from "@sharadox/sharadox-web-library/component/button";
|
|
7
8
|
import { LanguageSwitch } from "@sharadox/sharadox-web-library/component/language-switch";
|
|
8
9
|
import { StyleSwitch } from "@sharadox/sharadox-web-library/component/style-switch";
|
|
@@ -18,39 +19,23 @@ const WIDE = "(min-width: 1101px)";
|
|
|
18
19
|
/**
|
|
19
20
|
* Fixed top bar that frosts once the page scrolls, with the style and language switches. Below 1100px the links
|
|
20
21
|
* open in a menu under the bar, in the bar's frosted background; it scrolls when it doesn't fit (a phone held
|
|
21
|
-
* sideways). The menu sits beside the bar, not in it: the bar's blur would otherwise make the menu the bar's size.
|
|
22
|
+
* sideways), and any tap on a link or button in the bar or menu closes it (`useMenu`). The menu sits beside the bar, not in it: the bar's blur would otherwise make the menu the bar's size.
|
|
22
23
|
*/
|
|
23
24
|
export function Navigation({ locale, path = "" }) {
|
|
24
25
|
const home = path ? `/${locale}` : "";
|
|
25
26
|
const [scrolled, setScrolled] = useState(false);
|
|
26
|
-
const
|
|
27
|
+
const menu = useMenu({ wide: WIDE });
|
|
27
28
|
useEffect(() => {
|
|
28
29
|
const update = () => setScrolled(scrollY > 24);
|
|
29
30
|
update();
|
|
30
31
|
addEventListener("scroll", update, { passive: true });
|
|
31
32
|
return () => removeEventListener("scroll", update);
|
|
32
33
|
}, []);
|
|
33
|
-
useEffect(() => {
|
|
34
|
-
if (!open)
|
|
35
|
-
return;
|
|
36
|
-
document.documentElement.style.overflow = "hidden";
|
|
37
|
-
const escape = (event) => event.key === "Escape" && setOpen(false);
|
|
38
|
-
// Turning a tablet until the links fit in the bar closes the menu.
|
|
39
|
-
const wide = matchMedia(WIDE);
|
|
40
|
-
const widen = () => wide.matches && setOpen(false);
|
|
41
|
-
addEventListener("keydown", escape);
|
|
42
|
-
wide.addEventListener("change", widen);
|
|
43
|
-
return () => {
|
|
44
|
-
document.documentElement.style.overflow = "";
|
|
45
|
-
removeEventListener("keydown", escape);
|
|
46
|
-
wide.removeEventListener("change", widen);
|
|
47
|
-
};
|
|
48
|
-
}, [open]);
|
|
49
34
|
const links = NAVIGATION.links.map((section) => ({
|
|
50
35
|
href: `${home}#${section.id}`,
|
|
51
36
|
name: translate(section, locale),
|
|
52
37
|
}));
|
|
53
38
|
const contact = `${home}#${SECTION.contact.id}`;
|
|
54
|
-
return (_jsxs(_Fragment, { children: [_jsx("header", { className: classNames(styles.navigation, (scrolled || open) && styles.scrolled), children: _jsxs("div", { className: styles.inner, children: [_jsx(Wordmark, { href: `/${locale}` }), _jsx("nav", { className: styles.links, "aria-label": translate(NAVIGATION.main, locale), children: links.map((link) => (_jsx("a", { href: link.href, children: link.name }, link.href))) }), _jsxs("div", { className: styles.end, children: [_jsx(StyleSwitch, { locale: locale, className: styles.style }), _jsx(LanguageSwitch, { locale: locale, path: path }), _jsx(Button, { href: contact, size: "small", className: styles.callToAction, children: translate(ACTION.startProject, locale) }), _jsxs("button", { type: "button", className: styles.toggle,
|
|
39
|
+
return (_jsxs(_Fragment, { children: [_jsx("header", { className: classNames(styles.navigation, (scrolled || menu.open) && styles.scrolled), ...menu.closer, children: _jsxs("div", { className: styles.inner, children: [_jsx(Wordmark, { href: `/${locale}` }), _jsx("nav", { className: styles.links, "aria-label": translate(NAVIGATION.main, locale), children: links.map((link) => (_jsx("a", { href: link.href, children: link.name }, link.href))) }), _jsxs("div", { className: styles.end, children: [_jsx(StyleSwitch, { locale: locale, className: styles.style }), _jsx(LanguageSwitch, { locale: locale, path: path }), _jsx(Button, { href: contact, size: "small", className: styles.callToAction, children: translate(ACTION.startProject, locale) }), _jsxs("button", { type: "button", className: styles.toggle, ...menu.toggle, "aria-label": translate(menu.open ? NAVIGATION.close : NAVIGATION.menu, locale), children: [_jsx("span", {}), _jsx("span", {})] })] })] }) }), _jsx(AnimatePresence, { children: menu.open && (_jsxs(motion.nav, { id: "menu", "data-lenis-prevent": true, className: styles.menu, "aria-label": translate(NAVIGATION.main, locale), ...menu.closer, initial: { opacity: 0 }, animate: { opacity: 1 }, exit: { opacity: 0 }, transition: { duration: 0.35 }, children: [links.map((link, index) => (_jsxs(motion.a, { href: link.href, initial: { opacity: 0, y: 20 }, animate: { opacity: 1, y: 0 }, transition: { duration: 0.6, delay: 0.06 + index * 0.05, ease: EASE }, children: [_jsx("span", { className: "monospace", children: String(index + 1).padStart(2, "0") }), link.name] }, link.href))), _jsxs(motion.div, { className: styles.menuAction, initial: { opacity: 0, y: 20 }, animate: { opacity: 1, y: 0 }, transition: { duration: 0.6, delay: 0.06 + links.length * 0.05, ease: EASE }, children: [_jsx(Button, { href: contact, arrow: true, children: translate(ACTION.startProject, locale) }), _jsx(StyleSwitch, { locale: locale, className: styles.menuStyle })] })] })) })] }));
|
|
55
40
|
}
|
|
56
41
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/navigation/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,SAA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CAAC,GAAQ,EACtE,IAAI,CAAC,IAAI,KAPL,IAAI,CAAC,IAAI,CAQL,CACZ,CAAC,EACF,MAAC,MAAM,CAAC,GAAG,IACT,SAAS,EAAE,MAAM,CAAC,UAAU,EAC5B,OAAO,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAC9B,OAAO,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAC7B,UAAU,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAE,KAAK,EAAE,IAAI,GAAG,KAAK,CAAC,MAAM,GAAG,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,aAE5E,KAAC,MAAM,IAAC,IAAI,EAAE,OAAO,EAAE,KAAK,kBACzB,SAAS,CAAC,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,GAChC,EAET,KAAC,WAAW,IAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,CAAC,SAAS,GAAI,IACjD,IACF,CACd,GACe,IACjB,CACJ,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/process/index.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uDAAuD,CAAC;AAE/F,gFAAgF;AAChF,wBAAgB,OAAO,CAAC,EAAE,MAAM,EAAE,EAAE,iBAAiB,+
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/process/index.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uDAAuD,CAAC;AAE/F,gFAAgF;AAChF,wBAAgB,OAAO,CAAC,EAAE,MAAM,EAAE,EAAE,iBAAiB,+BA2BpD"}
|
|
@@ -13,8 +13,9 @@ import { Step } from "@sharadox/sharadox-web-library/component/process/step";
|
|
|
13
13
|
export function Process({ locale }) {
|
|
14
14
|
const container = useRef(null);
|
|
15
15
|
const { scrollYProgress } = useScroll({ target: container, offset: ["start 75%", "end 55%"] });
|
|
16
|
-
|
|
16
|
+
// How much of the line is drawn: across on wide screens, down on phones (see the styles).
|
|
17
|
+
const drawn = useTransform(scrollYProgress, [0, 1], ["0%", "100%"]);
|
|
17
18
|
const steps = PROCESS.steps;
|
|
18
|
-
return (_jsxs(Section, { id: SECTION.process.id, children: [_jsx(SectionHeading, { eyebrow: translate(PROCESS.eyebrow, locale), title: translate(PROCESS.title, locale) }), _jsxs("div", { ref: container, className: styles.process, children: [_jsx("div", { className: styles.line, "aria-hidden": true, children: _jsx(motion.span, { style: {
|
|
19
|
+
return (_jsxs(Section, { id: SECTION.process.id, children: [_jsx(SectionHeading, { eyebrow: translate(PROCESS.eyebrow, locale), title: translate(PROCESS.title, locale) }), _jsxs("div", { ref: container, className: styles.process, children: [_jsx("div", { className: styles.line, "aria-hidden": true, children: _jsx(motion.span, { style: { "--drawn": drawn } }) }), steps.map((step, index) => (_jsx(Step, { index: index, count: steps.length, progress: scrollYProgress, number: step.number, title: translate(step.title, locale), text: translate(step.text, locale) }, step.number)))] })] }));
|
|
19
20
|
}
|
|
20
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/process/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/process/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAsB,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,M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AAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CAC1B,KAAC,IAAI,IAEH,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,KAAK,CAAC,MAAM,EACnB,QAAQ,EAAE,eAAe,EACzB,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,KAAK,EAAE,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,EACpC,IAAI,EAAE,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,IAN7B,IAAI,CAAC,MAAM,CAOhB,CACH,CAAC,IACE,IACE,CACX,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.process{position:relative;display:grid;grid-template-columns:repeat(4, 1fr);gap:24px;padding-top:34px}@media(max-width: 860px){.process{grid-template-columns:1fr;gap:44px;padding:0 0 0 30px}}.line{position:absolute;left:0;right:0;top:6px;height:1px;background:linear-gradient(90deg, var(--line-2) 50%, transparent 0) 0 0/8px 1px repeat-x}.line span{display:block;height:100%;background:linear-gradient(90deg, color-mix(in srgb, var(--foreground) 20%, transparent), var(--foreground));box-shadow:0 0 12px color-mix(in srgb, var(--foreground) 60%, transparent)}@media(max-width: 860px){.line{left:5px;right:auto;top:0;bottom:0;width:1px;height:auto}.line span{width:100%
|
|
1
|
+
.process{position:relative;display:grid;grid-template-columns:repeat(4, 1fr);gap:24px;padding-top:34px}@media(max-width: 860px){.process{grid-template-columns:1fr;gap:44px;padding:0 0 0 30px}}.line{position:absolute;left:0;right:0;top:6px;height:1px;background:linear-gradient(90deg, var(--line-2) 50%, transparent 0) 0 0/8px 1px repeat-x}.line span{display:block;width:var(--drawn, 0%);height:100%;background:linear-gradient(90deg, color-mix(in srgb, var(--foreground) 20%, transparent), var(--foreground));box-shadow:0 0 12px color-mix(in srgb, var(--foreground) 60%, transparent)}@media(max-width: 860px){.line{left:5px;right:auto;top:0;bottom:0;width:1px;height:auto}.line span{width:100%;height:var(--drawn, 0%);background:linear-gradient(180deg, color-mix(in srgb, var(--foreground) 20%, transparent), var(--foreground))}}
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
@include dashed(horizontal);
|
|
22
22
|
span {
|
|
23
23
|
display: block;
|
|
24
|
+
width: var(--drawn, 0%);
|
|
24
25
|
height: 100%;
|
|
25
26
|
background: linear-gradient(90deg, tint(20%), var(--foreground));
|
|
26
27
|
box-shadow: 0 0 12px tint(60%);
|
|
@@ -33,8 +34,9 @@
|
|
|
33
34
|
width: 1px;
|
|
34
35
|
height: auto;
|
|
35
36
|
span {
|
|
36
|
-
width: 100
|
|
37
|
-
height:
|
|
37
|
+
width: 100%;
|
|
38
|
+
height: var(--drawn, 0%);
|
|
39
|
+
background: linear-gradient(180deg, tint(20%), var(--foreground));
|
|
38
40
|
}
|
|
39
41
|
}
|
|
40
42
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ServiceCardProperties } from "@sharadox/sharadox-web-library/component/service-card/type";
|
|
2
|
+
/**
|
|
3
|
+
* One service: its 3D object (which turns towards the pointer anywhere on the card), name, description, and a button
|
|
4
|
+
* that scrolls to the contact form with this service ticked. A soft light follows the pointer.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* <ServiceCard locale="en" card={SERVICES.items[0].cards[0]} />
|
|
8
|
+
*/
|
|
9
|
+
export declare function ServiceCard({ locale, card }: ServiceCardProperties): import("react").JSX.Element;
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/service-card/index.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4DAA4D,CAAC;AAExG;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,qBAAqB,+BAyBlE"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { translate } from "@sharadox/internationalization-web-library/translate";
|
|
4
|
+
import { useSpotlight } from "@sharadox/pointer-web-library/spotlight";
|
|
5
|
+
import { useTilt } from "@sharadox/pointer-web-library/tilt";
|
|
6
|
+
import { Button } from "@sharadox/sharadox-web-library/component/button";
|
|
7
|
+
import { ServiceObject } from "@sharadox/sharadox-web-library/component/service-object";
|
|
8
|
+
import { SECTION } from "@sharadox/sharadox-web-library/content/section";
|
|
9
|
+
import { requestContactNeeds } from "@sharadox/sharadox-web-library/utility/contact-need";
|
|
10
|
+
import styles from "./index.module.css";
|
|
11
|
+
/**
|
|
12
|
+
* One service: its 3D object (which turns towards the pointer anywhere on the card), name, description, and a button
|
|
13
|
+
* that scrolls to the contact form with this service ticked. A soft light follows the pointer.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* <ServiceCard locale="en" card={SERVICES.items[0].cards[0]} />
|
|
17
|
+
*/
|
|
18
|
+
export function ServiceCard({ locale, card }) {
|
|
19
|
+
const spotlight = useSpotlight();
|
|
20
|
+
const tilt = useTilt(16);
|
|
21
|
+
return (_jsx("article", { ref: spotlight, className: styles.card, children: _jsxs("div", { ref: tilt, className: styles.inner, children: [_jsx("div", { className: styles.visual, children: _jsx(ServiceObject, { kind: card.key }) }), _jsxs("div", { className: styles.copy, children: [_jsx("h4", { children: translate(card.title, locale) }), _jsx("p", { children: translate(card.text, locale) }), _jsx(Button, { href: `#${SECTION.contact.id}`, size: "small", arrow: true, className: styles.action, onClick: () => requestContactNeeds([card.key]), children: translate(card.action, locale) })] })] }) }));
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/service-card/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,SAAS,EAAE,MAAM,s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AAC,MAAM,EAAE,MAAM,CAAC,GACxB,IACL,IACF,GACE,CACX,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.card{--pointer-x: -500px;--pointer-y: -500px;position:relative;height:100%;background:var(--background);isolation:isolate}.card::before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(420px circle at var(--pointer-x) var(--pointer-y), color-mix(in srgb, var(--foreground) 7%, transparent), transparent 60%)}.inner{--tilt-x: 0deg;--tilt-y: 0deg;display:flex;flex-direction:column;height:100%}.visual{position:relative;height:270px;border-bottom:1px dashed var(--line-2);background:radial-gradient(90% 80% at 50% 45%, color-mix(in srgb, var(--foreground) 6%, transparent), transparent 70%),radial-gradient(circle, var(--line-2) 1px, transparent 1.4px) 0 0/18px 18px}@media(max-width: 640px){.visual{height:250px}}.copy{flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:24px 26px 28px}.copy h4{margin:0;font-size:1.3rem;font-weight:600;letter-spacing:-0.03em}.copy p{margin-bottom:14px;color:var(--foreground-2);max-width:44ch;text-wrap:pretty}.action{margin-top:auto}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
@use "style/token" as *;
|
|
2
|
+
|
|
3
|
+
.card {
|
|
4
|
+
--pointer-x: -500px;
|
|
5
|
+
--pointer-y: -500px;
|
|
6
|
+
position: relative;
|
|
7
|
+
height: 100%;
|
|
8
|
+
background: var(--background);
|
|
9
|
+
isolation: isolate;
|
|
10
|
+
&::before {
|
|
11
|
+
content: "";
|
|
12
|
+
position: absolute;
|
|
13
|
+
inset: 0;
|
|
14
|
+
z-index: -1;
|
|
15
|
+
background: radial-gradient(420px circle at var(--pointer-x) var(--pointer-y), tint(7%), transparent 60%);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
.inner {
|
|
19
|
+
--tilt-x: 0deg;
|
|
20
|
+
--tilt-y: 0deg;
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
height: 100%;
|
|
24
|
+
}
|
|
25
|
+
.visual {
|
|
26
|
+
position: relative;
|
|
27
|
+
height: 270px;
|
|
28
|
+
border-bottom: 1px dashed var(--line-2);
|
|
29
|
+
background:
|
|
30
|
+
radial-gradient(90% 80% at 50% 45%, tint(6%), transparent 70%),
|
|
31
|
+
radial-gradient(circle, var(--line-2) 1px, transparent 1.4px) 0 0 / 18px 18px;
|
|
32
|
+
@include below(640px) {
|
|
33
|
+
height: 250px;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
.copy {
|
|
37
|
+
flex: 1;
|
|
38
|
+
display: flex;
|
|
39
|
+
flex-direction: column;
|
|
40
|
+
align-items: flex-start;
|
|
41
|
+
gap: 10px;
|
|
42
|
+
padding: 24px 26px 28px;
|
|
43
|
+
h4 {
|
|
44
|
+
margin: 0;
|
|
45
|
+
font-size: 1.3rem;
|
|
46
|
+
font-weight: 600;
|
|
47
|
+
letter-spacing: -0.03em;
|
|
48
|
+
}
|
|
49
|
+
p {
|
|
50
|
+
margin-bottom: 14px;
|
|
51
|
+
color: var(--foreground-2);
|
|
52
|
+
max-width: 44ch;
|
|
53
|
+
text-wrap: pretty;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
/* Sits at the bottom, so the buttons of a row line up whatever the text length. */
|
|
57
|
+
.action {
|
|
58
|
+
margin-top: auto;
|
|
59
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Locale } from "@sharadox/sharadox-web-library/content/locale/type";
|
|
2
|
+
import type { SERVICES } from "@sharadox/sharadox-web-library/content/services";
|
|
3
|
+
export interface ServiceCardProperties {
|
|
4
|
+
locale: Locale;
|
|
5
|
+
/** One of the cards in `SERVICES`. */
|
|
6
|
+
card: (typeof SERVICES.items)[number]["cards"][number];
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../source/component/service-card/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oDAAoD,CAAC;AACjF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAEhF,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,sCAAsC;IACtC,IAAI,EAAE,CAAC,OAAO,QAAQ,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC;CACxD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../source/component/service-card/type.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ServiceIndexProperties } from "@sharadox/sharadox-web-library/component/service-index/type";
|
|
2
|
-
/** The
|
|
2
|
+
/** The four service groups in a row of grid cells under the hero, each a shortcut to its section. */
|
|
3
3
|
export declare function ServiceIndex({ locale, base }: ServiceIndexProperties): import("react").JSX.Element;
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/service-index/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/service-index/index.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6DAA6D,CAAC;AAE1G,qGAAqG;AACrG,wBAAgB,YAAY,CAAC,EAAE,MAAM,EAAE,IAAS,EAAE,EAAE,sBAAsB,+BAoBzE"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Icon } from "@sharadox/icon-web-library/icon";
|
|
2
3
|
import { separate } from "@sharadox/sharadox-web-library/utility/separate";
|
|
3
4
|
import { Cross } from "@sharadox/sharadox-web-library/component/cross";
|
|
4
5
|
import { SERVICES } from "@sharadox/sharadox-web-library/content/services";
|
|
5
6
|
import { translate } from "@sharadox/internationalization-web-library/translate";
|
|
6
7
|
import styles from "./index.module.css";
|
|
7
|
-
/** The
|
|
8
|
+
/** The four service groups in a row of grid cells under the hero, each a shortcut to its section. */
|
|
8
9
|
export function ServiceIndex({ locale, base = "" }) {
|
|
9
|
-
return (_jsxs("nav", { className: styles.index, "aria-label": translate(SERVICES.eyebrow, locale), children: [SERVICES.items.map((service, index) => (_jsxs("a", { href: `${base}#${service.key}`, className: styles.cell, style: { animationDelay: `${0.9 + index * 0.08}s` }, children: [_jsx("span", { className: `${styles.number} monospace`, children: service.number }), _jsx("span", { className: styles.title, children: translate(service.title, locale) }), _jsx("span", { className: `${styles.kinds} monospace`, children: separate(...service.kinds[locale]) }), _jsx(
|
|
10
|
+
return (_jsxs("nav", { className: styles.index, "aria-label": translate(SERVICES.eyebrow, locale), children: [SERVICES.items.map((service, index) => (_jsxs("a", { href: `${base}#${service.key}`, className: styles.cell, style: { animationDelay: `${0.9 + index * 0.08}s` }, children: [_jsx("span", { className: `${styles.number} monospace`, children: service.number }), _jsx("span", { className: styles.title, children: translate(service.title, locale) }), _jsx("span", { className: `${styles.kinds} monospace`, children: separate(...service.kinds[locale]) }), _jsx(Icon, { name: "chevron-down", className: styles.arrow, strokeWidth: 1.8 })] }, service.key))), _jsx(Cross, { corner: "bottom-left" }), _jsx(Cross, { corner: "bottom-right" })] }));
|
|
10
11
|
}
|
|
11
12
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/service-index/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAC3E,OAAO,EAAE,KAAK,EAAE,MAAM,gDAAgD,CAAC;AACvE,OAAO,EAAE,QAAQ,EAAE,MAAM,iDA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,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,GAAQ,EACzF,KAAC,IAAI,IAAC,IAAI,EAAC,cAAc,EAAC,SAAS,EAAE,MAAM,CAAC,KAAK,EAAE,WAAW,EAAE,GAAG,GAAI,KARlE,OAAO,CAAC,GAAG,CASd,CACL,CAAC,EACF,KAAC,KAAK,IAAC,MAAM,EAAC,aAAa,GAAG,EAC9B,KAAC,KAAK,IAAC,MAAM,EAAC,cAAc,GAAG,IAC3B,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.index{position:relative;width:min(100% - 2*var(--gutter),var(--maximum-width));margin:0 auto;display:grid;grid-template-columns:repeat(
|
|
1
|
+
.index{position:relative;width:min(100% - 2*var(--gutter),var(--maximum-width));margin:0 auto;display:grid;grid-template-columns:repeat(4, 1fr);border:1px solid var(--line)}@media(max-width: 960px){.index{grid-template-columns:repeat(2, 1fr)}}.cell{position:relative;display:grid;align-content:start;gap:6px;padding:22px 22px 24px;overflow:hidden;animation:rise .9s cubic-bezier(0.22, 1, 0.36, 1) both}:global(:root[data-soft-navigation]) .cell{animation-duration:0s !important;animation-delay:0s !important}.cell:not(:last-of-type){border-right:1px solid var(--line)}.cell::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg, color-mix(in srgb, var(--foreground) 7%, transparent), transparent);opacity:0;transition:opacity .4s}.cell:hover::before{opacity:1}.cell:hover .arrow{opacity:1;transform:none}@media(max-width: 960px){.cell{border-right:0 !important;border-bottom:1px solid var(--line)}.cell:nth-of-type(odd){border-right:1px solid var(--line) !important}.cell:nth-last-of-type(-n + 2){border-bottom:0}}@keyframes rise{from{opacity:0;transform:translateY(10px)}}.number{font-size:11.5px;color:var(--foreground-3)}.title{font-weight:600;letter-spacing:-0.02em;font-size:15.5px}.kinds{font-size:11.5px;color:var(--foreground-2)}.arrow{position:absolute;top:18px;right:18px;width:16px;height:16px;opacity:0;transform:translate(-4px, -4px);transition:opacity .3s,transform .4s cubic-bezier(0.22, 1, 0.36, 1)}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
width: min(100% - 2 * var(--gutter), var(--maximum-width));
|
|
6
6
|
margin: 0 auto;
|
|
7
7
|
display: grid;
|
|
8
|
-
grid-template-columns: repeat(
|
|
8
|
+
grid-template-columns: repeat(4, 1fr);
|
|
9
9
|
border: 1px solid var(--line);
|
|
10
10
|
@include below(960px) {
|
|
11
11
|
grid-template-columns: repeat(2, 1fr);
|
|
@@ -45,10 +45,8 @@
|
|
|
45
45
|
&:nth-of-type(odd) {
|
|
46
46
|
border-right: 1px solid var(--line) !important;
|
|
47
47
|
}
|
|
48
|
-
&:last-of-type {
|
|
49
|
-
grid-column: span 2;
|
|
48
|
+
&:nth-last-of-type(-n + 2) {
|
|
50
49
|
border-bottom: 0;
|
|
51
|
-
border-right: 0 !important;
|
|
52
50
|
}
|
|
53
51
|
}
|
|
54
52
|
}
|
|
@@ -75,7 +73,8 @@
|
|
|
75
73
|
position: absolute;
|
|
76
74
|
top: 18px;
|
|
77
75
|
right: 18px;
|
|
78
|
-
|
|
76
|
+
width: 16px;
|
|
77
|
+
height: 16px;
|
|
79
78
|
opacity: 0;
|
|
80
79
|
transform: translate(-4px, -4px);
|
|
81
80
|
transition:
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/service-object/android-application/index.tsx"],"names":[],"mappings":"AAGA,oIAAoI;AACpI,wBAAgB,kBAAkB,gCAuBjC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { Cuboid } from "@sharadox/sharadox-web-library/component/service-object/cuboid";
|
|
3
|
+
import styles from "./index.module.css";
|
|
4
|
+
/** Android applications: a phone turning in the hand, its app tiles rising off the screen in a wave, the three-button bar below. */
|
|
5
|
+
export function AndroidApplication() {
|
|
6
|
+
return (_jsx("div", { className: styles.object, children: _jsx(Cuboid, { className: styles.phone, front: _jsxs(_Fragment, { children: [_jsx("span", { className: styles.camera }), _jsx("span", { className: styles.tiles, children: Array.from({ length: 12 }, (_, tile) => (_jsx("i", { style: { animationDelay: `${(tile % 3) * 0.15 + Math.floor(tile / 3) * 0.2}s` } }, tile))) }), _jsxs("span", { className: styles.buttons, children: [_jsx("i", { className: styles.back }), _jsx("i", { className: styles.home }), _jsx("i", { className: styles.recent })] })] }) }) }));
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/service-object/android-application/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gEAAgE,CAAC;AACxF,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,oIAAoI;AACpI,MAAM,UAAU,kBAAkB;IAChC,OAAO,CACL,cAAK,SAAS,EAAE,MAAM,CAAC,MAAM,YAC3B,KAAC,MAAM,IACL,SAAS,EAAE,MAAM,CAAC,KAAK,EACvB,KAAK,EACH,8BACE,eAAM,SAAS,EAAE,MAAM,CAAC,MAAM,GAAI,EAClC,eAAM,SAAS,EAAE,MAAM,CAAC,KAAK,YAC1B,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,CACvC,YAAc,KAAK,EAAE,EAAE,cAAc,EAAE,GAAG,CAAC,IAAI,GAAG,CAAC,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,CAAC,CAAC,GAAG,GAAG,GAAG,EAAE,IAArF,IAAI,CAAqF,CAClG,CAAC,GACG,EACP,gBAAM,SAAS,EAAE,MAAM,CAAC,OAAO,aAC7B,YAAG,SAAS,EAAE,MAAM,CAAC,IAAI,GAAI,EAC7B,YAAG,SAAS,EAAE,MAAM,CAAC,IAAI,GAAI,EAC7B,YAAG,SAAS,EAAE,MAAM,CAAC,MAAM,GAAI,IAC1B,IACN,GAEL,GACE,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.object{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d;animation:android-turn 9s ease-in-out infinite}@media(prefers-reduced-motion: reduce){.object{animation:none}}.object{transform:rotateX(10deg) rotateY(-28deg)}@keyframes android-turn{0%,100%{transform:rotateX(10deg) rotateY(-32deg) rotateZ(-2deg)}50%{transform:rotateX(6deg) rotateY(24deg) rotateZ(2deg)}}.phone{--width: 88px;--height: 172px;--depth: 9px;--radius: 12px;--front-amount: 4%;--edge-amount: 55%}.camera{position:absolute;left:50%;top:8px;width:6px;height:6px;margin-left:-3px;border-radius:50%;background:color-mix(in srgb, var(--foreground) 55%, transparent)}.tiles{position:absolute;inset:24px 11px 30px;display:grid;grid-template-columns:repeat(3, 1fr);gap:8px;transform-style:preserve-3d}.tiles i{aspect-ratio:1;border-radius:6px;border:1px solid color-mix(in srgb, var(--foreground) 45%, transparent);background:color-mix(in srgb, var(--foreground) 14%, transparent);animation:android-rise 2.8s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.tiles i{animation:none}}@keyframes android-rise{0%,45%,100%{transform:translateZ(0);background:color-mix(in srgb, var(--foreground) 14%, transparent)}20%{transform:translateZ(16px);background:color-mix(in srgb, var(--foreground) 40%, transparent)}}.buttons{position:absolute;left:18px;right:18px;bottom:9px;display:flex;align-items:center;justify-content:space-between}.buttons i{width:8px;height:8px;border:1.5px solid color-mix(in srgb, var(--foreground) 55%, transparent)}.back{border:0 !important;width:0 !important;height:0 !important;border-top:4.5px solid rgba(0,0,0,0) !important;border-bottom:4.5px solid rgba(0,0,0,0) !important;border-right:7px solid color-mix(in srgb, var(--foreground) 55%, transparent) !important}.home{border-radius:50%}.recent{border-radius:2px}
|