Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
73121a6456 | ||
|
|
5fe034c2af | ||
|
|
a89cf28635 | ||
|
|
2182af8342 | ||
|
|
fa47f1b60e | ||
|
|
fee9213453 |
90
assets/css/custom.css
Normal file
90
assets/css/custom.css
Normal file
@ -0,0 +1,90 @@
|
|||||||
|
|
||||||
|
body {
|
||||||
|
background-color: #0E0E10;
|
||||||
|
color: #FFFFFF;
|
||||||
|
font-family: 'Inter', sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar {
|
||||||
|
background-color: #18181B;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-brand {
|
||||||
|
color: #9146FF !important;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card {
|
||||||
|
background-color: #18181B;
|
||||||
|
border: 1px solid #2A2A2E;
|
||||||
|
border-radius: 0.5rem;
|
||||||
|
transition: transform 0.2s ease-in-out, border-color 0.2s ease-in-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card:hover {
|
||||||
|
transform: scale(1.03);
|
||||||
|
border-color: #9146FF;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-title {
|
||||||
|
color: #FFFFFF;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-text {
|
||||||
|
color: #ADADB8;
|
||||||
|
}
|
||||||
|
|
||||||
|
.badge-genre {
|
||||||
|
background-color: #3A3A3D;
|
||||||
|
color: #EFEFF1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.viewers {
|
||||||
|
color: #EFEFF1;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
|
||||||
|
.viewers .icon {
|
||||||
|
color: #FF4545; /* Red dot for 'live' */
|
||||||
|
font-size: 0.6rem;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-primary {
|
||||||
|
background-color: #9146FF;
|
||||||
|
border-color: #9146FF;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-primary:hover {
|
||||||
|
background-color: #772CE8;
|
||||||
|
border-color: #772CE8;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer {
|
||||||
|
background-color: #18181B;
|
||||||
|
color: #ADADB8;
|
||||||
|
padding: 1rem 0;
|
||||||
|
font-size: 0.9rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stats-card {
|
||||||
|
background-color: #18181B;
|
||||||
|
border: 1px solid #2A2A2E;
|
||||||
|
border-radius: 0.5rem;
|
||||||
|
transition: transform 0.2s ease-in-out, border-color 0.2s ease-in-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stats-card:hover {
|
||||||
|
transform: scale(1.03);
|
||||||
|
border-color: #9146FF;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stats-card .card-title {
|
||||||
|
color: #ADADB8;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stats-card .card-text {
|
||||||
|
color: #FFFFFF;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
37
assets/js/main.js
Normal file
37
assets/js/main.js
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
document.addEventListener('DOMContentLoaded', function() {
|
||||||
|
console.log('Twitch Dashboard Ready');
|
||||||
|
|
||||||
|
const searchBar = document.getElementById('search-bar');
|
||||||
|
if (searchBar) {
|
||||||
|
searchBar.addEventListener('keyup', function(e) {
|
||||||
|
const term = e.target.value.toLowerCase();
|
||||||
|
|
||||||
|
// Filter Top Games
|
||||||
|
const gameCards = document.querySelectorAll('.game-card');
|
||||||
|
gameCards.forEach(card => {
|
||||||
|
const title = card.querySelector('.card-title').textContent.toLowerCase();
|
||||||
|
const tags = Array.from(card.querySelectorAll('.badge-genre')).map(tag => tag.textContent.toLowerCase());
|
||||||
|
if (title.includes(term) || tags.some(tag => tag.includes(term))) {
|
||||||
|
card.parentElement.style.display = '';
|
||||||
|
} else {
|
||||||
|
card.parentElement.style.display = 'none';
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// Filter Live Channels
|
||||||
|
const channelCards = document.querySelectorAll('.channel-card');
|
||||||
|
channelCards.forEach(card => {
|
||||||
|
const name = card.querySelector('.card-title').textContent.toLowerCase();
|
||||||
|
const game = card.querySelector('.card-text.small').textContent.toLowerCase();
|
||||||
|
const title = card.querySelector('.card-text.text-white-50').textContent.toLowerCase();
|
||||||
|
const tags = Array.from(card.querySelectorAll('.badge-genre')).map(tag => tag.textContent.toLowerCase());
|
||||||
|
|
||||||
|
if (name.includes(term) || game.includes(term) || title.includes(term) || tags.some(tag => tag.includes(term))) {
|
||||||
|
card.parentElement.style.display = '';
|
||||||
|
} else {
|
||||||
|
card.parentElement.style.display = 'none';
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
357
index.php
357
index.php
@ -1,150 +1,265 @@
|
|||||||
<?php
|
<?php
|
||||||
declare(strict_types=1);
|
// Mock data for the dashboard
|
||||||
@ini_set('display_errors', '1');
|
$top_games = [
|
||||||
@error_reporting(E_ALL);
|
[
|
||||||
@date_default_timezone_set('UTC');
|
'title' => 'Just Chatting',
|
||||||
|
'viewers' => '480K',
|
||||||
|
'tags' => ['IRL', 'Casual'],
|
||||||
|
'img' => 'https://static-cdn.jtvnw.net/ttv-boxart/509658-285x380.jpg'
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'title' => 'League of Legends',
|
||||||
|
'viewers' => '210K',
|
||||||
|
'tags' => ['MOBA', 'Action', 'Strategy'],
|
||||||
|
'img' => 'https://static-cdn.jtvnw.net/ttv-boxart/21779-285x380.jpg'
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'title' => 'VALORANT',
|
||||||
|
'viewers' => '150K',
|
||||||
|
'tags' => ['FPS', 'Shooter', 'Tactical'],
|
||||||
|
'img' => 'https://static-cdn.jtvnw.net/ttv-boxart/516575-285x380.jpg'
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'title' => 'Grand Theft Auto V',
|
||||||
|
'viewers' => '120K',
|
||||||
|
'tags' => ['Adventure', 'Open World'],
|
||||||
|
'img' => 'https://static-cdn.jtvnw.net/ttv-boxart/32982_IGDB-285x380.jpg'
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'title' => 'Fortnite',
|
||||||
|
'viewers' => '110K',
|
||||||
|
'tags' => ['Battle Royale', 'Shooter'],
|
||||||
|
'img' => 'https://static-cdn.jtvnw.net/ttv-boxart/33214-285x380.jpg'
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'title' => 'Counter-Strike 2',
|
||||||
|
'viewers' => '95K',
|
||||||
|
'tags' => ['FPS', 'Tactical', 'Shooter'],
|
||||||
|
'img' => 'https://static-cdn.jtvnw.net/ttv-boxart/1812225397_IGDB-285x380.jpg'
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'title' => 'World of Warcraft',
|
||||||
|
'viewers' => '80K',
|
||||||
|
'tags' => ['MMORPG', 'RPG'],
|
||||||
|
'img' => 'https://static-cdn.jtvnw.net/ttv-boxart/18122-285x380.jpg'
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'title' => 'Dota 2',
|
||||||
|
'viewers' => '75K',
|
||||||
|
'tags' => ['MOBA', 'Strategy'],
|
||||||
|
'img' => 'https://static-cdn.jtvnw.net/ttv-boxart/29595-285x380.jpg'
|
||||||
|
],
|
||||||
|
];
|
||||||
|
|
||||||
|
$live_channels = [
|
||||||
|
[
|
||||||
|
'name' => 'xQc',
|
||||||
|
'game' => 'Just Chatting',
|
||||||
|
'title' => 'RANKED GRIND! | !socials',
|
||||||
|
'viewers' => '98K',
|
||||||
|
'tags' => ['Competitive', 'English'],
|
||||||
|
'img' => 'https://static-cdn.jtvnw.net/jtv_user_pictures/xqc-profile_image-9298d2877057642a-70x70.png'
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'name' => 'Tarik',
|
||||||
|
'game' => 'VALORANT',
|
||||||
|
'title' => 'Vibing and Winning | #1 Radiant',
|
||||||
|
'viewers' => '65K',
|
||||||
|
'tags' => ['FPS', 'Pro Player'],
|
||||||
|
'img' => 'https://static-cdn.jtvnw.net/jtv_user_pictures/tarik-profile_image-d6f82a69354da623-70x70.png'
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'name' => 'summit1g',
|
||||||
|
'game' => 'Old School RuneScape',
|
||||||
|
'title' => 'Maxing my account! | !drops',
|
||||||
|
'viewers' => '31K',
|
||||||
|
'tags' => ['MMORPG', 'Grinding'],
|
||||||
|
'img' => 'https://static-cdn.jtvnw.net/jtv_user_pictures/summit1g-profile_image-d29b89b15533818c-70x70.png'
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'name' => 'LIRIK',
|
||||||
|
'game' => 'DayZ',
|
||||||
|
'title' => 'SURVIVAL RP | !newvideo',
|
||||||
|
'viewers' => '25K',
|
||||||
|
'tags' => ['Survival', 'Funny Moments'],
|
||||||
|
'img' => 'https://static-cdn.jtvnw.net/jtv_user_pictures/lirik-profile_image-4ac8c3250307d433-70x70.png'
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'name' => 'Shroud',
|
||||||
|
'game' => 'Counter-Strike 2',
|
||||||
|
'title' => 'Aim training and pro plays',
|
||||||
|
'viewers' => '40K',
|
||||||
|
'tags' => ['FPS', 'Pro'],
|
||||||
|
'img' => 'https://static-cdn.jtvnw.net/jtv_user_pictures/shroud-profile_image-8839d8f9052f83ca-70x70.png'
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'name' => 'Pokimane',
|
||||||
|
'game' => 'Just Chatting',
|
||||||
|
'title' => 'Chill stream and Q&A',
|
||||||
|
'viewers' => '35K',
|
||||||
|
'tags' => ['IRL', 'Community'],
|
||||||
|
'img' => 'https://static-cdn.jtvnw.net/jtv_user_pictures/pokimane-profile_image-9332cf5d27f13321-70x70.png'
|
||||||
|
],
|
||||||
|
];
|
||||||
|
|
||||||
|
// Calculate statistics
|
||||||
|
$total_viewers = 0;
|
||||||
|
foreach ($live_channels as $channel) {
|
||||||
|
$viewers = str_replace('K', '000', $channel['viewers']);
|
||||||
|
$total_viewers += (int)$viewers;
|
||||||
|
}
|
||||||
|
|
||||||
|
$total_live_channels = count($live_channels);
|
||||||
|
|
||||||
|
$top_category = '-';
|
||||||
|
if (!empty($top_games)) {
|
||||||
|
$top_category = $top_games[0]['title'];
|
||||||
|
}
|
||||||
|
|
||||||
|
// Read project preview data from environment
|
||||||
|
$projectDescription = $_SERVER['PROJECT_DESCRIPTION'] ?? 'Twitch.TV Statistics Dashboard';
|
||||||
|
$projectImageUrl = $_SERVER['PROJECT_IMAGE_URL'] ?? '';
|
||||||
|
$projectName = $_SERVER['PROJECT_NAME'] ?? 'Twitch Stats';
|
||||||
|
|
||||||
$phpVersion = PHP_VERSION;
|
|
||||||
$now = date('Y-m-d H:i:s');
|
|
||||||
?>
|
?>
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8"/>
|
<meta charset="utf-8"/>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||||
<title>New Style</title>
|
<title><?= htmlspecialchars($projectName) ?> - Dashboard</title>
|
||||||
<?php
|
|
||||||
// Read project preview data from environment
|
|
||||||
$projectDescription = $_SERVER['PROJECT_DESCRIPTION'] ?? '';
|
|
||||||
$projectImageUrl = $_SERVER['PROJECT_IMAGE_URL'] ?? '';
|
|
||||||
?>
|
|
||||||
<?php if ($projectDescription): ?>
|
|
||||||
<!-- Meta description -->
|
<!-- Meta description -->
|
||||||
<meta name="description" content='<?= htmlspecialchars($projectDescription) ?>' />
|
<meta name="description" content="<?= htmlspecialchars($projectDescription) ?>"/>
|
||||||
<!-- Open Graph meta tags -->
|
<!-- Open Graph meta tags -->
|
||||||
|
<meta property="og:title" content="<?= htmlspecialchars($projectName) ?>"/>
|
||||||
<meta property="og:description" content="<?= htmlspecialchars($projectDescription) ?>"/>
|
<meta property="og:description" content="<?= htmlspecialchars($projectDescription) ?>"/>
|
||||||
<!-- Twitter meta tags -->
|
<!-- Twitter meta tags -->
|
||||||
|
<meta name="twitter:card" content="summary_large_image">
|
||||||
|
<meta property="twitter:title" content="<?= htmlspecialchars($projectName) ?>"/>
|
||||||
<meta property="twitter:description" content="<?= htmlspecialchars($projectDescription) ?>"/>
|
<meta property="twitter:description" content="<?= htmlspecialchars($projectDescription) ?>"/>
|
||||||
<?php endif; ?>
|
|
||||||
<?php if ($projectImageUrl): ?>
|
<?php if ($projectImageUrl): ?>
|
||||||
<!-- Open Graph image -->
|
<!-- Open Graph image -->
|
||||||
<meta property="og:image" content="<?= htmlspecialchars($projectImageUrl) ?>"/>
|
<meta property="og:image" content="<?= htmlspecialchars($projectImageUrl) ?>"/>
|
||||||
<!-- Twitter image -->
|
<!-- Twitter image -->
|
||||||
<meta property="twitter:image" content="<?= htmlspecialchars($projectImageUrl) ?>"/>
|
<meta property="twitter:image" content="<?= htmlspecialchars($projectImageUrl) ?>"/>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
|
<!-- Bootstrap 5 CSS -->
|
||||||
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
|
||||||
|
|
||||||
|
<!-- Google Fonts & Icons -->
|
||||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
<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://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap" rel="stylesheet">
|
||||||
<style>
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
|
||||||
:root {
|
|
||||||
--bg-color-start: #6a11cb;
|
<!-- Custom CSS -->
|
||||||
--bg-color-end: #2575fc;
|
<link rel="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">
|
||||||
--text-color: #ffffff;
|
|
||||||
--card-bg-color: rgba(255, 255, 255, 0.01);
|
|
||||||
--card-border-color: rgba(255, 255, 255, 0.1);
|
|
||||||
}
|
|
||||||
body {
|
|
||||||
margin: 0;
|
|
||||||
font-family: 'Inter', sans-serif;
|
|
||||||
background: linear-gradient(45deg, var(--bg-color-start), var(--bg-color-end));
|
|
||||||
color: var(--text-color);
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
min-height: 100vh;
|
|
||||||
text-align: center;
|
|
||||||
overflow: hidden;
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
body::before {
|
|
||||||
content: '';
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M-10 10L110 10M10 -10L10 110" stroke-width="1" stroke="rgba(255,255,255,0.05)"/></svg>');
|
|
||||||
animation: bg-pan 20s linear infinite;
|
|
||||||
z-index: -1;
|
|
||||||
}
|
|
||||||
@keyframes bg-pan {
|
|
||||||
0% { background-position: 0% 0%; }
|
|
||||||
100% { background-position: 100% 100%; }
|
|
||||||
}
|
|
||||||
main {
|
|
||||||
padding: 2rem;
|
|
||||||
}
|
|
||||||
.card {
|
|
||||||
background: var(--card-bg-color);
|
|
||||||
border: 1px solid var(--card-border-color);
|
|
||||||
border-radius: 16px;
|
|
||||||
padding: 2rem;
|
|
||||||
backdrop-filter: blur(20px);
|
|
||||||
-webkit-backdrop-filter: blur(20px);
|
|
||||||
box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
|
|
||||||
}
|
|
||||||
.loader {
|
|
||||||
margin: 1.25rem auto 1.25rem;
|
|
||||||
width: 48px;
|
|
||||||
height: 48px;
|
|
||||||
border: 3px solid rgba(255, 255, 255, 0.25);
|
|
||||||
border-top-color: #fff;
|
|
||||||
border-radius: 50%;
|
|
||||||
animation: spin 1s linear infinite;
|
|
||||||
}
|
|
||||||
@keyframes spin {
|
|
||||||
from { transform: rotate(0deg); }
|
|
||||||
to { transform: rotate(360deg); }
|
|
||||||
}
|
|
||||||
.hint {
|
|
||||||
opacity: 0.9;
|
|
||||||
}
|
|
||||||
.sr-only {
|
|
||||||
position: absolute;
|
|
||||||
width: 1px; height: 1px;
|
|
||||||
padding: 0; margin: -1px;
|
|
||||||
overflow: hidden;
|
|
||||||
clip: rect(0, 0, 0, 0);
|
|
||||||
white-space: nowrap; border: 0;
|
|
||||||
}
|
|
||||||
h1 {
|
|
||||||
font-size: 3rem;
|
|
||||||
font-weight: 700;
|
|
||||||
margin: 0 0 1rem;
|
|
||||||
letter-spacing: -1px;
|
|
||||||
}
|
|
||||||
p {
|
|
||||||
margin: 0.5rem 0;
|
|
||||||
font-size: 1.1rem;
|
|
||||||
}
|
|
||||||
code {
|
|
||||||
background: rgba(0,0,0,0.2);
|
|
||||||
padding: 2px 6px;
|
|
||||||
border-radius: 4px;
|
|
||||||
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
||||||
}
|
|
||||||
footer {
|
|
||||||
position: absolute;
|
|
||||||
bottom: 1rem;
|
|
||||||
font-size: 0.8rem;
|
|
||||||
opacity: 0.7;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<main>
|
|
||||||
<div class="card">
|
<nav class="navbar navbar-expand-lg navbar-dark">
|
||||||
<h1>Analyzing your requirements and generating your website…</h1>
|
<div class="container-fluid">
|
||||||
<div class="loader" role="status" aria-live="polite" aria-label="Applying initial changes">
|
<a class="navbar-brand" href="#"><i class="fab fa-twitch"></i> <?= htmlspecialchars($projectName) ?></a>
|
||||||
<span class="sr-only">Loading…</span>
|
|
||||||
</div>
|
</div>
|
||||||
<p class="hint"><?= ($_SERVER['HTTP_HOST'] ?? '') === 'appwizzy.com' ? 'AppWizzy' : 'Flatlogic' ?> AI is collecting your requirements and applying the first changes.</p>
|
</nav>
|
||||||
<p class="hint">This page will update automatically as the plan is implemented.</p>
|
|
||||||
<p>Runtime: PHP <code><?= htmlspecialchars($phpVersion) ?></code> — UTC <code><?= htmlspecialchars($now) ?></code></p>
|
<main class="container my-5">
|
||||||
|
<div class="row mb-4">
|
||||||
|
<div class="col">
|
||||||
|
<input type="text" id="search-bar" class="form-control" placeholder="Search for games and channels...">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<h1 class="mb-4">Dashboard Analytics</h1>
|
||||||
|
<div class="row g-4 mb-5">
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="card h-100 stats-card">
|
||||||
|
<div class="card-body text-center">
|
||||||
|
<h5 class="card-title"><i class="fas fa-users"></i> Total Viewers</h5>
|
||||||
|
<p class="card-text display-4"><?= htmlspecialchars(number_format($total_viewers)) ?></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="card h-100 stats-card">
|
||||||
|
<div class="card-body text-center">
|
||||||
|
<h5 class="card-title"><i class="fas fa-video"></i> Total Live Channels</h5>
|
||||||
|
<p class="card-text display-4"><?= htmlspecialchars($total_live_channels) ?></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="card h-100 stats-card">
|
||||||
|
<div class="card-body text-center">
|
||||||
|
<h5 class="card-title"><i class="fas fa-gamepad"></i> Top Category</h5>
|
||||||
|
<p class="card-text display-4"><?= htmlspecialchars($top_category) ?></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h1 class="mb-4">Top Categories</h1>
|
||||||
|
<div class="row g-4">
|
||||||
|
<?php foreach ($top_games as $game): ?>
|
||||||
|
<div class="col-6 col-md-4 col-lg-3">
|
||||||
|
<div class="card h-100 game-card">
|
||||||
|
<img src="<?= htmlspecialchars($game['img']) ?>" class="card-img-top" alt="<?= htmlspecialchars($game['title']) ?>">
|
||||||
|
<div class="card-body">
|
||||||
|
<h5 class="card-title mb-1"><?= htmlspecialchars($game['title']) ?></h5>
|
||||||
|
<p class="viewers mb-2"><i class="fas fa-circle icon"></i> <?= htmlspecialchars($game['viewers']) ?> viewers</p>
|
||||||
|
<div>
|
||||||
|
<?php foreach ($game['tags'] as $tag): ?>
|
||||||
|
<span class="badge rounded-pill badge-genre"><?= htmlspecialchars($tag) ?></span>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h1 class="my-4 pt-4">Recommended Live Channels</h1>
|
||||||
|
<div class="row g-4">
|
||||||
|
<?php foreach ($live_channels as $channel): ?>
|
||||||
|
<div class="col-12 col-md-6 col-lg-4">
|
||||||
|
<div class="card h-100 channel-card">
|
||||||
|
<div class="card-body d-flex">
|
||||||
|
<img src="<?= htmlspecialchars($channel['img']) ?>" class="rounded-circle me-3" alt="<?= htmlspecialchars($channel['name']) ?>" width="60" height="60">
|
||||||
|
<div class="flex-grow-1">
|
||||||
|
<div class="d-flex justify-content-between">
|
||||||
|
<h5 class="card-title mb-0"><?= htmlspecialchars($channel['name']) ?></h5>
|
||||||
|
<div class="viewers text-end">
|
||||||
|
<i class="fas fa-circle icon"></i> <?= htmlspecialchars($channel['viewers']) ?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<p class="card-text text-white-50 mb-1" title="<?= htmlspecialchars($channel['title']) ?>"><?= htmlspecialchars($channel['title']) ?></p>
|
||||||
|
<p class="card-text small mb-2"><?= htmlspecialchars($channel['game']) ?></p>
|
||||||
|
<div>
|
||||||
|
<?php foreach ($channel['tags'] as $tag): ?>
|
||||||
|
<span class="badge rounded-pill badge-genre"><?= htmlspecialchars($tag) ?></span>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
<footer>
|
|
||||||
Page updated: <?= htmlspecialchars($now) ?> (UTC)
|
<footer class="footer mt-5">
|
||||||
|
<div class="container text-center">
|
||||||
|
<p>© <?php echo date("Y"); ?> <?= htmlspecialchars($projectName) ?>. All rights reserved.</p>
|
||||||
|
<p>Powered by Flatlogic.</p>
|
||||||
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
|
<!-- Bootstrap 5 JS -->
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
|
||||||
|
<!-- Custom JS -->
|
||||||
|
<script src="assets/js/main.js?v=<?php echo time(); ?>"></script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user