added Astro SPA component

This commit is contained in:
liyunze 2024-01-10 13:43:19 +08:00
parent bda2f91911
commit c4822582ad
3 changed files with 6720 additions and 6709 deletions

13424
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -13,6 +13,7 @@
"@astrojs/svelte": "^4.0.2",
"@astrojs/tailwind": "^5.0.0",
"astro": "^3.2.0",
"astro-spa": "^1.3.9",
"svelte": "^4.2.1",
"tailwindcss": "^3.3.3"
},

View file

@ -1,4 +1,7 @@
---
// @ts-ignore
import { Spa } from "astro-spa";
interface Props {
title: string;
}
@ -26,6 +29,7 @@ const { title } = Astro.props;
</head>
<body>
<slot />
<Spa />
</body>
</html>
<style is:global>