Skip to content

Commit

Permalink
feat: loading page
Browse files Browse the repository at this point in the history
  • Loading branch information
mrevanzak committed May 6, 2024
1 parent 35eac8b commit 98e7de2
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 1,578 deletions.
10 changes: 10 additions & 0 deletions apps/web/src/app/loading.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { Spinner } from "@tanya.in/ui/spinner";

export default function Loading() {
return (
<div className="flex min-h-screen flex-col items-center justify-center bg-background text-center font-sans text-foreground antialiased ">
<Spinner size="lg" />
<h3 className="mt-8">Loading...</h3>
</div>
);
}
Binary file modified bun.lockb
Binary file not shown.
1 change: 1 addition & 0 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"@nextui-org/button": "^2.0.31",
"@nextui-org/dropdown": "^2.1.23",
"@nextui-org/input": "^2.1.21",
"@nextui-org/spinner": "^2.0.28",
"@nextui-org/system": "^2.1.2",
"@nextui-org/theme": "^2.2.3",
"@radix-ui/react-dropdown-menu": "^2.0.6",
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/spinner.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "@nextui-org/spinner";
2 changes: 1 addition & 1 deletion packages/ui/tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
darkMode: ["class"],
content: [
"src/**/*.{ts,tsx}",
"../../node_modules/@nextui-org/theme/dist/components/(button|dropdown|input).js",
"../../node_modules/@nextui-org/theme/dist/components/(button|dropdown|input|spinner).js",
],
theme: {
container: {
Expand Down
Loading

0 comments on commit 98e7de2

Please sign in to comment.