36241-vm/index.php
2025-11-25 04:46:09 +00:00

106 lines
3.6 KiB
PHP

<?php
declare(strict_types=1);
@ini_set('display_errors', '1');
@error_reporting(E_ALL);
@date_default_timezone_set('UTC');
// Read project preview data from environment
$projectDescription = $_SERVER['PROJECT_DESCRIPTION'] ?? 'A powerful and lightweight IPTV management panel.';
$projectImageUrl = $_SERVER['PROJECT_IMAGE_URL'] ?? '';
$projectName = $_SERVER['PROJECT_NAME'] ?? 'IPTV Panel';
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title><?= htmlspecialchars($projectName) ?> - Your IPTV Solution</title>
<!-- Meta tags -->
<meta name="description" content="<?= htmlspecialchars($projectDescription) ?>" />
<meta property="og:title" content="<?= htmlspecialchars($projectName) ?>" />
<meta property="og:description" content="<?= htmlspecialchars($projectDescription) ?>" />
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:title" content="<?= htmlspecialchars($projectName) ?>" />
<meta property="twitter:description" content="<?= htmlspecialchars($projectDescription) ?>" />
<?php if ($projectImageUrl): ?>
<meta property="og:image" content="<?= htmlspecialchars($projectImageUrl) ?>" />
<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=Inter:wght@400;700&display=swap" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css" rel="stylesheet">
<style>
:root {
--bg-color-start: #6a11cb;
--bg-color-end: #2575fc;
--text-color: #ffffff;
}
body {
font-family: 'Inter', sans-serif;
background: linear-gradient(45deg, var(--bg-color-start), var(--bg-color-end));
color: var(--text-color);
display: flex;
flex-direction: column;
min-height: 100vh;
}
.hero {
display: flex;
align-items: center;
justify-content: center;
text-align: center;
flex-grow: 1;
}
.hero h1 {
font-size: 3.5rem;
font-weight: 700;
letter-spacing: -1px;
text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.hero p {
font-size: 1.25rem;
max-width: 600px;
margin: 1rem auto 2rem;
opacity: 0.9;
}
.btn-gradient {
background: linear-gradient(45deg, #ff4b2b, #ff416c);
border: none;
color: white;
padding: 12px 30px;
font-weight: bold;
border-radius: 50px;
transition: transform 0.2s;
}
.btn-gradient:hover {
transform: scale(1.05);
color: white;
}
footer {
text-align: center;
padding: 1rem;
opacity: 0.8;
}
</style>
</head>
<body>
<main class="hero">
<div class="container">
<h1 class="display-4"><?= htmlspecialchars($projectName) ?></h1>
<p class="lead"><?= htmlspecialchars($projectDescription) ?></p>
<a href="/admin.php" class="btn btn-gradient btn-lg">
<i class="bi bi-speedometer2 me-2"></i>Go to Admin Panel
</a>
</div>
</main>
<footer>
<p>&copy; <?= date('Y') ?> <?= htmlspecialchars($projectName) ?>. 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>