Skip to content

Commit

Permalink
results page modified
Browse files Browse the repository at this point in the history
  • Loading branch information
basil-reji committed Apr 29, 2023
1 parent 59d97c8 commit 2f62d2f
Show file tree
Hide file tree
Showing 5 changed files with 81 additions and 111 deletions.
65 changes: 34 additions & 31 deletions routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ router.get('/results', function (req, res, next) {
title: `Results | ${app_name}`,
page_head: 'Results',
page_nav_name: 'Results',
reults_page: true
});
});

Expand All @@ -92,6 +93,7 @@ router.get('/results/view', function (req, res, next) {
title: `Results | ${app_name}`,
page_head: 'Results',
page_nav_name: 'Results',
reults_page: true,
message
});
});
Expand All @@ -106,6 +108,7 @@ router.post('/results/view', function (req, res, next) {
title: `View Result |${app_name}`,
page_head: 'Results',
page_nav_name: 'Results',
reults_page: true,
candidate
});
})
Expand All @@ -116,36 +119,36 @@ router.post('/results/view', function (req, res, next) {
})
});

router.get('/results/view_result', function (req, res, next) {
let message = req.flash('message');
res.render('pages/view_result',
{
title: `Results | ${app_name}`,
page_head: 'Results',
page_nav_name: 'Results',
message
});
});


router.get('/test', (req, res, next) => {
let user = req.user;
res.render('test', {
title: `Test Page | ${app_name}`,
user
});
});

router.post('/test', (req, res, next) => {
let user = req.user;
// console.log(req.body)

res.send(
{
response: "acknowledged",
status: true
}
);
});
// router.get('/results/view_result', function (req, res, next) {
// let message = req.flash('message');
// res.render('pages/view_result',
// {
// title: `Results | ${app_name}`,
// page_head: 'Results',
// page_nav_name: 'Results',
// message
// });
// });


// router.get('/test', (req, res, next) => {
// let user = req.user;
// res.render('test', {
// title: `Test Page | ${app_name}`,
// user
// });
// });

// router.post('/test', (req, res, next) => {
// let user = req.user;
// // console.log(req.body)

// res.send(
// {
// response: "acknowledged",
// status: true
// }
// );
// });

module.exports = router;
6 changes: 3 additions & 3 deletions views/pages/results.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" class="ico"
viewBox="0 0 16 16">
<path
d="M15.502 1.94a.5.5 0 0 1 0 .706L14.459 3.69l-2-2L13.502.646a.5.5 0 0 1 .707 0l1.293 1.293zm-1.75 2.456-2-2L4.939 9.21a.5.5 0 0 0-.121.196l-.805 2.414a.25.25 0 0 0 .316.316l2.414-.805a.5.5 0 0 0 .196-.12l6.813-6.814z" />
<path fill-rule="evenodd"
d="M1 13.5A1.5 1.5 0 0 0 2.5 15h11a1.5 1.5 0 0 0 1.5-1.5v-6a.5.5 0 0 0-1 0v6a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-11a.5.5 0 0 1 .5-.5H9a.5.5 0 0 0 0-1H2.5A1.5 1.5 0 0 0 1 2.5v11z" />
d="M5.5 7a.5.5 0 0 0 0 1h5a.5.5 0 0 0 0-1h-5zM5 9.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5zm0 2a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 0 1h-2a.5.5 0 0 1-.5-.5z" />
<path
d="M9.5 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V4.5L9.5 0zm0 1v2A1.5 1.5 0 0 0 11 4.5h2V14a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h5.5z" />
</svg>
View Results
</a>
Expand Down
47 changes: 42 additions & 5 deletions views/pages/view_result.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@
<div class="col-12 col-md-10 col-lg-8" data-aos="fade-up" data-aos-delay="100">
<div class="card">

<div class="card-body">
<h5 class="text-center" style="color: #21BF73;">
<strong>
Congratulations!<br>
You are eligible to participate in the next round.
</strong>
</h5>
</div>

<div class="card-body">
<h3>Basic Details:</h3>
<table class="table mb-4">
Expand Down Expand Up @@ -44,18 +53,46 @@
</tr>
</tbody>
</table>
</div>

<div class="card-body">
<p style="font-weight: 700;">Based on your test scores and qualifications, you have been
selected to move
on to the next round. In this round, we will use a combination of your preference, test
score, rank, and
other factors to assign you to a pool of companies.
</p>
<p>
These companies will be conducting
offline interviews on May 8th and May 13th, 2023. You will have the opportunity to attend
these interviews and potentially secure a job offer. Good luck, and we look forward to
seeing you at the next round!
</p>
</div>

</div>
</div>
<div class="col-12 col-md-10 col-lg-8" data-aos="fade-up" data-aos-delay="100">
<div class="card">

<div class="card-body">
<p style="color: #FC862B; font-weight: 700">
Please regularly check the update page on our website for all the updates
and announcements regarding the further process. We strive to keep our participants informed
and
updated with any changes or important information.</p>
<div class="card-footer">
<div class="button mt-4 pt-4 row">
<div class="button mt-2 row">
<div class="col-12">
<a href="/results/view">
<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" class="ico"
viewBox="0 0 16 16">
<path
d="M15.502 1.94a.5.5 0 0 1 0 .706L14.459 3.69l-2-2L13.502.646a.5.5 0 0 1 .707 0l1.293 1.293zm-1.75 2.456-2-2L4.939 9.21a.5.5 0 0 0-.121.196l-.805 2.414a.25.25 0 0 0 .316.316l2.414-.805a.5.5 0 0 0 .196-.12l6.813-6.814z" />
<path fill-rule="evenodd"
d="M1 13.5A1.5 1.5 0 0 0 2.5 15h11a1.5 1.5 0 0 0 1.5-1.5v-6a.5.5 0 0 0-1 0v6a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-11a.5.5 0 0 1 .5-.5H9a.5.5 0 0 0 0-1H2.5A1.5 1.5 0 0 0 1 2.5v11z" />
d="M5.5 7a.5.5 0 0 0 0 1h5a.5.5 0 0 0 0-1h-5zM5 9.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5zm0 2a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 0 1h-2a.5.5 0 0 1-.5-.5z" />
<path
d="M9.5 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V4.5L9.5 0zm0 1v2A1.5 1.5 0 0 0 11 4.5h2V14a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h5.5z" />
</svg>
Check another Result
View Results
</a>
</div>
</div>
Expand Down
3 changes: 2 additions & 1 deletion views/partials/header.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
<li><a class="nav-link scrollto {{#if home_page}}active{{/if}}" href="/">Home</a></li>
<li><a class="nav-link scrollto" href="/#about">About</a></li>
<li><a class="nav-link scrollto" href="/#recruiters">Recruiters</a></li>
<li><a class="nav-link scrollto" href="/#process">Process</a></li>
{{!-- <li><a class="nav-link scrollto" href="/#process">Process</a></li> --}}
<li><a class="nav-link scrollto" href="/#timeline">Timeline</a></li>
<li><a class="nav-link scrollto"{{#if reults_page}}active{{/if}} href="/results">Results</a></li>
<li><a class="nav-link scrollto" href="/#contact">Contact</a></li>
{{!-- <li><a class="nav-link scrollto {{#if updates_page}}active{{/if}}" href="/updates">Updates</a></li> --}}
</ul>
Expand Down
71 changes: 0 additions & 71 deletions views/updates.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -42,82 +42,11 @@
attention and give it their best shot!
</strong>
</p>
{{!-- <p>
For further details and detailed instructions, please visit the link provided below:
</p> --}}
<p><strong style="color: #e82f2f;">The oneline test has been completed!</strong></p>
{{!-- <ul>
<li>
<i class="bx bx-link"></i>
<a href="/onlinetest">View detailed Instructions</a>
</li>
</ul> --}}
</div>
</div>
</div>
</div>
<div class="col-12 col-md-10 col-lg-8" data-aos="fade-up" data-aos-delay="100">
<div class="card">

<div class="card-body">
<div class="content">
<h3>Registration Closed</h3>
<p>
<strong>
We are excited to announce that the confirmation mails, along with the unique
Launchpad
Kerala ID, will be sent soon to all registered participants who have completed the
registration process. Please check your email inbox regularly, including
promotions/spam/junk
folders, for an email from [email protected].
</strong>
</p>
<p>
The confirmation email contains important information, including your Launchpad Kerala
ID, which will be required for various event-related activities. We kindly request you
to keep this ID safely for future reference.
</p>
<p>
If you have not received the confirmation email before 25.04.2023, please contact us at
through the contact form on the
home page
</p>
<p><strong style="color: #e82f2f;">Registration closed!</strong></p>
</div>
</div>
</div>
</div>

{{!-- <div class="col-12 col-md-10 col-lg-8" data-aos="fade-up" data-aos-delay="100">
<div class="card">
<div class="card-body">
<div class="content">
<h3>Action Required</h3>
<p>
<strong>
Attention to all Launchpad Kerala 2023 Participants:
</strong>
We have noticed that some students
have registered on the DWMS platform of Kerala Knowledge Economy Mission (K-KEM) but
have not completed the registration form on our website. To ensure that you can continue
with Launchpad Kerala and receive confirmation, it is imperative to complete the
registration form on our website.
</p>
<p>
<strong>
If you have not completed the registration process,
our team has sent you an email with instructions and a link to complete the
registration. Please follow the steps provided in the email. If you have already
completed the registration form, kindly ignore this message.
</strong>
</p>
<p><strong>Thank you for your
cooperation.</strong>
</p>
</div>
</div>
</div>
</div> --}}
</div>
</div>
</section>

0 comments on commit 2f62d2f

Please sign in to comment.