Skip to content

Commit

Permalink
feat(site/blog): add nextjs-toploader
Browse files Browse the repository at this point in the history
  • Loading branch information
qhanw committed Oct 19, 2023
1 parent 4af23a6 commit 55e0f04
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 59 deletions.
23 changes: 0 additions & 23 deletions site/blog/app/posts/[slug]/loading.tsx

This file was deleted.

7 changes: 7 additions & 0 deletions site/blog/app/posts/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import NextTopLoader from "nextjs-toploader";
import Footer from "@/app/components/Footer";
export default function PostsLayout({
children,
Expand All @@ -6,6 +7,12 @@ export default function PostsLayout({
}) {
return (
<>
<NextTopLoader
color="rgba(156,163,175,0.45)"
height={2}
showSpinner={false}
shadow={false}
/>
{children}
<Footer className="prose mx-auto" />
</>
Expand Down
20 changes: 0 additions & 20 deletions site/blog/app/posts/loading.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion site/blog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"gray-matter": "^4.0.3",
"next": "13.5.6",
"next-mdx-remote": "^4.4.1",
"nextjs-toploader": "^1.5.3",
"react": "18.2.0",
"react-content-loader": "^6.2.1",
"react-dom": "18.2.0",
"react-use": "^17.4.0",
"reading-time": "^1.5.0",
Expand Down
41 changes: 26 additions & 15 deletions site/blog/pnpm-lock.yaml

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

1 comment on commit 55e0f04

@vercel
Copy link

@vercel vercel bot commented on 55e0f04 Oct 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

qhan – ./

qhan-git-main-qhanw.vercel.app
qhan.wang
qhan-qhanw.vercel.app

Please sign in to comment.