Merge pull request #264 from mearashadowfax/update-view-transitions-starlight

feat:update view transitions
This commit is contained in:
Emil Gulamov 2024-11-19 18:39:54 +04:00 committed by GitHub
commit 67d1191792
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 6 deletions

2
package-lock.json generated
View file

@ -32,7 +32,7 @@
},
"devDependencies": {
"@tailwindcss/forms": "^0.5.9",
"astro-vtbot": "^1.10.6",
"astro-vtbot": "^1.10.7",
"prettier": "^3.3.3",
"prettier-plugin-astro": "^0.14.1",
"prettier-plugin-tailwindcss": "^0.6.8",

View file

@ -35,7 +35,7 @@
},
"devDependencies": {
"@tailwindcss/forms": "^0.5.9",
"astro-vtbot": "^1.10.6",
"astro-vtbot": "^1.10.7",
"prettier": "^3.3.3",
"prettier-plugin-astro": "^0.14.1",
"prettier-plugin-tailwindcss": "^0.6.8",

View file

@ -1,14 +1,14 @@
---
import type { Props } from "@astrojs/starlight/props";
import StarlightHead from "@astrojs/starlight/components/Head.astro";
import VtbotStarlight from "astro-vtbot/components/starlight/Base.astro";
import type { Props } from '@astrojs/starlight/props';
import StarlightHead from '@astrojs/starlight/components/Head.astro';
import VtbotStarlight from 'astro-vtbot/components/starlight/Base.astro';
// https://docs.astro.build/en/guides/view-transitions/#fallback-control
Astro.props.viewTransitionsFallback = "animate";
---
<VtbotStarlight {...Astro.props}>
<StarlightHead {...Astro.props} />
<StarlightHead {...Astro.props}><slot /></StarlightHead>
<script>
import "@scripts/lenisSmoothScroll.js";
</script>