36018-vm/index.php
Flatlogic Bot dd6845856c n7
2025-11-22 13:26:41 +00:00

128 lines
4.8 KiB
PHP

<?php
// Mock data for tasks
$tasks = [
[
'title' => 'Clean my 1-bedroom apartment',
'category' => 'Cleaning',
'location' => 'Downtown',
'payout' => 50,
],
[
'title' => 'Deliver a package across town',
'category' => 'Delivery',
'location' => 'North Suburbs',
'payout' => 25,
],
[
'title' => 'Assemble IKEA bookshelf',
'category' => 'Fixing',
'location' => 'West End',
'payout' => 40,
],
[
'title' => 'Help me move a couch',
'category' => 'Errands',
'location' => 'City Center',
'payout' => 30,
],
[
'title' => 'Data entry for 2 hours',
'category' => 'Typing',
'location' => 'Remote',
'payout' => 35,
],
[
'title' => 'Design a simple logo for my startup',
'category' => 'Design',
'location' => 'Remote',
'payout' => 100,
],
];
$projectName = $_SERVER['PROJECT_NAME'] ?? 'CashTask';
$projectDesc = $_SERVER['PROJECT_DESCRIPTION'] ?? 'Find and post simple freelance micro-jobs with small cash payouts.';
$projectImage = $_SERVER['PROJECT_IMAGE_URL'] ?? '';
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?php echo htmlspecialchars($projectName); ?></title>
<meta name="description" content="<?php echo htmlspecialchars($projectDesc); ?>">
<!-- Open Graph / Twitter -->
<meta property="og:title" content="<?php echo htmlspecialchars($projectName); ?>">
<meta property="og:description" content="<?php echo htmlspecialchars($projectDesc); ?>">
<?php if ($projectImage): ?>
<meta property="og:image" content="<?php echo htmlspecialchars($projectImage); ?>">
<meta name="twitter:image" content="<?php echo htmlspecialchars($projectImage); ?>">
<?php endif; ?>
<meta name="twitter:card" content="summary_large_image">
<!-- Bootstrap 5 CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Bootstrap Icons -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
<!-- Custom CSS -->
<link rel="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">
</head>
<body>
<!-- Header -->
<header class="navbar navbar-expand-lg navbar-light bg-white shadow-sm sticky-top">
<div class="container">
<a class="navbar-brand" href="#">CashTask</a>
<a href="#" class="btn btn-primary d-none d-lg-block">Post a Task</a>
</div>
</header>
<!-- Main Content -->
<main class="container my-5">
<div class="text-center mb-5">
<h1 class="display-5 fw-bold">Find Your Next Gig</h1>
<p class="lead text-muted">Browse simple jobs posted by people in your community.</p>
</div>
<!-- Task Grid -->
<div class="row g-4">
<?php foreach ($tasks as $task): ?>
<div class="col-lg-4 col-md-6 col-12">
<div class="card task-card">
<div class="card-body d-flex flex-column">
<h5 class="card-title mb-2"><?php echo htmlspecialchars($task['title']); ?></h5>
<h6 class="card-subtitle mb-3 text-muted">
<i class="bi bi-tag"></i> <?php echo htmlspecialchars($task['category']); ?> &middot;
<i class="bi bi-geo-alt"></i> <?php echo htmlspecialchars($task['location']); ?>
</h6>
<div class="mt-auto text-end">
<span class="task-payout">$<?php echo htmlspecialchars($task['payout']); ?></span>
</div>
</div>
</div>
</div>
<?php endforeach; ?>
</div>
</main>
<!-- Floating Action Button for Mobile -->
<div class="d-lg-none position-fixed bottom-0 end-0 m-3">
<a href="#" class="btn btn-primary btn-lg rounded-circle shadow-lg" style="width: 60px; height: 60px; display: flex; align-items: center; justify-content: center;">
<i class="bi bi-plus-lg fs-4"></i>
</a>
</div>
<!-- Footer -->
<footer class="footer bg-white border-top mt-5">
<div class="container text-center">
<p>&copy; <?php echo date('Y'); ?> <?php echo htmlspecialchars($projectName); ?>. All Rights Reserved.</p>
</div>
</footer>
<!-- Bootstrap 5 JS -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
<!-- Custom JS -->
<script src="assets/js/main.js?v=<?php echo time(); ?>"></script>
</body>
</html>