added html email and made site deployment ready | security fixes still needed

This commit is contained in:
2026-01-09 03:33:15 +01:00
parent 8a3857a093
commit 10fd6e63bf
6 changed files with 183 additions and 10 deletions

53
app/templates/email.html Normal file
View File

@@ -0,0 +1,53 @@
<html>
<body style="margin: 0; padding: 0; background-color: #1a1a1a; font-family: 'Courier New', Courier, monospace; color: #ffffff;">
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="background-color: #1a1a1a; padding: 20px;">
<tr>
<td align="center">
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="max-width: 600px; background-color: #222222; border: 1px solid #00ff00; padding: 30px;">
<tr>
<td align="center" style="padding-bottom: 20px;">
<img src="{{ logo_url }}" alt="Club Logo" width="150" style="display: block; border: 0;">
</td>
</tr>
<tr>
<td align="center" style="padding-bottom: 20px;">
<h1 style="color: #00ff00; font-size: 24px; margin: 0; text-transform: uppercase; text-align: center;">Registration Received</h1>
</td>
</tr>
<tr>
<td align="center" style="padding-bottom: 30px; font-size: 16px; line-height: 1.5; text-align: center;">
Thanks for registering <br>
<strong style="color: #00ff00;">{{ user_email }}</strong><br><br>
To secure your spot at the event, please confirm your attendance by clicking the button below.
</td>
</tr>
<tr>
<td align="center" style="padding-bottom: 30px;">
<table border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td align="center" bgcolor="#00ff00" style="padding: 15px 25px;">
<a href="{{ link }}" target="_blank" style="font-size: 18px; font-weight: bold; color: #000000; text-decoration: none; display: inline-block;">
CONFIRM MY SPOT
</a>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="center" style="padding-top: 20px; border-top: 1px solid #333333; font-size: 12px; color: #888888; text-align: center;">
If you didn't request this, you can safely ignore this email.
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>

View File

@@ -1,7 +1,9 @@
{% extends "base.html" %}
{% block content %}
<div class="container">
<link rel="stylesheet" href="{{ url_for('static', filename='timeline.css') }}">
<div class="container">
<h1>> Info</h1>
<ul>
<li>Date: 23.01.2026</li>
@@ -23,7 +25,44 @@
<li>Teams will be finalized on site at the competition</li>
</ul>
<hr style="border-color: #333; margin: 30px 0;"></hr>
<a href="{{ url_for('main.rules') }}">Rules and further information</a>
<h1>> Timeline</h1>
<div class="timeline-container">
<div class="line"></div>
<div class="items-wrapper">
<div class="item">
<div class="time">12:00</div>
<div class="dot"></div>
<div class="label">Entry<span>Setup & find team</span></div>
</div>
<div class="item">
<div class="time">13:00</div>
<div class="dot"></div>
<div class="label">Start of Event</div>
</div>
<div class="item">
<div class="time">~18:30</div>
<div class="dot"></div>
<div class="label">Pizza Time<span>Bring cash. <a href="https://lapergola.igetnow.com/menu" target="_blank">Menu</a></span></div>
</div>
<div class="item">
<div class="time">21:00</div>
<div class="dot"></div>
<div class="label">End of Event</div>
</div>
<div class="item">
<div class="time">21:15</div>
<div class="dot"></div>
<div class="label">Awards</div>
</div>
</div>
</div>
<hr style="border-color: #333; margin: 30px 0;"></hr>
<a href="{{ url_for('main.rules') }}" style="text-align: center;"><h3>Rules and Code of Conduct</h3></a>
</div>
<div class="container">