-
Notifications
You must be signed in to change notification settings - Fork 0
/
recruiter-dashboard.html
170 lines (150 loc) · 4.42 KB
/
recruiter-dashboard.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Recruiter Dashboard</title>
<style>
body {
font-family: 'Roboto', sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f4;
color: #333;
/* display: flex; */
flex-direction: column;
min-height: 100vh;
}
header {
background-color: #5191fd;
color: white;
padding: 20px;
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
font-size: 24px;
font-weight: 700;
}
nav ul {
list-style: none;
padding: 0;
margin: 0;
display: flex;
}
nav ul li {
margin-left: 20px;
}
nav ul li a {
color: white;
text-decoration: none;
font-weight: 500;
transition: color 0.3s;
}
nav ul li a:hover {
color: #ffeb3b;
}
.job-list {
background-color: white;
padding: 30px;
margin: 20px auto;
max-width: 800px;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.job-list h2 {
font-size: 28px;
color: #5191fd;
margin-bottom: 20px;
}
.job-card {
background-color: #fff;
padding: 20px;
margin-bottom: 20px;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.job-card h3 {
font-size: 22px;
color: #333;
margin-bottom: 10px;
}
.job-card p {
font-size: 16px;
margin-bottom: 10px;
}
.job-card strong {
color: #555;
}
.btn {
display: inline-block;
padding: 10px 20px;
background-color: #5191fd;
color: white;
border: none;
border-radius: 5px;
text-decoration: none;
font-weight: 600;
cursor: pointer;
transition: background-color 0.3s;
}
.btn:hover {
background-color: #3f78d5;
}
footer {
text-align: center;
padding: 10px;
background-color: #333;
color: white;
margin-top: auto;
width: 100%;
}
</style>
</head>
<body>
<header>
<div class="logo">RecruitPro</div>
<nav>
<ul>
<li><a href="post-job.html">Post Job</a></li>
</ul>
</nav>
</header>
<section class="job-list">
<h2>Posted Jobs</h2>
<div id="jobs-container"></div>
</section>
<footer>
<p>© 2024 RecruitPro. All rights reserved.</p>
</footer>
<script>
// Retrieve jobs from localStorage
const jobs = JSON.parse(localStorage.getItem('jobs')) || [];
const jobsContainer = document.getElementById('jobs-container');
if (jobs.length === 0) {
jobsContainer.innerHTML = '<p>No jobs available at the moment.</p>';
} else {
jobs.forEach(job => {
const jobElement = document.createElement('div');
jobElement.classList.add('job-card');
jobElement.innerHTML = `
<h3>Job Title: ${job.title}</h3>
<p><strong>Salary:</strong> ${job.salary} PKR</p>
<p><strong>Description:</strong> ${job.description}</p>
<p><strong>Experience Required:</strong> ${job.experience} years</p>
<p><strong>Incentive:</strong> ${job.incentive} PKR</p>
<button class="btn" onclick='viewJobDetails(${JSON.stringify(job)})'>View Details</button>
`;
jobsContainer.appendChild(jobElement);
});
}
function viewJobDetails(job) {
// store the selected job in local storage
localStorage.setItem('selectedJob', JSON.stringify(job));
// redirect to job details page
window.location.href = 'job-details.html';
}
</script>
</body>
</html>