This commit is contained in:
Flatlogic Bot 2025-10-26 19:43:40 +00:00
parent d05f2381f7
commit 1b68b62fde
2 changed files with 24 additions and 14 deletions

View File

@ -45,6 +45,12 @@
margin-top: 10px;
color: #fff;
}
.webinar-subtitle {
font-size: 1.2rem;
font-weight: bold;
margin-top: 10px;
color: #e0e0e0;
}
.webinar-time {
color: #bdbdbd;
margin-top: 20px;
@ -138,11 +144,12 @@
<div class="col-lg-7">
<div class="left-column">
<div style="background-color: #f8f9fa; text-align: center; margin-bottom: 40px; padding: 20px; border-radius: 10px;">
<img src="assets/pasted-20251017-115640-64b19aff.png" alt="Flatlogic Logo" style="height: 40px;">
<img src="assets/pasted-20251017-115640-64b19aff.png" alt="AppWizzy Logo" style="height: 40px;">
</div>
<h1 class="webinar-title" style="line-height: 1.2;">Professional Vibe-Coding Webinar<br><span style="font-size: 1.25rem; color: #e0e0e0;">by Flatlogic</span></h1>
<div class="webinar-time">WEDNESDAY, NOVEMBER 19 | 1PM EST | 10AM PST | 7PM CET</div>
<h1 class="webinar-title" style="line-height: 1.2;">Professional Vibe-Coding Webinar</h1>
<h2 class="webinar-subtitle">Building Scalable Apps with AppWizzy</h2>
<div class="webinar-time">WEDNESDAY, NOVEMBER 19 | 10AM EST | 7AM PST | 4PM CET</div>
<p class="webinar-description">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="speakers-section">
<h3>Speakers</h3>
@ -151,7 +158,7 @@
<div class="speaker-card">
<img src="assets/pasted-20251025-190534-b34b4e03.png" alt="Philip Daineka">
<h5>Philip Daineka</h5>
<p class="text-muted">CEO, Flatlogic</p>
<p class="text-muted">CEO, AppWizzy</p>
</div>
</div>
<div class="col-md-4">

View File

@ -65,19 +65,22 @@ try {
$stmt->execute([$webinar_id, $first_name, $last_name, $email, $company, $how_did_you_hear, $password_hash, $timezone]);
// --- SEND CONFIRMATION EMAIL ---
$webinar_date_obj = new DateTime('2025-11-19 13:00:00', new DateTimeZone('America/New_York'));
$subject = "Confirmation: You're Registered for Professional Vibe-Coding Webinar by Flatlogic";
$body_html = "<h1>You're in!</h1><p>Thanks for registering for our webinar: <strong>Professional Vibe-Coding Webinar by Flatlogic</strong>.</p><p>It will take place on <strong>" . $webinar_date_obj->format('l, F j, Y \a\t g:i A T') . "</strong>.</p><p>You can now log in to your dashboard to see the details.</p>";
$webinar_date_obj = new DateTime('2025-11-19 10:00:00', new DateTimeZone('America/New_York'));
$subject = "Confirmation: You're Registered for Professional Vibe-Coding Webinar";
$body_html = "<h1>You're in!</h1><p>Thanks for registering for our webinar: <strong>Professional Vibe-Coding Webinar</strong>.</p><p style='font-size: 0.8em;'><strong>Building Scalable Apps with AppWizzy</strong></p><p>It will take place on <strong>" . $webinar_date_obj->format('l, F j, Y \a\t g:i A T') . "</strong>.</p><p>You can now log in to your dashboard to see the details.</p>"
MailService::sendMail($email, $subject, $body_html);
// --- PREPARE SUCCESS RESPONSE ---
$webinar_date = new DateTime('2025-11-19 13:00:00', new DateTimeZone('America/New_York'));
$webinar_date = new DateTime('2025-11-19 10:00:00', new DateTimeZone('America/New_York'));
$webinar_date->setTimezone(new DateTimeZone('UTC'));
$start_time_utc = $webinar_date->format('Ymd\THis\Z');
$webinar_date->add(new DateInterval('PT1H')); // Assume 1 hour duration
$end_time_utc = $webinar_date->format('Ymd\THis\Z');
$google_link = 'https://www.google.com/calendar/render?action=TEMPLATE&text=' . urlencode('Professional Vibe-Coding Webinar by Flatlogic') . '&dates=' . $start_time_utc . '/' . $end_time_utc . '&details=' . urlencode('The fastest way to go from an idea to a working app you own, running on your server, with your database, using real frameworks.') . '&location=' . urlencode('Online') . '&ctz=UTC';
$event_title = 'Professional Vibe-Coding Webinar at 4PM CET';
$event_description = 'Building Scalable Apps with AppWizzy\n\nJoin us for this webinar at 4PM CET | 10AM EST | 7AM PST. The fastest way to go from an idea to a working app you own, running on your server, with your database, using real frameworks.';
$google_link = 'https://www.google.com/calendar/render?action=TEMPLATE&text=' . urlencode($event_title) . '&dates=' . $start_time_utc . '/' . $end_time_utc . '&details=' . urlencode($event_description) . '&location=' . urlencode('Online') . '&ctz=UTC';
$ics_content = implode("\r\n", [
'BEGIN:VCALENDAR',
@ -85,10 +88,10 @@ try {
'PRODID:-//Flatlogic//Professional Vibe-Coding Webinar//EN',
'BEGIN:VEVENT',
'URL:' . 'http://' . $_SERVER['HTTP_HOST'],
'DTSTART;TZID=UTC:' . $start_time_utc,
'DTEND;TZID=UTC:' . $end_time_utc,
'SUMMARY:Professional Vibe-Coding Webinar by Flatlogic',
'DESCRIPTION:The fastest way to go from an idea to a working app you own, running on your server, with your database, using real frameworks.',
'DTSTART:' . $start_time_utc,
'DTEND:' . $end_time_utc,
'SUMMARY:' . $event_title,
'DESCRIPTION:' . str_replace("\n", "\\n", $event_description),
'LOCATION:Online',
'END:VEVENT',
'END:VCALENDAR'
@ -97,7 +100,7 @@ try {
echo json_encode([
'success' => true,
'webinar_title' => 'Professional Vibe-Coding Webinar by Flatlogic',
'webinar_title' => 'Professional Vibe-Coding Webinar<br><small><strong>Building Scalable Apps with AppWizzy</strong></small>',
'google_link' => $google_link,
'outlook_link' => $outlook_link
]);