linuxmuster-voucher/script/templates/index.html
2025-05-06 21:55:49 +02:00

83 lines
2.4 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Voucher Generator</title>
<style>
body {
font-family: Arial, sans-serif;
text-align: center;
margin: 0;
padding: 0;
background-color: #233c4c;
}
.container {
margin-top: 0px;
}
.logo {
width: 100%;
max-width: 500px;
margin-bottom: 0px;
}
.text {
font-size: 24px;
margin-bottom: 30px;
}
.buttons {
display: flex;
justify-content: center;
gap: 20px;
}
.button {
padding: 20px 40px;
font-size: 2rem;
color: white;
background-color: #0051a7;
border: none;
border-radius: 10px;
cursor: pointer;
text-decoration: none;
box-shadow: 0 14px 18px rgba(0, 0, 0, 0.4);
}
.zeit {
font-size: 3em;
margin-top: 10px;
text-shadow: 0 6px 10px rgba(0, 0, 0, 0.4);
}
.button:hover {
background-color: #0056b3;
}
@media (max-width: 768px) {
.text {
font-size: 20px;
margin-bottom: 20px;
}
.buttons {
flex-direction: column; /* Buttons untereinander anordnen */
gap: 10px; /* Abstand zwischen den Buttons */
margin-left: 20px; /* Zentrieren der Buttons */
margin-right: 20px;
}
.button {
width: auto; /* Buttons so breit wie der Bildschirm (mit etwas Abstand) */
margin-left: 20px ;
margin-right: 20px ;
font-size: 1rem;
}
}
</style>
</head>
<body>
<div class="container">
<img src="{{ logo }}" alt="Logo" class="logo">
<div class="text">Bitte wähle die gewünschte Dauer für den WLAN-Zugang 😀</div>
<div class="buttons">
<a href="/voucher/45" class="button">WLAN-Zugangscode<br>für<br><span class="zeit">45min</span><br>erstellen</a>
<a href="/voucher/90" class="button">WLAN-Zugangscode<br>für<br><span class="zeit">90min</span><br>erstellen</a>
</div>
</div>
</body>
</html>