82 Commits

Author SHA1 Message Date
282ec7c7ea Update src/app/search/page.tsx 2026-03-08 22:27:23 +00:00
3ddd1d149b Update src/app/post-job/page.tsx 2026-03-08 22:27:22 +00:00
480f9310c6 Update src/app/page.tsx 2026-03-08 22:27:22 +00:00
4ff558d745 Update src/app/layout.tsx 2026-03-08 22:27:21 +00:00
4f745c93c3 Update src/app/apply/page.tsx 2026-03-08 22:27:21 +00:00
6373b5ea06 Update src/app/search/page.tsx 2026-03-08 22:26:12 +00:00
4d2b3e17b5 Update src/app/post-job/page.tsx 2026-03-08 22:26:11 +00:00
493be55972 Update src/app/page.tsx 2026-03-08 22:26:10 +00:00
3a886ec207 Update src/app/layout.tsx 2026-03-08 22:26:10 +00:00
1be6979ab5 Add src/app/applications/page.tsx 2026-03-08 22:26:09 +00:00
80ab56121a Add src/app/admin/page.tsx 2026-03-08 22:26:08 +00:00
ca6084197d Switch to version 1: remove src/app/applications/page.tsx 2026-03-08 22:23:35 +00:00
65acbd32ab Switch to version 1: remove src/app/admin/page.tsx 2026-03-08 22:23:35 +00:00
421a0d4dbe Switch to version 1: modified src/lib/api/product.ts 2026-03-08 22:23:34 +00:00
d21ebfd001 Switch to version 1: modified src/hooks/useProducts.ts 2026-03-08 22:23:34 +00:00
51bcffe909 Switch to version 1: modified src/hooks/useProductDetail.ts 2026-03-08 22:23:33 +00:00
7a51c13052 Switch to version 1: modified src/hooks/useProductCatalog.ts 2026-03-08 22:23:33 +00:00
7a96daee1c Switch to version 1: modified src/hooks/useProduct.ts 2026-03-08 22:23:33 +00:00
67978193ba Switch to version 1: modified src/hooks/useCheckout.ts 2026-03-08 22:23:32 +00:00
9b94d81876 Switch to version 1: modified src/components/sections/product/ProductCardTwo.tsx 2026-03-08 22:23:32 +00:00
2dade11252 Switch to version 1: modified src/components/sections/product/ProductCardThree.tsx 2026-03-08 22:23:31 +00:00
133cfea674 Switch to version 1: modified src/components/sections/product/ProductCardOne.tsx 2026-03-08 22:23:31 +00:00
99d4f8ce22 Switch to version 1: modified src/components/sections/product/ProductCardFour.tsx 2026-03-08 22:23:30 +00:00
405b18fb28 Switch to version 1: modified src/components/sections/pricing/PricingCardEight.tsx 2026-03-08 22:23:30 +00:00
4a49487c77 Switch to version 1: modified src/components/sections/contact/ContactSplitForm.tsx 2026-03-08 22:23:30 +00:00
4591aa0eca Switch to version 1: modified src/components/sections/contact/ContactSplit.tsx 2026-03-08 22:23:29 +00:00
9346a0f432 Switch to version 1: modified src/components/sections/contact/ContactCenter.tsx 2026-03-08 22:23:29 +00:00
2095c0060e Switch to version 1: modified src/components/cardStack/layouts/timelines/TimelineBase.tsx 2026-03-08 22:23:28 +00:00
8d99e049e6 Switch to version 1: modified src/components/cardStack/hooks/useDepth3DAnimation.ts 2026-03-08 22:23:28 +00:00
e2f8bd0110 Switch to version 1: modified src/components/cardStack/hooks/useCardAnimation.ts 2026-03-08 22:23:27 +00:00
89ceb71096 Switch to version 1: modified src/components/cardStack/CardStack.tsx 2026-03-08 22:23:27 +00:00
4b3707c37b Switch to version 1: modified src/app/search/page.tsx 2026-03-08 22:23:27 +00:00
880d6203a7 Switch to version 1: modified src/app/post-job/page.tsx 2026-03-08 22:23:26 +00:00
e71c5c0f8b Switch to version 1: modified src/app/page.tsx 2026-03-08 22:23:26 +00:00
77c71a315d Switch to version 1: modified src/app/layout.tsx 2026-03-08 22:23:25 +00:00
72f424682a Switch to version 1: modified src/app/apply/page.tsx 2026-03-08 22:23:25 +00:00
0514de31b6 Merge version_2 into main
Merge version_2 into main
2026-03-08 22:22:31 +00:00
47d6d223c3 Update src/components/cardStack/CardStack.tsx 2026-03-08 22:22:26 +00:00
67c5d07b7b Update src/app/page.tsx 2026-03-08 22:22:25 +00:00
035db5c023 Merge version_2 into main
Merge version_2 into main
2026-03-08 22:21:23 +00:00
d3dac0cee3 Update src/lib/api/product.ts 2026-03-08 22:21:19 +00:00
184c822595 Update src/hooks/useProducts.ts 2026-03-08 22:21:19 +00:00
82b0c18e52 Update src/hooks/useProduct.ts 2026-03-08 22:21:18 +00:00
61fd21c259 Update src/components/sections/product/ProductCardTwo.tsx 2026-03-08 22:21:18 +00:00
636a3a4c15 Update src/components/sections/product/ProductCardThree.tsx 2026-03-08 22:21:17 +00:00
d38cd3c458 Update src/components/sections/product/ProductCardOne.tsx 2026-03-08 22:21:17 +00:00
b8710b24a0 Update src/components/sections/product/ProductCardFour.tsx 2026-03-08 22:21:17 +00:00
cd9915cd6e Update src/components/cardStack/hooks/useDepth3DAnimation.ts 2026-03-08 22:21:16 +00:00
4af8479479 Update src/components/cardStack/hooks/useCardAnimation.ts 2026-03-08 22:21:16 +00:00
c813799e97 Update src/components/cardStack/CardStack.tsx 2026-03-08 22:21:15 +00:00
3981f7d98b Update src/app/page.tsx 2026-03-08 22:21:15 +00:00
bf27ffa4ae Update src/app/admin/page.tsx 2026-03-08 22:21:14 +00:00
4e877df3bf Merge version_2 into main
Merge version_2 into main
2026-03-08 22:19:49 +00:00
d90c038218 Update src/lib/api/product.ts 2026-03-08 22:19:45 +00:00
99ec17545c Update src/hooks/useProductDetail.ts 2026-03-08 22:19:45 +00:00
de4853edae Update src/hooks/useProductCatalog.ts 2026-03-08 22:19:45 +00:00
a9c024cee2 Update src/hooks/useCheckout.ts 2026-03-08 22:19:44 +00:00
6a0b735d77 Update src/components/sections/pricing/PricingCardEight.tsx 2026-03-08 22:19:44 +00:00
0346a28661 Update src/components/sections/contact/ContactSplitForm.tsx 2026-03-08 22:19:43 +00:00
8f4c4a9a8d Update src/components/sections/contact/ContactSplit.tsx 2026-03-08 22:19:43 +00:00
5cc569fcbe Update src/components/sections/contact/ContactCenter.tsx 2026-03-08 22:19:43 +00:00
7a29becc6e Update src/components/cardStack/layouts/timelines/TimelineBase.tsx 2026-03-08 22:19:42 +00:00
c522614a4f Update src/components/cardStack/hooks/useDepth3DAnimation.ts 2026-03-08 22:19:42 +00:00
97524956d7 Update src/app/search/page.tsx 2026-03-08 22:19:41 +00:00
442db37238 Update src/app/apply/page.tsx 2026-03-08 22:19:41 +00:00
4ba0c81193 Update src/app/applications/page.tsx 2026-03-08 22:19:41 +00:00
61d3a35d93 Update src/app/admin/page.tsx 2026-03-08 22:19:40 +00:00
2509960b1c Merge version_2 into main
Merge version_2 into main
2026-03-08 22:16:05 +00:00
f232aa4e8f Update src/app/admin/page.tsx 2026-03-08 22:16:01 +00:00
109159b5f8 Merge version_2 into main
Merge version_2 into main
2026-03-08 22:13:48 +00:00
e1bb3ad20b Update src/app/layout.tsx 2026-03-08 22:13:44 +00:00
a47a53417b Update src/app/admin/page.tsx 2026-03-08 22:13:44 +00:00
96ab94d27e Merge version_2 into main
Merge version_2 into main
2026-03-08 22:12:44 +00:00
e28c7a74c3 Update src/app/search/page.tsx 2026-03-08 22:12:40 +00:00
46c8201b2e Update src/app/post-job/page.tsx 2026-03-08 22:12:39 +00:00
ba33e12e8d Update src/app/page.tsx 2026-03-08 22:12:39 +00:00
c3e170a160 Update src/app/layout.tsx 2026-03-08 22:12:39 +00:00
f49320b8db Add src/app/applications/page.tsx 2026-03-08 22:12:38 +00:00
d87884fca5 Add src/app/admin/page.tsx 2026-03-08 22:12:38 +00:00
29d059a2a8 Merge version_1 into main
Merge version_1 into main
2026-03-08 20:07:57 +00:00
f5dad3e157 Merge version_1 into main
Merge version_1 into main
2026-03-08 20:07:06 +00:00
d1c3983b8e Merge version_1 into main
Merge version_1 into main
2026-03-08 20:05:33 +00:00
7 changed files with 715 additions and 1420 deletions

334
src/app/admin/page.tsx Normal file
View File

@@ -0,0 +1,334 @@
"use client";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleCentered from "@/components/navbar/NavbarStyleCentered/NavbarStyleCentered";
import { useState } from "react";
import { BarChart3, Users, Briefcase, FileText, TrendingUp, LogOut } from "lucide-react";
const navItems = [
{ name: "Search Jobs", id: "" },
{ name: "Post a Job", id: "" },
{ name: "Admin", id: "/admin" },
{ name: "Browse", id: "" },
{ name: "Contact", id: "" },
];
type TabType = "jobs" | "applications" | "users" | "analytics";
export default function AdminDashboard() {
const [activeTab, setActiveTab] = useState<TabType>("jobs");
const [jobs] = useState([
{ id: 1, title: "Senior Developer", company: "Tech Corp", status: "Active", applications: 12, posted: "2 days ago" },
{ id: 2, title: "Product Manager", company: "Startup Inc", status: "Active", applications: 8, posted: "5 days ago" },
{ id: 3, title: "Designer", company: "Creative Agency", status: "Inactive", applications: 5, posted: "10 days ago" },
]);
const [applications] = useState([
{ id: 1, candidate: "John Smith", position: "Senior Developer", status: "Under Review", appliedDate: "2025-01-20" },
{ id: 2, candidate: "Sarah Johnson", position: "Product Manager", status: "Interview", appliedDate: "2025-01-19" },
{ id: 3, candidate: "Mike Davis", position: "Senior Developer", status: "Rejected", appliedDate: "2025-01-18" },
]);
const [users] = useState([
{ id: 1, name: "Alice Chen", email: "alice@example.com", role: "Job Seeker", joined: "2025-01-10", status: "Active" },
{ id: 2, name: "Bob Wilson", email: "bob@example.com", role: "Employer", joined: "2025-01-05", status: "Active" },
{ id: 3, name: "Carol White", email: "carol@example.com", role: "Job Seeker", joined: "2024-12-20", status: "Inactive" },
]);
const [analytics] = useState({
totalJobs: 284,
activeApplications: 156,
totalUsers: 2341,
avgTimeToHire: "18 days", monthlyGrowth: "+12.5%", conversionRate: "8.3%"});
const handleLogout = () => {
window.location.href = "/";
};
return (
<ThemeProvider
defaultButtonVariant="text-stagger"
defaultTextAnimation="reveal-blur"
borderRadius="pill"
contentWidth="medium"
sizing="mediumLargeSizeLargeTitles"
background="none"
cardStyle="solid"
primaryButtonStyle="gradient"
secondaryButtonStyle="solid"
headingFontWeight="bold"
>
<div id="nav" data-section="nav">
<NavbarStyleCentered
brandName="Jobee Admin"
navItems={navItems}
button={{
text: "Logout", onClick: handleLogout,
}}
/>
</div>
<div className="min-h-screen bg-slate-50 pt-24 pb-12">
<div className="mx-auto max-w-7xl px-4">
<h1 className="text-4xl font-bold text-slate-900 mb-8">Admin Dashboard</h1>
{/* Tab Navigation */}
<div className="flex gap-4 mb-8 border-b border-slate-200">
<button
onClick={() => setActiveTab("jobs")}
className={`pb-4 px-4 font-semibold transition-colors ${
activeTab === "jobs"
? "text-blue-600 border-b-2 border-blue-600"
: "text-slate-600 hover:text-slate-900"
}`}
>
<div className="flex items-center gap-2">
<Briefcase size={20} />
Job Management
</div>
</button>
<button
onClick={() => setActiveTab("applications")}
className={`pb-4 px-4 font-semibold transition-colors ${
activeTab === "applications"
? "text-blue-600 border-b-2 border-blue-600"
: "text-slate-600 hover:text-slate-900"
}`}
>
<div className="flex items-center gap-2">
<FileText size={20} />
Applications
</div>
</button>
<button
onClick={() => setActiveTab("users")}
className={`pb-4 px-4 font-semibold transition-colors ${
activeTab === "users"
? "text-blue-600 border-b-2 border-blue-600"
: "text-slate-600 hover:text-slate-900"
}`}
>
<div className="flex items-center gap-2">
<Users size={20} />
User Management
</div>
</button>
<button
onClick={() => setActiveTab("analytics")}
className={`pb-4 px-4 font-semibold transition-colors ${
activeTab === "analytics"
? "text-blue-600 border-b-2 border-blue-600"
: "text-slate-600 hover:text-slate-900"
}`}
>
<div className="flex items-center gap-2">
<BarChart3 size={20} />
Analytics
</div>
</button>
</div>
{/* Job Management Tab */}
{activeTab === "jobs" && (
<div className="space-y-4">
<div className="flex justify-between items-center mb-6">
<h2 className="text-2xl font-bold text-slate-900">Job Listings</h2>
<button className="px-6 py-2 bg-blue-600 text-white rounded-lg font-semibold hover:bg-blue-700 transition">
+ New Job
</button>
</div>
<div className="bg-white rounded-lg shadow overflow-hidden">
<table className="w-full">
<thead className="bg-slate-100 border-b border-slate-200">
<tr>
<th className="px-6 py-3 text-left text-sm font-semibold text-slate-900">Job Title</th>
<th className="px-6 py-3 text-left text-sm font-semibold text-slate-900">Company</th>
<th className="px-6 py-3 text-left text-sm font-semibold text-slate-900">Status</th>
<th className="px-6 py-3 text-left text-sm font-semibold text-slate-900">Applications</th>
<th className="px-6 py-3 text-left text-sm font-semibold text-slate-900">Posted</th>
<th className="px-6 py-3 text-left text-sm font-semibold text-slate-900">Actions</th>
</tr>
</thead>
<tbody>
{jobs.map((job) => (
<tr key={job.id} className="border-b border-slate-200 hover:bg-slate-50">
<td className="px-6 py-4 text-sm text-slate-900 font-medium">{job.title}</td>
<td className="px-6 py-4 text-sm text-slate-600">{job.company}</td>
<td className="px-6 py-4 text-sm">
<span className={`px-3 py-1 rounded-full text-xs font-semibold ${
job.status === "Active"
? "bg-green-100 text-green-700"
: "bg-gray-100 text-gray-700"
}`}>
{job.status}
</span>
</td>
<td className="px-6 py-4 text-sm text-slate-600">{job.applications}</td>
<td className="px-6 py-4 text-sm text-slate-600">{job.posted}</td>
<td className="px-6 py-4 text-sm space-x-2">
<button className="px-3 py-1 text-blue-600 hover:bg-blue-50 rounded transition">Edit</button>
<button className="px-3 py-1 text-red-600 hover:bg-red-50 rounded transition">Delete</button>
</td>
</tr>
))}
</tbody>
</table>
</div>
</div>
)}
{/* Applications Management Tab */}
{activeTab === "applications" && (
<div className="space-y-4">
<h2 className="text-2xl font-bold text-slate-900 mb-6">Application Management</h2>
<div className="bg-white rounded-lg shadow overflow-hidden">
<table className="w-full">
<thead className="bg-slate-100 border-b border-slate-200">
<tr>
<th className="px-6 py-3 text-left text-sm font-semibold text-slate-900">Candidate</th>
<th className="px-6 py-3 text-left text-sm font-semibold text-slate-900">Position</th>
<th className="px-6 py-3 text-left text-sm font-semibold text-slate-900">Status</th>
<th className="px-6 py-3 text-left text-sm font-semibold text-slate-900">Applied Date</th>
<th className="px-6 py-3 text-left text-sm font-semibold text-slate-900">Actions</th>
</tr>
</thead>
<tbody>
{applications.map((app) => (
<tr key={app.id} className="border-b border-slate-200 hover:bg-slate-50">
<td className="px-6 py-4 text-sm text-slate-900 font-medium">{app.candidate}</td>
<td className="px-6 py-4 text-sm text-slate-600">{app.position}</td>
<td className="px-6 py-4 text-sm">
<span className={`px-3 py-1 rounded-full text-xs font-semibold ${
app.status === "Interview"
? "bg-blue-100 text-blue-700"
: app.status === "Under Review"
? "bg-yellow-100 text-yellow-700"
: "bg-red-100 text-red-700"
}`}>
{app.status}
</span>
</td>
<td className="px-6 py-4 text-sm text-slate-600">{app.appliedDate}</td>
<td className="px-6 py-4 text-sm space-x-2">
<button className="px-3 py-1 text-blue-600 hover:bg-blue-50 rounded transition">View</button>
<button className="px-3 py-1 text-green-600 hover:bg-green-50 rounded transition">Approve</button>
</td>
</tr>
))}
</tbody>
</table>
</div>
</div>
)}
{/* User Management Tab */}
{activeTab === "users" && (
<div className="space-y-4">
<h2 className="text-2xl font-bold text-slate-900 mb-6">User Management</h2>
<div className="bg-white rounded-lg shadow overflow-hidden">
<table className="w-full">
<thead className="bg-slate-100 border-b border-slate-200">
<tr>
<th className="px-6 py-3 text-left text-sm font-semibold text-slate-900">Name</th>
<th className="px-6 py-3 text-left text-sm font-semibold text-slate-900">Email</th>
<th className="px-6 py-3 text-left text-sm font-semibold text-slate-900">Role</th>
<th className="px-6 py-3 text-left text-sm font-semibold text-slate-900">Joined</th>
<th className="px-6 py-3 text-left text-sm font-semibold text-slate-900">Status</th>
<th className="px-6 py-3 text-left text-sm font-semibold text-slate-900">Actions</th>
</tr>
</thead>
<tbody>
{users.map((user) => (
<tr key={user.id} className="border-b border-slate-200 hover:bg-slate-50">
<td className="px-6 py-4 text-sm text-slate-900 font-medium">{user.name}</td>
<td className="px-6 py-4 text-sm text-slate-600">{user.email}</td>
<td className="px-6 py-4 text-sm text-slate-600">{user.role}</td>
<td className="px-6 py-4 text-sm text-slate-600">{user.joined}</td>
<td className="px-6 py-4 text-sm">
<span className={`px-3 py-1 rounded-full text-xs font-semibold ${
user.status === "Active"
? "bg-green-100 text-green-700"
: "bg-gray-100 text-gray-700"
}`}>
{user.status}
</span>
</td>
<td className="px-6 py-4 text-sm space-x-2">
<button className="px-3 py-1 text-blue-600 hover:bg-blue-50 rounded transition">Edit</button>
<button className="px-3 py-1 text-red-600 hover:bg-red-50 rounded transition">Disable</button>
</td>
</tr>
))}
</tbody>
</table>
</div>
</div>
)}
{/* Analytics Tab */}
{activeTab === "analytics" && (
<div className="space-y-6">
<h2 className="text-2xl font-bold text-slate-900 mb-6">Analytics Overview</h2>
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
<div className="bg-white rounded-lg shadow p-6 border-l-4 border-blue-600">
<div className="flex items-center justify-between">
<div>
<p className="text-slate-600 text-sm font-medium">Total Jobs</p>
<p className="text-3xl font-bold text-slate-900 mt-2">{analytics.totalJobs}</p>
</div>
<Briefcase className="text-blue-600" size={40} />
</div>
</div>
<div className="bg-white rounded-lg shadow p-6 border-l-4 border-green-600">
<div className="flex items-center justify-between">
<div>
<p className="text-slate-600 text-sm font-medium">Active Applications</p>
<p className="text-3xl font-bold text-slate-900 mt-2">{analytics.activeApplications}</p>
</div>
<FileText className="text-green-600" size={40} />
</div>
</div>
<div className="bg-white rounded-lg shadow p-6 border-l-4 border-purple-600">
<div className="flex items-center justify-between">
<div>
<p className="text-slate-600 text-sm font-medium">Total Users</p>
<p className="text-3xl font-bold text-slate-900 mt-2">{analytics.totalUsers}</p>
</div>
<Users className="text-purple-600" size={40} />
</div>
</div>
<div className="bg-white rounded-lg shadow p-6 border-l-4 border-yellow-600">
<div className="flex items-center justify-between">
<div>
<p className="text-slate-600 text-sm font-medium">Avg Time to Hire</p>
<p className="text-3xl font-bold text-slate-900 mt-2">{analytics.avgTimeToHire}</p>
</div>
<TrendingUp className="text-yellow-600" size={40} />
</div>
</div>
<div className="bg-white rounded-lg shadow p-6 border-l-4 border-red-600">
<div className="flex items-center justify-between">
<div>
<p className="text-slate-600 text-sm font-medium">Monthly Growth</p>
<p className="text-3xl font-bold text-slate-900 mt-2">{analytics.monthlyGrowth}</p>
</div>
<BarChart3 className="text-red-600" size={40} />
</div>
</div>
<div className="bg-white rounded-lg shadow p-6 border-l-4 border-indigo-600">
<div className="flex items-center justify-between">
<div>
<p className="text-slate-600 text-sm font-medium">Conversion Rate</p>
<p className="text-3xl font-bold text-slate-900 mt-2">{analytics.conversionRate}</p>
</div>
<BarChart3 className="text-indigo-600" size={40} />
</div>
</div>
</div>
</div>
)}
</div>
</div>
</ThemeProvider>
);
}

View File

@@ -0,0 +1,356 @@
"use client";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleCentered from "@/components/navbar/NavbarStyleCentered/NavbarStyleCentered";
import FooterBase from "@/components/sections/footer/FooterBase";
import { useState } from "react";
import { Briefcase, Clock, CheckCircle, AlertCircle, MapPin, DollarSign, Building2, Calendar, ArrowRight } from "lucide-react";
const navItems = [
{ name: "Search Jobs", id: "search" },
{ name: "Post a Job", id: "post-job" },
{ name: "Admin", id: "admin-login" },
{ name: "Browse", id: "browse" },
{ name: "Contact", id: "contact" },
{ name: "Applications", id: "/applications" },
];
const footerColumns = [
{
title: "Product", items: [
{ label: "Search Jobs", href: "/search" },
{ label: "Post a Job", href: "/post-job" },
{ label: "Browse by Province", href: "#provinces" },
{ label: "For Employers", href: "#" },
],
},
{
title: "Company", items: [
{ label: "About Jobee", href: "#about" },
{ label: "Careers", href: "#" },
{ label: "Contact Us", href: "#contact" },
{ label: "Blog", href: "#" },
],
},
{
title: "Resources", items: [
{ label: "Privacy Policy", href: "#" },
{ label: "Terms of Service", href: "#" },
{ label: "FAQ", href: "#" },
{ label: "Support", href: "#" },
],
},
];
interface Application {
id: string;
jobTitle: string;
company: string;
location: string;
salary: string;
appliedDate: string;
status: "pending" | "reviewed" | "accepted" | "rejected";
logoSrc?: string;
}
const mockApplications: Application[] = [
{
id: "1", jobTitle: "Senior React Developer", company: "TechFlow Solutions", location: "Amsterdam, Netherlands", salary: "€65,000 - €80,000", appliedDate: "2025-01-15", status: "reviewed", logoSrc: "https://api.dicebear.com/7.x/initials/svg?seed=TF"},
{
id: "2", jobTitle: "UX/UI Designer", company: "Creative Studios Amsterdam", location: "Amsterdam, Netherlands", salary: "€50,000 - €65,000", appliedDate: "2025-01-10", status: "accepted", logoSrc: "https://api.dicebear.com/7.x/initials/svg?seed=CSA"},
{
id: "3", jobTitle: "Full Stack Developer", company: "Innovate Inc", location: "Rotterdam, Netherlands", salary: "€55,000 - €70,000", appliedDate: "2025-01-12", status: "pending", logoSrc: "https://api.dicebear.com/7.x/initials/svg?seed=II"},
{
id: "4", jobTitle: "Marketing Manager", company: "Digital Growth Partners", location: "Utrecht, Netherlands", salary: "€48,000 - €60,000", appliedDate: "2025-01-08", status: "rejected", logoSrc: "https://api.dicebear.com/7.x/initials/svg?seed=DGP"},
{
id: "5", jobTitle: "Data Scientist", company: "Analytics Pro", location: "The Hague, Netherlands", salary: "€60,000 - €75,000", appliedDate: "2025-01-05", status: "reviewed", logoSrc: "https://api.dicebear.com/7.x/initials/svg?seed=AP"},
{
id: "6", jobTitle: "Product Manager", company: "Tech Ventures", location: "Eindhoven, Netherlands", salary: "€65,000 - €85,000", appliedDate: "2025-01-02", status: "pending", logoSrc: "https://api.dicebear.com/7.x/initials/svg?seed=TV"},
];
const getStatusColor = (status: string) => {
switch (status) {
case "accepted":
return "bg-green-100 text-green-800";
case "rejected":
return "bg-red-100 text-red-800";
case "reviewed":
return "bg-blue-100 text-blue-800";
case "pending":
return "bg-yellow-100 text-yellow-800";
default:
return "bg-gray-100 text-gray-800";
}
};
const getStatusIcon = (status: string) => {
switch (status) {
case "accepted":
return <CheckCircle className="w-4 h-4" />;
case "rejected":
return <AlertCircle className="w-4 h-4" />;
case "reviewed":
return <Clock className="w-4 h-4" />;
case "pending":
return <Clock className="w-4 h-4" />;
default:
return <Clock className="w-4 h-4" />;
}
};
const getStatusLabel = (status: string) => {
switch (status) {
case "accepted":
return "Accepted";
case "rejected":
return "Rejected";
case "reviewed":
return "Under Review";
case "pending":
return "Pending";
default:
return status;
}
};
export default function ApplicationsPage() {
const [selectedApplication, setSelectedApplication] = useState<Application | null>(null);
const [statusFilter, setStatusFilter] = useState<string>("all");
const filteredApplications = statusFilter === "all"
? mockApplications
: mockApplications.filter(app => app.status === statusFilter);
return (
<ThemeProvider
defaultButtonVariant="text-stagger"
defaultTextAnimation="reveal-blur"
borderRadius="pill"
contentWidth="smallMedium"
sizing="mediumLargeSizeLargeTitles"
background="circleGradient"
cardStyle="gradient-radial"
primaryButtonStyle="double-inset"
secondaryButtonStyle="glass"
headingFontWeight="bold"
>
<div id="nav" data-section="nav">
<NavbarStyleCentered
brandName="Jobee"
navItems={navItems}
button={{
text: "Post a Job", href: "/post-job"}}
/>
</div>
<main className="min-h-screen bg-gradient-to-br from-background via-card to-background">
<div className="container mx-auto px-4 py-16">
{/* Header Section */}
<div className="mb-12">
<div className="flex items-center gap-3 mb-4">
<Briefcase className="w-8 h-8 text-primary-cta" />
<h1 className="text-4xl md:text-5xl font-bold text-foreground">My Applications</h1>
</div>
<p className="text-lg text-foreground/70 mb-8">
Track and manage all your job applications in one place. Monitor your application status and stay updated on opportunities.
</p>
{/* Status Filter */}
<div className="flex flex-wrap gap-2">
<button
onClick={() => setStatusFilter("all")}
className={`px-6 py-2 rounded-full font-medium transition-all ${
statusFilter === "all"
? "bg-primary-cta text-white"
: "bg-card border border-accent/30 text-foreground hover:border-accent"
}`}
>
All Applications ({mockApplications.length})
</button>
<button
onClick={() => setStatusFilter("pending")}
className={`px-6 py-2 rounded-full font-medium transition-all ${
statusFilter === "pending"
? "bg-yellow-500 text-white"
: "bg-card border border-accent/30 text-foreground hover:border-accent"
}`}
>
Pending
</button>
<button
onClick={() => setStatusFilter("reviewed")}
className={`px-6 py-2 rounded-full font-medium transition-all ${
statusFilter === "reviewed"
? "bg-blue-500 text-white"
: "bg-card border border-accent/30 text-foreground hover:border-accent"
}`}
>
Under Review
</button>
<button
onClick={() => setStatusFilter("accepted")}
className={`px-6 py-2 rounded-full font-medium transition-all ${
statusFilter === "accepted"
? "bg-green-500 text-white"
: "bg-card border border-accent/30 text-foreground hover:border-accent"
}`}
>
Accepted
</button>
<button
onClick={() => setStatusFilter("rejected")}
className={`px-6 py-2 rounded-full font-medium transition-all ${
statusFilter === "rejected"
? "bg-red-500 text-white"
: "bg-card border border-accent/30 text-foreground hover:border-accent"
}`}
>
Rejected
</button>
</div>
</div>
{/* Applications Grid */}
<div className="grid grid-cols-1 lg:grid-cols-3 gap-8">
{/* Application List */}
<div className="lg:col-span-2">
<div className="space-y-4">
{filteredApplications.length === 0 ? (
<div className="bg-card border border-accent/20 rounded-2xl p-8 text-center">
<Briefcase className="w-12 h-12 text-foreground/30 mx-auto mb-4" />
<p className="text-foreground/60">No applications found with this status.</p>
</div>
) : (
filteredApplications.map((app) => (
<div
key={app.id}
onClick={() => setSelectedApplication(app)}
className={`bg-card border border-accent/20 rounded-2xl p-6 cursor-pointer transition-all hover:border-accent/50 hover:shadow-lg ${
selectedApplication?.id === app.id ? "border-primary-cta" : ""
}`}
>
<div className="flex gap-4">
{/* Company Logo */}
<div className="flex-shrink-0">
<div className="w-16 h-16 bg-gradient-to-br from-primary-cta/20 to-accent/20 rounded-xl flex items-center justify-center">
<Building2 className="w-8 h-8 text-primary-cta" />
</div>
</div>
{/* Application Info */}
<div className="flex-grow">
<div className="flex items-start justify-between mb-2">
<div>
<h3 className="text-lg font-bold text-foreground">{app.jobTitle}</h3>
<p className="text-sm text-foreground/60">{app.company}</p>
</div>
<span
className={`px-3 py-1 rounded-full text-xs font-medium flex items-center gap-1 ${
getStatusColor(app.status)
}`}
>
{getStatusIcon(app.status)}
{getStatusLabel(app.status)}
</span>
</div>
<div className="flex flex-wrap gap-4 text-sm text-foreground/60 mt-3">
<div className="flex items-center gap-1">
<MapPin className="w-4 h-4" />
{app.location}
</div>
<div className="flex items-center gap-1">
<DollarSign className="w-4 h-4" />
{app.salary}
</div>
<div className="flex items-center gap-1">
<Calendar className="w-4 h-4" />
{new Date(app.appliedDate).toLocaleDateString()}
</div>
</div>
</div>
{/* Arrow Icon */}
<div className="flex-shrink-0 flex items-center">
<ArrowRight className="w-5 h-5 text-foreground/30" />
</div>
</div>
</div>
))
)}
</div>
</div>
{/* Application Details Panel */}
<div className="lg:col-span-1">
{selectedApplication ? (
<div className="bg-card border border-accent/20 rounded-2xl p-6 sticky top-24">
<div className="mb-6">
<h2 className="text-2xl font-bold text-foreground mb-2">{selectedApplication.jobTitle}</h2>
<p className="text-foreground/60 mb-4">{selectedApplication.company}</p>
<span
className={`inline-flex items-center gap-2 px-4 py-2 rounded-full text-sm font-medium ${
getStatusColor(selectedApplication.status)
}`}
>
{getStatusIcon(selectedApplication.status)}
{getStatusLabel(selectedApplication.status)}
</span>
</div>
<div className="space-y-4 border-t border-accent/10 pt-6">
<div>
<p className="text-xs font-semibold text-foreground/50 uppercase tracking-wide mb-2">Location</p>
<div className="flex items-center gap-2">
<MapPin className="w-4 h-4 text-primary-cta" />
<p className="text-foreground">{selectedApplication.location}</p>
</div>
</div>
<div>
<p className="text-xs font-semibold text-foreground/50 uppercase tracking-wide mb-2">Salary Range</p>
<div className="flex items-center gap-2">
<DollarSign className="w-4 h-4 text-primary-cta" />
<p className="text-foreground">{selectedApplication.salary}</p>
</div>
</div>
<div>
<p className="text-xs font-semibold text-foreground/50 uppercase tracking-wide mb-2">Applied Date</p>
<div className="flex items-center gap-2">
<Calendar className="w-4 h-4 text-primary-cta" />
<p className="text-foreground">{new Date(selectedApplication.appliedDate).toLocaleDateString()}</p>
</div>
</div>
</div>
<div className="mt-6 space-y-2">
<button className="w-full bg-primary-cta text-white py-3 rounded-lg font-medium hover:opacity-90 transition-opacity">
View Application
</button>
<button className="w-full bg-card border border-accent/30 text-foreground py-3 rounded-lg font-medium hover:border-accent transition-colors">
Contact Company
</button>
</div>
</div>
) : (
<div className="bg-card border border-accent/20 rounded-2xl p-6 text-center">
<Briefcase className="w-12 h-12 text-foreground/30 mx-auto mb-4" />
<p className="text-foreground/60">Select an application to view details</p>
</div>
)}
</div>
</div>
</div>
</main>
<div id="footer" data-section="footer">
<FooterBase
logoText="Jobee"
copyrightText="© 2025 Jobee | Dutch Job Listing Platform"
columns={footerColumns}
/>
</div>
</ThemeProvider>
);
}

View File

@@ -5,7 +5,7 @@ import NavbarStyleCentered from "@/components/navbar/NavbarStyleCentered/NavbarS
import FeatureCardEight from "@/components/sections/feature/FeatureCardEight"; import FeatureCardEight from "@/components/sections/feature/FeatureCardEight";
import TestimonialCardTwo from "@/components/sections/testimonial/TestimonialCardTwo"; import TestimonialCardTwo from "@/components/sections/testimonial/TestimonialCardTwo";
import FooterBase from "@/components/sections/footer/FooterBase"; import FooterBase from "@/components/sections/footer/FooterBase";
import { Briefcase, Sparkles } from "lucide-react"; import { Sparkles } from "lucide-react";
export default function ApplyPage() { export default function ApplyPage() {
const navItems = [ const navItems = [
@@ -134,4 +134,4 @@ export default function ApplyPage() {
</div> </div>
</ThemeProvider> </ThemeProvider>
); );
} }

File diff suppressed because it is too large Load Diff

View File

@@ -211,4 +211,4 @@ export default function HomePage() {
</div> </div>
</ThemeProvider> </ThemeProvider>
); );
} }

View File

@@ -5,8 +5,7 @@ import NavbarStyleCentered from "@/components/navbar/NavbarStyleCentered/NavbarS
import FeatureCardEight from "@/components/sections/feature/FeatureCardEight"; import FeatureCardEight from "@/components/sections/feature/FeatureCardEight";
import ContactCenter from "@/components/sections/contact/ContactCenter"; import ContactCenter from "@/components/sections/contact/ContactCenter";
import FooterBase from "@/components/sections/footer/FooterBase"; import FooterBase from "@/components/sections/footer/FooterBase";
import Link from "next/link"; import { Sparkles, Mail } from "lucide-react";
import { Briefcase, Mail, MapPin, Sparkles } from "lucide-react";
export default function PostJobPage() { export default function PostJobPage() {
const navItems = [ const navItems = [
@@ -120,4 +119,4 @@ export default function PostJobPage() {
</div> </div>
</ThemeProvider> </ThemeProvider>
); );
} }

View File

@@ -124,4 +124,4 @@ export default function SearchPage() {
</div> </div>
</ThemeProvider> </ThemeProvider>
); );
} }