157 lines
6.2 KiB
PHP
157 lines
6.2 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Real-Time Food Rescue</title>
|
|
<?php
|
|
// Read project preview data from environment
|
|
$projectDescription = $_SERVER['PROJECT_DESCRIPTION'] ?? 'A platform to connect food donors with those in need.';
|
|
$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.2/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap" rel="stylesheet">
|
|
<style>
|
|
body {
|
|
font-family: 'Poppins', sans-serif;
|
|
background-color: #f8f9fa;
|
|
color: #212529;
|
|
}
|
|
.navbar {
|
|
box-shadow: 0 2px 4px rgba(0,0,0,.1);
|
|
}
|
|
.hero-section {
|
|
background: linear-gradient(45deg, #28a745, #20c997);
|
|
color: white;
|
|
padding: 100px 0;
|
|
text-align: center;
|
|
}
|
|
.hero-section h1 {
|
|
font-weight: 700;
|
|
font-size: 3.5rem;
|
|
}
|
|
.hero-section p {
|
|
font-size: 1.25rem;
|
|
margin-bottom: 2rem;
|
|
}
|
|
.btn-primary {
|
|
background-color: #fd7e14;
|
|
border-color: #fd7e14;
|
|
font-weight: 600;
|
|
padding: 0.75rem 1.5rem;
|
|
border-radius: 0.5rem;
|
|
font-size: 1.1rem;
|
|
}
|
|
.btn-primary:hover {
|
|
background-color: #e66a00;
|
|
border-color: #d36000;
|
|
}
|
|
.section {
|
|
padding: 60px 0;
|
|
}
|
|
.feature-icon {
|
|
font-size: 3rem;
|
|
color: #28a745;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<nav class="navbar navbar-expand-lg navbar-light bg-white sticky-top">
|
|
<div class="container-fluid">
|
|
<a class="navbar-brand" href="#" style="font-weight: 600;">Food Rescue</a>
|
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
|
|
<span class="navbar-toggler-icon"></span>
|
|
</button>
|
|
<div class="collapse navbar-collapse" id="navbarNav">
|
|
<ul class="navbar-nav ms-auto">
|
|
<li class="nav-item">
|
|
<a class="nav-link active" href="index.php">Home</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="add_listing.php">Add Listing</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="ngo_dashboard.php">NGO Dashboard</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="volunteer_signup.php">Volunteer Signup</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="volunteer_dashboard.php">Volunteer Dashboard</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="volunteer_hub_old.php">Find Pickups</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="distribution_map.php">Distribution Map</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="admin_panel.php">Admin Panel</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
|
|
<header class="hero-section">
|
|
<div class="container">
|
|
<h1>Reduce Waste, Fight Hunger</h1>
|
|
<p class="lead">Connect with volunteers to get your surplus food to people in need, in real-time.</p>
|
|
<a href="add_listing.php" class="btn btn-primary btn-lg">Donate Food Now</a>
|
|
</div>
|
|
</header>
|
|
|
|
<section class="section bg-light text-center">
|
|
<div class="container">
|
|
<h2>How It Works</h2>
|
|
<p class="lead mb-5">A simple process for a massive impact.</p>
|
|
<div class="row">
|
|
<div class="col-md-4">
|
|
<div class="p-4">
|
|
<div class="feature-icon mb-3">-</div>
|
|
<h3>1. List Your Surplus</h3>
|
|
<p>Restaurants and stores post details about their surplus food in seconds.</p>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<div class="p-4">
|
|
<div class="feature-icon mb-3">-</div>
|
|
<h3>2. Get Matched</h3>
|
|
<p>Our system instantly notifies nearby NGOs and volunteers who can accept the donation.</p>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<div class="p-4">
|
|
<div class="feature-icon mb-3">-</div>
|
|
<h3>3. Food is Rescued</h3>
|
|
<p>A volunteer picks up the food and delivers it to a local charity, feeding those in need.</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<footer class="text-center p-4 bg-white">
|
|
<p class="mb-0">© <?= date('Y') ?> Food Rescue Initiative. All Rights Reserved.</p>
|
|
</footer>
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
|
|
</body>
|
|
</html>
|