77 lines
3.9 KiB
PHP
77 lines
3.9 KiB
PHP
<?php
|
|
session_start();
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html data-bs-theme="dark">
|
|
<head>
|
|
<?php
|
|
|
|
require_once 'core/classes.php';
|
|
require_once 'core/classes/user.php';
|
|
if(isset($_SESSION['user'])) {
|
|
$user = new User($con, $_SESSION['user']);
|
|
} else {
|
|
echo ''; // fuck you
|
|
}
|
|
$getitstarted = new PartyStarter;
|
|
$getitstarted->header();
|
|
?>
|
|
</head>
|
|
<title><?php echo $sitename; ?> | games</title>
|
|
<body>
|
|
<main class="container" style="width: 100%; float: left; margin-left: 20px">
|
|
<br>
|
|
<br>
|
|
<h4 class="text-white card-title">Popular</h4>
|
|
<div id="games-popular" class="carousel carousel-dark slide">
|
|
<div class="carousel-inner">
|
|
<div class="carousel-item active">
|
|
<div class="card-group" style=" margin-top: 15px; width: 100%;">
|
|
<?php $x = 8; for ($i = 1; $i <= $x; $i++) { ?>
|
|
<div class="card bg-dark border-start rounded shadow-sm-lg" style="max-width: 170px; margin-right: 9px;">
|
|
<a href="game?id=1" style="text-decoration: none; text-align: left; margin-bottom: 9px;">
|
|
<img src="https://tr.rbxcdn.com/4e0bd5c77756dce55561929587ff8772/150/150/Image/Png" class="card-img-top rounded-top" alt="...">
|
|
<div class="card-body">
|
|
<small class="card-title text-white" style="font-size: 1rem;">Build to survive ur mom</small>
|
|
<br>
|
|
<small class="card-text text-muted">69 playing</small>
|
|
<div class="progress rounded-4 border border-secondary" style="margin-left: 20px; margin-top: 10px; margin-bottom: -10px; height: 8px; background: none;">
|
|
<div class="progress-bar bg-secondary" role="progressbar" aria-label="Segment one" style="width: 21.5%" aria-valuenow="15" aria-valuemin="0" aria-valuemax="100"></div>
|
|
</div>
|
|
<i class="bi bi-hand-thumbs-up-fill text-secondary" style="font-size: 1rem; float: left; margin-top: -8px;"></i>
|
|
</div>
|
|
</a>
|
|
</div>
|
|
<?php if ($i == $x) { break; } }?>
|
|
</div>
|
|
</div>
|
|
<div class="carousel-item"><div class="card-group" style=" margin-top: 15px; width: 100%;">
|
|
<?php $x = 8; for ($i = 1; $i <= $x; $i++) { ?>
|
|
<div class="card bg-dark border-start rounded shadow-sm-lg" style="max-width: 170px; margin-right: 9px;">
|
|
<a href="game?id=1" style="text-decoration: none; text-align: left; margin-bottom: 9px;">
|
|
<img src="https://tr.rbxcdn.com/4e0bd5c77756dce55561929587ff8772/150/150/Image/Png" class="card-img-top rounded-top" alt="...">
|
|
<div class="card-body">
|
|
<small class="card-title text-white" style="font-size: 1rem;">Build to survive ur mom</small>
|
|
<br>
|
|
<small class="card-text text-muted">69 playing</small>
|
|
<div class="progress rounded-4 border border-secondary" style="margin-left: 20px; margin-top: 10px; margin-bottom: -10px; height: 8px; background: none;">
|
|
<div class="progress-bar bg-secondary" role="progressbar" aria-label="Segment one" style="width: 21.5%" aria-valuenow="15" aria-valuemin="0" aria-valuemax="100"></div>
|
|
</div>
|
|
<i class="bi bi-hand-thumbs-up-fill text-secondary" style="font-size: 1rem; float: left; margin-top: -8px;"></i>
|
|
</div>
|
|
</a>
|
|
</div>
|
|
<?php if ($i == $x) { break; } }?>
|
|
</div></div>
|
|
<div class="carousel-item"></div>
|
|
</div>
|
|
<button class="carousel-control-prev" type="button" data-bs-target="#games-popular" data-bs-slide="prev">
|
|
<span class="carousel-control-prev-icon" aria-hidden="true" data-bs-theme="dark"></span>
|
|
</button>
|
|
<button class="carousel-control-next" type="button" data-bs-target="#games-popular" data-bs-slide="next">
|
|
<span class="carousel-control-next-icon" aria-hidden="true" data-bs-theme="dark"></span>
|
|
</button>
|
|
</div>
|
|
</main>
|
|
</body>
|
|
</html>
|