83 lines
4.0 KiB
PHP
83 lines
4.0 KiB
PHP
<?php
|
|
// Read project preview data from environment
|
|
$projectDescription = $_SERVER['PROJECT_DESCRIPTION'] ?? 'A CRUD application for managing shipments.';
|
|
$projectImageUrl = $_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>Shipments Admin</title>
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
|
|
<?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; ?>
|
|
</head>
|
|
<body>
|
|
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
|
|
<div class="container-fluid">
|
|
<a class="navbar-brand" href="/">Shipments Admin</a>
|
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
|
|
<span class="navbar-toggler-icon"></span>
|
|
</button>
|
|
<div class="collapse navbar-collapse" id="navbarNav">
|
|
<ul class="navbar-nav">
|
|
<li class="nav-item">
|
|
<a class="nav-link active" aria-current="page" href="/">Home</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="/import.php">Import Data</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="/manage_lifecycle.php">Manage Lifecycle</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
|
|
<div class="container mt-5">
|
|
<div class="p-5 mb-4 bg-light rounded-3">
|
|
<div class="container-fluid py-5">
|
|
<h1 class="display-5 fw-bold">Welcome to Shipments Admin</h1>
|
|
<p class="col-md-8 fs-4">This is your starting point for managing customers, products, and shipments. Use the navigation bar to get started.</p>
|
|
<a href="/import.php" class="btn btn-primary btn-lg" role="button">
|
|
<i class="bi bi-cloud-upload"></i> Start by Importing Data
|
|
</a>
|
|
</div>
|
|
</div>
|
|
<div class="row align-items-md-stretch">
|
|
<div class="col-md-6">
|
|
<div class="h-100 p-5 text-white bg-dark rounded-3">
|
|
<h2>View Data</h2>
|
|
<p>Once imported, you will be able to browse, search, and manage your data here.</p>
|
|
<button class="btn btn-outline-light" type="button" disabled>View Customers (Coming Soon)</button>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<div class="h-100 p-5 bg-light border rounded-3">
|
|
<h2>Next Steps</h2>
|
|
<p>After importing your data, the next step will be to build the user interface for creating, reading, updating, and deleting records.</p>
|
|
<p>Let me know what functionality you'd like to see first!</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
|
|
</body>
|
|
</html>
|