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.
TypeScript ai-agentai-resume-analyzerapplication-trackerapplication-tracking-systematscareerjob-applicationjob-automationjob-huntingjob-searchjob-seeker-toolsjob-trackerjob-trackingjobsearchjobseekersmcpollamaresumeresume-reviewself-hosted
add dashboard, sidebar
Khuram Niaz2e77f4781af2
diff --git a/.vscode/settings.json b/.vscode/settings.jsonnew file mode 100644index 0000000..fd2c8bb--- /dev/null+++ b/.vscode/settings.json@@ -0,0 +1,4 @@+{+ "editor.fontVariations": false,+ "css.lint.unknownAtRules": "ignore"+}\ No newline at end of filediff --git a/public/icons/dashboard.svg b/public/icons/dashboard.svgnew file mode 100644index 0000000..c4b382e--- /dev/null+++ b/public/icons/dashboard.svg@@ -0,0 +1,3 @@+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">+ <path d="M8 17H16M11.0177 2.76401L4.23539 8.03914C3.78202 8.39176 3.55534 8.56807 3.39203 8.78887C3.24737 8.98446 3.1396 9.2048 3.07403 9.43907C3 9.70353 3 9.99071 3 10.5651V17.8C3 18.9201 3 19.4802 3.21799 19.908C3.40973 20.2843 3.71569 20.5903 4.09202 20.782C4.51984 21 5.07989 21 6.2 21H17.8C18.9201 21 19.4802 21 19.908 20.782C20.2843 20.5903 20.5903 20.2843 20.782 19.908C21 19.4802 21 18.9201 21 17.8V10.5651C21 9.99071 21 9.70353 20.926 9.43907C20.8604 9.2048 20.7526 8.98446 20.608 8.78887C20.4447 8.56807 20.218 8.39176 19.7646 8.03914L12.9823 2.76401C12.631 2.49076 12.4553 2.35413 12.2613 2.30162C12.0902 2.25528 11.9098 2.25528 11.7387 2.30162C11.5447 2.35413 11.369 2.49076 11.0177 2.76401Z" stroke="#667085" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>+</svg>\ No newline at end of filediff --git a/public/icons/jobs.svg b/public/icons/jobs.svgnew file mode 100644index 0000000..3031682--- /dev/null+++ b/public/icons/jobs.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-briefcase-business"><path d="M12 12h.01"/><path d="M16 6V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2"/><path d="M22 13a18.15 18.15 0 0 1-20 0"/><rect width="20" height="14" x="2" y="6" rx="2"/></svg>\ No newline at end of filediff --git a/public/images/jobsync-logo.svg b/public/images/jobsync-logo.svgnew file mode 100644index 0000000..006271e--- /dev/null+++ b/public/images/jobsync-logo.svg@@ -0,0 +1,2 @@+<?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->+<svg fill="#000000" width="800px" height="800px" viewBox="0 0 24 24" id="job" data-name="Flat Color" xmlns="http://www.w3.org/2000/svg" class="icon flat-color"><path id="secondary" d="M16,8H8A1,1,0,0,1,7,7V4A2,2,0,0,1,9,2h6a2,2,0,0,1,2,2V7A1,1,0,0,1,16,8ZM9,6h6V4H9Z" style="fill: rgb(44, 169, 188);"></path><rect id="primary" x="2" y="6" width="20" height="16" rx="2" style="fill: rgb(0, 0, 0);"></rect><path id="secondary-2" data-name="secondary" d="M15,14a1,1,0,0,1-1-1V12H7a1,1,0,0,1,0-2H17a1,1,0,0,1,0,2H16v1A1,1,0,0,1,15,14Z" style="fill: rgb(44, 169, 188);"></path></svg>\ No newline at end of filediff --git a/public/next.svg b/public/next.svgdeleted file mode 100644index 5174b28..0000000--- a/public/next.svg+++ /dev/null@@ -1 +0,0 @@-<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 394 80"><path fill="#000" d="M262 0h68.5v12.7h-27.2v66.6h-13.6V12.7H262V0ZM149 0v12.7H94v20.4h44.3v12.6H94v21h55v12.6H80.5V0h68.7zm34.3 0h-17.8l63.8 79.4h17.9l-32-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3 0 4.4.4 6.2 1.2 1.8.8 3.2 2 4.3 3.4 1 1.4 1.5 3 1.5 5h-5.8z"/></svg>\ No newline at end of filediff --git a/public/vercel.svg b/public/vercel.svgdeleted file mode 100644index d2f8422..0000000--- a/public/vercel.svg+++ /dev/null@@ -1 +0,0 @@-<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 283 64"><path fill="black" d="M141 16c-11 0-19 7-19 18s9 18 20 18c7 0 13-3 16-7l-7-5c-2 3-6 4-9 4-5 0-9-3-10-7h28v-3c0-11-8-18-19-18zm-9 15c1-4 4-7 9-7s8 3 9 7h-18zm117-15c-11 0-19 7-19 18s9 18 20 18c6 0 12-3 16-7l-8-5c-2 3-5 4-8 4-5 0-9-3-11-7h28l1-3c0-11-8-18-19-18zm-10 15c2-4 5-7 10-7s8 3 9 7h-19zm-39 3c0 6 4 10 10 10 4 0 7-2 9-5l8 5c-3 5-9 8-17 8-11 0-19-7-19-18s8-18 19-18c8 0 14 3 17 8l-8 5c-2-3-5-5-9-5-6 0-10 4-10 10zm83-29v46h-9V5h9zM37 0l37 64H0L37 0zm92 5-27 48L74 5h10l18 30 17-30h10zm59 12v10l-3-1c-6 0-10 4-10 10v15h-9V17h9v9c0-5 6-9 13-9z"/></svg>\ No newline at end of filediff --git a/src/app/(auth)/layout.tsx b/src/app/(auth)/layout.tsxnew file mode 100644index 0000000..e0ffeba--- /dev/null+++ b/src/app/(auth)/layout.tsx@@ -0,0 +1,7 @@+export default function DashboardLayout({+ children,+}: Readonly<{+ children: React.ReactNode;+}>) {+ return <main>{children}</main>;+}diff --git a/src/app/(auth)/signin/page.tsx b/src/app/(auth)/signin/page.tsxnew file mode 100644index 0000000..2d47516--- /dev/null+++ b/src/app/(auth)/signin/page.tsx@@ -0,0 +1,7 @@+import React from "react";++function Signin() {+ return <div>Signin</div>;+}++export default Signin;diff --git a/src/app/(auth)/signup/page.tsx b/src/app/(auth)/signup/page.tsxnew file mode 100644index 0000000..0284c87--- /dev/null+++ b/src/app/(auth)/signup/page.tsx@@ -0,0 +1,7 @@+import React from "react";++function Signup() {+ return <div>Signup</div>;+}++export default Signup;diff --git a/src/app/(root)/layout.tsx b/src/app/(root)/layout.tsxnew file mode 100644index 0000000..dfe3282--- /dev/null+++ b/src/app/(root)/layout.tsx@@ -0,0 +1,15 @@+import Sidebar from "@/components/Sidebar";++export default function RootLayout({+ children,+}: Readonly<{+ children: React.ReactNode;+}>) {+ const loggedIn: User = { $id: "23", name: "JobSync", email: "[email protected]" };+ return (+ <main className="flex h-screen">+ <Sidebar user={loggedIn} />+ {children}+ </main>+ );+}diff --git a/src/app/(root)/page.tsx b/src/app/(root)/page.tsxnew file mode 100644index 0000000..f09e445--- /dev/null+++ b/src/app/(root)/page.tsx@@ -0,0 +1,19 @@+import Header from "@/components/Header";++export default function Dashboard() {+ const loggedIn = { name: "JobSync" };+ return (+ <section className="dashboard">+ <div className="dashboard-content">+ <header className="dashboard-header">+ <Header+ type="greeting"+ title="Welcome"+ user={loggedIn.name || "Guest"}+ subtext="Manage your Job Search efficiently!"+ />+ </header>+ </div>+ </section>+ );+}diff --git a/src/app/globals.css b/src/app/globals.cssindex b0e6fff..0f92827 100644--- a/src/app/globals.css+++ b/src/app/globals.css@@ -1,76 +1,152 @@@tailwind base;- @tailwind components;- @tailwind utilities;+@tailwind components;+@tailwind utilities;- @layer base {- :root {- --background: 0 0% 100%;- --foreground: 222.2 84% 4.9%;+@layer base {+ :root {+ --background: 0 0% 100%;+ --foreground: 222.2 84% 4.9%;- --card: 0 0% 100%;- --card-foreground: 222.2 84% 4.9%;+ --card: 0 0% 100%;+ --card-foreground: 222.2 84% 4.9%;- --popover: 0 0% 100%;- --popover-foreground: 222.2 84% 4.9%;+ --popover: 0 0% 100%;+ --popover-foreground: 222.2 84% 4.9%;- --primary: 222.2 47.4% 11.2%;- --primary-foreground: 210 40% 98%;+ --primary: 222.2 47.4% 11.2%;+ --primary-foreground: 210 40% 98%;- --secondary: 210 40% 96.1%;- --secondary-foreground: 222.2 47.4% 11.2%;+ --secondary: 210 40% 96.1%;+ --secondary-foreground: 222.2 47.4% 11.2%;- --muted: 210 40% 96.1%;- --muted-foreground: 215.4 16.3% 46.9%;+ --muted: 210 40% 96.1%;+ --muted-foreground: 215.4 16.3% 46.9%;- --accent: 210 40% 96.1%;- --accent-foreground: 222.2 47.4% 11.2%;+ --accent: 210 40% 96.1%;+ --accent-foreground: 222.2 47.4% 11.2%;- --destructive: 0 84.2% 60.2%;- --destructive-foreground: 210 40% 98%;+ --destructive: 0 84.2% 60.2%;+ --destructive-foreground: 210 40% 98%;- --border: 214.3 31.8% 91.4%;- --input: 214.3 31.8% 91.4%;- --ring: 222.2 84% 4.9%;+ --border: 214.3 31.8% 91.4%;+ --input: 214.3 31.8% 91.4%;+ --ring: 222.2 84% 4.9%;- --radius: 0.5rem;- }+ --radius: 0.5rem;+ }++ .dark {+ --background: 222.2 84% 4.9%;+ --foreground: 210 40% 98%;++ --card: 222.2 84% 4.9%;+ --card-foreground: 210 40% 98%;++ --popover: 222.2 84% 4.9%;+ --popover-foreground: 210 40% 98%;++ --primary: 210 40% 98%;+ --primary-foreground: 222.2 47.4% 11.2%;++ --secondary: 217.2 32.6% 17.5%;+ --secondary-foreground: 210 40% 98%;++ --muted: 217.2 32.6% 17.5%;+ --muted-foreground: 215 20.2% 65.1%;++ --accent: 217.2 32.6% 17.5%;+ --accent-foreground: 210 40% 98%;++ --destructive: 0 62.8% 30.6%;+ --destructive-foreground: 210 40% 98%;++ --border: 217.2 32.6% 17.5%;+ --input: 217.2 32.6% 17.5%;+ --ring: 212.7 26.8% 83.9%;+ }+}++@layer base {+ * {+ @apply border-border;+ }+ body {+ @apply bg-background text-foreground;+ }+}++/* Hide scrollbar for Chrome, Safari and Opera */+.no-scrollbar::-webkit-scrollbar {+ display: none;+}++/* Hide scrollbar for IE, Edge and Firefox */+.no-scrollbar {+ -ms-overflow-style: none; /* IE and Edge */+ scrollbar-width: none; /* Firefox */+}++@layer utilities {+ .text-14 {+ @apply text-[14px] leading-[20px];+ }++ .text-16 {+ @apply text-[16px] leading-[24px];+ }++ .text-24 {+ @apply text-[24px] leading-[30px];+ }++ .text-26 {+ @apply text-[26px] leading-[32px];+ }++ .text-30 {+ @apply text-[30px] leading-[38px];+ }- .dark {- --background: 222.2 84% 4.9%;- --foreground: 210 40% 98%;+ /* Home */+ .dashboard {+ @apply no-scrollbar flex w-full flex-row max-xl:max-h-screen max-xl:overflow-y-scroll;+ }- --card: 222.2 84% 4.9%;- --card-foreground: 210 40% 98%;+ .dashboard-content {+ @apply no-scrollbar flex w-full flex-1 flex-col gap-8 px-5 sm:px-8 py-7 lg:py-12 xl:max-h-screen xl:overflow-y-scroll;+ }- --popover: 222.2 84% 4.9%;- --popover-foreground: 210 40% 98%;+ .dashboard-header {+ @apply flex flex-col justify-between gap-8;+ }- --primary: 210 40% 98%;- --primary-foreground: 222.2 47.4% 11.2%;+ /* Header */+ .header {+ @apply flex flex-col gap-1;+ }- --secondary: 217.2 32.6% 17.5%;- --secondary-foreground: 210 40% 98%;+ .header-title {+ @apply text-24 lg:text-30 font-semibold text-gray-900;+ }- --muted: 217.2 32.6% 17.5%;- --muted-foreground: 215 20.2% 65.1%;+ .header-subtext {+ @apply text-14 lg:text-16 font-normal text-gray-600;+ }- --accent: 217.2 32.6% 17.5%;- --accent-foreground: 210 40% 98%;+ /* Sidebar */+ .sidebar {+ @apply sticky left-0 top-0 flex h-screen w-fit flex-col justify-between border-r border-gray-200 bg-white pt-8 text-white max-md:hidden sm:p-4 xl:p-6 2xl:w-[355px];+ }- --destructive: 0 62.8% 30.6%;- --destructive-foreground: 210 40% 98%;+ .sidebar-logo {+ @apply 2xl:text-26 text-[26px] text-blue-500 font-bold max-xl:hidden;+ }- --border: 217.2 32.6% 17.5%;- --input: 217.2 32.6% 17.5%;- --ring: 212.7 26.8% 83.9%;- }+ .sidebar-link {+ @apply flex gap-3 items-center text-blue-500 py-1 md:p-3 2xl:p-4 rounded-lg justify-center xl:justify-start;}- @layer base {- * {- @apply border-border;- }- body {- @apply bg-background text-foreground;- }- }\ No newline at end of file+ .sidebar-label {+ @apply text-16 font-semibold text-black max-xl:hidden;+ }+}diff --git a/src/app/page.tsx b/src/app/page.tsxdeleted file mode 100644index 5a5899d..0000000--- a/src/app/page.tsx+++ /dev/null@@ -1,9 +0,0 @@-import Image from "next/image";--export default function Home() {- return (- <main className="flex min-h-screen flex-col items-center justify-between p-24">- Home- </main>- );-}diff --git a/src/components/Header.tsx b/src/components/Header.tsxnew file mode 100644index 0000000..c9c1928--- /dev/null+++ b/src/components/Header.tsx@@ -0,0 +1,15 @@+import React from "react";++function Header({ type = "title", title, subtext, user }: HeaderProps) {+ return (+ <div className="header">+ <h1 className="header-title">+ {title}+ {type === "greeting" && <span> {user}</span>}+ </h1>+ <p className="header-subtext">{subtext}</p>+ </div>+ );+}++export default Header;diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsxnew file mode 100644index 0000000..e067c1b--- /dev/null+++ b/src/components/Sidebar.tsx@@ -0,0 +1,53 @@+"use client";+import Link from "next/link";+import React from "react";+import Image from "next/image";+import { SIDEBAR_LINKS } from "@/lib/constants";+import { cn } from "@/lib/utils";+import { usePathname } from "next/navigation";++function Sidebar({ user }: SidebarProps) {+ const pathname = usePathname();+ return (+ <section className="sidebar">+ <nav className="flex flex-col gap-4">+ <Link href="/" className="mb-12 flex cursor-pointer item-center gap-2">+ <Image+ src="/images/jobsync-logo.svg"+ width={32}+ height={32}+ alt="jobsync logo"+ className="size-08 max-xl:size-10"+ />+ <h1 className="sidebar-logo">JobSync</h1>+ </Link>+ {SIDEBAR_LINKS.map((item) => {+ const isActive = pathname === item.route;+ return (+ <Link+ href={item.route}+ key={item.label}+ className={cn("sidebar-link", { "bg-blue-400": isActive })}+ >+ <div className="relative size-6">+ <Image+ src={item.imgURL}+ alt={item.label}+ fill+ className={cn({ "brightness-[3] invert-0": isActive })}+ />+ </div>+ <p className={cn("sidebar-label", { "!text-white": isActive })}>+ {item.label}+ </p>+ </Link>+ );+ })}+ User+ </nav>+ Footer+ </section>+ );+}++export default Sidebar;diff --git a/src/lib/constants.ts b/src/lib/constants.tsnew file mode 100644index 0000000..3c6707b--- /dev/null+++ b/src/lib/constants.ts@@ -0,0 +1,12 @@+export const SIDEBAR_LINKS = [+ {+ imgURL: "/icons/dashboard.svg",+ route: "/",+ label: "Dashboard",+ },+ {+ imgURL: "/icons/jobs.svg",+ route: "/my-jobs",+ label: "My Jobs",+ },+];diff --git a/types/index.t.ts b/types/index.t.tsnew file mode 100644index 0000000..2989693--- /dev/null+++ b/types/index.t.ts@@ -0,0 +1,16 @@+declare interface HeaderProps {+ type?: "title" | "greeting";+ title: string;+ subtext: string;+ user?: string;+}++declare type User = {+ $id: string;+ email: string;+ name: string;+};++declare interface SidebarProps {+ user: User;+}