Skip to content

Commit

Permalink
feat: use ViewTransitions of Astro
Browse files Browse the repository at this point in the history
  • Loading branch information
jtsang4 committed Dec 21, 2023
1 parent 493aa1e commit d99b13d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/layouts/Layout.astro
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
import { ViewTransitions } from "astro:transitions"
import { SITE } from "@config"
import Callout from "@components/Callout.astro"
import "../styles/base.css"
Expand Down Expand Up @@ -85,6 +86,7 @@ const socialImageURL = new URL(
}

<script is:inline src="/toggle-theme.js"></script>
<ViewTransitions />
</head>
<body>
<slot />
Expand All @@ -111,11 +113,9 @@ const socialImageURL = new URL(
/>
)
}
</body>
</body><style>
.hide {
display: none;
}
</style>
</html>

<style>
.hide {
display: none;
}
</style>

0 comments on commit d99b13d

Please sign in to comment.