Skip to content

Job application tracker and AI-powered job search assistant. Helps job seekers manage their search journey with AI resume review, job matching, task logging, and application analytics, all while keeping your data private.

add signin,signup pages

Khuram Niazdeaf48a10282
diff --git a/package-lock.json b/package-lock.json
index 1f71692..786b7db 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -12,6 +12,7 @@
"@radix-ui/react-avatar": "^1.0.4",
"@radix-ui/react-dialog": "^1.0.5",
"@radix-ui/react-dropdown-menu": "^2.0.6",
+ "@radix-ui/react-label": "^2.0.2",
"@radix-ui/react-progress": "^1.0.3",
"@radix-ui/react-slot": "^1.0.2",
"@radix-ui/react-tooltip": "^1.0.7",
@@ -804,6 +805,29 @@
}
}
},
+ "node_modules/@radix-ui/react-label": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-label/-/react-label-2.0.2.tgz",
+ "integrity": "sha512-N5ehvlM7qoTLx7nWPodsPYPgMzA5WM8zZChQg8nyFJKnDO5WHdba1vv5/H6IO5LtJMfD2Q3wh1qHFGNtK0w3bQ==",
+ "dependencies": {
+ "@babel/runtime": "^7.13.10",
+ "@radix-ui/react-primitive": "1.0.3"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0",
+ "react-dom": "^16.8 || ^17.0 || ^18.0"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
"node_modules/@radix-ui/react-menu": {
"version": "2.0.6",
"resolved": "https://registry.npmjs.org/@radix-ui/react-menu/-/react-menu-2.0.6.tgz",
diff --git a/package.json b/package.json
index 0f2e513..247e67d 100644
--- a/package.json
+++ b/package.json
@@ -13,6 +13,7 @@
"@radix-ui/react-avatar": "^1.0.4",
"@radix-ui/react-dialog": "^1.0.5",
"@radix-ui/react-dropdown-menu": "^2.0.6",
+ "@radix-ui/react-label": "^2.0.2",
"@radix-ui/react-progress": "^1.0.3",
"@radix-ui/react-slot": "^1.0.2",
"@radix-ui/react-tooltip": "^1.0.7",
diff --git a/src/app/(auth)/layout.tsx b/src/app/(auth)/layout.tsx
index e0ffeba..4f80e73 100644
--- a/src/app/(auth)/layout.tsx
+++ b/src/app/(auth)/layout.tsx
@@ -1,7 +1,14 @@
+import Header from "@/components/Header";
+
export default function DashboardLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
- return <main>{children}</main>;
+ return (
+ <>
+ <Header />
+ <main className="flex items-center h-screen">{children}</main>
+ </>
+ );
}
diff --git a/src/app/(auth)/signin/page.tsx b/src/app/(auth)/signin/page.tsx
index 2d47516..5c424a3 100644
--- a/src/app/(auth)/signin/page.tsx
+++ b/src/app/(auth)/signin/page.tsx
@@ -1,7 +1,56 @@
-import React from "react";
+import Link from "next/link";
-function Signin() {
- return <div>Signin</div>;
-}
+import { Button } from "@/components/ui/button";
+import {
+ Card,
+ CardContent,
+ CardDescription,
+ CardHeader,
+ CardTitle,
+} from "@/components/ui/card";
+import { Input } from "@/components/ui/input";
+import { Label } from "@/components/ui/label";
-export default Signin;
+export default function Signin() {
+ return (
+ <Card className="mx-auto max-w-sm">
+ <CardHeader>
+ <CardTitle className="text-2xl">Login</CardTitle>
+ <CardDescription>
+ Enter your email below to login to your account
+ </CardDescription>
+ </CardHeader>
+ <CardContent>
+ <div className="grid gap-4">
+ <div className="grid gap-2">
+ <Label htmlFor="email">Email</Label>
+ <Input
+ id="email"
+ type="email"
+ placeholder="[email protected]"
+ required
+ />
+ </div>
+ <div className="grid gap-2">
+ <div className="flex items-center">
+ <Label htmlFor="password">Password</Label>
+ {/* <Link href="#" className="ml-auto inline-block text-sm underline">
+ Forgot your password?
+ </Link> */}
+ </div>
+ <Input id="password" type="password" required />
+ </div>
+ <Button type="submit" className="w-full">
+ Login
+ </Button>
+ </div>
+ <div className="mt-4 text-center text-sm">
+ Don&apos;t have an account?{" "}
+ <Link href="/signup" className="underline">
+ Sign up
+ </Link>
+ </div>
+ </CardContent>
+ </Card>
+ );
+}
diff --git a/src/app/(auth)/signup/page.tsx b/src/app/(auth)/signup/page.tsx
index 0284c87..bca017e 100644
--- a/src/app/(auth)/signup/page.tsx
+++ b/src/app/(auth)/signup/page.tsx
@@ -1,7 +1,55 @@
-import React from "react";
+import Link from "next/link";
-function Signup() {
- return <div>Signup</div>;
-}
+import { Button } from "@/components/ui/button";
+import {
+ Card,
+ CardContent,
+ CardDescription,
+ CardHeader,
+ CardTitle,
+} from "@/components/ui/card";
+import { Input } from "@/components/ui/input";
+import { Label } from "@/components/ui/label";
-export default Signup;
+export default function Signup() {
+ return (
+ <Card className="mx-auto max-w-sm">
+ <CardHeader>
+ <CardTitle className="text-xl">Sign Up</CardTitle>
+ <CardDescription>
+ Enter your information to create an account
+ </CardDescription>
+ </CardHeader>
+ <CardContent>
+ <div className="grid gap-4">
+ <div className="grid gap-2">
+ <Label htmlFor="last-name">Full Name</Label>
+ <Input id="last-name" placeholder="Your Name" required />
+ </div>
+ <div className="grid gap-2">
+ <Label htmlFor="email">Email</Label>
+ <Input
+ id="email"
+ type="email"
+ placeholder="[email protected]"
+ required
+ />
+ </div>
+ <div className="grid gap-2">
+ <Label htmlFor="password">Password</Label>
+ <Input id="password" type="password" />
+ </div>
+ <Button type="submit" className="w-full">
+ Create an account
+ </Button>
+ </div>
+ <div className="mt-4 text-center text-sm">
+ Already have an account?{" "}
+ <Link href="/signin" className="underline">
+ Sign in
+ </Link>
+ </div>
+ </CardContent>
+ </Card>
+ );
+}
diff --git a/src/components/ui/label.tsx b/src/components/ui/label.tsx
new file mode 100644
index 0000000..5341821
--- /dev/null
+++ b/src/components/ui/label.tsx
@@ -0,0 +1,26 @@
+"use client"
+
+import * as React from "react"
+import * as LabelPrimitive from "@radix-ui/react-label"
+import { cva, type VariantProps } from "class-variance-authority"
+
+import { cn } from "@/lib/utils"
+
+const labelVariants = cva(
+ "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
+)
+
+const Label = React.forwardRef<
+ React.ElementRef<typeof LabelPrimitive.Root>,
+ React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> &
+ VariantProps<typeof labelVariants>
+>(({ className, ...props }, ref) => (
+ <LabelPrimitive.Root
+ ref={ref}
+ className={cn(labelVariants(), className)}
+ {...props}
+ />
+))
+Label.displayName = LabelPrimitive.Root.displayName
+
+export { Label }