fix: replace deprecated astro transitions component
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
import "@/styles/global.css"
|
import "@/styles/global.css"
|
||||||
import { ViewTransitions } from "astro:transitions"
|
import { ClientRouter } from "astro:transitions"
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
title?: string
|
title?: string
|
||||||
@@ -25,7 +25,7 @@ const {
|
|||||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||||
<link href="https://fonts.googleapis.com/css2?family=VT323&display=swap" rel="stylesheet" />
|
<link href="https://fonts.googleapis.com/css2?family=VT323&display=swap" rel="stylesheet" />
|
||||||
<ViewTransitions />
|
<ClientRouter />
|
||||||
<script is:inline>
|
<script is:inline>
|
||||||
;(function () {
|
;(function () {
|
||||||
const theme = localStorage.getItem("theme")
|
const theme = localStorage.getItem("theme")
|
||||||
|
|||||||
Reference in New Issue
Block a user