Merge version_3 into main #11
@@ -5,7 +5,7 @@ import NavbarStyleCentered from "@/components/navbar/NavbarStyleCentered/NavbarS
|
||||
import FeatureCardEight from "@/components/sections/feature/FeatureCardEight";
|
||||
import TestimonialCardTwo from "@/components/sections/testimonial/TestimonialCardTwo";
|
||||
import FooterBase from "@/components/sections/footer/FooterBase";
|
||||
import { Briefcase, Sparkles } from "lucide-react";
|
||||
import { Sparkles } from "lucide-react";
|
||||
|
||||
export default function ApplyPage() {
|
||||
const navItems = [
|
||||
@@ -134,4 +134,4 @@ export default function ApplyPage() {
|
||||
</div>
|
||||
</ThemeProvider>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,17 +1,16 @@
|
||||
import type { Metadata } from "next";
|
||||
import { Inter } from "next/font/google";
|
||||
import "./styles/variables.css";
|
||||
import "./styles/base.css";
|
||||
import "./globals.css";
|
||||
import ServiceWrapper from "@/providers/serviceWrapper/ServiceWrapper";
|
||||
import { Tag } from "@/components/shared/Tag";
|
||||
|
||||
const inter = Inter({
|
||||
variable: "--font-inter", subsets: ["latin"],
|
||||
weight: ["100", "200", "300", "400", "500", "600", "700", "800", "900"],
|
||||
});
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Jobee - Dutch Job Listings & Recruitment Platform", description:
|
||||
"Find your dream job in the Netherlands with Jobee. Browse thousands of opportunities across all 12 Dutch provinces and connect with top employers."};
|
||||
title: "Jobee - Find Your Dream Job in the Netherlands", description:
|
||||
"Discover thousands of job opportunities across all 12 Dutch provinces. Connect with top employers and build your career with Jobee."};
|
||||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
@@ -21,17 +20,22 @@ export default function RootLayout({
|
||||
return (
|
||||
<html lang="en" suppressHydrationWarning>
|
||||
<body className={`${inter.variable}`}>
|
||||
<ServiceWrapper>
|
||||
<Tag />
|
||||
{children}
|
||||
</ServiceWrapper>
|
||||
{children}
|
||||
<script
|
||||
async
|
||||
src="https://cdn.jsdelivr.net/npm/gsap@3.12.2/dist/gsap.min.js"
|
||||
/>
|
||||
<script
|
||||
async
|
||||
src="https://cdn.jsdelivr.net/npm/gsap@3.12.2/dist/ScrollTrigger.min.js"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: `
|
||||
(function() {
|
||||
try {
|
||||
const theme = localStorage.getItem('theme') || 'light';
|
||||
if (theme === 'dark') {
|
||||
document.documentElement.classList.add('dark');
|
||||
} else {
|
||||
document.documentElement.classList.remove('dark');
|
||||
}
|
||||
} catch (e) {}
|
||||
})()
|
||||
`,
|
||||
}}
|
||||
/>
|
||||
|
||||
<script
|
||||
|
||||
@@ -12,7 +12,7 @@ import { Briefcase, Sparkles, Mail, Quote } from "lucide-react";
|
||||
const navItems = [
|
||||
{ name: "Search Jobs", id: "search" },
|
||||
{ name: "Post a Job", id: "post-job" },
|
||||
{ name: "Admin", id: "/admin" },
|
||||
{ name: "Admin", id: "admin-login" },
|
||||
{ name: "Browse", id: "browse" },
|
||||
{ name: "Contact", id: "contact" },
|
||||
];
|
||||
|
||||
@@ -2,150 +2,46 @@
|
||||
|
||||
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
|
||||
import NavbarStyleCentered from "@/components/navbar/NavbarStyleCentered/NavbarStyleCentered";
|
||||
import FeatureCardEight from "@/components/sections/feature/FeatureCardEight";
|
||||
import ContactCenter from "@/components/sections/contact/ContactCenter";
|
||||
import FooterBase from "@/components/sections/footer/FooterBase";
|
||||
import { useState } from "react";
|
||||
import { Input } from "@/components/form/Input";
|
||||
import { Briefcase, Mail, CheckCircle, AlertCircle } from "lucide-react";
|
||||
import ButtonHoverBubble from "@/components/button/ButtonHoverBubble";
|
||||
|
||||
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" },
|
||||
];
|
||||
|
||||
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 FormErrors {
|
||||
jobTitle?: string;
|
||||
company?: string;
|
||||
location?: string;
|
||||
salary?: string;
|
||||
description?: string;
|
||||
requirements?: string;
|
||||
email?: string;
|
||||
}
|
||||
|
||||
interface FormData {
|
||||
jobTitle: string;
|
||||
company: string;
|
||||
location: string;
|
||||
salary: string;
|
||||
jobType: string;
|
||||
description: string;
|
||||
requirements: string;
|
||||
email: string;
|
||||
contactPhone?: string;
|
||||
}
|
||||
import { Sparkles, Mail } from "lucide-react";
|
||||
|
||||
export default function PostJobPage() {
|
||||
const [formData, setFormData] = useState<FormData>({
|
||||
jobTitle: "", company: "", location: "", salary: "", jobType: "Full-time", description: "", requirements: "", email: "", contactPhone: ""});
|
||||
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" },
|
||||
];
|
||||
|
||||
const [errors, setErrors] = useState<FormErrors>({});
|
||||
const [isSubmitting, setIsSubmitting] = useState(false);
|
||||
const [submitStatus, setSubmitStatus] = useState<
|
||||
"idle" | "success" | "error"
|
||||
>("idle");
|
||||
|
||||
const validateForm = (): boolean => {
|
||||
const newErrors: FormErrors = {};
|
||||
|
||||
if (!formData.jobTitle.trim()) {
|
||||
newErrors.jobTitle = "Job title is required";
|
||||
}
|
||||
if (!formData.company.trim()) {
|
||||
newErrors.company = "Company name is required";
|
||||
}
|
||||
if (!formData.location.trim()) {
|
||||
newErrors.location = "Location is required";
|
||||
}
|
||||
if (!formData.salary.trim()) {
|
||||
newErrors.salary = "Salary range is required";
|
||||
}
|
||||
if (formData.description.trim().length < 20) {
|
||||
newErrors.description = "Description must be at least 20 characters";
|
||||
}
|
||||
if (formData.requirements.trim().length < 10) {
|
||||
newErrors.requirements = "Requirements must be at least 10 characters";
|
||||
}
|
||||
if (!formData.email.trim() || !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(formData.email)) {
|
||||
newErrors.email = "Valid email is required";
|
||||
}
|
||||
|
||||
setErrors(newErrors);
|
||||
return Object.keys(newErrors).length === 0;
|
||||
};
|
||||
|
||||
const handleSubmit = async (e: React.FormEvent) => {
|
||||
e.preventDefault();
|
||||
|
||||
if (!validateForm()) {
|
||||
setSubmitStatus("error");
|
||||
return;
|
||||
}
|
||||
|
||||
setIsSubmitting(true);
|
||||
setSubmitStatus("idle");
|
||||
|
||||
try {
|
||||
// Simulate API call
|
||||
await new Promise((resolve) => setTimeout(resolve, 1500));
|
||||
setSubmitStatus("success");
|
||||
setFormData({
|
||||
jobTitle: "", company: "", location: "", salary: "", jobType: "Full-time", description: "", requirements: "", email: "", contactPhone: ""});
|
||||
setErrors({});
|
||||
|
||||
// Reset success message after 5 seconds
|
||||
setTimeout(() => setSubmitStatus("idle"), 5000);
|
||||
} catch (error) {
|
||||
setSubmitStatus("error");
|
||||
} finally {
|
||||
setIsSubmitting(false);
|
||||
}
|
||||
};
|
||||
|
||||
const handleInputChange = (
|
||||
e: React.ChangeEvent<
|
||||
HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement
|
||||
>
|
||||
) => {
|
||||
const { name, value } = e.target;
|
||||
setFormData((prev) => ({ ...prev, [name]: value }));
|
||||
if (errors[name as keyof FormErrors]) {
|
||||
setErrors((prev) => ({
|
||||
...prev,
|
||||
[name]: undefined,
|
||||
}));
|
||||
}
|
||||
};
|
||||
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: "#" },
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
return (
|
||||
<ThemeProvider
|
||||
@@ -162,264 +58,63 @@ export default function PostJobPage() {
|
||||
>
|
||||
<div id="nav" data-section="nav">
|
||||
<NavbarStyleCentered
|
||||
brandName="Jobee"
|
||||
navItems={navItems}
|
||||
button={{
|
||||
text: "Post a Job", href: "/post-job"}}
|
||||
button={{ text: "Post a Job", href: "/post-job" }}
|
||||
brandName="Jobee"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<main className="min-h-screen pt-24 pb-20">
|
||||
<div className="max-w-2xl mx-auto px-4">
|
||||
{/* Header */}
|
||||
<div className="mb-12 text-center">
|
||||
<div className="flex items-center justify-center gap-2 mb-4">
|
||||
<Briefcase className="w-8 h-8" />
|
||||
<span className="text-sm font-semibold text-primary-cta uppercase tracking-wider">
|
||||
Post a Job
|
||||
</span>
|
||||
</div>
|
||||
<h1 className="text-4xl md:text-5xl font-bold mb-4">
|
||||
Hire Top Talent in the Netherlands
|
||||
</h1>
|
||||
<p className="text-lg text-foreground/75 max-w-xl mx-auto">
|
||||
Post your job opening and reach qualified candidates across all Dutch
|
||||
provinces
|
||||
</p>
|
||||
</div>
|
||||
<div id="features" data-section="features">
|
||||
<FeatureCardEight
|
||||
features={[
|
||||
{
|
||||
id: 1,
|
||||
title: "Create a Job Posting", description:
|
||||
"Fill in job details, requirements, and salary information. Our intuitive form guides you through every step to create a compelling job listing.", imageSrc:
|
||||
"http://img.b2bpic.net/free-vector/professional-recruitment-plan-diversity-general-infographic-template_23-2148947635.jpg?_wi=4", imageAlt: "Job posting creation interface"},
|
||||
{
|
||||
id: 2,
|
||||
title: "Reach Qualified Candidates", description:
|
||||
"Your job posting is automatically distributed across our network of active job seekers across all 12 Dutch provinces.", imageSrc:
|
||||
"http://img.b2bpic.net/free-photo/homepage-concept-with-search-bar_23-2150040187.jpg?_wi=5", imageAlt: "Candidate reach visualization"},
|
||||
{
|
||||
id: 3,
|
||||
title: "Review Applications", description:
|
||||
"Manage all incoming applications in one centralized dashboard. Review resumes, cover letters, and candidate profiles easily.", imageSrc:
|
||||
"http://img.b2bpic.net/free-photo/personal-information-form-identity-concept_53876-137622.jpg?_wi=4", imageAlt: "Application review dashboard"},
|
||||
]}
|
||||
title="Post a Job in Three Easy Steps"
|
||||
description="Reach thousands of qualified job seekers across the Netherlands and build your dream team."
|
||||
tag="Simple Process"
|
||||
tagIcon={Sparkles}
|
||||
tagAnimation="slide-up"
|
||||
textboxLayout="default"
|
||||
useInvertedBackground={false}
|
||||
buttons={[{ text: "Start Posting", href: "/post-job" }]}
|
||||
buttonAnimation="slide-up"
|
||||
/>
|
||||
</div>
|
||||
|
||||
{/* Status Messages */}
|
||||
{submitStatus === "success" && (
|
||||
<div className="mb-8 p-4 rounded-lg bg-green-50 border border-green-200 flex items-start gap-3">
|
||||
<CheckCircle className="w-5 h-5 text-green-600 flex-shrink-0 mt-0.5" />
|
||||
<div>
|
||||
<h3 className="font-semibold text-green-900">Job Posted Successfully!</h3>
|
||||
<p className="text-sm text-green-800 mt-1">
|
||||
Your job listing is now live and visible to job seekers across the
|
||||
Netherlands.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{submitStatus === "error" && Object.keys(errors).length > 0 && (
|
||||
<div className="mb-8 p-4 rounded-lg bg-red-50 border border-red-200 flex items-start gap-3">
|
||||
<AlertCircle className="w-5 h-5 text-red-600 flex-shrink-0 mt-0.5" />
|
||||
<div>
|
||||
<h3 className="font-semibold text-red-900">Validation Errors</h3>
|
||||
<p className="text-sm text-red-800 mt-1">
|
||||
Please correct the errors below and try again.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* Job Form */}
|
||||
<form
|
||||
onSubmit={handleSubmit}
|
||||
className="space-y-6 bg-card p-8 rounded-2xl border border-background-accent/20 shadow-sm"
|
||||
>
|
||||
{/* Job Title */}
|
||||
<div>
|
||||
<label htmlFor="jobTitle" className="block text-sm font-semibold mb-2">
|
||||
Job Title <span className="text-red-500">*</span>
|
||||
</label>
|
||||
<Input
|
||||
value={formData.jobTitle}
|
||||
onChange={handleInputChange}
|
||||
name="jobTitle"
|
||||
placeholder="e.g., Senior React Developer"
|
||||
required
|
||||
/>
|
||||
{errors.jobTitle && (
|
||||
<p className="text-red-600 text-sm mt-1">{errors.jobTitle}</p>
|
||||
)}
|
||||
</div>
|
||||
|
||||
{/* Company Name */}
|
||||
<div>
|
||||
<label htmlFor="company" className="block text-sm font-semibold mb-2">
|
||||
Company Name <span className="text-red-500">*</span>
|
||||
</label>
|
||||
<Input
|
||||
value={formData.company}
|
||||
onChange={handleInputChange}
|
||||
name="company"
|
||||
placeholder="Your company name"
|
||||
required
|
||||
/>
|
||||
{errors.company && (
|
||||
<p className="text-red-600 text-sm mt-1">{errors.company}</p>
|
||||
)}
|
||||
</div>
|
||||
|
||||
{/* Location and Job Type */}
|
||||
<div className="grid grid-cols-1 md:grid-cols-2 gap-4">
|
||||
<div>
|
||||
<label htmlFor="location" className="block text-sm font-semibold mb-2">
|
||||
Location <span className="text-red-500">*</span>
|
||||
</label>
|
||||
<Input
|
||||
value={formData.location}
|
||||
onChange={handleInputChange}
|
||||
name="location"
|
||||
placeholder="e.g., Amsterdam, Remote"
|
||||
required
|
||||
/>
|
||||
{errors.location && (
|
||||
<p className="text-red-600 text-sm mt-1">{errors.location}</p>
|
||||
)}
|
||||
</div>
|
||||
<div>
|
||||
<label htmlFor="jobType" className="block text-sm font-semibold mb-2">
|
||||
Job Type
|
||||
</label>
|
||||
<select
|
||||
name="jobType"
|
||||
value={formData.jobType}
|
||||
onChange={handleInputChange}
|
||||
className="w-full px-4 py-2 rounded-lg bg-secondary-button text-foreground border border-background-accent/20 focus:outline-none focus:ring-2 focus:ring-primary-cta/50"
|
||||
>
|
||||
<option>Full-time</option>
|
||||
<option>Part-time</option>
|
||||
<option>Contract</option>
|
||||
<option>Freelance</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Salary */}
|
||||
<div>
|
||||
<label htmlFor="salary" className="block text-sm font-semibold mb-2">
|
||||
Salary Range <span className="text-red-500">*</span>
|
||||
</label>
|
||||
<Input
|
||||
value={formData.salary}
|
||||
onChange={handleInputChange}
|
||||
name="salary"
|
||||
placeholder="e.g., €50,000 - €70,000"
|
||||
required
|
||||
/>
|
||||
{errors.salary && (
|
||||
<p className="text-red-600 text-sm mt-1">{errors.salary}</p>
|
||||
)}
|
||||
</div>
|
||||
|
||||
{/* Description */}
|
||||
<div>
|
||||
<label htmlFor="description" className="block text-sm font-semibold mb-2">
|
||||
Job Description <span className="text-red-500">*</span>
|
||||
</label>
|
||||
<textarea
|
||||
name="description"
|
||||
value={formData.description}
|
||||
onChange={handleInputChange}
|
||||
placeholder="Describe the role, responsibilities, and what makes this opportunity unique..."
|
||||
rows={6}
|
||||
className="w-full px-4 py-3 rounded-lg bg-secondary-button text-foreground placeholder:opacity-75 border border-background-accent/20 focus:outline-none focus:ring-2 focus:ring-primary-cta/50 resize-vertical"
|
||||
required
|
||||
/>
|
||||
{errors.description && (
|
||||
<p className="text-red-600 text-sm mt-1">{errors.description}</p>
|
||||
)}
|
||||
</div>
|
||||
|
||||
{/* Requirements */}
|
||||
<div>
|
||||
<label htmlFor="requirements" className="block text-sm font-semibold mb-2">
|
||||
Requirements <span className="text-red-500">*</span>
|
||||
</label>
|
||||
<textarea
|
||||
name="requirements"
|
||||
value={formData.requirements}
|
||||
onChange={handleInputChange}
|
||||
placeholder="List required skills, experience, and qualifications. One per line recommended."
|
||||
rows={5}
|
||||
className="w-full px-4 py-3 rounded-lg bg-secondary-button text-foreground placeholder:opacity-75 border border-background-accent/20 focus:outline-none focus:ring-2 focus:ring-primary-cta/50 resize-vertical"
|
||||
required
|
||||
/>
|
||||
{errors.requirements && (
|
||||
<p className="text-red-600 text-sm mt-1">{errors.requirements}</p>
|
||||
)}
|
||||
</div>
|
||||
|
||||
{/* Contact Information */}
|
||||
<div className="border-t border-background-accent/20 pt-6">
|
||||
<h3 className="text-lg font-semibold mb-4">Contact Information</h3>
|
||||
<div className="grid grid-cols-1 md:grid-cols-2 gap-4">
|
||||
<div>
|
||||
<label htmlFor="email" className="block text-sm font-semibold mb-2">
|
||||
Email Address <span className="text-red-500">*</span>
|
||||
</label>
|
||||
<Input
|
||||
value={formData.email}
|
||||
onChange={handleInputChange}
|
||||
name="email"
|
||||
type="email"
|
||||
placeholder="recruiter@company.com"
|
||||
required
|
||||
/>
|
||||
{errors.email && (
|
||||
<p className="text-red-600 text-sm mt-1">{errors.email}</p>
|
||||
)}
|
||||
</div>
|
||||
<div>
|
||||
<label htmlFor="contactPhone" className="block text-sm font-semibold mb-2">
|
||||
Phone Number (Optional)
|
||||
</label>
|
||||
<Input
|
||||
value={formData.contactPhone}
|
||||
onChange={handleInputChange}
|
||||
name="contactPhone"
|
||||
type="tel"
|
||||
placeholder="+31 (0)6 1234 5678"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Submit Button */}
|
||||
<div className="flex gap-4 pt-4">
|
||||
<button
|
||||
type="submit"
|
||||
disabled={isSubmitting}
|
||||
className="flex-1 px-6 py-3 rounded-lg bg-primary-cta text-white font-semibold disabled:opacity-60 disabled:cursor-not-allowed transition-opacity"
|
||||
>
|
||||
{isSubmitting ? "Posting Job..." : "Post Job"}
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => window.history.back()}
|
||||
className="px-6 py-3 rounded-lg bg-secondary-button text-foreground font-semibold hover:bg-background-accent/20 transition-colors"
|
||||
>
|
||||
Cancel
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
{/* Info Section */}
|
||||
<div className="mt-12 grid grid-cols-1 md:grid-cols-3 gap-6">
|
||||
<div className="text-center">
|
||||
<div className="text-3xl font-bold text-primary-cta mb-2">100%</div>
|
||||
<p className="text-foreground/75">of jobs posted are visible immediately</p>
|
||||
</div>
|
||||
<div className="text-center">
|
||||
<div className="text-3xl font-bold text-primary-cta mb-2">24/7</div>
|
||||
<p className="text-foreground/75">job listings stay live around the clock</p>
|
||||
</div>
|
||||
<div className="text-center">
|
||||
<div className="text-3xl font-bold text-primary-cta mb-2">All NL</div>
|
||||
<p className="text-foreground/75">reach candidates across Netherlands</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
<div id="contact" data-section="contact">
|
||||
<ContactCenter
|
||||
tag="Newsletter"
|
||||
title="Get Notified About Top Talent"
|
||||
description="Subscribe to receive alerts when qualified candidates match your job requirements. Stay ahead of the competition and hire the best talent."
|
||||
tagIcon={Mail}
|
||||
tagAnimation="slide-up"
|
||||
background={{ variant: "animated-grid" }}
|
||||
useInvertedBackground={false}
|
||||
inputPlaceholder="Enter your company email"
|
||||
buttonText="Subscribe"
|
||||
termsText="We respect your privacy. Unsubscribe anytime from our notifications."
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div id="footer" data-section="footer">
|
||||
<FooterBase
|
||||
columns={footerColumns}
|
||||
logoText="Jobee"
|
||||
copyrightText="© 2025 Jobee | Dutch Job Listing Platform"
|
||||
columns={footerColumns}
|
||||
/>
|
||||
</div>
|
||||
</ThemeProvider>
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
"use client";
|
||||
|
||||
import { useState, useMemo } from "react";
|
||||
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
|
||||
import NavbarStyleCentered from "@/components/navbar/NavbarStyleCentered/NavbarStyleCentered";
|
||||
import FeatureCardEight from "@/components/sections/feature/FeatureCardEight";
|
||||
import ContactCenter from "@/components/sections/contact/ContactCenter";
|
||||
import FooterBase from "@/components/sections/footer/FooterBase";
|
||||
import { Search, MapPin, DollarSign, Briefcase, X, ChevronLeft, ChevronRight } from "lucide-react";
|
||||
import { Sparkles, Mail } from "lucide-react";
|
||||
|
||||
const navItems = [
|
||||
{ name: "Search Jobs", id: "search" },
|
||||
@@ -41,81 +42,7 @@ const footerColumns = [
|
||||
},
|
||||
];
|
||||
|
||||
interface Job {
|
||||
id: string;
|
||||
title: string;
|
||||
company: string;
|
||||
location: string;
|
||||
salary: string;
|
||||
jobType: string;
|
||||
category: string;
|
||||
description: string;
|
||||
postedDate: string;
|
||||
}
|
||||
|
||||
const allJobs: Job[] = [
|
||||
{
|
||||
id: "1", title: "Senior Software Engineer", company: "TechCorp Amsterdam", location: "Amsterdam, North Holland", salary: "€80,000 - €120,000", jobType: "Full-time", category: "Technology", description: "We're looking for an experienced software engineer to join our growing team.", postedDate: "2 days ago"},
|
||||
{
|
||||
id: "2", title: "UX/UI Designer", company: "DesignStudio Rotterdam", location: "Rotterdam, South Holland", salary: "€50,000 - €75,000", jobType: "Full-time", category: "Design", description: "Join our creative team to design beautiful user experiences for web and mobile.", postedDate: "1 day ago"},
|
||||
{
|
||||
id: "3", title: "Data Scientist", company: "DataFlow Utrecht", location: "Utrecht, Utrecht", salary: "€70,000 - €110,000", jobType: "Full-time", category: "Data & Analytics", description: "Help us build predictive models and analyze large datasets to drive business insights.", postedDate: "3 days ago"},
|
||||
{
|
||||
id: "4", title: "Product Manager", company: "InnovateCo The Hague", location: "The Hague, South Holland", salary: "€60,000 - €95,000", jobType: "Full-time", category: "Product", description: "Lead product strategy and development for our flagship platform.", postedDate: "5 days ago"},
|
||||
{
|
||||
id: "5", title: "Marketing Manager", company: "BrandBoost Groningen", location: "Groningen, Groningen", salary: "€45,000 - €70,000", jobType: "Full-time", category: "Marketing", description: "Develop and execute marketing strategies to grow our brand presence.", postedDate: "1 week ago"},
|
||||
{
|
||||
id: "6", title: "Backend Developer", company: "CodeLabs Eindhoven", location: "Eindhoven, North Brabant", salary: "€65,000 - €100,000", jobType: "Full-time", category: "Technology", description: "Build scalable backend systems for millions of users worldwide.", postedDate: "3 days ago"},
|
||||
{
|
||||
id: "7", title: "HR Specialist", company: "PeopleFirst Maastricht", location: "Maastricht, Limburg", salary: "€40,000 - €60,000", jobType: "Full-time", category: "Human Resources", description: "Support our HR team in recruiting and developing top talent.", postedDate: "4 days ago"},
|
||||
{
|
||||
id: "8", title: "Sales Executive", company: "SalesForce Arnhem", location: "Arnhem, Gelderland", salary: "€35,000 - €55,000", jobType: "Full-time", category: "Sales", description: "Generate leads and close deals for our innovative B2B solutions.", postedDate: "2 days ago"},
|
||||
{
|
||||
id: "9", title: "DevOps Engineer", company: "CloudNine Amsterdam", location: "Amsterdam, North Holland", salary: "€75,000 - €115,000", jobType: "Full-time", category: "Technology", description: "Manage cloud infrastructure and CI/CD pipelines for our platform.", postedDate: "1 day ago"},
|
||||
{
|
||||
id: "10", title: "Content Writer", company: "ContentHub Haarlem", location: "Haarlem, North Holland", salary: "€35,000 - €50,000", jobType: "Part-time", category: "Content", description: "Create engaging content for our blog and social media channels.", postedDate: "2 days ago"},
|
||||
{
|
||||
id: "11", title: "Financial Analyst", company: "FinanceCore Amsterdam", location: "Amsterdam, North Holland", salary: "€55,000 - €85,000", jobType: "Full-time", category: "Finance", description: "Analyze financial data and provide insights for strategic decision-making.", postedDate: "6 days ago"},
|
||||
{
|
||||
id: "12", title: "Frontend Developer", company: "WebStudio Rotterdam", location: "Rotterdam, South Holland", salary: "€60,000 - €95,000", jobType: "Full-time", category: "Technology", description: "Build beautiful, responsive web applications using modern technologies.", postedDate: "5 days ago"},
|
||||
];
|
||||
|
||||
const JOBS_PER_PAGE = 6;
|
||||
|
||||
export default function SearchPage() {
|
||||
const [searchQuery, setSearchQuery] = useState("");
|
||||
const [selectedCategory, setSelectedCategory] = useState<string | null>(null);
|
||||
const [selectedJobType, setSelectedJobType] = useState<string | null>(null);
|
||||
const [selectedLocation, setSelectedLocation] = useState<string | null>(null);
|
||||
const [currentPage, setCurrentPage] = useState(1);
|
||||
|
||||
const categories = ["Technology", "Design", "Data & Analytics", "Product", "Marketing", "Finance", "Sales", "Content", "Human Resources"];
|
||||
const jobTypes = ["Full-time", "Part-time", "Contract", "Remote"];
|
||||
const locations = [
|
||||
"Amsterdam, North Holland", "Rotterdam, South Holland", "Utrecht, Utrecht", "The Hague, South Holland", "Groningen, Groningen", "Eindhoven, North Brabant", "Maastricht, Limburg", "Arnhem, Gelderland", "Haarlem, North Holland"];
|
||||
|
||||
const filteredJobs = useMemo(() => {
|
||||
return allJobs.filter((job) => {
|
||||
const matchesSearch = searchQuery === "" || job.title.toLowerCase().includes(searchQuery.toLowerCase()) || job.company.toLowerCase().includes(searchQuery.toLowerCase());
|
||||
const matchesCategory = selectedCategory === null || job.category === selectedCategory;
|
||||
const matchesJobType = selectedJobType === null || job.jobType === selectedJobType;
|
||||
const matchesLocation = selectedLocation === null || job.location === selectedLocation;
|
||||
|
||||
return matchesSearch && matchesCategory && matchesJobType && matchesLocation;
|
||||
});
|
||||
}, [searchQuery, selectedCategory, selectedJobType, selectedLocation]);
|
||||
|
||||
const totalPages = Math.ceil(filteredJobs.length / JOBS_PER_PAGE);
|
||||
const paginatedJobs = filteredJobs.slice((currentPage - 1) * JOBS_PER_PAGE, currentPage * JOBS_PER_PAGE);
|
||||
|
||||
const handleClearFilters = () => {
|
||||
setSearchQuery("");
|
||||
setSelectedCategory(null);
|
||||
setSelectedJobType(null);
|
||||
setSelectedLocation(null);
|
||||
setCurrentPage(1);
|
||||
};
|
||||
|
||||
return (
|
||||
<ThemeProvider
|
||||
defaultButtonVariant="text-stagger"
|
||||
@@ -138,217 +65,54 @@ export default function SearchPage() {
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div className="min-h-screen bg-gradient-to-br from-background to-card py-16 px-4">
|
||||
<div className="max-w-6xl mx-auto">
|
||||
{/* Search Header */}
|
||||
<div className="mb-12">
|
||||
<h1 className="text-4xl md:text-5xl font-bold text-foreground mb-4">Find Your Perfect Job</h1>
|
||||
<p className="text-foreground/70 text-lg mb-8">Search across thousands of opportunities in the Netherlands</p>
|
||||
<div id="features" data-section="features">
|
||||
<FeatureCardEight
|
||||
title="Search & Browse Jobs Across the Netherlands"
|
||||
description="Explore our comprehensive job search experience with advanced filters, diverse listings, and tailored opportunities for every career stage."
|
||||
tag="Advanced Search"
|
||||
tagIcon={Sparkles}
|
||||
tagAnimation="slide-up"
|
||||
textboxLayout="default"
|
||||
useInvertedBackground={false}
|
||||
features={[
|
||||
{
|
||||
id: 1,
|
||||
title: "Filter by Province", description:
|
||||
"Search jobs from all 12 Dutch provinces including Amsterdam, Rotterdam, Utrecht, and beyond. Find opportunities near you or explore remote positions nationwide.", imageSrc:
|
||||
"http://img.b2bpic.net/free-photo/homepage-concept-with-search-bar_23-2150040187.jpg?_wi=4", imageAlt: "Province filter interface"},
|
||||
{
|
||||
id: 2,
|
||||
title: "Refine by Category", description:
|
||||
"Browse across multiple industries: Technology, Healthcare, Finance, Engineering, Marketing, Sales, and more. Find roles that match your expertise and interests.", imageSrc:
|
||||
"http://img.b2bpic.net/free-vector/professional-bookkeeping-postcard-template_23-2149341358.jpg?_wi=2", imageAlt: "Job category options"},
|
||||
{
|
||||
id: 3,
|
||||
title: "Salary & Experience Level", description:
|
||||
"Filter by salary range, job type (full-time, part-time, contract), and experience level (entry-level, mid-career, senior) to find the perfect match for your career goals.", imageSrc:
|
||||
"http://img.b2bpic.net/free-photo/corporate-workers-brainstorming-together_23-2148804568.jpg?_wi=3", imageAlt: "Salary and level filters"},
|
||||
]}
|
||||
buttons={[
|
||||
{
|
||||
text: "Start Your Search", href: "/search"},
|
||||
]}
|
||||
buttonAnimation="slide-up"
|
||||
/>
|
||||
</div>
|
||||
|
||||
{/* Search Bar */}
|
||||
<div className="relative mb-8">
|
||||
<Search className="absolute left-4 top-1/2 transform -translate-y-1/2 text-primary-cta w-5 h-5" />
|
||||
<input
|
||||
type="text"
|
||||
placeholder="Search job title or company..."
|
||||
value={searchQuery}
|
||||
onChange={(e) => {
|
||||
setSearchQuery(e.target.value);
|
||||
setCurrentPage(1);
|
||||
}}
|
||||
className="w-full pl-12 pr-4 py-3 rounded-lg border border-accent/20 bg-card text-foreground placeholder-foreground/50 focus:outline-none focus:border-primary-cta focus:ring-2 focus:ring-primary-cta/20 transition"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="grid grid-cols-1 lg:grid-cols-4 gap-8">
|
||||
{/* Filters Sidebar */}
|
||||
<div className="lg:col-span-1">
|
||||
<div className="bg-card rounded-lg p-6 border border-accent/10 sticky top-24">
|
||||
<div className="flex justify-between items-center mb-6">
|
||||
<h3 className="text-lg font-semibold text-foreground">Filters</h3>
|
||||
{(selectedCategory || selectedJobType || selectedLocation) && (
|
||||
<button
|
||||
onClick={handleClearFilters}
|
||||
className="text-sm text-primary-cta hover:text-primary-cta/80 transition"
|
||||
>
|
||||
Clear
|
||||
</button>
|
||||
)}
|
||||
</div>
|
||||
|
||||
{/* Category Filter */}
|
||||
<div className="mb-8">
|
||||
<h4 className="text-sm font-semibold text-foreground mb-3 flex items-center gap-2">
|
||||
<Briefcase className="w-4 h-4" />
|
||||
Category
|
||||
</h4>
|
||||
<div className="space-y-2">
|
||||
{categories.map((cat) => (
|
||||
<label key={cat} className="flex items-center gap-3 cursor-pointer">
|
||||
<input
|
||||
type="checkbox"
|
||||
checked={selectedCategory === cat}
|
||||
onChange={(e) => {
|
||||
setSelectedCategory(e.target.checked ? cat : null);
|
||||
setCurrentPage(1);
|
||||
}}
|
||||
className="w-4 h-4 rounded border-accent/20 text-primary-cta focus:ring-primary-cta/20 cursor-pointer"
|
||||
/>
|
||||
<span className="text-sm text-foreground/70">{cat}</span>
|
||||
</label>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Job Type Filter */}
|
||||
<div className="mb-8">
|
||||
<h4 className="text-sm font-semibold text-foreground mb-3">Job Type</h4>
|
||||
<div className="space-y-2">
|
||||
{jobTypes.map((type) => (
|
||||
<label key={type} className="flex items-center gap-3 cursor-pointer">
|
||||
<input
|
||||
type="checkbox"
|
||||
checked={selectedJobType === type}
|
||||
onChange={(e) => {
|
||||
setSelectedJobType(e.target.checked ? type : null);
|
||||
setCurrentPage(1);
|
||||
}}
|
||||
className="w-4 h-4 rounded border-accent/20 text-primary-cta focus:ring-primary-cta/20 cursor-pointer"
|
||||
/>
|
||||
<span className="text-sm text-foreground/70">{type}</span>
|
||||
</label>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Location Filter */}
|
||||
<div>
|
||||
<h4 className="text-sm font-semibold text-foreground mb-3 flex items-center gap-2">
|
||||
<MapPin className="w-4 h-4" />
|
||||
Location
|
||||
</h4>
|
||||
<div className="space-y-2">
|
||||
{locations.map((loc) => (
|
||||
<label key={loc} className="flex items-center gap-3 cursor-pointer">
|
||||
<input
|
||||
type="checkbox"
|
||||
checked={selectedLocation === loc}
|
||||
onChange={(e) => {
|
||||
setSelectedLocation(e.target.checked ? loc : null);
|
||||
setCurrentPage(1);
|
||||
}}
|
||||
className="w-4 h-4 rounded border-accent/20 text-primary-cta focus:ring-primary-cta/20 cursor-pointer"
|
||||
/>
|
||||
<span className="text-sm text-foreground/70">{loc}</span>
|
||||
</label>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Job Listings */}
|
||||
<div className="lg:col-span-3">
|
||||
{/* Results Info */}
|
||||
<div className="mb-6 flex justify-between items-center">
|
||||
<p className="text-sm text-foreground/70">
|
||||
Showing {paginatedJobs.length > 0 ? (currentPage - 1) * JOBS_PER_PAGE + 1 : 0}-{Math.min(currentPage * JOBS_PER_PAGE, filteredJobs.length)} of {filteredJobs.length} jobs
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{/* Job Cards */}
|
||||
{paginatedJobs.length > 0 ? (
|
||||
<div className="space-y-4 mb-8">
|
||||
{paginatedJobs.map((job) => (
|
||||
<div key={job.id} className="bg-card rounded-lg border border-accent/10 p-6 hover:border-primary-cta/30 transition cursor-pointer">
|
||||
<div className="flex justify-between items-start mb-3">
|
||||
<div className="flex-1">
|
||||
<h3 className="text-xl font-semibold text-foreground mb-1">{job.title}</h3>
|
||||
<p className="text-sm text-foreground/70">{job.company}</p>
|
||||
</div>
|
||||
<span className="px-3 py-1 bg-primary-cta/10 text-primary-cta text-xs font-semibold rounded-full">{job.category}</span>
|
||||
</div>
|
||||
|
||||
<p className="text-foreground/70 text-sm mb-4">{job.description}</p>
|
||||
|
||||
<div className="flex flex-wrap gap-6 mb-4">
|
||||
<div className="flex items-center gap-2">
|
||||
<MapPin className="w-4 h-4 text-accent" />
|
||||
<span className="text-sm text-foreground/70">{job.location}</span>
|
||||
</div>
|
||||
<div className="flex items-center gap-2">
|
||||
<DollarSign className="w-4 h-4 text-accent" />
|
||||
<span className="text-sm text-foreground/70">{job.salary}</span>
|
||||
</div>
|
||||
<div className="flex items-center gap-2">
|
||||
<Briefcase className="w-4 h-4 text-accent" />
|
||||
<span className="text-sm text-foreground/70">{job.jobType}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="flex justify-between items-center">
|
||||
<span className="text-xs text-foreground/50">{job.postedDate}</span>
|
||||
<button className="px-4 py-2 bg-primary-cta text-white rounded-lg hover:bg-primary-cta/90 transition text-sm font-medium">
|
||||
Apply Now
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
) : (
|
||||
<div className="bg-card rounded-lg border border-accent/10 p-12 text-center">
|
||||
<Search className="w-12 h-12 text-foreground/30 mx-auto mb-4" />
|
||||
<h3 className="text-lg font-semibold text-foreground mb-2">No jobs found</h3>
|
||||
<p className="text-foreground/70 mb-4">Try adjusting your search filters or search terms</p>
|
||||
<button
|
||||
onClick={handleClearFilters}
|
||||
className="px-4 py-2 bg-primary-cta text-white rounded-lg hover:bg-primary-cta/90 transition text-sm font-medium"
|
||||
>
|
||||
Clear Filters
|
||||
</button>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* Pagination */}
|
||||
{totalPages > 1 && (
|
||||
<div className="flex justify-center items-center gap-2 mt-12">
|
||||
<button
|
||||
onClick={() => setCurrentPage(Math.max(1, currentPage - 1))}
|
||||
disabled={currentPage === 1}
|
||||
className="p-2 rounded-lg border border-accent/20 text-foreground hover:bg-card disabled:opacity-50 disabled:cursor-not-allowed transition"
|
||||
>
|
||||
<ChevronLeft className="w-5 h-5" />
|
||||
</button>
|
||||
|
||||
<div className="flex items-center gap-2">
|
||||
{Array.from({ length: totalPages }, (_, i) => i + 1).map((page) => (
|
||||
<button
|
||||
key={page}
|
||||
onClick={() => setCurrentPage(page)}
|
||||
className={`w-10 h-10 rounded-lg font-medium transition ${
|
||||
currentPage === page
|
||||
? "bg-primary-cta text-white"
|
||||
: "border border-accent/20 text-foreground hover:bg-card"
|
||||
}`}
|
||||
>
|
||||
{page}
|
||||
</button>
|
||||
))}
|
||||
</div>
|
||||
|
||||
<button
|
||||
onClick={() => setCurrentPage(Math.min(totalPages, currentPage + 1))}
|
||||
disabled={currentPage === totalPages}
|
||||
className="p-2 rounded-lg border border-accent/20 text-foreground hover:bg-card disabled:opacity-50 disabled:cursor-not-allowed transition"
|
||||
>
|
||||
<ChevronRight className="w-5 h-5" />
|
||||
</button>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="contact" data-section="contact">
|
||||
<ContactCenter
|
||||
tag="Save Your Search"
|
||||
title="Get Personalized Job Recommendations"
|
||||
description="Create an account and set up job alerts. We'll notify you about new positions matching your criteria so you never miss an opportunity."
|
||||
tagIcon={Mail}
|
||||
tagAnimation="slide-up"
|
||||
background={{
|
||||
variant: "animated-grid"}}
|
||||
useInvertedBackground={false}
|
||||
inputPlaceholder="Enter your email to get started"
|
||||
buttonText="Create Alert"
|
||||
termsText="Your preferences are private and secure. Manage your alerts anytime."
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div id="footer" data-section="footer">
|
||||
|
||||
Reference in New Issue
Block a user