333 lines
8.1 KiB
PHP
333 lines
8.1 KiB
PHP
<?php
|
|
require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/session_bootstrap.php';
|
|
?>
|
|
<!--
|
|
Author: Wspólnie
|
|
Author URL: https://togethere.cloud
|
|
-->
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Newsletter | kontakt: wspolpraca@togethere.cloud</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta charset="utf-8">
|
|
<meta name="keywords" content="projekty przyszłości"/>
|
|
<link rel="stylesheet" href="/css/header.css" type="text/css" media="all"/>
|
|
<link rel="stylesheet" href="/css/footer.css" type="text/css" media="all"/>
|
|
<link href="/css/font-awesome.min.css" rel="stylesheet" type="text/css" media="all">
|
|
<link href="/css/style.css" rel="stylesheet" type="text/css" media="all"/>
|
|
<link href="//fonts.googleapis.com/css?family=Lato:400,500,600,700,800,900" rel="stylesheet">
|
|
<style>
|
|
body {
|
|
background: linear-gradient(135deg, #e3f2fd 0%, #ffffff 100%);
|
|
min-height: 100vh;
|
|
}
|
|
|
|
h1 {
|
|
color: #1976d2;
|
|
padding: 30px;
|
|
margin-bottom: 0px;
|
|
text-align: center;
|
|
font-size: 2.5em;
|
|
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.newsletter-container {
|
|
max-width: 800px;
|
|
margin: 40px auto;
|
|
padding: 40px;
|
|
background: white;
|
|
border-radius: 15px;
|
|
box-shadow: 0 10px 30px rgba(100, 181, 246, 0.2);
|
|
}
|
|
|
|
.newsletter-intro {
|
|
text-align: center;
|
|
margin-bottom: 40px;
|
|
color: #2c3e50;
|
|
}
|
|
|
|
.newsletter-intro h2 {
|
|
color: #1976d2;
|
|
font-size: 1.8em;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.newsletter-intro p {
|
|
font-size: 1.1em;
|
|
line-height: 1.8;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.newsletter-form {
|
|
background: linear-gradient(135deg, #e3f2fd 0%, #ffffff 100%);
|
|
padding: 40px;
|
|
border-radius: 12px;
|
|
margin: 30px 0;
|
|
border: 2px solid #64b5f6;
|
|
}
|
|
|
|
.newsletter-form form {
|
|
width: 100%;
|
|
}
|
|
|
|
.newsletter-form h3 {
|
|
color: #1976d2;
|
|
text-align: center;
|
|
margin-bottom: 25px;
|
|
font-size: 1.6em;
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 25px;
|
|
width: 100%;
|
|
}
|
|
|
|
.form-group label {
|
|
display: block;
|
|
color: #2c3e50;
|
|
font-weight: 600;
|
|
margin-bottom: 10px;
|
|
font-size: 1.1em;
|
|
}
|
|
|
|
.form-group input[type="email"],
|
|
.form-group input[type="text"] {
|
|
width: 100%;
|
|
padding: 15px;
|
|
border: 2px solid #64b5f6;
|
|
border-radius: 8px;
|
|
font-size: 1em;
|
|
transition: all 0.3s ease;
|
|
box-sizing: border-box;
|
|
display: block;
|
|
}
|
|
|
|
.form-group input:focus {
|
|
outline: none;
|
|
border-color: #1976d2;
|
|
box-shadow: 0 0 10px rgba(25, 118, 210, 0.2);
|
|
}
|
|
|
|
.submit-btn {
|
|
width: 100%;
|
|
padding: 18px;
|
|
background: linear-gradient(135deg, #42a5f5, #1976d2);
|
|
color: white;
|
|
border: none;
|
|
border-radius: 8px;
|
|
font-size: 1.2em;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
text-transform: uppercase;
|
|
letter-spacing: 1px;
|
|
box-sizing: border-box;
|
|
display: block;
|
|
}
|
|
|
|
.submit-btn:hover {
|
|
background: linear-gradient(135deg, #1976d2, #0d47a1);
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 5px 15px rgba(25, 118, 210, 0.4);
|
|
}
|
|
|
|
.checkbox-group {
|
|
margin-bottom: 25px;
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 12px;
|
|
}
|
|
|
|
.checkbox-group input[type="checkbox"] {
|
|
width: 20px;
|
|
height: 20px;
|
|
cursor: pointer;
|
|
flex-shrink: 0;
|
|
margin-top: 3px;
|
|
}
|
|
|
|
.checkbox-group label {
|
|
color: #2c3e50;
|
|
font-size: 0.95em;
|
|
line-height: 1.6;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.checkbox-group label a {
|
|
color: #1976d2;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.checkbox-group label a:hover {
|
|
color: #0d47a1;
|
|
}
|
|
|
|
.benefits-section {
|
|
margin-top: 40px;
|
|
padding: 30px;
|
|
background: #f8f9fa;
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.benefits-section h3 {
|
|
color: #1976d2;
|
|
text-align: center;
|
|
margin-bottom: 25px;
|
|
font-size: 1.5em;
|
|
}
|
|
|
|
.benefits-list {
|
|
list-style: none;
|
|
padding: 0;
|
|
}
|
|
|
|
.benefits-list li {
|
|
padding: 15px;
|
|
margin-bottom: 12px;
|
|
background: white;
|
|
border-left: 4px solid #42a5f5;
|
|
border-radius: 6px;
|
|
color: #2c3e50;
|
|
font-size: 1.05em;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.benefits-list li:hover {
|
|
transform: translateX(10px);
|
|
box-shadow: 0 3px 10px rgba(100, 181, 246, 0.2);
|
|
}
|
|
|
|
.benefits-list li::before {
|
|
content: '✓';
|
|
color: #42a5f5;
|
|
font-weight: bold;
|
|
margin-right: 12px;
|
|
font-size: 1.3em;
|
|
}
|
|
|
|
.about-section {
|
|
margin-top: 40px;
|
|
text-align: center;
|
|
color: #2c3e50;
|
|
}
|
|
|
|
.about-section h3 {
|
|
color: #1976d2;
|
|
font-size: 1.8em;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.about-section p {
|
|
font-size: 1.1em;
|
|
line-height: 1.8;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.newsletter-container {
|
|
margin: 20px;
|
|
padding: 20px;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 2em;
|
|
padding: 20px;
|
|
}
|
|
|
|
.newsletter-form {
|
|
padding: 25px;
|
|
}
|
|
|
|
.newsletter-intro h2 {
|
|
font-size: 1.5em;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<!-- Tutaj PHP sprawdza sesje czy zalogowany i wczytuje odpowiednią nawigację -->
|
|
<?php
|
|
if (!empty($_SESSION['logged_in'])) {
|
|
if (isset($_SESSION['role']) && $_SESSION['role'] === 'admin') {
|
|
include __DIR__ . '/../global/navLoginedAdmin.php';
|
|
} else {
|
|
include __DIR__ . '/../global/navLogined.php';
|
|
}
|
|
} else {
|
|
include __DIR__ . '/../global/navNoLogined.php';
|
|
}
|
|
?>
|
|
|
|
<main>
|
|
<h1>📧 Newsletter Wspólnie</h1>
|
|
|
|
<div class="newsletter-container">
|
|
<div class="newsletter-intro">
|
|
<h2>Bądź na bieżąco z naszymi wydarzeniami!</h2>
|
|
<p>Zapisz się do naszego newslettera i otrzymuj regularne aktualizacje o najnowszych turniejach, meczach i wydarzeniach w Wspólnie.</p>
|
|
<p>Nie przegap żadnej ważnej informacji - dołącz do naszej społeczności już dziś!</p>
|
|
</div>
|
|
|
|
<div class="newsletter-form">
|
|
<h3>Zapisz się do Newslettera</h3>
|
|
<form action="#" method="POST">
|
|
<div class="form-group">
|
|
<label for="name">Imię i Nazwisko</label>
|
|
<input type="text" id="name" name="name" placeholder="Wpisz swoje imię i nazwisko" required>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="email">Adres E-mail</label>
|
|
<input type="email" id="email" name="email" placeholder="twoj@email.com" required>
|
|
</div>
|
|
|
|
<div class="checkbox-group">
|
|
<input type="checkbox" id="consent" name="consent" required>
|
|
<label for="consent">
|
|
Wyrażam zgodę na przetwarzanie moich danych osobowych w celu otrzymywania newslettera oraz informacji marketingowych od Wspólnie. Zapoznałem/am się z <a href="../polices">Polityką Prywatności</a> i akceptuję jej warunki.
|
|
</label>
|
|
</div>
|
|
|
|
<button type="submit" class="submit-btn">Zapisz się</button>
|
|
</form>
|
|
</div>
|
|
|
|
<div class="benefits-section">
|
|
<h3>Co zyskasz zapisując się?</h3>
|
|
<ul class="benefits-list">
|
|
<li>Powiadomienia o nadchodzących turniejach i ligach</li>
|
|
<li>Ekskluzywne informacje o nowych dyscyplinach</li>
|
|
<li>Aktualizacje wyników i statystyk</li>
|
|
<li>Zaproszenia na specjalne wydarzenia</li>
|
|
<li>Porady i tricki od najlepszych graczy</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="about-section">
|
|
<h3>O Wspólnie</h3>
|
|
<p>
|
|
<strong>Wspólnie</strong> to platforma łącząca pasjonatów gier i rywalizacji.
|
|
Organizujemy turnieje w różnych dyscyplinach - od piłkarzyków, przez ping-ponga,
|
|
aż po kamień, papier, nożyce.
|
|
</p>
|
|
<p>
|
|
Nasza misja to budowanie społeczności graczy, gdzie każdy może znaleźć coś dla siebie,
|
|
rywalizować fair play i rozwijać swoje umiejętności w przyjaznej atmosferze.
|
|
</p>
|
|
<p>
|
|
<strong>Kontakt:</strong> wspolpraca@togethere.cloud
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
|
|
<?php
|
|
if (!empty($_SESSION['logged_in'])) {
|
|
include __DIR__ . '/../global/footerLogined.php';
|
|
} else {
|
|
include __DIR__ . '/../global/footerNoLogined.php';
|
|
}
|
|
?>
|
|
</body>
|
|
</html>
|