34950-vm/index.php
Flatlogic Bot b7c23d9356 2
2025-10-17 09:19:56 +00:00

115 lines
3.9 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
require_once 'db/config.php';
$webinar = null;
try {
// Fetch the first upcoming webinar
$stmt = db()->prepare("SELECT * FROM webinars WHERE scheduled_at > NOW() ORDER BY scheduled_at ASC LIMIT 1");
$stmt->execute();
$webinar = $stmt->fetch();
} catch (PDOException $e) {
// Silently fail for now
}
$webinar_id = $webinar ? $webinar['id'] : 1; // Fallback to 1 if no webinar is found
$webinar_title = $webinar ? $webinar['title'] : 'Professional Vibe-Coding Webinar';
$webinar_date_str = $webinar ? (new DateTime($webinar['scheduled_at']))->format('l, F j \\ • \\ At g.i A T') : 'Monday, November 3 • At 6.00 PM PST';
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?= htmlspecialchars($webinar_title) ?></title>
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
background-color: #1a202c;
color: #e2e8f0;
margin: 0;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
text-align: center;
}
.container {
max-width: 800px;
padding: 2rem;
}
.schedule-block {
background-color: #2d3748;
border-radius: 0.5rem;
padding: 2rem;
border: 1px solid #4a5568;
}
h2 {
color: #f6e05e;
font-size: 1.5rem;
margin-bottom: 1rem;
text-transform: uppercase;
}
ul {
list-style: none;
padding: 0;
margin: 0 0 1.5rem 0;
text-align: left;
display: inline-block;
}
li {
margin-bottom: 0.5rem;
font-size: 1.125rem;
}
.date-time {
font-size: 1.25rem;
font-weight: bold;
margin-bottom: 1.5rem;
}
.register-button {
display: inline-block;
background-color: #f6e05e;
color: #1a202c;
padding: 0.75rem 1.5rem;
border-radius: 0.375rem;
text-decoration: none;
font-weight: bold;
font-size: 1.125rem;
transition: background-color 0.2s;
margin-bottom: 1.5rem;
}
.register-button:hover {
background-color: #f6d32d;
}
.byline {
font-size: 1rem;
color: #a0aec0;
}
</style>
</head>
<body>
<div class="container">
<h1 style="font-size: 2.5rem; font-weight: bold; color: #f6e05e; margin-bottom: 0.5rem;">Professional Vibe-Coding Webinar by Flatlogic</h1>
<p style="font-size: 1.25rem; color: #a0aec0; margin-bottom: 2rem;">Professional VibeCoding: the fastest way to go from an idea to a working app you own, running on your server, with your database, using real frameworks.</p>
<div class="schedule-block">
<h2>Schedule</h2>
<ul>
<li>• Intro ~10 min</li>
<li>• Creating Apps ~40-50 min</li>
<li>• Q&A</li>
</ul>
<div class="date-time">
<?= htmlspecialchars($webinar_date_str) ?>
</div>
<a href="register.php?webinar_id=<?= $webinar_id ?>" class="register-button">Register Now →</a>
<div class="byline">
By: Philip Daineka, Alex Rubanau, Alexey Vertel
</div>
</div>
<header style="position: absolute; top: 1rem; right: 1rem;">
<a href="login.php" style="color: #1a202c; text-decoration: none; background-color: #f6e05e; padding: 0.75rem 1.5rem; border-radius: 0.375rem; font-weight: bold; font-size: 1.125rem;">Login</a>
</header>
</div>
</body>
</html>