📄 Source: index.php
<!DOCTYPE html>
<html lang="en">
<html>
<head><meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CreateCraft</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="video-background">
<video autoplay muted loop playsinline id="bgVideo">
<source src="videos/timelapse.mp4" type="video/mp4">
<!-- Fallback for old browsers -->
Your browser does not support HTML5 video.
</video>
</div>
<!-- Your Content Goes Here -->
<div class="content">
<header>
<h1>Welcome to <strong>CreateCraft SI</strong>!</h1>
<p>Cozy create server to chill in.</p>
<p><a href="demo.php">DEMO</a></p>
</header>
<main>
<div class="card">
<h2>Did you know?</h2>
<p>the server is offline</p>
</div>
<div class="card">
<h2>Quick Links</h2>
<nav>
<a href="index.php">Home</a>
<a href="factions.php">Factions</a>
<a href="about.php">About</a>
<a href="https://discord.com/invite/959SAvcCpp">Discord</a>
</nav>
</div>
<?php
// Simple page routing (PHP demo)
if (isset($_GET['page'])) {
$page = $_GET['page'];
echo '<div class="card">';
echo "<h3>You are viewing: " . htmlspecialchars($page) . "</h3>";
echo "<p>This content changes based on the URL parameter!</p>";
echo '</div>';
}
?>
</main>
<footer>
<p>© <?php echo date('Y'); ?> My Minecraft Demo | Built with PHP</p>
</footer>
</div>
</body>
</html>
← Back