Skip to content

Commit 42983de

Browse files
committed
feat: add view transitions
1 parent 7ba8388 commit 42983de

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/layouts/BaseLayout.astro

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import "@fontsource-variable/jetbrains-mono";
33
import "./app.css";
44
import Footer from "~/components/Footer.astro";
55
import Navbar from "~/components/Navbar";
6+
import { ClientRouter } from "astro:transitions";
67
78
interface Props {
89
title?: string;
@@ -25,10 +26,11 @@ const {
2526
<title>{title}</title>
2627
<meta name="description" content={description} />
2728
<slot name="head" />
29+
<ClientRouter />
2830
</head>
2931
<body>
30-
<Navbar client:idle />
32+
<Navbar client:load />
3133
<slot />
32-
<Footer />
34+
<Footer transition:persist="footer" />
3335
</body>
3436
</html>

0 commit comments

Comments
 (0)