Revert to version cd0b495

This commit is contained in:
Flatlogic Bot 2025-09-16 21:02:07 +00:00
parent 2b09df0658
commit 2afe7079a1
10 changed files with 126 additions and 1265 deletions

191
apply.php
View File

@ -1,191 +0,0 @@
<?php
require_once __DIR__ . '/mail/MailService.php';
$form_error = '';
$form_success = '';
// Form processing
if ($_SERVER["REQUEST_METHOD"] == "POST") {
// Sanitize and validate inputs
$company_name = filter_input(INPUT_POST, 'company_name', FILTER_SANITIZE_STRING);
$website = filter_input(INPUT_POST, 'website', FILTER_VALIDATE_URL);
$contact_name = filter_input(INPUT_POST, 'contact_name', FILTER_SANITIZE_STRING);
$contact_email = filter_input(INPUT_POST, 'contact_email', FILTER_VALIDATE_EMAIL);
$description = filter_input(INPUT_POST, 'description', FILTER_SANITIZE_STRING);
$reason = filter_input(INPUT_POST, 'reason', FILTER_SANITIZE_STRING);
$coc = filter_input(INPUT_POST, 'coc', FILTER_SANITIZE_STRING);
if (empty($company_name) || empty($contact_name) || empty($contact_email) || empty($description) || empty($coc)) {
$form_error = 'Please fill out all required fields and agree to the Code of Conduct.';
} elseif (!$contact_email) {
$form_error = 'Please provide a valid email address.';
} elseif ($website && !$website) {
$form_error = 'Please provide a valid website URL.';
} else {
// Prepare email content
$subject = "New Pavilion Application: {$company_name}";
$htmlBody = "
<h1>New Pavilion Application</h1>
<p>A new application has been submitted on the website.</p>
<ul>
<li><strong>Company Name:</strong> " . htmlspecialchars($company_name) . "</li>
<li><strong>Website:</strong> " . htmlspecialchars($website) . "</li>
<li><strong>Contact Name:</strong> " . htmlspecialchars($contact_name) . "</li>
<li><strong>Contact Email:</strong> " . htmlspecialchars($contact_email) . "</li>
<li><strong>Description:</strong><br>" . nl2br(htmlspecialchars($description)) . "</li>
<li><strong>Reason to Join:</strong><br>" . nl2br(htmlspecialchars($reason)) . "</li>
<li><strong>Agreed to CoC:</strong> Yes</li>
</ul>
<p>Please review and follow up with them.</p>
";
$textBody = "
New Pavilion Application
Company Name: {$company_name}
Website: {$website}
Contact Name: {$contact_name}
Contact Email: {$contact_email}
Description:
{$description}
Reason to Join:
{$reason}
Agreed to CoC: Yes
";
// Send email
$to = null; // Use MAIL_TO from .env
$options = ['reply_to' => $contact_email];
$result = MailService::sendMail($to, $subject, $htmlBody, $textBody, $options);
if (!empty($result['success'])) {
// Redirect to 'thanks' page on success
header("Location: thanks.php?from=apply");
exit;
} else {
// Log error and show a generic message
error_log("MailService Error: " . ($result['error'] ?? 'Unknown error'));
$form_error = 'Sorry, there was an error sending your application. Please try again later or contact us directly.';
}
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Apply to Join | Belarusians Worldwide</title>
<meta name="description" content="Apply to showcase your startup or project at the first Belarusian pavilion at Web Summit 2025.">
<meta name="robots" content="noindex, nofollow">
<!-- Fonts -->
<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=IBM+Plex+Sans:wght@400;500&family=Inter:wght@600;700&display=swap" rel="stylesheet">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
<!-- Custom CSS -->
<link rel="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">
</head>
<body>
<header>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container">
<a class="navbar-brand fw-bold" href="/">Belarusians Worldwide</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ms-auto">
<li class="nav-item"><a class="nav-link" href="/#why">Why</a></li>
<li class="nav-item"><a class="nav-link" href="sponsor.php">Sponsor</a></li>
<li class="nav-item"><a class="nav-link active" href="apply.php">Apply</a></li>
<li class="nav-item"><a class="nav-link" href="volunteer.php">Volunteer</a></li>
<li class="nav-item"><a class="nav-link" href="media.php">Media</a></li>
</ul>
</div>
</div>
</nav>
</header>
<main class="container my-5">
<div class="row">
<div class="col-lg-8 mx-auto">
<h1 class="mb-4">Apply to Join the Pavilion</h1>
<p class="lead mb-5">We invite Belarusian startups, companies, and partners to apply to be showcased at our Web Summit pavilion. Fill out the form below, and our team will review your application and get in touch.</p>
<div class="card">
<div class="card-body">
<h5 class="card-title mb-4">Application Form</h5>
<?php if ($form_error): ?>
<div class="alert alert-danger"><?php echo $form_error; ?></div>
<?php endif; ?>
<div class="alert alert-info small">
<p>This is for testing purposes only Flatlogic does not guarantee usage of the mail server. Please set up your own SMTP in <code>.env</code> (MAIL_/SMTP_ vars).</p>
<p class="mb-0">If you do not receive a confirmation, please check your spam folder.</p>
</div>
<form action="apply.php" method="POST">
<div class="row">
<div class="col-md-6 mb-3">
<label for="company_name" class="form-label">Company / Project Name</label>
<input type="text" class="form-control" id="company_name" name="company_name" required>
</div>
<div class="col-md-6 mb-3">
<label for="website" class="form-label">Website</label>
<input type="url" class="form-control" id="website" name="website" placeholder="https://example.com">
</div>
</div>
<div class="row">
<div class="col-md-6 mb-3">
<label for="contact_name" class="form-label">Contact Person</label>
<input type="text" class="form-control" id="contact_name" name="contact_name" required>
</div>
<div class="col-md-6 mb-3">
<label for="contact_email" class="form-label">Contact Email</label>
<input type="email" class="form-control" id="contact_email" name="contact_email" required>
</div>
</div>
<div class="mb-3">
<label for="description" class="form-label">Short Description (1-2 sentences)</label>
<textarea class="form-control" id="description" name="description" rows="3" required></textarea>
<div class="form-text">What does your company/project do?</div>
</div>
<div class="mb-3">
<label for="reason" class="form-label">Why do you want to join the pavilion?</label>
<textarea class="form-control" id="reason" name="reason" rows="3"></textarea>
<div class="form-text">What do you hope to achieve at Web Summit? (e.g., find investors, partners, talent)</div>
</div>
<div class="mb-3 form-check">
<input type="checkbox" class="form-check-input" id="coc" name="coc" value="1" required>
<label class="form-check-label" for="coc">I agree to the <a href="code-of-conduct.php" target="_blank">Code of Conduct</a>.</label>
</div>
<button type="submit" class="btn btn-primary w-100">Submit Application</button>
</form>
</div>
</div>
</div>
</div>
</main>
<footer class="footer mt-5">
<div class="container text-center">
<p class="mb-1">&copy; <?php echo date("Y"); ?> Belarusians Worldwide. A self-funded, non-state initiative.</p>
<ul class="list-inline">
<li class="list-inline-item"><a href="privacy.php">Privacy</a></li>
<li class="list-inline-item"><a href="code-of-conduct.php">Code of Conduct</a></li>
<li class="list-inline-item"><a href="media.php">Press</a></li>
</ul>
</div>
</footer>
<!-- Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
<!-- Custom JS -->
<script src="assets/js/main.js?v=<?php echo time(); ?>"></script>
</body>
</html>

View File

@ -1,132 +0,0 @@
/* --- Design System --- */
:root {
--primary-color: #E50000;
--text-color: #111111;
--background-color: #FFFFFF;
--accent-color: #C1C7CD;
--surface-color: #F8F9FA;
--border-radius: 0.25rem;
}
body {
font-family: 'IBM Plex Sans', sans-serif;
color: var(--text-color);
background-color: var(--background-color);
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
font-family: 'Inter', sans-serif;
font-weight: 600;
}
.btn-primary {
background-color: var(--primary-color);
border-color: var(--primary-color);
font-weight: 600;
padding: 0.75rem 1.5rem;
border-radius: var(--border-radius);
transition: background-color 0.3s ease, border-color 0.3s ease;
}
.btn-primary:hover {
background-color: #c40000;
border-color: #c40000;
}
.btn-secondary {
background-color: transparent;
border-color: var(--text-color);
color: var(--text-color);
font-weight: 600;
padding: 0.75rem 1.5rem;
border-radius: var(--border-radius);
}
.btn-secondary:hover {
background-color: var(--text-color);
color: var(--background-color);
}
.hero {
background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://picsum.photos/seed/hero-bw-summit/1600/900') no-repeat center center;
background-size: cover;
color: var(--background-color);
padding: 8rem 0;
text-align: center;
}
.hero h1 {
font-size: 3.5rem;
font-weight: 700;
}
.hero p {
font-size: 1.25rem;
max-width: 700px;
margin: 1rem auto;
}
.trust-strip {
font-size: 0.9rem;
text-transform: uppercase;
letter-spacing: 0.5px;
opacity: 0.8;
}
.logo-strip img {
max-height: 40px;
filter: grayscale(100%) brightness(300%);
opacity: 0.8;
transition: all 0.3s ease;
}
.logo-strip img:hover {
filter: none;
opacity: 1;
}
.funding-progress {
position: sticky;
top: 0;
z-index: 1020;
background-color: var(--surface-color);
padding: 1rem 0;
border-bottom: 1px solid #e0e0e0;
}
.progress {
height: 2rem;
font-size: 1rem;
border-radius: var(--border-radius);
}
.progress-bar {
background-color: var(--primary-color);
}
.section {
padding: 5rem 0;
}
.bchb-divider {
height: 5px;
background: linear-gradient(to right, #fff, #E50000, #fff, #E50000, #fff);
border: 0;
margin: 3rem 0;
}
.footer {
background-color: var(--text-color);
color: var(--background-color);
padding: 3rem 0;
}
.footer a {
color: var(--accent-color);
text-decoration: none;
}
.footer a:hover {
color: var(--background-color);
}

View File

@ -1 +0,0 @@
// Future JavaScript can go here

View File

@ -1,100 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Code of Conduct | Belarusians Worldwide</title>
<meta name="description" content="Our community standards for a safe, respectful, and collaborative environment.">
<meta name="robots" content="noindex, nofollow">
<!-- Fonts -->
<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=IBM+Plex+Sans:wght@400;500&family=Inter:wght@600;700&display=swap" rel="stylesheet">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
<!-- Custom CSS -->
<link rel="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">
</head>
<body>
<header>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container">
<a class="navbar-brand fw-bold" href="/">Belarusians Worldwide</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ms-auto">
<li class="nav-item"><a class="nav-link" href="/#why">Why</a></li>
<li class="nav-item"><a class="nav-link" href="sponsor.php">Sponsor</a></li>
<li class="nav-item"><a class="nav-link" href="apply.php">Apply</a></li>
<li class="nav-item"><a class="nav-link" href="volunteer.php">Volunteer</a></li>
<li class="nav-item"><a class="nav-link" href="media.php">Media</a></li>
</ul>
</div>
</div>
</nav>
</header>
<main class="container my-5">
<div class="row">
<div class="col-lg-8 mx-auto">
<h1 class="mb-4">Code of Conduct</h1>
<p class="lead">We are committed to providing a safe, welcoming, and harassment-free experience for everyone, regardless of gender, gender identity and expression, sexual orientation, disability, physical appearance, body size, race, age, or religion.</p>
<hr class="my-5">
<h4>Our Pledge</h4>
<p>In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to make participation in our project and our community a harassment-free experience for everyone.</p>
<h4>Our Standards</h4>
<p>Examples of behavior that contributes to creating a positive environment include:</p>
<ul>
<li>Using welcoming and inclusive language</li>
<li>Being respectful of differing viewpoints and experiences</li>
<li>Gracefully accepting constructive criticism</li>
<li>Focusing on what is best for the community</li>
<li>Showing empathy towards other community members</li>
</ul>
<p>Examples of unacceptable behavior by participants include:</p>
<ul>
<li>The use of sexualized language or imagery and unwelcome sexual attention or advances</li>
<li>Trolling, insulting/derogatory comments, and personal or political attacks</li>
<li>Public or private harassment</li>
<li>Publishing others' private information, such as a physical or electronic address, without explicit permission</li>
<li>Other conduct which could reasonably be considered inappropriate in a professional setting</li>
</ul>
<h4>Enforcement</h4>
<p>Community leaders are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.</p>
<p>Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at <a href="mailto:coc@belarusiansworldwide.com">coc@belarusiansworldwide.com</a>. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances.</p>
<h4>Scope</h4>
<p>This Code of Conduct applies to all project spaces, including the Web Summit pavilion, online forums, and any other channels established by the project team. It also applies to individuals representing the project in public spaces.</p>
</div>
</div>
</main>
<footer class="footer mt-5">
<div class="container text-center">
<p class="mb-1">&copy; <?php echo date("Y"); ?> Belarusians Worldwide. A self-funded, non-state initiative.</p>
<ul class="list-inline">
<li class="list-inline-item"><a href="privacy.php">Privacy</a></li>
<li class="list-inline-item"><a href="code-of-conduct.php">Code of Conduct</a></li>
<li class="list-inline-item"><a href="media.php">Press</a></li>
</ul>
</div>
</footer>
<!-- Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
<!-- Custom JS -->
<script src="assets/js/main.js?v=<?php echo time(); ?>"></script>
</body>
</html>

312
index.php
View File

@ -1,191 +1,131 @@
<!DOCTYPE html>
<?php
declare(strict_types=1);
@ini_set('display_errors', '1');
@error_reporting(E_ALL);
@date_default_timezone_set('UTC');
$phpVersion = PHP_VERSION;
$now = date('Y-m-d H:i:s');
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Belarusians Worldwide: Tech Without Borders | Web Summit 2025</title>
<meta name="description" content="Join the first-ever Belarusian pavilion at Web Summit. A self-funded, independent space for tech founders, engineers, and investors to connect and showcase their work.">
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website">
<meta property="og:url" content="https://your-domain.com/">
<meta property="og:title" content="Belarusians Worldwide: Tech Without Borders | Web Summit 2025">
<meta property="og:description" content="A cozy, first-time space for founders, engineers, investors, and creatives at Web Summit, Lisbon — Nov 1013, 2025.">
<meta property="og:image" content="https://picsum.photos/seed/hero-bw-summit/1200/630">
<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:url" content="https://your-domain.com/">
<meta property="twitter:title" content="Belarusians Worldwide: Tech Without Borders | Web Summit 2025">
<meta property="twitter:description" content="A cozy, first-time space for founders, engineers, investors, and creatives at Web Summit, Lisbon — Nov 1013, 2025.">
<meta property="twitter:image" content="https://picsum.photos/seed/hero-bw-summit/1200/630">
<!-- Fonts -->
<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=IBM+Plex+Sans:wght@400;500&family=Inter:wght@600;700&display=swap" rel="stylesheet">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
<!-- Custom CSS -->
<link rel="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>New Style</title>
<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>
<body>
<?php
// --- Funding Data (Hardcoded for now) ---
$funding_target = 15000;
$funding_raised = 7000;
$progress_percentage = ($funding_raised / $funding_target) * 100;
?>
<header>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container">
<a class="navbar-brand fw-bold" href="/">Belarusians Worldwide</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ms-auto">
<li class="nav-item"><a class="nav-link" href="/#why">Why</a></li>
<li class="nav-item"><a class="nav-link" href="/#tiers">Sponsor</a></li>
<li class="nav-item"><a class="nav-link" href="apply.php">Apply</a></li>
<li class="nav-item"><a class="nav-link" href="volunteer.php">Volunteer</a></li>
<li class="nav-item"><a class="nav-link" href="media.php">Media</a></li>
</ul>
</div>
</div>
</nav>
</header>
<main>
<!-- Hero Section -->
<section class="hero">
<div class="container">
<h1 class="display-4">Belarusians Worldwide: Tech Without Borders</h1>
<p class="lead">
A cozy, first-time space for founders, engineers, investors, and creatives at Web Summit, Lisbon Nov 1013, 2025.
</p>
<div class="d-grid gap-2 d-sm-flex justify-content-sm-center my-4">
<a href="sponsor.php" class="btn btn-primary btn-lg">Fund the Pavilion</a>
<a href="apply.php" class="btn btn-secondary btn-lg">Apply to Join</a>
</div>
<div class="trust-strip mt-4">
<p>2×2 pavilion · 3 days · 20 partner tickets included by WS package</p>
</div>
<div class="logo-strip d-flex justify-content-center align-items-center gap-4 mt-5">
<!-- Placeholder logos -->
<img src="https://via.placeholder.com/120x40.png?text=IMAGURU" alt="IMAGURU Logo">
<img src="https://via.placeholder.com/120x40.png?text=SVAE" alt="SVAE/New Belarus Logo">
<img src="https://via.placeholder.com/120x40.png?text=Funders" alt="Independent Funders">
</div>
</div>
</section>
<!-- Funding Progress Bar -->
<div class="funding-progress shadow-sm">
<div class="container">
<div class="d-flex justify-content-between mb-2">
<span class="fw-bold">Raised: <?php echo number_format($funding_raised); ?></span>
<span class="text-muted">Target: <?php echo number_format($funding_target); ?></span>
</div>
<div class="progress">
<div class="progress-bar" role="progressbar" style="width: <?php echo $progress_percentage; ?>%;" aria-valuenow="<?php echo $progress_percentage; ?>" aria-valuemin="0" aria-valuemax="100"><?php echo round($progress_percentage); ?>%</div>
</div>
<div class="text-center small mt-2">
<p class="mb-0">Were self-funded no state, no grants. Every euro goes to the pavilion.</p>
</div>
</div>
</div>
<!-- Why This Matters Section -->
<section id="why" class="section">
<div class="container">
<div class="row align-items-center">
<div class="col-lg-6">
<h2 class="mb-4">Why This Matters</h2>
<p><strong>Symbolism & Presence:</strong> We show up as Belarusians on Europes biggest tech stage, funded by ourselves.</p>
<p><strong>PR & Visibility:</strong> A story media cant ignore; a positive image for the diaspora.</p>
<p><strong>Showcase Companies:</strong> Get your logo on the backdrop, handouts on site, and a spot in our mini-agenda.</p>
<p><strong>Networking ROI:</strong> 3 days of intros to investors, partners, and friends in Lisbon.</p>
<span class="badge bg-light text-dark p-2">Web Summit: ~70k attendees, 1k speakers, 15 tracks</span>
</div>
<div class="col-lg-6 mt-4 mt-lg-0">
<img src="https://picsum.photos/seed/booth-mockup/800/600" class="img-fluid rounded shadow" alt="Mockup of the Belarusian pavilion booth, showing a welcoming and professional space.">
</div>
</div>
</div>
</section>
<hr class="bchb-divider">
<!-- What You Get Section -->
<section id="tiers" class="section bg-light">
<div class="container">
<div class="text-center mb-5">
<h2>What You Get as a Sponsor</h2>
<p class="lead">Choose your way to help public or confidential.</p>
</div>
<div class="row">
<!-- Tiers will be detailed here in a future step -->
<div class="col-md-6 col-lg-3 mb-4">
<div class="card h-100">
<div class="card-body">
<h5 class="card-title">€500+</h5>
<p class="card-text">Handouts on the booth + listing in the QR catalog.</p>
</div>
</div>
</div>
<div class="col-md-6 col-lg-3 mb-4">
<div class="card h-100">
<div class="card-body">
<h5 class="card-title">€1,000+</h5>
<p class="card-text">Logo on the backdrop + priority for 1 partner ticket.</p>
</div>
</div>
</div>
<div class="col-md-6 col-lg-3 mb-4">
<div class="card h-100">
<div class="card-body">
<h5 class="card-title">€2,500+</h5>
<p class="card-text">Co-exhibitor status with booth time and a ticket.</p>
</div>
</div>
</div>
<div class="col-md-6 col-lg-3 mb-4">
<div class="card h-100">
<div class="card-body">
<h5 class="card-title">€5,000+</h5>
<p class="card-text">Hero sponsor with large logo and mentions.</p>
</div>
</div>
</div>
</div>
<div class="text-center mt-4">
<a href="sponsor.php" class="btn btn-primary btn-lg">Become a Sponsor</a>
<p class="mt-3 small text-muted">All delegates agree to the <a href="code-of-conduct.php">Code of Conduct</a>.</p>
</div>
</div>
</section>
</main>
<footer class="footer">
<div class="container text-center">
<p class="mb-1">&copy; <?php echo date("Y"); ?> Belarusians Worldwide. A self-funded, non-state initiative.</p>
<ul class="list-inline">
<li class="list-inline-item"><a href="privacy.php">Privacy</a></li>
<li class="list-inline-item"><a href="code-of-conduct.php">Code of Conduct</a></li>
<li class="list-inline-item"><a href="media.php">Press</a></li>
</ul>
</div>
</footer>
<!-- Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
<!-- Custom JS -->
<script src="assets/js/main.js?v=<?php echo time(); ?>"></script>
<main>
<div class="card">
<h1>Analyzing your requirements and generating your website…</h1>
<div class="loader" role="status" aria-live="polite" aria-label="Applying initial changes">
<span class="sr-only">Loading…</span>
</div>
<p class="hint">Flatlogic AI is collecting your requirements and applying the first changes.</p>
<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>
</div>
</main>
<footer>
Page updated: <?= htmlspecialchars($now) ?> (UTC)
</footer>
</body>
</html>
</html>

View File

@ -1,95 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Media & Press | Belarusians Worldwide</title>
<meta name="description" content="Media resources and contact information for the Belarusians Worldwide pavilion at Web Summit 2025.">
<!-- Fonts -->
<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=IBM+Plex+Sans:wght@400;500&family=Inter:wght@600;700&display=swap" rel="stylesheet">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
<!-- Custom CSS -->
<link rel="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">
</head>
<body>
<header>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container">
<a class="navbar-brand fw-bold" href="/">Belarusians Worldwide</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ms-auto">
<li class="nav-item"><a class="nav-link" href="/#why">Why</a></li>
<li class="nav-item"><a class="nav-link" href="sponsor.php">Sponsor</a></li>
<li class="nav-item"><a class="nav-link" href="apply.php">Apply</a></li>
<li class="nav-item"><a class="nav-link" href="volunteer.php">Volunteer</a></li>
<li class="nav-item"><a class="nav-link active" href="media.php">Media</a></li>
</ul>
</div>
</div>
</nav>
</header>
<main class="container my-5">
<div class="row">
<div class="col-lg-8 mx-auto">
<h1 class="mb-4">Media & Press</h1>
<p class="lead mb-5">We welcome inquiries from journalists, bloggers, and content creators. Our story is one of unity, self-reliance, and the vibrant spirit of the Belarusian tech diaspora. Here you can find resources to help you cover our journey.</p>
<div class="card mb-4">
<div class="card-body">
<h5 class="card-title">Press Kit</h5>
<p>Our press kit includes official logos, photos, key facts, and talking points about the initiative. Download it to get started.</p>
<a href="/assets/Belarusians-Worldwide-Press-Kit.zip" class="btn btn-primary" disabled>Download Press Kit (Coming Soon)</a>
</div>
</div>
<div class="card">
<div class="card-body">
<h5 class="card-title">Media Contact</h5>
<p>For all media inquiries, including interview requests and quotes, please contact our media coordinator.</p>
<p><strong>Email:</strong> <a href="mailto:press@belarusiansworldwide.com">press@belarusiansworldwide.com</a></p>
</div>
</div>
<div class="mt-5">
<h4>Key Facts</h4>
<ul class="list-group list-group-flush">
<li class="list-group-item"><strong>What:</strong> The first self-funded Belarusian pavilion at Web Summit.</li>
<li class="list-group-item"><strong>Where:</strong> Web Summit, Lisbon, Portugal.</li>
<li class="list-group-item"><strong>When:</strong> November 10-13, 2025.</li>
<li class="list-group-item"><strong>Who:</strong> A community of Belarusian founders, engineers, investors, and creatives from around the world.</li>
<li class="list-group-item"><strong>Funding:</strong> 100% community-funded. No state or institutional grants.</li>
</ul>
</div>
</div>
</div>
</main>
<footer class="footer mt-5">
<div class="container text-center">
<p class="mb-1">&copy; <?php echo date("Y"); ?> Belarusians Worldwide. A self-funded, non-state initiative.</p>
<ul class="list-inline">
<li class="list-inline-item"><a href="privacy.php">Privacy</a></li>
<li class="list-inline-item"><a href="code-of-conduct.php">Code of Conduct</a></li>
<li class="list-inline-item"><a href="media.php">Press</a></li>
</ul>
</div>
</footer>
<!-- Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
<!-- Custom JS -->
<script src="assets/js/main.js?v=<?php echo time(); ?>"></script>
</body>
</html>

View File

@ -1,104 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Privacy Policy | Belarusians Worldwide</title>
<meta name="description" content="How we handle your data for the Belarusians Worldwide pavilion project.">
<meta name="robots" content="noindex, nofollow">
<!-- Fonts -->
<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=IBM+Plex+Sans:wght@400;500&family=Inter:wght@600;700&display=swap" rel="stylesheet">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
<!-- Custom CSS -->
<link rel="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">
</head>
<body>
<header>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container">
<a class="navbar-brand fw-bold" href="/">Belarusians Worldwide</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ms-auto">
<li class="nav-item"><a class="nav-link" href="/#why">Why</a></li>
<li class="nav-item"><a class="nav-link" href="sponsor.php">Sponsor</a></li>
<li class="nav-item"><a class="nav-link" href="apply.php">Apply</a></li>
<li class="nav-item"><a class="nav-link" href="volunteer.php">Volunteer</a></li>
<li class="nav-item"><a class="nav-link" href="media.php">Media</a></li>
</ul>
</div>
</div>
</nav>
</header>
<main class="container my-5">
<div class="row">
<div class="col-lg-8 mx-auto">
<h1 class="mb-4">Privacy Policy</h1>
<p class="lead">Your privacy is important to us. This policy explains what data we collect and how we use it.</p>
<hr class="my-5">
<h4>Information We Collect</h4>
<p>We collect information you provide directly to us when you fill out a form on our website. This may include:</p>
<ul>
<li><strong>Contact Information:</strong> Your name, email address, and company name.</li>
<li><strong>Application Details:</strong> Information you provide when you apply to be a partner or volunteer, such as your skills and project descriptions.</li>
<li><strong>Sponsorship Details:</strong> Information related to your sponsorship tier and amount.</li>
</ul>
<h4>How We Use Your Information</h4>
<p>We use the information we collect for the following purposes:</p>
<ul>
<li>To process your applications and sign-ups.</li>
<li>To communicate with you about your submission and our event.</li>
<li>To manage our sponsorship program and acknowledge supporters.</li>
<li>To send periodic updates about the pavilion initiative (you can opt out at any time).</li>
</ul>
<h4>Data Sharing</h4>
<p>We do not sell, trade, or otherwise transfer your personally identifiable information to outside parties. This does not include trusted third parties who assist us in operating our website or conducting our business, so long as those parties agree to keep this information confidential.</p>
<p>We may release your information when we believe release is appropriate to comply with the law, enforce our site policies, or protect ours or others' rights, property, or safety.</p>
<h4>Data Security</h4>
<p>We implement a variety of security measures to maintain the safety of your personal information when you submit it. All data is handled by our core organizing team.</p>
<h4>Your Consent</h4>
<p>By using our site, you consent to our web site privacy policy.</p>
<h4>Changes to our Privacy Policy</h4>
<p>If we decide to change our privacy policy, we will post those changes on this page.</p>
<h4>Contacting Us</h4>
<p>If there are any questions regarding this privacy policy, you may contact us at <a href="mailto:privacy@belarusiansworldwide.com">privacy@belarusiansworldwide.com</a>.</p>
</div>
</div>
</main>
<footer class="footer mt-5">
<div class="container text-center">
<p class="mb-1">&copy; <?php echo date("Y"); ?> Belarusians Worldwide. A self-funded, non-state initiative.</p>
<ul class="list-inline">
<li class="list-inline-item"><a href="privacy.php">Privacy</a></li>
<li class="list-inline-item"><a href="code-of-conduct.php">Code of Conduct</a></li>
<li class="list-inline-item"><a href="media.php">Press</a></li>
</ul>
</div>
</footer>
<!-- Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
<!-- Custom JS -->
<script src="assets/js/main.js?v=<?php echo time(); ?>"></script>
</body>
</html>

View File

@ -1,210 +0,0 @@
<?php
require_once __DIR__ . '/mail/MailService.php';
$form_submitted = false;
$form_error = '';
$form_success = '';
// Basic form processing
if ($_SERVER["REQUEST_METHOD"] == "POST") {
// Sanitize and validate inputs
$name = filter_input(INPUT_POST, 'name', FILTER_SANITIZE_STRING);
$email = filter_input(INPUT_POST, 'email', FILTER_VALIDATE_EMAIL);
$amount = filter_input(INPUT_POST, 'amount', FILTER_SANITIZE_STRING);
$coc = filter_input(INPUT_POST, 'coc', FILTER_SANITIZE_STRING);
if (empty($name) || empty($email) || empty($amount) || empty($coc)) {
$form_error = 'Please fill out all required fields and agree to the Code of Conduct.';
} elseif (!$email) {
$form_error = 'Please provide a valid email address.';
} else {
// Prepare email content
$subject = "New Sponsorship Submission: {$name}";
$htmlBody = "
<h1>New Sponsorship Submission</h1>
<p>A new sponsorship form has been submitted on the website.</p>
<ul>
<li><strong>Name/Company:</strong> " . htmlspecialchars($name) . "</li>
<li><strong>Email:</strong> " . htmlspecialchars($email) . "</li>
<li><strong>Sponsorship Tier/Amount:</strong> " . htmlspecialchars($amount) . "</li>
<li><strong>Agreed to CoC:</strong> Yes</li>
</ul>
<p>Please follow up with them to confirm payment and sponsorship details.</p>
";
$textBody = "
New Sponsorship Submission
Name/Company: {$name}
Email: {$email}
Sponsorship Tier/Amount: {$amount}
Agreed to CoC: Yes
";
// Send email
$to = null; // Use MAIL_TO from .env
$options = ['reply_to' => $email];
$result = MailService::sendMail($to, $subject, $htmlBody, $textBody, $options);
if (!empty($result['success'])) {
// Redirect to 'thanks' page on success
header("Location: thanks.php");
exit;
} else {
// Log error and show a generic message
error_log("MailService Error: " . ($result['error'] ?? 'Unknown error'));
$form_error = 'Sorry, there was an error sending your message. Please try again later or contact us directly.';
}
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sponsor the Pavilion | Belarusians Worldwide</title>
<meta name="description" content="Become a sponsor for the first Belarusian pavilion at Web Summit 2025.">
<meta name="robots" content="noindex, nofollow"> <!-- Discourage indexing of form pages -->
<!-- Fonts -->
<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=IBM+Plex+Sans:wght@400;500&family=Inter:wght@600;700&display=swap" rel="stylesheet">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
<!-- Custom CSS -->
<link rel="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">
</head>
<body>
<header>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container">
<a class="navbar-brand fw-bold" href="/">Belarusians Worldwide</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ms-auto">
<li class="nav-item"><a class="nav-link" href="/#why">Why</a></li>
<li class="nav-item"><a class="nav-link active" href="sponsor.php">Sponsor</a></li>
<li class="nav-item"><a class="nav-link" href="apply.php">Apply</a></li>
<li class="nav-item"><a class="nav-link" href="volunteer.php">Volunteer</a></li>
<li class="nav-item"><a class="nav-link" href="media.php">Media</a></li>
</ul>
</div>
</div>
</nav>
</header>
<main class="container my-5">
<div class="row">
<div class="col-lg-8 mx-auto">
<h1 class="mb-4">Sponsor the Pavilion</h1>
<p class="lead mb-5">Your contribution directly funds the first-ever Belarusian pavilion at Web Summit. Please fill out the form below and follow the payment instructions. We'll be in touch to confirm your sponsorship.</p>
<div class="row">
<!-- Form Section -->
<div class="col-md-6">
<div class="card">
<div class="card-body">
<h5 class="card-title mb-4">Sponsorship Details</h5>
<?php if ($form_error): ?>
<div class="alert alert-danger"><?php echo $form_error; ?></div>
<?php endif; ?>
<div class="alert alert-info small">
<p>This is for testing purposes only Flatlogic does not guarantee usage of the mail server. Please set up your own SMTP in <code>.env</code> (MAIL_/SMTP_ vars).</p>
<p class="mb-0">If you do not receive a confirmation, please check your spam folder.</p>
</div>
<form action="sponsor.php" method="POST">
<div class="mb-3">
<label for="name" class="form-label">Your Name or Company</label>
<input type="text" class="form-control" id="name" name="name" required>
</div>
<div class="mb-3">
<label for="email" class="form-label">Contact Email</label>
<input type="email" class="form-control" id="email" name="email" required>
<div class="form-text">For receipts and communication.</div>
</div>
<div class="mb-3">
<label for="amount" class="form-label">Sponsorship Amount ()</label>
<select class="form-select" id="amount" name="amount" required>
<option value="" selected disabled>Choose a tier or enter amount...</option>
<option value="500">€500 - Booth Handouts</option>
<option value="1000">€1,000 - Logo on Backdrop</option>
<option value="2500">€2,500 - Co-Exhibitor</option>
<option value="5000">€5,000 - Hero Sponsor</option>
<option value="custom">Other Amount</option>
</select>
</div>
<div class="mb-3 form-check">
<input type="checkbox" class="form-check-input" id="coc" name="coc" value="1" required>
<label class="form-check-label" for="coc">I agree to the <a href="code-of-conduct.php" target="_blank">Code of Conduct</a>.</label>
</div>
<button type="submit" class="btn btn-primary w-100">Submit & Proceed to Payment</button>
</form>
</div>
</div>
</div>
<!-- Payment Instructions Section -->
<div class="col-md-6 mt-4 mt-md-0">
<div class="card bg-light border-dashed">
<div class="card-body">
<h5 class="card-title mb-3">Payment Instructions</h5>
<p>After submitting the form, please use one of the methods below. Make sure the name on the transfer matches the name in the form.</p>
<hr>
<h6><strong>Option 1: Bank Transfer (SEPA)</strong></h6>
<ul class="list-unstyled">
<li><strong>Beneficiary:</strong> VSI "IMAGURU"</li>
<li><strong>IBAN:</strong> LTXX XXXX XXXX XXXX XXXX</li>
<li><strong>Bank:</strong> Revolut Bank UAB</li>
<li><strong>SWIFT/BIC:</strong> REVOLT21</li>
<li><strong>Reference:</strong> WS25 Pavilion - [Your Name]</li>
</ul>
<hr>
<h6><strong>Option 2: Cryptocurrency (USDT)</strong></h6>
<p class="small">For crypto contributions, please send us an email after the transfer with the transaction hash.</p>
<ul class="list-unstyled">
<li><strong>Network:</strong> TRC20 (Tron)</li>
<li><strong>Address:</strong> <code>TYourWalletAddressHere...</code></li>
</ul>
<hr>
<p class="small text-muted mt-3">For questions or alternative payment methods, please contact us at <a href="mailto:pavalion@belarusiansworldwide.com">pavalion@belarusiansworldwide.com</a>.</p>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
<footer class="footer mt-5">
<div class="container text-center">
<p class="mb-1">&copy; <?php echo date("Y"); ?> Belarusians Worldwide. A self-funded, non-state initiative.</p>
<ul class="list-inline">
<li class="list-inline-item"><a href="privacy.php">Privacy</a></li>
<li class="list-inline-item"><a href="code-of-conduct.php">Code of Conduct</a></li>
<li class="list-inline-item"><a href="media.php">Press</a></li>
</ul>
</div>
</footer>
<!-- Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
<!-- Custom JS -->
<script src="assets/js/main.js?v=<?php echo time(); ?>"></script>
</body>
</html>

View File

@ -1,73 +0,0 @@
<?php
// No specific logic needed for this page, just display.
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Thank You! | Belarusians Worldwide</title>
<meta name="robots" content="noindex, nofollow">
<!-- Fonts -->
<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=IBM+Plex+Sans:wght@400;500&family=Inter:wght@600;700&display=swap" rel="stylesheet">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
<!-- Custom CSS -->
<link rel="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">
</head>
<body>
<header>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container">
<a class="navbar-brand fw-bold" href="/">Belarusians Worldwide</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ms-auto">
<li class="nav-item"><a class="nav-link" href="/#why">Why</a></li>
<li class="nav-item"><a class="nav-link" href="sponsor.php">Sponsor</a></li>
<li class="nav-item"><a class="nav-link" href="apply.php">Apply</a></li>
<li class="nav-item"><a class="nav-link" href="volunteer.php">Volunteer</a></li>
<li class="nav-item"><a class="nav-link" href="media.php">Media</a></li>
</ul>
</div>
</div>
</nav>
</header>
<main class="container my-5">
<div class="row">
<div class="col-lg-8 mx-auto text-center">
<h1 class="display-4">Thank You!</h1>
<p class="lead">Your submission has been received. We sincerely appreciate your support.</p>
<hr class="my-4">
<p>Please remember to complete your contribution using the payment instructions provided on the previous page. We will contact you shortly to confirm your sponsorship and discuss the next steps.</p>
<a href="/" class="btn btn-primary btn-lg mt-3">Back to Homepage</a>
</div>
</div>
</main>
<footer class="footer mt-5">
<div class="container text-center">
<p class="mb-1">&copy; <?php echo date("Y"); ?> Belarusians Worldwide. A self-funded, non-state initiative.</p>
<ul class="list-inline">
<li class="list-inline-item"><a href="privacy.php">Privacy</a></li>
<li class="list-inline-item"><a href="code-of-conduct.php">Code of Conduct</a></li>
<li class="list-inline-item"><a href="media.php">Press</a></li>
</ul>
</div>
</footer>
<!-- Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
<!-- Custom JS -->
<script src="assets/js/main.js?v=<?php echo time(); ?>"></script>
</body>
</html>

View File

@ -1,173 +0,0 @@
<?php
require_once __DIR__ . '/mail/MailService.php';
$form_error = '';
$form_success = '';
// Form processing
if ($_SERVER["REQUEST_METHOD"] == "POST") {
// Sanitize and validate inputs
$full_name = filter_input(INPUT_POST, 'full_name', FILTER_SANITIZE_STRING);
$email = filter_input(INPUT_POST, 'email', FILTER_VALIDATE_EMAIL);
$skills = filter_input(INPUT_POST, 'skills', FILTER_SANITIZE_STRING);
$availability = filter_input(INPUT_POST, 'availability', FILTER_SANITIZE_STRING);
$coc = filter_input(INPUT_POST, 'coc', FILTER_SANITIZE_STRING);
if (empty($full_name) || empty($email) || empty($coc)) {
$form_error = 'Please fill out your name, email, and agree to the Code of Conduct.';
} elseif (!$email) {
$form_error = 'Please provide a valid email address.';
} else {
// Prepare email content
$subject = "New Volunteer Sign-up: {$full_name}";
$htmlBody = "
<h1>New Volunteer Sign-up</h1>
<p>A new volunteer has signed up through the website.</p>
<ul>
<li><strong>Full Name:</strong> " . htmlspecialchars($full_name) . "</li>
<li><strong>Email:</strong> " . htmlspecialchars($email) . "</li>
<li><strong>Skills/Interests:</strong><br>" . nl2br(htmlspecialchars($skills)) . "</li>
<li><strong>Availability:</strong><br>" . nl2br(htmlspecialchars($availability)) . "</li>
<li><strong>Agreed to CoC:</strong> Yes</li>
</ul>
<p>Please add them to the volunteer list and follow up with details.</p>
";
$textBody = "
New Volunteer Sign-up
Full Name: {$full_name}
Email: {$email}
Skills/Interests:
{$skills}
Availability:
{$availability}
Agreed to CoC: Yes
";
// Send email
$to = null; // Use MAIL_TO from .env
$options = ['reply_to' => $email];
$result = MailService::sendMail($to, $subject, $htmlBody, $textBody, $options);
if (!empty($result['success'])) {
// Redirect to 'thanks' page on success
header("Location: thanks.php?from=volunteer");
exit;
} else {
// Log error and show a generic message
error_log("MailService Error: " . ($result['error'] ?? 'Unknown error'));
$form_error = 'Sorry, there was an error sending your sign-up. Please try again later or contact us directly.';
}
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Volunteer | Belarusians Worldwide</title>
<meta name="description" content="Join our team as a volunteer for the Belarusian pavilion at Web Summit 2025.">
<meta name="robots" content="noindex, nofollow">
<!-- Fonts -->
<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=IBM+Plex+Sans:wght@400;500&family=Inter:wght@600;700&display=swap" rel="stylesheet">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
<!-- Custom CSS -->
<link rel="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">
</head>
<body>
<header>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container">
<a class="navbar-brand fw-bold" href="/">Belarusians Worldwide</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ms-auto">
<li class="nav-item"><a class="nav-link" href="/#why">Why</a></li>
<li class="nav-item"><a class="nav-link" href="sponsor.php">Sponsor</a></li>
<li class="nav-item"><a class="nav-link" href="apply.php">Apply</a></li>
<li class="nav-item"><a class="nav-link active" href="volunteer.php">Volunteer</a></li>
<li class="nav-item"><a class="nav-link" href="media.php">Media</a></li>
</ul>
</div>
</div>
</nav>
</header>
<main class="container my-5">
<div class="row">
<div class="col-lg-8 mx-auto">
<h1 class="mb-4">Volunteer With Us</h1>
<p class="lead mb-5">The pavilion is powered by our community. We need your help with booth shifts, setup, and networking at Night Summit. Sign up below to be a part of the team in Lisbon!</p>
<div class="card">
<div class="card-body">
<h5 class="card-title mb-4">Volunteer Sign-up</h5>
<?php if ($form_error): ?>
<div class="alert alert-danger"><?php echo $form_error; ?></div>
<?php endif; ?>
<div class="alert alert-info small">
<p>This is for testing purposes only Flatlogic does not guarantee usage of the mail server. Please set up your own SMTP in <code>.env</code> (MAIL_/SMTP_ vars).</p>
<p class="mb-0">If you do not receive a confirmation, please check your spam folder.</p>
</div>
<form action="volunteer.php" method="POST">
<div class="row">
<div class="col-md-6 mb-3">
<label for="full_name" class="form-label">Full Name</label>
<input type="text" class="form-control" id="full_name" name="full_name" required>
</div>
<div class="col-md-6 mb-3">
<label for="email" class="form-label">Email Address</label>
<input type="email" class="form-control" id="email" name="email" required>
</div>
</div>
<div class="mb-3">
<label for="skills" class="form-label">Skills & Interests</label>
<textarea class="form-control" id="skills" name="skills" rows="3"></textarea>
<div class="form-text">Let us know what you're good at! (e.g., sales, social media, event setup, photography)</div>
</div>
<div class="mb-3">
<label for="availability" class="form-label">Your Availability</label>
<textarea class="form-control" id="availability" name="availability" rows="3"></textarea>
<div class="form-text">When can you help? (e.g., specific days at Web Summit, pre-event tasks)</div>
</div>
<div class="mb-3 form-check">
<input type="checkbox" class="form-check-input" id="coc" name="coc" value="1" required>
<label class="form-check-label" for="coc">I agree to the <a href="code-of-conduct.php" target="_blank">Code of Conduct</a>.</label>
</div>
<button type="submit" class="btn btn-primary w-100">Sign Up to Volunteer</button>
</form>
</div>
</div>
</div>
</div>
</main>
<footer class="footer mt-5">
<div class="container text-center">
<p class="mb-1">&copy; <?php echo date("Y"); ?> Belarusians Worldwide. A self-funded, non-state initiative.</p>
<ul class="list-inline">
<li class="list-inline-item"><a href="privacy.php">Privacy</a></li>
<li class="list-inline-item"><a href="code-of-conduct.php">Code of Conduct</a></li>
<li class="list-inline-item"><a href="media.php">Press</a></li>
</ul>
</div>
</footer>
<!-- Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
<!-- Custom JS -->
<script src="assets/js/main.js?v=<?php echo time(); ?>"></script>
</body>
</html>