Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ff8ccd1c75 | ||
|
|
9a2fdeae1e |
63
assets/css/custom.css
Normal file
63
assets/css/custom.css
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
body {
|
||||||
|
background-color: #F8F9FA;
|
||||||
|
color: #212529;
|
||||||
|
font-family: 'Helvetica Neue', Arial, sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
[data-bs-theme="dark"] body {
|
||||||
|
background-color: #121212;
|
||||||
|
color: #e9ecef;
|
||||||
|
}
|
||||||
|
|
||||||
|
[data-bs-theme="dark"] .bg-white {
|
||||||
|
background-color: #1a1a1a !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
[data-bs-theme="dark"] .game-card {
|
||||||
|
background-color: #1a1a1a;
|
||||||
|
border-color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
[data-bs-theme="dark"] .footer {
|
||||||
|
background-color: #1a1a1a;
|
||||||
|
}
|
||||||
|
|
||||||
|
[data-bs-theme="dark"] .navbar {
|
||||||
|
border-bottom: 1px solid #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.navbar {
|
||||||
|
box-shadow: 0 2px 4px rgba(0,0,0,.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero {
|
||||||
|
background: linear-gradient(45deg, #0D6EFD, #4A90E2);
|
||||||
|
color: white;
|
||||||
|
padding: 4rem 1rem;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.game-card {
|
||||||
|
background-color: #FFFFFF;
|
||||||
|
border: none;
|
||||||
|
border-radius: 0.5rem;
|
||||||
|
box-shadow: 0 4px 8px rgba(0,0,0,.1);
|
||||||
|
transition: transform .2s, box-shadow .2s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.game-card:hover {
|
||||||
|
transform: translateY(-5px);
|
||||||
|
box-shadow: 0 8px 16px rgba(0,0,0,.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
.confidence-stars .star {
|
||||||
|
color: #FFC107;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer {
|
||||||
|
background-color: #343A40;
|
||||||
|
color: white;
|
||||||
|
padding: 2rem 0;
|
||||||
|
margin-top: 4rem;
|
||||||
|
}
|
||||||
31
assets/js/main.js
Normal file
31
assets/js/main.js
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
document.addEventListener('DOMContentLoaded', function () {
|
||||||
|
console.log('BetPredict Pro loaded');
|
||||||
|
|
||||||
|
const themeToggler = document.getElementById('theme-toggler');
|
||||||
|
const htmlElement = document.documentElement;
|
||||||
|
const sunIcon = 'bi-sun-fill';
|
||||||
|
const moonIcon = 'bi-moon-fill';
|
||||||
|
|
||||||
|
const savedTheme = localStorage.getItem('theme') || 'light';
|
||||||
|
htmlElement.setAttribute('data-bs-theme', savedTheme);
|
||||||
|
updateIcon(savedTheme);
|
||||||
|
|
||||||
|
themeToggler.addEventListener('click', () => {
|
||||||
|
const currentTheme = htmlElement.getAttribute('data-bs-theme');
|
||||||
|
const newTheme = currentTheme === 'light' ? 'dark' : 'light';
|
||||||
|
htmlElement.setAttribute('data-bs-theme', newTheme);
|
||||||
|
localStorage.setItem('theme', newTheme);
|
||||||
|
updateIcon(newTheme);
|
||||||
|
});
|
||||||
|
|
||||||
|
function updateIcon(theme) {
|
||||||
|
const icon = themeToggler.querySelector('i');
|
||||||
|
if (theme === 'light') {
|
||||||
|
icon.classList.remove(moonIcon);
|
||||||
|
icon.classList.add(sunIcon);
|
||||||
|
} else {
|
||||||
|
icon.classList.remove(sunIcon);
|
||||||
|
icon.classList.add(moonIcon);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
267
index.php
267
index.php
@ -1,150 +1,129 @@
|
|||||||
<?php
|
<?php
|
||||||
declare(strict_types=1);
|
$games = [
|
||||||
@ini_set('display_errors', '1');
|
[
|
||||||
@error_reporting(E_ALL);
|
'sport' => 'NFL',
|
||||||
@date_default_timezone_set('UTC');
|
'team_a' => 'Kansas City Chiefs',
|
||||||
|
'team_b' => 'San Francisco 49ers',
|
||||||
$phpVersion = PHP_VERSION;
|
'date' => '2025-11-02 20:20:00',
|
||||||
$now = date('Y-m-d H:i:s');
|
'prediction' => 'Chiefs to Win',
|
||||||
|
'confidence' => 4,
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'sport' => 'NBA',
|
||||||
|
'team_a' => 'Los Angeles Lakers',
|
||||||
|
'team_b' => 'Boston Celtics',
|
||||||
|
'date' => '2025-11-03 19:00:00',
|
||||||
|
'prediction' => 'Over 225.5 Points',
|
||||||
|
'confidence' => 5,
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'sport' => 'MLB',
|
||||||
|
'team_a' => 'New York Yankees',
|
||||||
|
'team_b' => 'Los Angeles Dodgers',
|
||||||
|
'date' => '2025-11-04 18:30:00',
|
||||||
|
'prediction' => 'Yankees -1.5',
|
||||||
|
'confidence' => 3,
|
||||||
|
],
|
||||||
|
];
|
||||||
?>
|
?>
|
||||||
<!doctype html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en" data-bs-theme="light">
|
||||||
<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.0">
|
||||||
<title>New Style</title>
|
<title>BetPredict Pro</title>
|
||||||
<?php
|
<meta name="description" content="Data-driven sports betting prediction platform.">
|
||||||
// Read project preview data from environment
|
<meta name="keywords" content="sports betting, predictions, NFL, NBA, MLB, analytics, betting tips, game outcomes, player props, sportsbook, betting odds, sports forecasts">
|
||||||
$projectDescription = $_SERVER['PROJECT_DESCRIPTION'] ?? '';
|
<meta property="og:title" content="BetPredict Pro">
|
||||||
$projectImageUrl = $_SERVER['PROJECT_IMAGE_URL'] ?? '';
|
<meta property="og:description" content="Data-driven sports betting prediction platform.">
|
||||||
?>
|
<meta property="og:image" content="<?php echo htmlspecialchars($_SERVER['PROJECT_IMAGE_URL']); ?>">
|
||||||
<?php if ($projectDescription): ?>
|
<meta name="twitter:card" content="summary_large_image">
|
||||||
<!-- Meta description -->
|
<meta name="twitter:image" content="<?php echo htmlspecialchars($_SERVER['PROJECT_IMAGE_URL']); ?>">
|
||||||
<meta name="description" content='<?= htmlspecialchars($projectDescription) ?>' />
|
|
||||||
<!-- Open Graph meta tags -->
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||||
<meta property="og:description" content="<?= htmlspecialchars($projectDescription) ?>" />
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
|
||||||
<!-- Twitter meta tags -->
|
<link rel="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">
|
||||||
<meta property="twitter:description" content="<?= htmlspecialchars($projectDescription) ?>" />
|
|
||||||
<?php endif; ?>
|
|
||||||
<?php if ($projectImageUrl): ?>
|
|
||||||
<!-- Open Graph image -->
|
|
||||||
<meta property="og:image" content="<?= htmlspecialchars($projectImageUrl) ?>" />
|
|
||||||
<!-- Twitter image -->
|
|
||||||
<meta property="twitter:image" content="<?= htmlspecialchars($projectImageUrl) ?>" />
|
|
||||||
<?php endif; ?>
|
|
||||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
||||||
<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">
|
|
||||||
<style>
|
|
||||||
:root {
|
|
||||||
--bg-color-start: #6a11cb;
|
|
||||||
--bg-color-end: #2575fc;
|
|
||||||
--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-light bg-white sticky-top">
|
||||||
<h1>Analyzing your requirements and generating your website…</h1>
|
<div class="container">
|
||||||
<div class="loader" role="status" aria-live="polite" aria-label="Applying initial changes">
|
<a class="navbar-brand fw-bold" href="#">BetPredict Pro</a>
|
||||||
<span class="sr-only">Loading…</span>
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
|
||||||
</div>
|
<span class="navbar-toggler-icon"></span>
|
||||||
<p class="hint"><?= ($_SERVER['HTTP_HOST'] ?? '') === 'appwizzy.com' ? 'AppWizzy' : 'Flatlogic' ?> AI is collecting your requirements and applying the first changes.</p>
|
</button>
|
||||||
<p class="hint">This page will update automatically as the plan is implemented.</p>
|
<div class="collapse navbar-collapse" id="navbarNav">
|
||||||
<p>Runtime: PHP <code><?= htmlspecialchars($phpVersion) ?></code> — UTC <code><?= htmlspecialchars($now) ?></code></p>
|
<ul class="navbar-nav ms-auto align-items-center">
|
||||||
</div>
|
<li class="nav-item me-2">
|
||||||
</main>
|
<button class="btn btn-outline-secondary" id="theme-toggler" type="button">
|
||||||
<footer>
|
<i class="bi bi-sun-fill"></i>
|
||||||
Page updated: <?= htmlspecialchars($now) ?> (UTC)
|
</button>
|
||||||
</footer>
|
</li>
|
||||||
|
<li class="nav-item">
|
||||||
|
<a class="btn btn-primary" href="#">Login / Sign Up</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
<header class="hero">
|
||||||
|
<div class="container">
|
||||||
|
<h1 class="display-4">Data-Driven Sports Predictions</h1>
|
||||||
|
<p class="lead">Leverage advanced analytics to make smarter bets.</p>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="container mt-5">
|
||||||
|
<h2 class="text-center mb-4">Upcoming Game Predictions</h2>
|
||||||
|
|
||||||
|
<div class="row mb-4">
|
||||||
|
<div class="col-md-6 offset-md-3">
|
||||||
|
<div class="input-group">
|
||||||
|
<label class="input-group-text" for="sportFilter">Sport</label>
|
||||||
|
<select class="form-select" id="sportFilter">
|
||||||
|
<option selected>All</option>
|
||||||
|
<option>NFL</option>
|
||||||
|
<option>NBA</option>
|
||||||
|
<option>MLB</option>
|
||||||
|
<option>NHL</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row g-4">
|
||||||
|
<?php foreach ($games as $game): ?>
|
||||||
|
<div class="col-lg-4 col-md-6">
|
||||||
|
<div class="card game-card h-100">
|
||||||
|
<div class="card-body">
|
||||||
|
<div class="d-flex justify-content-between align-items-center mb-2">
|
||||||
|
<span class="badge bg-primary"><?php echo htmlspecialchars($game['sport']); ?></span>
|
||||||
|
<small class="text-muted"><?php echo date("M d, Y", strtotime($game['date'])); ?></small>
|
||||||
|
</div>
|
||||||
|
<h5 class="card-title text-center"><?php echo htmlspecialchars($game['team_a']); ?> vs <?php echo htmlspecialchars($game['team_b']); ?></h5>
|
||||||
|
<hr>
|
||||||
|
<p class="card-text text-center fs-5"><strong>Prediction:</strong> <?php echo htmlspecialchars($game['prediction']); ?></p>
|
||||||
|
<div class="text-center confidence-stars">
|
||||||
|
<?php for ($i = 0; $i < 5; $i++): ?>
|
||||||
|
<i class="bi <?php echo $i < $game['confidence'] ? 'bi-star-fill' : 'bi-star'; ?>"></i>
|
||||||
|
<?php endfor; ?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<footer class="footer">
|
||||||
|
<div class="container text-center">
|
||||||
|
<p>© <?php echo date("Y"); ?> BetPredict Pro. All Rights Reserved.</p>
|
||||||
|
<p><a href="#" class="text-white">Privacy Policy</a> | <a href="#" class="text-white">Terms of Service</a></p>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
|
||||||
|
<script src="assets/js/main.js?v=<?php echo time(); ?>"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Loading…
x
Reference in New Issue
Block a user