feat:update view transitions
This commit is contained in:
parent
f695c74281
commit
ab98f76378
3 changed files with 6 additions and 6 deletions
2
package-lock.json
generated
2
package-lock.json
generated
|
@ -32,7 +32,7 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@tailwindcss/forms": "^0.5.9",
|
"@tailwindcss/forms": "^0.5.9",
|
||||||
"astro-vtbot": "^1.10.6",
|
"astro-vtbot": "^1.10.7",
|
||||||
"prettier": "^3.3.3",
|
"prettier": "^3.3.3",
|
||||||
"prettier-plugin-astro": "^0.14.1",
|
"prettier-plugin-astro": "^0.14.1",
|
||||||
"prettier-plugin-tailwindcss": "^0.6.8",
|
"prettier-plugin-tailwindcss": "^0.6.8",
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@tailwindcss/forms": "^0.5.9",
|
"@tailwindcss/forms": "^0.5.9",
|
||||||
"astro-vtbot": "^1.10.6",
|
"astro-vtbot": "^1.10.7",
|
||||||
"prettier": "^3.3.3",
|
"prettier": "^3.3.3",
|
||||||
"prettier-plugin-astro": "^0.14.1",
|
"prettier-plugin-astro": "^0.14.1",
|
||||||
"prettier-plugin-tailwindcss": "^0.6.8",
|
"prettier-plugin-tailwindcss": "^0.6.8",
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
---
|
---
|
||||||
import type { Props } from "@astrojs/starlight/props";
|
import type { Props } from '@astrojs/starlight/props';
|
||||||
import StarlightHead from "@astrojs/starlight/components/Head.astro";
|
import StarlightHead from '@astrojs/starlight/components/Head.astro';
|
||||||
import VtbotStarlight from "astro-vtbot/components/starlight/Base.astro";
|
import VtbotStarlight from 'astro-vtbot/components/starlight/Base.astro';
|
||||||
|
|
||||||
// https://docs.astro.build/en/guides/view-transitions/#fallback-control
|
// https://docs.astro.build/en/guides/view-transitions/#fallback-control
|
||||||
Astro.props.viewTransitionsFallback = "animate";
|
Astro.props.viewTransitionsFallback = "animate";
|
||||||
---
|
---
|
||||||
|
|
||||||
<VtbotStarlight {...Astro.props}>
|
<VtbotStarlight {...Astro.props}>
|
||||||
<StarlightHead {...Astro.props} />
|
<StarlightHead {...Astro.props}><slot /></StarlightHead>
|
||||||
<script>
|
<script>
|
||||||
import "@scripts/lenisSmoothScroll.js";
|
import "@scripts/lenisSmoothScroll.js";
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Add table
Reference in a new issue