129 lines
4.9 KiB
PHP
129 lines
4.9 KiB
PHP
<?php
|
|
declare(strict_types=1);
|
|
@ini_set('display_errors', '1');
|
|
@error_reporting(E_ALL);
|
|
@date_default_timezone_set('UTC');
|
|
?>
|
|
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<title>Organ Donation Management System</title>
|
|
<?php
|
|
// Read project preview data from environment
|
|
$projectDescription = $_SERVER['PROJECT_DESCRIPTION'] ?? 'Welcome to our Organ Donation Management System. Your selfless act can save lives.';
|
|
$projectImageUrl = $_SERVER['PROJECT_IMAGE_URL'] ?? '';
|
|
?>
|
|
<?php if ($projectDescription): ?>
|
|
<!-- Meta description -->
|
|
<meta name="description" content="<?= htmlspecialchars($projectDescription) ?>" />
|
|
<!-- Open Graph meta tags -->
|
|
<meta property="og:description" content="<?= htmlspecialchars($projectDescription) ?>" />
|
|
<!-- Twitter meta tags -->
|
|
<meta property="twitter:description" content="<?= htmlspecialchars($projectDescription) ?>" />
|
|
<?php endif; ?>
|
|
<?php if ($projectImageUrl): ?>
|
|
<!-- Open Graph image -->
|
|
<meta property="og:image" content="<?= htmlspecialchars($projectImageUrl) ?>" />
|
|
<!-- Twitter image -->
|
|
<meta property="twitter:image" content="<?= htmlspecialchars($projectImageUrl) ?>" />
|
|
<?php endif; ?>
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
<link rel="stylesheet" href="assets/css/custom.css">
|
|
<style>
|
|
body {
|
|
background-color: #F8F9FA;
|
|
}
|
|
.hero {
|
|
background: linear-gradient(90deg, #007BFF, #0056b3);
|
|
color: white;
|
|
padding: 100px 0;
|
|
text-align: center;
|
|
}
|
|
.hero h1 {
|
|
font-size: 3.5rem;
|
|
font-weight: 700;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<header class="header-gradient text-white p-3">
|
|
<div class="container d-flex justify-content-between align-items-center">
|
|
<h4 class="mb-0">Organ Donation Management</h4>
|
|
<nav>
|
|
<a href="donor_registration.php" class="btn btn-light">Donor Registration</a>
|
|
<a href="hospital_registration.php" class="btn btn-light ms-2">Hospital Registration</a>
|
|
<a href="login.php" class="btn btn-outline-light ms-2">Login</a>
|
|
</nav>
|
|
</div>
|
|
</header>
|
|
|
|
<main>
|
|
<section class="hero">
|
|
<div class="container">
|
|
<h1 class="display-4">Give the Gift of Life</h1>
|
|
<p class="lead">Your decision to become an organ donor can save up to eight lives. <br> Join our community of heroes today.</p>
|
|
<a href="donor_registration.php" class="btn btn-success btn-lg mt-3">Become a Donor Now</a>
|
|
</div>
|
|
</section>
|
|
|
|
<section class="container mt-5 text-center">
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<div class="card h-100 card-body">
|
|
<h2>For Donors</h2>
|
|
<p>Register yourself as an organ donor and become a potential lifesaver.</p>
|
|
<a href="donor_registration.php" class="btn btn-primary mt-auto">Register as a Donor</a>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<div class="card h-100 card-body">
|
|
<h2>For Hospitals</h2>
|
|
<p>Register your hospital to manage recipients and coordinate with donors.</p>
|
|
<a href="hospital_registration.php" class="btn btn-secondary mt-auto">Register Your Hospital</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<section class="container mt-5 text-center">
|
|
<h2 class="mb-4">How It Works</h2>
|
|
<div class="row mt-4">
|
|
<div class="col-md-4">
|
|
<div class="card h-100">
|
|
<div class="card-body">
|
|
<h5 class="card-title">1. Register</h5>
|
|
<p class="card-text">Fill out the secure registration form with your details. It only takes a few minutes.</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<div class="card h-100">
|
|
<div class="card-body">
|
|
<h5 class="card-title">2. Verification</h5>
|
|
<p class="card-text">Our team verifies your information to ensure safety and eligibility for donation.</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<div class="card h-100">
|
|
<div class="card-body">
|
|
<h5 class="card-title">3. Save Lives</h5>
|
|
<p class="card-text">Once matched, you get a chance to make a life-changing impact.</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</main>
|
|
|
|
<footer class="text-center p-4 mt-5">
|
|
<p>© <?php echo date('Y'); ?> Organ Donation Management System</p>
|
|
</footer>
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
|
|
</body>
|
|
</html>
|