Skip to content

Commit 0364db7

Browse files
committed
Add shadcn library
1 parent 5649605 commit 0364db7

File tree

11 files changed

+750
-14
lines changed

11 files changed

+750
-14
lines changed

frontend/components.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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": "zinc",
10+
"cssVariables": true,
11+
"prefix": ""
12+
},
13+
"iconLibrary": "lucide",
14+
"aliases": {
15+
"components": "@/components",
16+
"utils": "@/lib/utils",
17+
"ui": "@/components/ui",
18+
"lib": "@/lib",
19+
"hooks": "@/hooks"
20+
},
21+
"registries": {}
22+
}

frontend/package-lock.json

Lines changed: 186 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/package.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,18 @@
1111
"format:fix": "prettier --write ."
1212
},
1313
"dependencies": {
14+
"@hookform/resolvers": "^5.2.1",
15+
"@radix-ui/react-label": "^2.1.7",
16+
"@radix-ui/react-slot": "^1.2.3",
17+
"class-variance-authority": "^0.7.1",
18+
"clsx": "^2.1.1",
19+
"lucide-react": "^0.542.0",
1420
"next": "15.5.2",
1521
"react": "19.1.0",
16-
"react-dom": "19.1.0"
22+
"react-dom": "19.1.0",
23+
"react-hook-form": "^7.62.0",
24+
"tailwind-merge": "^3.3.1",
25+
"zod": "^4.1.5"
1726
},
1827
"devDependencies": {
1928
"@eslint/eslintrc": "^3",
@@ -25,6 +34,7 @@
2534
"eslint-config-next": "15.5.2",
2635
"prettier": "^3.6.2",
2736
"tailwindcss": "^4",
37+
"tw-animate-css": "^1.3.8",
2838
"typescript": "^5"
2939
}
3040
}
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
"use cilent";
2+
3+
import { Button } from "@/components/ui/button";
4+
import { Card, CardTitle, CardHeader, CardContent } from "@/components/ui/card";
5+
import { Input } from "@/components/ui/input";
6+
import { Label } from "@/components/ui/label";
7+
8+
export default function LoginForm() {
9+
10+
11+
return (
12+
<Card className="min-h-[50%] min-w-[40%]">
13+
<CardHeader className="mt-5">
14+
<CardTitle className="text-center text-4xl font-bold">
15+
Welcome to Peerprep
16+
</CardTitle>
17+
</CardHeader>
18+
19+
<CardContent className="px-15 pt-10">
20+
<form>
21+
<div className="flex flex-col gap-4">
22+
<div>
23+
<Label className="m-2">
24+
Email
25+
</Label>
26+
<Input name="email" type="email" required>
27+
</Input>
28+
</div>
29+
<div>
30+
<Label className="m-2">
31+
Password
32+
</Label>
33+
<Input name="password" type="password" required>
34+
</Input>
35+
</div>
36+
37+
<div className="flex justify-center mt-10">
38+
<Button>
39+
Login
40+
</Button>
41+
</div>
42+
43+
</div>
44+
</form>
45+
</CardContent>
46+
47+
</Card>
48+
)
49+
}

0 commit comments

Comments
 (0)