Skip to content

Commit

Permalink
add loading
Browse files Browse the repository at this point in the history
  • Loading branch information
ocitocit committed Oct 17, 2023
1 parent 6a8e1f2 commit c0b7ba3
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/loading.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import Loader from "@/components/Loader";

const Loading = () => {
<div className="bg-red-950">Loading...</div>
return (
<Loader />
)
}

export default Loading;
24 changes: 24 additions & 0 deletions components/Loader.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
'use client';

import { PuffLoader } from "react-spinners";

const Loader = () => {
return (
<div
className="
h-[70vh]
flex
flex-col
justify-center
items-center
"
>
<PuffLoader
size={100}
color="red"
/>
</div>
)
}

export default Loader

0 comments on commit c0b7ba3

Please sign in to comment.