@uxfront/ui 0.4.1 → 0.4.2
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/package.json +2 -2
- package/src/components/UxHud.vue +1 -1
- package/src/components/UxSite.vue +1 -1
- package/src/styles/base.css +3 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uxfront/ui",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"description": "Vue components for the uxfront.com family of homepages: a scroll-driven WebGL scene with pinned chapters, a HUD, a header and a finale, in one look.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"components",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@uxfront/scene": "^0.
|
|
42
|
+
"@uxfront/scene": "^0.3.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@uxfront/typescript-config": "0.1.0",
|
package/src/components/UxHud.vue
CHANGED
|
@@ -24,7 +24,7 @@ const stats = computed(() => {
|
|
|
24
24
|
</p>
|
|
25
25
|
<p class="ux-hud__chapter" aria-hidden="true">
|
|
26
26
|
<span>{{ pad(state.chapter + 1) }} / {{ pad(labels.length) }}</span>
|
|
27
|
-
<span class="ux-hud__bar"><span class="ux-hud__fill" /></span>
|
|
27
|
+
<span class="ux-hud__bar"><span class="ux-hud__fill" data-progress /></span>
|
|
28
28
|
<span class="ux-hud__label">{{ labels[state.chapter] }}</span>
|
|
29
29
|
</p>
|
|
30
30
|
<button
|
|
@@ -39,7 +39,7 @@ onBeforeUnmount(() => experience.stop());
|
|
|
39
39
|
</script>
|
|
40
40
|
|
|
41
41
|
<template>
|
|
42
|
-
<div ref="root" class="ux-site">
|
|
42
|
+
<div ref="root" class="ux-site" :data-motion="experience.state.motion">
|
|
43
43
|
<a v-if="skipTo" class="ux-site__skip" :href="skipTo">{{ skipLabel }}</a>
|
|
44
44
|
<UxStage>
|
|
45
45
|
<template #fallback
|
package/src/styles/base.css
CHANGED
|
@@ -7,18 +7,9 @@
|
|
|
7
7
|
text-size-adjust: 100%;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
/*
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
height: auto;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.lenis.lenis-smooth {
|
|
17
|
-
scroll-behavior: auto !important;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.lenis.lenis-stopped {
|
|
21
|
-
overflow: clip;
|
|
10
|
+
/* In-page links glide while Motion is on. The scroll itself stays native. */
|
|
11
|
+
:root:has(.ux-site[data-motion="true"]) {
|
|
12
|
+
scroll-behavior: smooth;
|
|
22
13
|
}
|
|
23
14
|
|
|
24
15
|
:root:has(.ux-site) body {
|