Skip to content

Commit

Permalink
Merge pull request #11 from Kiran-Biradar/main - Added frontend code …
Browse files Browse the repository at this point in the history
…for new pages

application status and job posting page added
  • Loading branch information
once-human authored Aug 12, 2024
2 parents e2f0558 + 1e67826 commit ec59e85
Show file tree
Hide file tree
Showing 7 changed files with 535 additions and 7 deletions.
71 changes: 71 additions & 0 deletions public/application-status.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
<?php include('../src/templates/header.php'); ?>
<head>
<link rel="stylesheet" href="../public/assets/css/application-status.css">
</head>
<body>
<div class="container">
<!-- Left Sidebar: Application Filter -->
<aside class="sidebar">
<h3>Application Filter</h3>
<ul>
<li><input type="checkbox" id="status1" name="status1"> Status</li>
<li><input type="checkbox" id="date1" name="date1"> Date</li>
<!-- Add more filters as needed -->
</ul>
</aside>

<!-- Right Section: Application List -->
<main class="main-content">
<h2>Application List</h2>

<!-- Job Card 1 -->
<div class="job-card">
<div class="job-info">
<h3>Job Title</h3>
<p>Company Name</p>
<button class="details-button">Details</button>
</div>
<div class="status-bar">
<div class="step-bar">
<div class="step completed">
<div class="step-number">&#10003;</div>
</div>
<div class="step active">
<div class="step-number">2</div>
</div>
<div class="step">
<div class="step-number">3</div>
</div>
</div>
</div>
</div>

<!-- Job Card 2 -->
<div class="job-card">
<div class="job-info">
<h3>Job Title</h3>
<p>Company Name</p>
<button class="details-button">Details</button>
</div>
<div class="status-bar">
<div class="step-bar">
<div class="step completed">
<div class="step-number">&#10003;</div>
</div>
<div class="step active">
<div class="step-number">2</div>
</div>
<div class="step">
<div class="step-number">3</div>
</div>
</div>
</div>
</div>

<!-- Add more job cards as needed -->
</main>
</div>
<?php include('../src/templates/footer.php'); ?>

</body>
</html>
131 changes: 131 additions & 0 deletions public/assets/css/application-status.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
body {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
background-color: #f4f4f4;
}

.container {
display: flex;
padding: 20px;
min-height: 100vh;
}

.sidebar {
width: 15%;
padding: 20px;
background-color: #f4f4f4;
border-right: 1px solid #ddd;
}

.sidebar h3 {
margin-bottom: 10px;
}

.sidebar ul {
list-style-type: none;
padding: 0;
}

.sidebar ul li {
margin-bottom: 10px;
}

.main-content {
width: 75%;
margin-left: 5%;
}

.job-card {
border-radius: 12px;
width: 800px;
display: flex;
justify-content: space-between;
padding: 15px;
background-color: #fff;
border: 1px solid #ddd;
margin-bottom: 20px;
}

.job-info {
width: 50%;
}
.job-info h3 {
margin: 0;
font-size: 18px;
}

.job-info p {
margin: 5px 0;
}

.details-button {
padding: 5px 10px;
background-color: #007bff;
color: #fff;
border: none;
cursor: pointer;
border-radius: 3px;
}

.status-bar {
width: 40%;
display: flex;
align-items: center;
}

.step-bar {
display: flex;
align-items: center;
}

.step {
display: flex;
justify-content: center;
align-items: center;
width: 40px;
height: 40px;
border-radius: 50%;
border: 2px solid #007bff;
background-color: #fff;
position: relative;
z-index: 1;
}

.step-number {
font-size: 16px;
font-weight: bold;
color: #007bff;
}

.completed .step-number {
color: #fff;
}

.completed {
background-color: #007bff;
}

.active .step-number {
color: #fff;
}

.active {
background-color: #007bff;
}

.step + .step {
margin-left: 20px;
}

.step + .step::before {
content: '';
position: absolute;
top: 50%;
left: -20px;
width: 20px;
height: 2px;
background-color: #007bff;
z-index: 0;
transform: translateY(-50%);
}
18 changes: 11 additions & 7 deletions public/assets/css/job-details.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f4;
background-color: white;
}

.job-details-page {
Expand All @@ -13,13 +13,16 @@ body {

/* Left Sidebar */
.sidebar-left {
width: 25%;
background-color: #333;
color: #fff;
width: 20%;
background-color: #f2f2f2;
color: black;
padding: 20px;
position: fixed;
height: 100%;
position: sticky;
top: 70px;
height: 600px;
overflow-y: auto;
border-radius: 20px;
margin: 10px;
}

.sidebar-left h2 {
Expand All @@ -39,6 +42,8 @@ body {
.sidebar-left ul {
list-style: none;
padding: 0;
display: flex;
flex-direction: column !important;
}

.sidebar-left ul li {
Expand All @@ -51,7 +56,6 @@ body {

/* Right Section - Job Details */
.job-details-section {
margin-left: 25%;
width: 75%;
padding: 20px;
overflow-y: auto;
Expand Down
142 changes: 142 additions & 0 deletions public/assets/css/job-posting.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
body {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
background-color: #f4f4f4;
}

.container {
padding: 20px;
}

.full-width {
width: 100%;
}

.upload-section {
display: flex;
justify-content: flex-end;
margin-bottom: 20px;
}

.upload-button {
padding: 10px 20px;
background-color: #007bff;
color: #fff;
border: none;
cursor: pointer;
border-radius: 3px;
}

.main-content {
min-height: 100vh;
}

.job-card {
display: flex;
justify-content: space-between;
padding: 15px;
background-color: #fff;
border: 1px solid #ddd;
margin-bottom: 20px;
}

.job-info h3 {
margin: 0;
font-size: 18px;
}

.job-info p {
margin: 5px 0;
}

.details-button {
padding: 5px 10px;
background-color: #007bff;
color: #fff;
border: none;
cursor: pointer;
border-radius: 3px;
}

.response-count {
display: flex;
align-items: center;
font-size: 16px;
font-weight: bold;
}

/* Popup Styling */
.popup {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
justify-content: center;
align-items: center;
}

.popup-content {
background-color: #fff;
padding: 20px;
border-radius: 5px;
width: 400px;
max-width: 90%;
position: relative;
}

.close-button {
position: absolute;
top: 10px;
right: 10px;
font-size: 20px;
cursor: pointer;
}

.popup-content h3 {
margin: 0 0 20px;
}

.popup-content label {
display: block;
margin: 10px 0 5px;
}

.popup-content input,
.popup-content textarea,
.popup-content select {
width: 100%;
padding: 8px;
margin-bottom: 15px;
border: 1px solid #ddd;
border-radius: 3px;
}

.submit-button {
padding: 10px 15px;
background-color: #007bff;
color: #fff;
border: none;
cursor: pointer;
border-radius: 3px;
width: 100%;
}

.job-actions {
margin-top: 10px;
}

.edit-button, .delete-button {
margin-right: 10px;
color: blue;
font-family: 'Times New Roman', Times, serif;
font-size: 14px;
cursor: pointer;
}

.delete-button{
color: red;
}
Loading

0 comments on commit ec59e85

Please sign in to comment.