Home and basic games
This commit is contained in:
parent
ee45e401fc
commit
0d8b62997e
Binary file not shown.
|
After Width: | Height: | Size: 4.0 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 20 KiB |
|
|
@ -7,7 +7,8 @@ require('core/config.php');
|
|||
|
||||
class PartyStarter {
|
||||
function bootstrap() {
|
||||
echo '<link rel="stylesheet" href="css/bootstrap.min.css">';
|
||||
echo '<link rel="stylesheet" href="css/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.3/font/bootstrap-icons.css">';
|
||||
}
|
||||
function header() {
|
||||
// to not confuse you i renamed it from loggedoutheader to header since qzip made it both lol
|
||||
|
|
@ -15,7 +16,7 @@ class PartyStarter {
|
|||
$showhome = '';
|
||||
if(isset($_SESSION['user'])) {
|
||||
$showhome = ' <li class="nav-item" style="color: #FFFFFF;">
|
||||
<a class="nav-link active" href="/home">Home
|
||||
<a class="nav-link active" href="/home"><i class="bi bi-house"></i> Home
|
||||
<span class="visually-hidden">(current)</span>
|
||||
</a>
|
||||
</li>';
|
||||
|
|
@ -38,7 +39,7 @@ class PartyStarter {
|
|||
// messy shit sorry mario1 fix it urself :trol:
|
||||
|
||||
$rightside = '<li class="nav-item"><a class="nav-link">'.$money.'</a></li> <li class="nav-item">
|
||||
<a class="nav-link" href="/logout">Logout</a>
|
||||
<a class="nav-link" href="/logout"><i class="bi bi-box-arrow-right"></i> Logout</a>
|
||||
</li>';
|
||||
} else {
|
||||
$rightside = '
|
||||
|
|
@ -49,11 +50,12 @@ class PartyStarter {
|
|||
<a class="nav-link" href="/login">Login</a>
|
||||
</li>';
|
||||
}
|
||||
echo '<style> body, html { background-color: #2b3036; } </style>';
|
||||
echo '<style> body, html, .jumbotron, .jumbotron-fluid, .container { background-color: #2b3036; } </style>';
|
||||
echo '<link rel="stylesheet" href="css/bootstrap.min.css">
|
||||
<nav class="navbar navbar-expand-lg navbar-light" style="background-color: #ff7700;">
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.3/font/bootstrap-icons.css">
|
||||
<nav class="navbar navbar-expand-lg navbar-light" style="background-color: #ff7700; height: 45px; ">
|
||||
<div class="container-fluid">
|
||||
<a class="navbar-brand" href="/"><img src="/assets/win7.png" width="30" height="30" class="d-inline-block align-top" alt=""> '.$sitename.' </a>
|
||||
<a class="navbar-brand" href="/"><img src="/assets/icons/Grublox.png" width="131" height="30" class="d-inline-block align-top" alt=""></a>
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarColor03" aria-controls="navbarColor03" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
|
@ -61,13 +63,13 @@ class PartyStarter {
|
|||
<ul class="navbar-nav me-auto ml-auto" style="color: #FFFFFF;">
|
||||
' . $showhome . '
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="/games">Games</a>
|
||||
<a class="nav-link" href="/games"><i class="bi bi-controller"></i> Games</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="/catalog">Catalog</a>
|
||||
<a class="nav-link" href="/catalog"><i class="bi bi-shop"></i> Catalog</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="/about">About</a>
|
||||
<a class="nav-link" href="/about"><i class="bi bi-question-circle"></i> About</a>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="navbar-nav">
|
||||
|
|
|
|||
|
|
@ -0,0 +1,127 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<?php
|
||||
|
||||
require_once 'core/classes.php';
|
||||
require_once 'core/classes/user.php';
|
||||
$user = new User($con, $_SESSION['user']);
|
||||
$getitstarted = new PartyStarter;
|
||||
$getitstarted->header();
|
||||
?>
|
||||
</head>
|
||||
<title><?php echo $sitename; ?></title>
|
||||
<body>
|
||||
<div class="jumbotron jumbotron-fluid">
|
||||
<main class="container" style="width: 100%; float: left; margin-left: 20px">
|
||||
<br><br>
|
||||
|
||||
<h4 class="text-white card-title">Popular</h4>
|
||||
|
||||
|
||||
<div class="card-group" style=" margin-top: 15px; width: 100%;">
|
||||
|
||||
<div class="card bg-dark rounded shadow-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-white">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>
|
||||
|
||||
<div class="card bg-dark rounded shadow-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-white">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>
|
||||
<div class="card bg-dark rounded shadow-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-white">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>
|
||||
|
||||
<div class="card bg-dark rounded shadow-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-white">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>
|
||||
<div class="card bg-dark rounded shadow-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-white">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>
|
||||
|
||||
<div class="card bg-dark rounded shadow-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-white">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>
|
||||
|
||||
<div class="card bg-dark rounded shadow-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-white">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>
|
||||
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,86 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<?php
|
||||
|
||||
require_once 'core/classes.php';
|
||||
require_once 'core/classes/user.php';
|
||||
$user = new User($con, $_SESSION['user']);
|
||||
$getitstarted = new PartyStarter;
|
||||
$getitstarted->header();
|
||||
?>
|
||||
</head>
|
||||
<title><?php echo $sitename; ?></title>
|
||||
<body>
|
||||
<div class="jumbotron jumbotron-fluid">
|
||||
<main class="container" style="width: 100%;">
|
||||
<br><br>
|
||||
<img src="https://tr.rbxcdn.com/4039b106ee8e92c8c73595ffaa35108d/150/150/AvatarHeadshot/Png" class="rounded-circle" width=190 height=190></img>
|
||||
<span class="text-white text-center" style="font-size: 2rem; margin-right: 6px;">Welcome back, <?php echo $user->getUsername(); ?></span>
|
||||
<div style="margin-bottom: 50px;"></div>
|
||||
<h4 class="text-white card-title" style="margin-bottom: 15px;">Friends (2)</h4>
|
||||
<div class="card bg-dark shadow-lg" style="height: 11.75rem;">
|
||||
<div class="card-group" style=" margin-left: 10px; margin-top: 10px;">
|
||||
|
||||
<div class="card bg-dark border border-0" style="max-width: 130px;">
|
||||
<a href="user?id=1" style="text-decoration: none; text-align: center; margin-bottom: 9px;">
|
||||
<div class="card-body">
|
||||
<img src="https://tr.rbxcdn.com/4039b106ee8e92c8c73595ffaa35108d/150/150/AvatarHeadshot/Png" class="rounded-circle" width=100 height=100></img>
|
||||
</div>
|
||||
<small class="text-center text-white">guy</small>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="card bg-dark border border-0" style="max-width: 130px;">
|
||||
<a href="user?id=2" style="text-decoration: none; text-align: center; margin-bottom: 9px;">
|
||||
<div class="card-body">
|
||||
<img src="https://tr.rbxcdn.com/4039b106ee8e92c8c73595ffaa35108d/150/150/AvatarHeadshot/Png" class="rounded-circle" width=100 height=100></img>
|
||||
</div>
|
||||
<small class="text-center text-white">Buildersdasas</small>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
|
||||
<h4 class="text-white card-title">Recently played</h4>
|
||||
<div class="card-group" style=" margin-top: 15px;">
|
||||
|
||||
<div class="card bg-dark rounded shadow-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-white">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>
|
||||
<div class="card bg-dark rounded shadow-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-white">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>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Reference in New Issue