Skip to content

Commit

Permalink
feat: add page load progress
Browse files Browse the repository at this point in the history
  • Loading branch information
sunshineLixun committed Apr 28, 2024
1 parent 95dd107 commit 092432c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
10 changes: 10 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"@types/react": "^18.2.67",
"@types/react-dom": "^18.2.22",
"astro": "^4.5.5",
"astro-loading-indicator": "^0.4.0",
"colorjs.io": "^0.5.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand Down
4 changes: 4 additions & 0 deletions src/layouts/layout.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
import "@/styles/globals.css";
import "@fontsource/merriweather";
import { ViewTransitions } from "astro:transitions";
import LoadingIndicator from "astro-loading-indicator/component";
---

<!doctype html>
Expand All @@ -11,6 +13,8 @@ import "@fontsource/merriweather";
<meta name="viewport" content="width=device-width" />
<meta name="generator" content={Astro.generator} />
<title>Astro</title>
<ViewTransitions />
<LoadingIndicator color="#7e22ce" />
</head>
<body class="mx-auto max-w-2xl bg-[--bg] px-5 py-12 text-[--text]">
<slot />
Expand Down

0 comments on commit 092432c

Please sign in to comment.