kmcom-nuxt-layers 2.2.0 → 2.2.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/layers/animations/app/components/Motion/CountUp.vue +30 -30
- package/layers/animations/app/components/Motion/Magnetic.vue +14 -14
- package/layers/animations/app/components/Motion/Marquee.vue +59 -62
- package/layers/animations/app/components/Motion/MarqueeText.vue +2 -2
- package/layers/animations/app/components/Motion/Staggered.vue +45 -49
- package/layers/animations/app/components/Motion/TextReveal.vue +21 -19
- package/layers/animations/app/components/Motion/Tilt.vue +13 -13
- package/layers/animations/app/components/Motion/VelocityEffect.vue +80 -80
- package/layers/animations/app/composables/useCountUp.ts +1 -1
- package/layers/animations/app/composables/useMarqueeVelocity.ts +2 -2
- package/layers/canvas/app/components/ShaderCanvas.vue +42 -49
- package/layers/canvas/app/composables/useRendererCapabilities.ts +29 -21
- package/layers/canvas/app/composables/useShaderTime.ts +4 -5
- package/layers/canvas/app/types/renderer.ts +5 -0
- package/layers/content/app/components/Blog/Article.vue +10 -7
- package/layers/content/app/components/Blog/Card.vue +0 -1
- package/layers/content/app/components/Blog/List.vue +2 -4
- package/layers/content/app/components/Gallery/AmbientImage.vue +0 -1
- package/layers/content/app/components/Gallery/Card.vue +0 -1
- package/layers/content/app/components/Gallery/Detail.vue +0 -2
- package/layers/content/app/components/Gallery/Grid.vue +0 -2
- package/layers/content/app/components/Gallery/ImageDetail.vue +0 -2
- package/layers/content/app/components/Gallery/Lightbox.vue +1 -6
- package/layers/content/app/components/NuxtContent/Detail.vue +3 -4
- package/layers/content/app/components/NuxtContent/List.vue +0 -1
- package/layers/content/app/components/NuxtContent/Surround.vue +0 -1
- package/layers/content/app/components/NuxtContent/Toc.vue +0 -1
- package/layers/content/app/components/Portfolio/Card.vue +0 -1
- package/layers/content/app/components/Portfolio/ColorPalette.vue +0 -1
- package/layers/content/app/components/Portfolio/Detail.vue +2 -4
- package/layers/content/app/components/Portfolio/ItemPage.vue +3 -1
- package/layers/content/app/components/Portfolio/List.vue +20 -5
- package/layers/content/app/components/Portfolio/Typography.vue +0 -1
- package/layers/content/app/components/content/Figure.vue +0 -1
- package/layers/content/app/composables/createPortfolioComposables.ts +21 -7
- package/layers/content/app/composables/useCollectionItem.ts +2 -3
- package/layers/content/app/composables/useCollectionSurround.ts +2 -3
- package/layers/content/app/composables/useContentPage.ts +0 -2
- package/layers/content/app/composables/useGalleryItems.ts +0 -2
- package/layers/content/app/composables/usePortfolioItems.ts +0 -2
- package/layers/content/app/types/app-config.d.ts +3 -1
- package/layers/content/app/types/collections.d.ts +46 -0
- package/layers/content/nuxt.config.ts +0 -1
- package/layers/core/app/components/ErrorBoundary.vue +0 -3
- package/layers/core/app/composables/useBrowser.ts +0 -1
- package/layers/core/app/composables/useCache.ts +0 -3
- package/layers/core/app/composables/useErrorLog.ts +0 -2
- package/layers/core/app/composables/useFeatures.ts +0 -3
- package/layers/core/app/composables/useLoading.ts +16 -15
- package/layers/core/app/composables/useNetworkInfo.ts +0 -2
- package/layers/core/app/composables/usePWAInfo.ts +0 -1
- package/layers/core/app/composables/useRendering.ts +0 -2
- package/layers/core/app/composables/useScreen.ts +0 -2
- package/layers/core/app/composables/useScrollGuard.ts +44 -44
- package/layers/core/app/layouts/default.vue +0 -1
- package/layers/core/app/plugins/error-handler.ts +4 -2
- package/layers/core/app/plugins/feature-detection.client.ts +4 -4
- package/layers/core/app/plugins/init.ts +4 -6
- package/layers/core/app/plugins/loading.client.ts +4 -3
- package/layers/core/app/plugins/scroll-guard.client.ts +4 -4
- package/layers/core/app/types/app-config.d.ts +1 -1
- package/layers/core/app/types/runtime-config.ts +13 -1
- package/layers/core/app/utils/helpers.ts +0 -4
- package/layers/feeds/app/app.config.ts +1 -1
- package/layers/feeds/app/plugins/feed-head.ts +4 -3
- package/layers/feeds/package.json +1 -1
- package/layers/forms/app/components/Form/Contact.vue +0 -2
- package/layers/forms/app/components/Form/Field.vue +0 -1
- package/layers/forms/app/composables/useFormSchema.ts +0 -1
- package/layers/forms/app/types/app-config.d.ts +1 -1
- package/layers/layout/app/components/Layout/Grid/Item.vue +0 -3
- package/layers/layout/app/components/Layout/Page/Container.vue +0 -4
- package/layers/layout/app/components/Layout/Page/Header.vue +0 -1
- package/layers/layout/app/components/Layout/Page/index.vue +0 -1
- package/layers/layout/app/components/Layout/Section/Gallery.vue +0 -1
- package/layers/layout/app/components/Layout/Section/Hero.vue +0 -3
- package/layers/layout/app/components/Layout/Section/Stack.vue +0 -3
- package/layers/layout/app/components/Layout/Section/Title.vue +0 -1
- package/layers/layout/app/composables/useGridConfig.ts +0 -1
- package/layers/layout/app/types/app-config.d.ts +6 -3
- package/layers/navigation/app/app.config.ts +1 -2
- package/layers/navigation/app/components/Links/Group.vue +0 -4
- package/layers/navigation/app/components/Links/Named.vue +0 -4
- package/layers/navigation/app/composables/mastNav.ts +0 -1
- package/layers/navigation/app/composables/toast.ts +0 -1
- package/layers/navigation/app/composables/useSite.ts +0 -1
- package/layers/navigation/app/utils/createModal.ts +0 -1
- package/layers/page-transitions/app/app.config.ts +1 -1
- package/layers/page-transitions/app/plugins/page-transitions.client.ts +4 -2
- package/layers/routing/app/composables/useRoutingConfig.ts +0 -1
- package/layers/routing/app/plugins/feature-flags.client.ts +4 -2
- package/layers/routing/app/plugins/scroll-routing.client.ts +4 -2
- package/layers/routing/app/types/app-config.d.ts +1 -2
- package/layers/routing/nuxt.config.ts +0 -1
- package/layers/scripts/app/app.config.ts +1 -2
- package/layers/scripts/app/composables/useAnalytics.ts +6 -6
- package/layers/scripts/app/composables/useGtm.ts +4 -4
- package/layers/scripts/app/composables/useScriptLoader.ts +12 -1
- package/layers/scroll/app/components/Motion/HorizontalScroll.vue +4 -1
- package/layers/scroll/app/components/Motion/Parallax.vue +38 -42
- package/layers/scroll/app/components/Motion/PinnedSection.vue +4 -1
- package/layers/scroll/app/components/Motion/ScrollLink.vue +26 -29
- package/layers/scroll/app/components/Motion/ScrollProgress.vue +38 -44
- package/layers/scroll/app/components/Motion/ScrollScene.vue +0 -1
- package/layers/scroll/app/components/Motion/ScrollStats.vue +19 -23
- package/layers/scroll/app/composables/useSmoothScroll.ts +21 -24
- package/layers/scroll/app/plugins/locomotive-scroll.client.ts +5 -2
- package/layers/seo/app/app.config.ts +0 -1
- package/layers/seo/app/composables/useSeoConfig.ts +0 -1
- package/layers/shader/app/components/Effect/PostProcessing.vue +3 -13
- package/layers/shader/app/components/Material/AmbientAurora.client.vue +41 -47
- package/layers/shader/app/components/Material/AmbientFlow.client.vue +47 -56
- package/layers/shader/app/components/Material/AmbientGradientMesh.client.vue +45 -51
- package/layers/shader/app/components/Material/AmbientNebula.client.vue +47 -53
- package/layers/shader/app/components/Material/AmbientOcean.client.vue +40 -46
- package/layers/shader/app/components/Material/Fresnel.client.vue +24 -29
- package/layers/shader/app/components/Material/Gradient.client.vue +61 -67
- package/layers/shader/app/components/Material/Image.client.vue +65 -71
- package/layers/shader/app/components/Material/Node.client.vue +46 -46
- package/layers/shader/app/components/Material/Noise.client.vue +48 -54
- package/layers/shader/app/components/Mesh/Plane.vue +15 -20
- package/layers/shader/app/components/Node/Color.client.vue +3 -4
- package/layers/shader/app/components/Node/Fresnel.client.vue +17 -26
- package/layers/shader/app/components/Node/Gradient.client.vue +36 -42
- package/layers/shader/app/components/Node/Mix.client.vue +13 -19
- package/layers/shader/app/components/Node/Noise.client.vue +0 -3
- package/layers/shader/app/components/Pipeline/ACESTonemap.client.vue +0 -2
- package/layers/shader/app/components/Pipeline/AddBlend.client.vue +15 -16
- package/layers/shader/app/components/Pipeline/AgedFilm.client.vue +27 -28
- package/layers/shader/app/components/Pipeline/Aurora.client.vue +37 -44
- package/layers/shader/app/components/Pipeline/BilinearGradient.client.vue +26 -33
- package/layers/shader/app/components/Pipeline/BillowNoise.client.vue +22 -23
- package/layers/shader/app/components/Pipeline/BrightnessContrast.client.vue +16 -20
- package/layers/shader/app/components/Pipeline/CellularNoise.client.vue +22 -23
- package/layers/shader/app/components/Pipeline/ChannelMixer.client.vue +28 -35
- package/layers/shader/app/components/Pipeline/ChebyshevNoiseField.client.vue +31 -31
- package/layers/shader/app/components/Pipeline/Checkerboard.client.vue +21 -23
- package/layers/shader/app/components/Pipeline/ChromaticAberration.client.vue +21 -23
- package/layers/shader/app/components/Pipeline/ChromaticScreenWaves.client.vue +31 -30
- package/layers/shader/app/components/Pipeline/Circle.client.vue +22 -23
- package/layers/shader/app/components/Pipeline/Clouds.client.vue +36 -43
- package/layers/shader/app/components/Pipeline/ColorBurnBlend.client.vue +15 -17
- package/layers/shader/app/components/Pipeline/ColorDodgeBlend.client.vue +15 -17
- package/layers/shader/app/components/Pipeline/ColourRamp.client.vue +28 -35
- package/layers/shader/app/components/Pipeline/ComplexPlaneField.client.vue +31 -38
- package/layers/shader/app/components/Pipeline/ConicGradient.client.vue +19 -21
- package/layers/shader/app/components/Pipeline/CosinePalette.client.vue +42 -49
- package/layers/shader/app/components/Pipeline/CoverageAlpha.client.vue +0 -4
- package/layers/shader/app/components/Pipeline/Cross.client.vue +28 -28
- package/layers/shader/app/components/Pipeline/CurlNoise.client.vue +26 -27
- package/layers/shader/app/components/Pipeline/DarkenBlend.client.vue +15 -17
- package/layers/shader/app/components/Pipeline/DayNightCycle.client.vue +26 -27
- package/layers/shader/app/components/Pipeline/Desaturate.client.vue +8 -15
- package/layers/shader/app/components/Pipeline/DiagonalGradient.client.vue +19 -21
- package/layers/shader/app/components/Pipeline/DiamondGradient.client.vue +19 -21
- package/layers/shader/app/components/Pipeline/DifferenceBlend.client.vue +15 -17
- package/layers/shader/app/components/Pipeline/DivideBlend.client.vue +14 -17
- package/layers/shader/app/components/Pipeline/DomainWarpedNoise.client.vue +30 -37
- package/layers/shader/app/components/Pipeline/Dots.client.vue +26 -33
- package/layers/shader/app/components/Pipeline/DuoTone.client.vue +16 -19
- package/layers/shader/app/components/Pipeline/ExclusionBlend.client.vue +14 -17
- package/layers/shader/app/components/Pipeline/ExponentialFog.client.vue +21 -23
- package/layers/shader/app/components/Pipeline/Exposure.client.vue +8 -15
- package/layers/shader/app/components/Pipeline/FBMNoise.client.vue +28 -36
- package/layers/shader/app/components/Pipeline/FilmBurn.client.vue +27 -28
- package/layers/shader/app/components/Pipeline/FilmGrain.client.vue +29 -29
- package/layers/shader/app/components/Pipeline/FisheyeRay.client.vue +11 -18
- package/layers/shader/app/components/Pipeline/Flame.client.vue +26 -27
- package/layers/shader/app/components/Pipeline/FocalGradient.client.vue +24 -25
- package/layers/shader/app/components/Pipeline/Gamma.client.vue +8 -14
- package/layers/shader/app/components/Pipeline/GodRays.client.vue +32 -39
- package/layers/shader/app/components/Pipeline/GradientNoise.client.vue +22 -22
- package/layers/shader/app/components/Pipeline/Grain.client.vue +34 -41
- package/layers/shader/app/components/Pipeline/Grid.client.vue +24 -24
- package/layers/shader/app/components/Pipeline/Halation.client.vue +22 -24
- package/layers/shader/app/components/Pipeline/Halftone.client.vue +16 -18
- package/layers/shader/app/components/Pipeline/HardLightBlend.client.vue +15 -16
- package/layers/shader/app/components/Pipeline/Haze.client.vue +22 -24
- package/layers/shader/app/components/Pipeline/Hexagon.client.vue +22 -22
- package/layers/shader/app/components/Pipeline/Hue.client.vue +8 -12
- package/layers/shader/app/components/Pipeline/Invert.client.vue +0 -1
- package/layers/shader/app/components/Pipeline/LensFlare.client.vue +27 -25
- package/layers/shader/app/components/Pipeline/LightenBlend.client.vue +15 -14
- package/layers/shader/app/components/Pipeline/LinearGradient.client.vue +17 -21
- package/layers/shader/app/components/Pipeline/LinearGradient4.client.vue +29 -33
- package/layers/shader/app/components/Pipeline/LinearToSRGB.client.vue +8 -12
- package/layers/shader/app/components/Pipeline/Marble.client.vue +41 -47
- package/layers/shader/app/components/Pipeline/MixBlend.client.vue +21 -27
- package/layers/shader/app/components/Pipeline/MonochromeTint.client.vue +16 -21
- package/layers/shader/app/components/Pipeline/MultiplyBlend.client.vue +15 -16
- package/layers/shader/app/components/Pipeline/NoisyGradient.client.vue +34 -40
- package/layers/shader/app/components/Pipeline/NoisyGradientBlend.client.vue +54 -60
- package/layers/shader/app/components/Pipeline/OverlayBlend.client.vue +15 -16
- package/layers/shader/app/components/Pipeline/PaperTexture.client.vue +22 -24
- package/layers/shader/app/components/Pipeline/Polygon.client.vue +32 -39
- package/layers/shader/app/components/Pipeline/Posterise.client.vue +8 -14
- package/layers/shader/app/components/Pipeline/RadialGradient.client.vue +18 -24
- package/layers/shader/app/components/Pipeline/RayAutoOrbit.client.vue +16 -18
- package/layers/shader/app/components/Pipeline/RayMouseOrbit.client.vue +16 -18
- package/layers/shader/app/components/Pipeline/RayRotateX.client.vue +8 -14
- package/layers/shader/app/components/Pipeline/RayRotateY.client.vue +8 -14
- package/layers/shader/app/components/Pipeline/RayRotateZ.client.vue +8 -14
- package/layers/shader/app/components/Pipeline/RayTiltBasis.client.vue +21 -22
- package/layers/shader/app/components/Pipeline/RaymarchTunnel.client.vue +34 -40
- package/layers/shader/app/components/Pipeline/Rectangle.client.vue +30 -36
- package/layers/shader/app/components/Pipeline/ReinhardTonemap.client.vue +0 -3
- package/layers/shader/app/components/Pipeline/RidgedNoise.client.vue +22 -22
- package/layers/shader/app/components/Pipeline/Ring.client.vue +26 -32
- package/layers/shader/app/components/Pipeline/RingField.client.vue +36 -33
- package/layers/shader/app/components/Pipeline/RisographGrain.client.vue +29 -35
- package/layers/shader/app/components/Pipeline/RotatedGradientBlend.client.vue +29 -35
- package/layers/shader/app/components/Pipeline/SDFColourMask.client.vue +15 -18
- package/layers/shader/app/components/Pipeline/SDFRadialMask.client.vue +16 -18
- package/layers/shader/app/components/Pipeline/SRGBToLinear.client.vue +8 -14
- package/layers/shader/app/components/Pipeline/Saturation.client.vue +8 -14
- package/layers/shader/app/components/Pipeline/Scanlines.client.vue +21 -22
- package/layers/shader/app/components/Pipeline/ScreenBlend.client.vue +15 -16
- package/layers/shader/app/components/Pipeline/ShaderDebugger.client.vue +28 -29
- package/layers/shader/app/components/Pipeline/SimplexNoise.client.vue +25 -32
- package/layers/shader/app/components/Pipeline/SkyAtmosphere.client.vue +37 -44
- package/layers/shader/app/components/Pipeline/SoftLightBlend.client.vue +15 -16
- package/layers/shader/app/components/Pipeline/SolidColour.client.vue +7 -16
- package/layers/shader/app/components/Pipeline/SplitTone.client.vue +27 -28
- package/layers/shader/app/components/Pipeline/Star.client.vue +31 -37
- package/layers/shader/app/components/Pipeline/Starfield.client.vue +29 -27
- package/layers/shader/app/components/Pipeline/Stripes.client.vue +28 -27
- package/layers/shader/app/components/Pipeline/SubtractBlend.client.vue +15 -16
- package/layers/shader/app/components/Pipeline/TanhTonemap.client.vue +8 -17
- package/layers/shader/app/components/Pipeline/Threshold.client.vue +8 -14
- package/layers/shader/app/components/Pipeline/Tint.client.vue +16 -18
- package/layers/shader/app/components/Pipeline/Triangle.client.vue +22 -22
- package/layers/shader/app/components/Pipeline/UVAspectCorrect.client.vue +0 -2
- package/layers/shader/app/components/Pipeline/UVBreath.client.vue +16 -18
- package/layers/shader/app/components/Pipeline/UVBulge.client.vue +16 -18
- package/layers/shader/app/components/Pipeline/UVClamp.client.vue +0 -3
- package/layers/shader/app/components/Pipeline/UVColumnOffset.client.vue +16 -18
- package/layers/shader/app/components/Pipeline/UVFlipX.client.vue +0 -3
- package/layers/shader/app/components/Pipeline/UVFlipXY.client.vue +0 -3
- package/layers/shader/app/components/Pipeline/UVFlipY.client.vue +0 -3
- package/layers/shader/app/components/Pipeline/UVFractBand.client.vue +16 -18
- package/layers/shader/app/components/Pipeline/UVMousePull.client.vue +8 -14
- package/layers/shader/app/components/Pipeline/UVNoiseRotate.client.vue +21 -27
- package/layers/shader/app/components/Pipeline/UVNoiseWarp.client.vue +21 -22
- package/layers/shader/app/components/Pipeline/UVOrbit.client.vue +8 -14
- package/layers/shader/app/components/Pipeline/UVParallax.client.vue +8 -18
- package/layers/shader/app/components/Pipeline/UVPixelate.client.vue +7 -14
- package/layers/shader/app/components/Pipeline/UVPulse.client.vue +16 -18
- package/layers/shader/app/components/Pipeline/UVRipple.client.vue +26 -26
- package/layers/shader/app/components/Pipeline/UVRotate.client.vue +16 -22
- package/layers/shader/app/components/Pipeline/UVScale.client.vue +16 -22
- package/layers/shader/app/components/Pipeline/UVScroll.client.vue +12 -18
- package/layers/shader/app/components/Pipeline/UVScrollX.client.vue +8 -14
- package/layers/shader/app/components/Pipeline/UVScrollY.client.vue +8 -14
- package/layers/shader/app/components/Pipeline/UVShear.client.vue +16 -18
- package/layers/shader/app/components/Pipeline/UVSineWarpXY.client.vue +18 -24
- package/layers/shader/app/components/Pipeline/UVSwapAxes.client.vue +0 -3
- package/layers/shader/app/components/Pipeline/UVTile.client.vue +12 -18
- package/layers/shader/app/components/Pipeline/UVTwirl.client.vue +16 -18
- package/layers/shader/app/components/Pipeline/UVWarp.client.vue +21 -22
- package/layers/shader/app/components/Pipeline/VHSBleed.client.vue +27 -28
- package/layers/shader/app/components/Pipeline/ValueNoise.client.vue +22 -22
- package/layers/shader/app/components/Pipeline/Vibrance.client.vue +11 -17
- package/layers/shader/app/components/Pipeline/Vignette.client.vue +14 -20
- package/layers/shader/app/components/Pipeline/VoronoiEdges.client.vue +29 -28
- package/layers/shader/app/components/Pipeline/Water.client.vue +31 -37
- package/layers/shader/app/components/Pipeline/WaveBendLayer.client.vue +26 -32
- package/layers/shader/app/components/Pipeline/WaveColourLayer.client.vue +37 -36
- package/layers/shader/app/components/Pipeline/WhiteBalance.client.vue +23 -26
- package/layers/shader/app/components/Pipeline/Wood.client.vue +34 -40
- package/layers/shader/app/components/Preset/Aurora.client.vue +0 -7
- package/layers/shader/app/components/Preset/Flow.client.vue +15 -23
- package/layers/shader/app/components/Preset/GradientMesh.client.vue +15 -23
- package/layers/shader/app/components/Preset/Nebula.client.vue +15 -25
- package/layers/shader/app/components/Preset/Ocean.client.vue +15 -24
- package/layers/shader/app/components/Preset/ThemeAurora.client.vue +38 -47
- package/layers/shader/app/components/Preset/ThemeBubble.client.vue +38 -47
- package/layers/shader/app/components/Preset/ThemeFlow.client.vue +38 -47
- package/layers/shader/app/components/Preset/ThemeGradient.client.vue +38 -47
- package/layers/shader/app/components/Preset/ThemeLavaLamp.client.vue +38 -47
- package/layers/shader/app/components/Preset/ThemePlasma.client.vue +38 -47
- package/layers/shader/app/components/Preset/ThemeWave.client.vue +38 -47
- package/layers/shader/app/components/Shader/Background.client.vue +109 -75
- package/layers/shader/app/components/Shader/Debug.vue +4 -14
- package/layers/shader/app/components/Shader/Host.client.vue +7 -9
- package/layers/shader/app/components/Shader/Material.client.vue +8 -20
- package/layers/shader/app/components/Shader/Pipeline.client.vue +0 -6
- package/layers/shader/app/components/Shader/Runtime.client.vue +0 -5
- package/layers/shader/app/composables/useAmbientMaterials.ts +4 -9
- package/layers/shader/app/composables/useCSSColourUniform.ts +0 -4
- package/layers/shader/app/composables/useCSSFloatUniform.ts +0 -3
- package/layers/shader/app/composables/useShader.ts +1 -4
- package/layers/shader/app/composables/useShaderColor.ts +4 -6
- package/layers/shader/app/composables/useShaderFloat.ts +1 -3
- package/layers/shader/app/composables/useShaderGraph.ts +4 -5
- package/layers/shader/app/composables/useShaderRuntime.ts +0 -5
- package/layers/shader/app/composables/useShaderVec2.ts +4 -8
- package/layers/shader/app/composables/useSunDirectionUniform.ts +0 -6
- package/layers/shader/app/composables/useThemeColors.ts +0 -1
- package/layers/shader/app/composables/useUniforms.ts +25 -9
- package/layers/shader/app/plugins/shader.client.ts +4 -3
- package/layers/shader/app/shaders/common/blend.ts +2 -4
- package/layers/shader/app/shaders/common/complex.ts +0 -2
- package/layers/shader/app/shaders/common/effects.ts +5 -13
- package/layers/shader/app/shaders/common/grain.ts +2 -7
- package/layers/shader/app/shaders/common/lighting.ts +0 -3
- package/layers/shader/app/shaders/common/math.ts +12 -8
- package/layers/shader/app/shaders/common/noise.ts +48 -48
- package/layers/shader/app/shaders/common/noiseHelpers.ts +6 -6
- package/layers/shader/app/shaders/common/palette.ts +10 -11
- package/layers/shader/app/shaders/common/patterns.ts +1 -4
- package/layers/shader/app/shaders/common/sdf.ts +11 -7
- package/layers/shader/app/shaders/common/shapes.ts +25 -15
- package/layers/shader/app/shaders/common/tonemapping.ts +0 -2
- package/layers/shader/app/shaders/common/uv.ts +20 -29
- package/layers/shader/app/shaders/createMaterial.ts +2 -5
- package/layers/shader/app/shaders/layers/aurora.ts +14 -17
- package/layers/shader/app/shaders/layers/meshGradient.ts +13 -16
- package/layers/shader/app/shaders/layers/paperShading.ts +15 -19
- package/layers/shader/app/shaders/layers/shaderGradient.ts +18 -23
- package/layers/shader/app/shaders/layers/stripe.ts +14 -17
- package/layers/shader/app/shaders/types.ts +9 -1
- package/layers/shader/app/types/app-config.d.ts +1 -1
- package/layers/shader/app/types/tsl.ts +0 -1
- package/layers/shader/app/types/uniforms.ts +0 -1
- package/layers/shader/app/utils/tsl/animation.ts +50 -52
- package/layers/shader/app/utils/tsl/color.ts +20 -19
- package/layers/shader/app/utils/tsl/noise.ts +10 -12
- package/layers/shader/app/utils/tsl/oklch.ts +6 -7
- package/layers/shader/app/utils/tsl/patterns.ts +4 -6
- package/layers/shader/app/utils/tsl/tween.ts +2 -4
- package/layers/shader/app/utils/tsl/uv.ts +6 -6
- package/layers/theme/app/components/ThemePicker/AccentButton.vue +1 -3
- package/layers/theme/app/components/ThemePicker/Colors.vue +0 -1
- package/layers/theme/app/composables/useAccentColor.ts +0 -1
- package/layers/theme/app/plugins/theme.client.ts +4 -3
- package/layers/theme/app/types/app-config.d.ts +1 -2
- package/layers/transitions/app/components/Motion/Transition.vue +15 -22
- package/layers/typography/app/components/Typography/CodeBlock.vue +16 -19
- package/layers/typography/app/components/Typography/Headline.vue +46 -49
- package/layers/typography/app/components/Typography/HeadlineScreen.vue +36 -40
- package/layers/typography/app/components/Typography/QuoteBlock.vue +3 -4
- package/layers/typography/app/components/Typography/TextStroke.vue +15 -20
- package/layers/typography/app/components/Typography/index.vue +0 -4
- package/layers/typography/app/composables/typography.ts +9 -11
- package/layers/visual/app/app.config.ts +1 -2
- package/layers/visual/app/components/Accent/Blob.vue +0 -3
- package/layers/visual/app/components/Accent/Scene.vue +12 -17
- package/layers/visual/app/components/Base/Modal.vue +0 -1
- package/layers/visual/app/components/Gradient/Background.vue +10 -13
- package/layers/visual/app/components/Gradient/Text.vue +10 -13
- package/layers/visual/app/components/Media/Picture.vue +0 -1
- package/layers/visual/app/components/Progress/Bar.vue +0 -1
- package/layers/visual/app/components/Progress/Circular.vue +0 -1
- package/layers/visual/app/components/Tint/Overlay.vue +0 -2
- package/layers/visual/app/composables/gradient.ts +6 -11
- package/layers/visual/app/composables/picture.ts +0 -1
- package/layers/visual/app/composables/tint.ts +0 -1
- package/layers/visual/app/types/media.ts +0 -1
- package/package.json +2 -1
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
import type { GridConfig } from './layouts'
|
|
2
|
+
|
|
2
3
|
declare module '@nuxt/schema' {
|
|
3
|
-
|
|
4
|
+
interface AppConfigInput {
|
|
4
5
|
layoutLayer?: {
|
|
5
6
|
name?: string
|
|
6
7
|
ui?: {
|
|
7
|
-
grid?:
|
|
8
|
+
grid?: GridConfig
|
|
8
9
|
}
|
|
9
10
|
}
|
|
10
11
|
}
|
|
11
12
|
}
|
|
13
|
+
|
|
14
|
+
export {}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/consistent-type-assertions */
|
|
2
1
|
export default defineAppConfig({
|
|
3
2
|
site: {
|
|
4
3
|
title: '',
|
|
@@ -18,7 +17,7 @@ export default defineAppConfig({
|
|
|
18
17
|
})
|
|
19
18
|
|
|
20
19
|
declare module '@nuxt/schema' {
|
|
21
|
-
|
|
20
|
+
interface AppConfigInput {
|
|
22
21
|
site?: {
|
|
23
22
|
title?: string
|
|
24
23
|
subtitle?: string
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
<!-- eslint-disable vue/require-name-property -->
|
|
2
|
-
<!-- eslint-disable @typescript-eslint/ban-ts-comment -->
|
|
3
1
|
<script lang="ts">
|
|
4
|
-
// @ts-nocheck
|
|
5
|
-
// eslint-disable-next-line no-restricted-imports
|
|
6
2
|
import { cloneVNode, defineComponent, Fragment, h, ref, type VNode } from 'vue'
|
|
7
3
|
|
|
8
4
|
export default defineComponent({
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
<!-- eslint-disable @typescript-eslint/ban-ts-comment -->
|
|
2
1
|
<script setup lang="ts">
|
|
3
|
-
// @ts-nocheck
|
|
4
2
|
import type { UiColors } from '#layers/typography/types/colors'
|
|
5
3
|
|
|
6
4
|
const {
|
|
@@ -20,8 +18,6 @@
|
|
|
20
18
|
</script>
|
|
21
19
|
|
|
22
20
|
<template>
|
|
23
|
-
<!-- eslint-disable-next-line vue/no-duplicate-attr-inheritance -->
|
|
24
|
-
<!-- eslint-disable vue/no-duplicate-attr-inheritance -->
|
|
25
21
|
<ULink
|
|
26
22
|
:to="{ name: name, params: params, query: query }"
|
|
27
23
|
:variant
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export default defineNuxtPlugin({
|
|
2
|
+
name: 'page-transitions:page-transitions',
|
|
3
|
+
setup(nuxtApp) {
|
|
3
4
|
const appConfig = useAppConfig()
|
|
4
5
|
|
|
5
6
|
const defaultTransition = appConfig.pageTransitions?.default ?? 'fade'
|
|
@@ -11,4 +12,5 @@ export default defineNuxtPlugin((nuxtApp) => {
|
|
|
11
12
|
duration,
|
|
12
13
|
}
|
|
13
14
|
})
|
|
15
|
+
},
|
|
14
16
|
})
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
/* eslint-disable no-restricted-syntax */
|
|
2
1
|
import { useFeatureFlags } from '../composables/useFeatureFlags'
|
|
3
2
|
import type { FeatureValue } from '../types/routing'
|
|
4
3
|
|
|
5
|
-
export default defineNuxtPlugin(
|
|
4
|
+
export default defineNuxtPlugin({
|
|
5
|
+
name: 'routing:feature-flags',
|
|
6
|
+
async setup() {
|
|
6
7
|
const { config } = useRoutingConfig()
|
|
7
8
|
if (!config.runtimeFlags) return
|
|
8
9
|
|
|
@@ -13,4 +14,5 @@ export default defineNuxtPlugin(async () => {
|
|
|
13
14
|
} catch (e) {
|
|
14
15
|
if (config.debug) console.warn('[routing] Failed to fetch feature flags', e)
|
|
15
16
|
}
|
|
17
|
+
},
|
|
16
18
|
})
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export default defineNuxtPlugin({
|
|
2
|
+
name: 'routing:scroll-routing',
|
|
3
|
+
setup() {
|
|
3
4
|
const { config } = useRoutingConfig()
|
|
4
5
|
if (!config.scrollRouting.enabled) return
|
|
5
6
|
|
|
@@ -19,4 +20,5 @@ export default defineNuxtPlugin(() => {
|
|
|
19
20
|
onNuxtReady(() => {
|
|
20
21
|
document.querySelectorAll('[data-section]').forEach((el) => observer.observe(el))
|
|
21
22
|
})
|
|
23
|
+
},
|
|
22
24
|
})
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/consistent-type-assertions */
|
|
2
1
|
export default defineAppConfig({
|
|
3
2
|
scriptsLayer: {
|
|
4
3
|
consent: {
|
|
@@ -21,7 +20,7 @@ export default defineAppConfig({
|
|
|
21
20
|
})
|
|
22
21
|
|
|
23
22
|
declare module '@nuxt/schema' {
|
|
24
|
-
|
|
23
|
+
interface AppConfigInput {
|
|
25
24
|
scriptsLayer?: {
|
|
26
25
|
consent?: {
|
|
27
26
|
required?: boolean
|
|
@@ -16,10 +16,10 @@ export function useAnalytics(): AnalyticsProxy {
|
|
|
16
16
|
|
|
17
17
|
if (!provider || !id) return noop()
|
|
18
18
|
|
|
19
|
-
// Load
|
|
20
|
-
const trigger =
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
// Load on Nuxt ready unless consent is required and not yet granted
|
|
20
|
+
const trigger = consentRequired.value
|
|
21
|
+
? useScriptTriggerConsent({ consent: hasConsent })
|
|
22
|
+
: 'onNuxtReady'
|
|
23
23
|
|
|
24
24
|
if (provider === 'ga4') {
|
|
25
25
|
const ga = useScriptGoogleAnalytics({ id, scriptOptions: { trigger } })
|
|
@@ -32,7 +32,7 @@ export function useAnalytics(): AnalyticsProxy {
|
|
|
32
32
|
if (provider === 'plausible') {
|
|
33
33
|
const pl = useScriptPlausibleAnalytics({ domain: id, scriptOptions: { trigger } })
|
|
34
34
|
return {
|
|
35
|
-
track: (event) => pl.proxy.
|
|
35
|
+
track: (event, params) => pl.proxy.plausible(event, { props: params ?? {} }),
|
|
36
36
|
load: () => pl.load(),
|
|
37
37
|
}
|
|
38
38
|
}
|
|
@@ -40,7 +40,7 @@ export function useAnalytics(): AnalyticsProxy {
|
|
|
40
40
|
if (provider === 'fathom') {
|
|
41
41
|
const fa = useScriptFathomAnalytics({ site: id, scriptOptions: { trigger } })
|
|
42
42
|
return {
|
|
43
|
-
track: (event) => fa.proxy.trackEvent(event),
|
|
43
|
+
track: (event) => fa.proxy.trackEvent(event, { _value: 0 }),
|
|
44
44
|
load: () => fa.load(),
|
|
45
45
|
}
|
|
46
46
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
1
|
export function useGtm() {
|
|
3
2
|
const { scriptsLayer } = useAppConfig()
|
|
4
3
|
const { hasConsent, consentRequired } = useScriptsConsent()
|
|
@@ -8,9 +7,10 @@ export function useGtm() {
|
|
|
8
7
|
return { push: (_data: Record<string, unknown>) => {}, load: () => {} }
|
|
9
8
|
}
|
|
10
9
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
// Load on Nuxt ready unless consent is required and not yet granted
|
|
11
|
+
const trigger = consentRequired.value
|
|
12
|
+
? useScriptTriggerConsent({ consent: hasConsent })
|
|
13
|
+
: 'onNuxtReady'
|
|
14
14
|
|
|
15
15
|
const gtm = useScriptGoogleTagManager({ id: gtmConfig.id, scriptOptions: { trigger } })
|
|
16
16
|
|
|
@@ -8,6 +8,17 @@ type ScriptLoaderOptions = {
|
|
|
8
8
|
integrity?: string
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
+
function idleTrigger(): Promise<void> {
|
|
12
|
+
return new Promise((resolve) => {
|
|
13
|
+
if (!import.meta.client) return
|
|
14
|
+
if ('requestIdleCallback' in window) {
|
|
15
|
+
requestIdleCallback(() => resolve())
|
|
16
|
+
return
|
|
17
|
+
}
|
|
18
|
+
setTimeout(resolve, 1)
|
|
19
|
+
})
|
|
20
|
+
}
|
|
21
|
+
|
|
11
22
|
export function useScriptLoader(options: ScriptLoaderOptions) {
|
|
12
23
|
const { src, key, strategy = 'onNuxtReady', crossorigin, integrity } = options
|
|
13
24
|
|
|
@@ -19,7 +30,7 @@ export function useScriptLoader(options: ScriptLoaderOptions) {
|
|
|
19
30
|
integrity,
|
|
20
31
|
},
|
|
21
32
|
{
|
|
22
|
-
trigger: strategy,
|
|
33
|
+
trigger: strategy === 'idle' ? idleTrigger() : strategy,
|
|
23
34
|
}
|
|
24
35
|
)
|
|
25
36
|
|
|
@@ -1,41 +1,37 @@
|
|
|
1
|
-
<!-- eslint-disable vue/define-props-destructuring -->
|
|
2
1
|
<script setup lang="ts">
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
as: 'div',
|
|
37
|
-
}
|
|
38
|
-
)
|
|
2
|
+
const {
|
|
3
|
+
speed = 0.5,
|
|
4
|
+
direction = 'vertical',
|
|
5
|
+
rotate = 0,
|
|
6
|
+
scale = 0,
|
|
7
|
+
scrub = 0.5,
|
|
8
|
+
as = 'div',
|
|
9
|
+
} = defineProps<{
|
|
10
|
+
/**
|
|
11
|
+
* Parallax speed (-1 to 1, negative = slower than scroll)
|
|
12
|
+
*/
|
|
13
|
+
speed?: number
|
|
14
|
+
/**
|
|
15
|
+
* Direction of parallax movement
|
|
16
|
+
*/
|
|
17
|
+
direction?: 'vertical' | 'horizontal'
|
|
18
|
+
/**
|
|
19
|
+
* Enable rotation during parallax
|
|
20
|
+
*/
|
|
21
|
+
rotate?: number
|
|
22
|
+
/**
|
|
23
|
+
* Enable scale during parallax
|
|
24
|
+
*/
|
|
25
|
+
scale?: number
|
|
26
|
+
/**
|
|
27
|
+
* Scrub smoothness (0.1 = very smooth, 1 = instant)
|
|
28
|
+
*/
|
|
29
|
+
scrub?: number
|
|
30
|
+
/**
|
|
31
|
+
* Tag to render as
|
|
32
|
+
*/
|
|
33
|
+
as?: string
|
|
34
|
+
}>()
|
|
39
35
|
|
|
40
36
|
const { gsap } = useGsap()
|
|
41
37
|
|
|
@@ -45,23 +41,23 @@
|
|
|
45
41
|
onMounted(() => {
|
|
46
42
|
if (!containerRef.value || !contentRef.value) return
|
|
47
43
|
|
|
48
|
-
const yAmount =
|
|
49
|
-
const xAmount =
|
|
44
|
+
const yAmount = direction === 'vertical' ? speed * -200 : 0
|
|
45
|
+
const xAmount = direction === 'horizontal' ? speed * 200 : 0
|
|
50
46
|
|
|
51
47
|
const animationProps: gsap.TweenVars = {
|
|
52
48
|
scrollTrigger: {
|
|
53
49
|
trigger: containerRef.value,
|
|
54
50
|
start: 'top bottom',
|
|
55
51
|
end: 'bottom top',
|
|
56
|
-
scrub:
|
|
52
|
+
scrub: scrub,
|
|
57
53
|
},
|
|
58
54
|
ease: 'none',
|
|
59
55
|
}
|
|
60
56
|
|
|
61
57
|
if (yAmount !== 0) animationProps.y = yAmount
|
|
62
58
|
if (xAmount !== 0) animationProps.x = xAmount
|
|
63
|
-
if (
|
|
64
|
-
if (
|
|
59
|
+
if (rotate !== 0) animationProps.rotation = rotate
|
|
60
|
+
if (scale !== 0) animationProps.scale = 1 + scale
|
|
65
61
|
|
|
66
62
|
gsap.to(contentRef.value, animationProps)
|
|
67
63
|
})
|
|
@@ -1,30 +1,27 @@
|
|
|
1
|
-
<!-- eslint-disable vue/define-props-destructuring -->
|
|
2
1
|
<script setup lang="ts">
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
)
|
|
2
|
+
const {
|
|
3
|
+
to,
|
|
4
|
+
duration = 1.5,
|
|
5
|
+
offset = 0,
|
|
6
|
+
as = 'button',
|
|
7
|
+
} = defineProps<{
|
|
8
|
+
/**
|
|
9
|
+
* Target to scroll to (selector, element, or pixel position)
|
|
10
|
+
*/
|
|
11
|
+
to: string | number
|
|
12
|
+
/**
|
|
13
|
+
* Scroll duration in seconds
|
|
14
|
+
*/
|
|
15
|
+
duration?: number
|
|
16
|
+
/**
|
|
17
|
+
* Offset from target (negative = above target)
|
|
18
|
+
*/
|
|
19
|
+
offset?: number
|
|
20
|
+
/**
|
|
21
|
+
* Tag to render as
|
|
22
|
+
*/
|
|
23
|
+
as?: string
|
|
24
|
+
}>()
|
|
28
25
|
|
|
29
26
|
const emit = defineEmits<{
|
|
30
27
|
scrollStart: []
|
|
@@ -35,9 +32,9 @@
|
|
|
35
32
|
|
|
36
33
|
function handleClick() {
|
|
37
34
|
emit('scrollStart')
|
|
38
|
-
scrollTo(
|
|
39
|
-
duration:
|
|
40
|
-
offset:
|
|
35
|
+
scrollTo(to, {
|
|
36
|
+
duration: duration,
|
|
37
|
+
offset: offset,
|
|
41
38
|
onComplete: () => emit('scrollComplete'),
|
|
42
39
|
})
|
|
43
40
|
}
|
|
@@ -1,50 +1,44 @@
|
|
|
1
|
-
<!-- eslint-disable vue/no-boolean-default -->
|
|
2
|
-
<!-- eslint-disable @typescript-eslint/no-unused-vars -->
|
|
3
|
-
<!-- eslint-disable vue/define-props-destructuring -->
|
|
4
1
|
<script setup lang="ts">
|
|
5
2
|
defineOptions({ inheritAttrs: false })
|
|
6
3
|
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
height: 4,
|
|
46
|
-
}
|
|
47
|
-
)
|
|
4
|
+
const {
|
|
5
|
+
type = 'linear',
|
|
6
|
+
size = 120,
|
|
7
|
+
strokeWidth = 8,
|
|
8
|
+
showPercentage = true,
|
|
9
|
+
colors = ['var(--color-primary-500)', 'rgb(168, 85, 247)', 'rgb(236, 72, 153)'],
|
|
10
|
+
bgColor = 'rgb(31, 41, 55)',
|
|
11
|
+
height = 4,
|
|
12
|
+
} = defineProps<{
|
|
13
|
+
/**
|
|
14
|
+
* Display type: linear bar or circular
|
|
15
|
+
*/
|
|
16
|
+
type?: 'linear' | 'circular'
|
|
17
|
+
/**
|
|
18
|
+
* Size for circular progress (px)
|
|
19
|
+
*/
|
|
20
|
+
size?: number
|
|
21
|
+
/**
|
|
22
|
+
* Stroke width for circular progress
|
|
23
|
+
*/
|
|
24
|
+
strokeWidth?: number
|
|
25
|
+
/**
|
|
26
|
+
* Show percentage text
|
|
27
|
+
*/
|
|
28
|
+
showPercentage?: boolean
|
|
29
|
+
/**
|
|
30
|
+
* Gradient colors (start, middle, end)
|
|
31
|
+
*/
|
|
32
|
+
colors?: [string, string, string]
|
|
33
|
+
/**
|
|
34
|
+
* Background color
|
|
35
|
+
*/
|
|
36
|
+
bgColor?: string
|
|
37
|
+
/**
|
|
38
|
+
* Height for linear progress bar (px)
|
|
39
|
+
*/
|
|
40
|
+
height?: number
|
|
41
|
+
}>()
|
|
48
42
|
|
|
49
43
|
const { progress } = useSmoothScroll()
|
|
50
44
|
|
|
@@ -1,26 +1,22 @@
|
|
|
1
|
-
<!-- eslint-disable vue/define-props-destructuring -->
|
|
2
1
|
<script setup lang="ts">
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
compact: false,
|
|
22
|
-
}
|
|
23
|
-
)
|
|
2
|
+
const {
|
|
3
|
+
show = ['velocity', 'progress', 'direction'],
|
|
4
|
+
position = 'bottom-right',
|
|
5
|
+
compact = false,
|
|
6
|
+
} = defineProps<{
|
|
7
|
+
/**
|
|
8
|
+
* Which stats to show
|
|
9
|
+
*/
|
|
10
|
+
show?: ('velocity' | 'progress' | 'direction' | 'scrollY')[]
|
|
11
|
+
/**
|
|
12
|
+
* Position on screen
|
|
13
|
+
*/
|
|
14
|
+
position?: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right'
|
|
15
|
+
/**
|
|
16
|
+
* Use compact layout
|
|
17
|
+
*/
|
|
18
|
+
compact?: boolean
|
|
19
|
+
}>()
|
|
24
20
|
|
|
25
21
|
const { velocity, progress, direction, scrollY } = useSmoothScroll()
|
|
26
22
|
|
|
@@ -28,7 +24,7 @@
|
|
|
28
24
|
|
|
29
25
|
const positionClasses = computed(() => {
|
|
30
26
|
const classes = ['fixed', 'z-50']
|
|
31
|
-
switch (
|
|
27
|
+
switch (position) {
|
|
32
28
|
case 'top-left':
|
|
33
29
|
classes.push('top-4', 'left-4')
|
|
34
30
|
break
|