Merge pull request #264 from mearashadowfax/update-view-transitions-starlight
feat:update view transitions
This commit is contained in:
commit
67d1191792
3 changed files with 6 additions and 6 deletions
2
package-lock.json
generated
2
package-lock.json
generated
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue