Skip to content

Commit 894da40

Browse files
Add utility functions, components, and global styles for UI enhancements
1 parent f9d1aaf commit 894da40

File tree

11 files changed

+737
-14
lines changed

11 files changed

+737
-14
lines changed

components.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"$schema": "https://ui.shadcn.com/schema.json",
3+
"style": "new-york",
4+
"rsc": true,
5+
"tsx": true,
6+
"tailwind": {
7+
"config": "",
8+
"css": "src/app/globals.css",
9+
"baseColor": "neutral",
10+
"cssVariables": true,
11+
"prefix": ""
12+
},
13+
"aliases": {
14+
"components": "@/components",
15+
"utils": "@/lib/utils",
16+
"ui": "@/components/ui",
17+
"lib": "@/lib",
18+
"hooks": "@/hooks"
19+
},
20+
"iconLibrary": "lucide"
21+
}

package-lock.json

Lines changed: 192 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,21 @@
99
"lint": "next lint"
1010
},
1111
"dependencies": {
12+
"@radix-ui/react-label": "^2.1.2",
13+
"@tabler/icons": "^3.31.0",
14+
"@tabler/icons-react": "^3.31.0",
1215
"appwrite": "^17.0.1",
16+
"class-variance-authority": "^0.7.1",
17+
"clsx": "^2.1.1",
18+
"framer-motion": "^12.5.0",
1319
"immer": "^10.1.1",
20+
"lucide-react": "^0.483.0",
1421
"next": "15.2.3",
1522
"node-appwrite": "^15.0.1",
1623
"react": "^19.0.0",
1724
"react-dom": "^19.0.0",
25+
"tailwind-merge": "^3.0.2",
26+
"tw-animate-css": "^1.2.4",
1827
"zustand": "^5.0.3"
1928
},
2029
"devDependencies": {

src/(auth)/layout.tsx

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
"use client";
2+
import { useAuthStore } from "@/store/Auth";
3+
import { useRouter } from "next/router";
4+
import React from "react";
5+
import { BackgroundBeams } from "@/components/ui/background-beams";
6+
7+
//all the subfolder inside the auth will be containerized inside of layout
8+
export default function Layout({
9+
children,
10+
}: Readonly<{
11+
children: React.ReactNode;
12+
}>) {
13+
14+
const {session} = useAuthStore();
15+
const router = useRouter();
16+
React.useEffect(() => {
17+
if (session){
18+
router.push('/')
19+
}
20+
}, [session, router])
21+
if (session){
22+
return null;
23+
}
24+
return (
25+
<div className="relative flex min-h-screen flex-col items-center justify-center py-12">
26+
<BackgroundBeams />
27+
<div className="relative">{children}</div>
28+
</div>
29+
);
30+
}

0 commit comments

Comments
 (0)