fix home page and add career page
Deploy to Shared Hosting / Shared hosting deploy (push) Failing after 50s
Tests / PHPUnit (push) Successful in 1m24s

This commit is contained in:
root
2026-09-01 00:44:04 -04:00
parent 6ae90d757b
commit 5b11e2d859
8 changed files with 1318 additions and 689 deletions
+37 -52
View File
@@ -1,21 +1,3 @@
<?php
$userRole = session()->get('role'); // assuming you store it as 'role'
$quickTourUrl = base_url('/help_center'); // default
switch ($userRole) {
case 'parent':
$quickTourUrl = base_url('/parent');
break;
case 'teacher':
$quickTourUrl = base_url('/teacher');
break;
case 'teacher_assistant':
$quickTourUrl = base_url('/teacher');
break;
}
?>
<link rel="stylesheet" href="<?= base_url('assets/css/landing_page.css') ?>">
<footer class="footer mt-auto custom-footer text-white py-4">
<div class="container">
<div class="row align-items-start justify-content-between">
@@ -48,47 +30,50 @@ switch ($userRole) {
<li>
<a href="/account_creation_guide.pdf" target="_blank" rel="noopener noreferrer"
class="pdf-link" data-filename="account_creation_guide.pdf">
<i class="fas fa-file-pdf"></i>How To Create An Account
<i class="fas fa-file-pdf me-1"></i>How To Create An Account
</a>
</li>
</ul>
</div>
</div>
</div>
<br>
<p class="text-center text-white">© 2026 Al Rahma Sunday School by ISGL. All Rights Reserved.</p>
<div class="row">
<div class="col-12">
<p class="rights-line">© 2026 Al Rahma Sunday School by ISGL. All Rights Reserved.</p>
</div>
</div>
</footer>
<script>
document.addEventListener('DOMContentLoaded', function() {
// Check if PDF files exist and add error handling
document.querySelectorAll('.pdf-link').forEach(link => {
const pdfUrl = link.getAttribute('href');
<style>
.custom-footer {
background-color: var(--ink, #16262B);
color: #CFC9B7;
}
// Test if the PDF exists
fetch(pdfUrl, {
method: 'HEAD'
})
.then(response => {
if (!response.ok) {
// File doesn't exist or is inaccessible
link.style.opacity = '0.7';
link.title = 'File might be temporarily unavailable';
console.warn('PDF might be missing:', pdfUrl);
.custom-footer .info-list li {
margin-bottom: 0.5rem;
color: #CFC9B7;
}
// Modify click behavior to show helpful message
link.addEventListener('click', function(e) {
if (!confirm('The PDF file might be temporarily unavailable. Try to open it anyway?')) {
e.preventDefault();
}
});
}
})
.catch(error => {
console.error('Error checking PDF:', pdfUrl, error);
link.style.opacity = '0.7';
link.title = 'File check failed';
});
});
});
</script>
.custom-footer .info-list i {
color: var(--accent, #C6963C);
}
.custom-footer .pdf-link {
color: #CFC9B7;
text-decoration: none;
}
.custom-footer .pdf-link:hover {
color: var(--accent, #C6963C);
text-decoration: underline;
}
.custom-footer .rights-line {
text-align: center;
color: #7FBFA0;
margin: 1.5rem auto 0;
max-width: none;
width: 100%;
}
</style>