2025-12-05 11:36:08 +07:00

72 lines
1.6 KiB
PHP

<?php
session_start();
if(!isset($_SESSION['users'])) {
header('location:login.php');
}
?>
<!DOCTYPE html>
<html lang="id">
<style>
body {
background-image: url();
}
h1 {
text-align: center;
margin-top: 10%;
font-size: 85px;
}
.container {
padding: 5px;
border: 2px solid; /* Nanti dihapus */
border-radius: 7pt; /* Nanti dihapus */
width: 70%;
justify-self: center;
background-image: url();
}
#button {
font-size: 35px;
margin-top: 5%;
width: 50%;
margin-bottom: 5%;
border: 1px solid;
border-radius: 3pt;
padding: 2px;
justify-self: center;
text-align: center;
}
</style>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Halaman ke-1</title>
</head>
<body style='text-align:center'>
<h1>EAT THAT APPLE</h1>
<!-- <a href="index.php">Home</a>
<a href="logout.php">Logout</a> -->
<hr>
<h3>Selamat datang, <?php echo $_SESSION['users']['nama'] ?></h3>
<br>
<!-- <h1>EAT THAT APPLE</h1> -->
<div class="container">
<a href="game.html">
<div id="button">Play Game</div>
</a>
<a href="http://localhost/uas_sem_1/leaderboard.php">
<div id="button">Leaderboard</div>
</a>
<a href="http://localhost/uas_sem_1/logout.php">
<div id="button">Logout</div>
</a>
</div>
</body>
</html>