public/kontakt.html aktualisiert

This commit is contained in:
M_Viper 2024-10-18 23:51:37 +00:00
parent 4f057c0129
commit 65cf86fa9b
1 changed files with 54 additions and 81 deletions

View File

@ -1,81 +1,54 @@
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/styles.css">
<link rel="icon" type="image/png" href="img/Viper-plex-logo.png">
<title>Kontakt - Viper-Plex</title>
</head>
<body>
<!-- Logo separat einfügen -->
<div class="logo-container">
<a href="index.html">
<img src="img/Viper-plex-logo.png" alt="Viper-Plex Logo" class="logo">
</a>
</div>
<div class="welcome-box">
<h1>Kontakt</h1>
<nav class="navbar">
<div class="navbar-container">
<a href="index.html" class="navbar-link">Home</a>
<a href="wunsch.html" class="navbar-link">Film & Serien wunsch</a>
<a href="anleitung.html" class="navbar-link">Anleitung</a>
<a href="funktionen.html" class="navbar-link">Funktionen</a>
<a href="faq.html" class="navbar-link">FAQs</a>
<a href="kontakt.html" class="navbar-link">Kontakt</a>
<a href="link.html" class="navbar-link">Links</a>
<a href="report.html" class="navbar-link">Meldungen</a>
<a href="admin.html" class="navbar-link">Admin</a>
</div>
</nav>
<label class="switch">
<input type="checkbox" id="dark-mode-toggle">
<span class="slider"></span>
</label>
</div>
<div class="container">
<main>
<h3>Kontaktinformationen</h3>
<p>Wenn du Fragen oder Anregungen hast, kannst du uns hier kontaktieren:</p>
<p>Email: <a id="contact-email" href="#"></a></p>
<p>Telegram: <a id="contact-telegram" href="#" target="_blank"></a></p>
<p>Wir freuen uns über dein Feedback!</p>
</main>
</div>
<footer class="footer">
<p>&copy; 2024 Viper-Plex. Alle Rechte vorbehalten.</p>
</footer>
<script>
// Darkmode umschalten
const toggle = document.getElementById('dark-mode-toggle');
const darkModeEnabled = localStorage.getItem('darkMode') === 'true';
toggle.checked = darkModeEnabled;
if (darkModeEnabled) {
document.body.classList.add('dark-mode');
}
toggle.addEventListener('change', () => {
const isChecked = toggle.checked;
document.body.classList.toggle('dark-mode', isChecked);
localStorage.setItem('darkMode', isChecked);
});
// Kontaktinformationen aus .env abrufen
document.addEventListener('DOMContentLoaded', () => {
fetch('/api/contact-info') // API-Endpunkt zum Abrufen der Kontaktinformationen
.then(response => response.json())
.then(data => {
document.getElementById('contact-email').href = `mailto:${data.email}`;
document.getElementById('contact-email').textContent = data.email;
document.getElementById('contact-telegram').href = data.telegram;
document.getElementById('contact-telegram').textContent = data.telegram.split('/').pop(); // Extrahiere den Benutzernamen aus der URL
})
.catch(error => console.error('Fehler beim Abrufen der Kontaktinformationen:', error));
});
</script>
</body>
</html>
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/styles.css">
<link rel="icon" type="image/png" href="img/Viper-plex-logo.png">
<title id="web-title">${WEB_NAME}</title> <!-- Platzhalter für den Titel -->
</head>
<body>
<!-- Logo separat einfügen -->
<div class="logo-container">
<a href="index.html">
<img src="img/Viper-plex-logo.png" alt="Viper-Plex Logo" class="logo">
</a>
</div>
<div class="welcome-box">
<h1 id="welcome-title">${WEB_NAME}</h1> <!-- ID für das h1-Tag -->
<nav class="navbar">
<div class="navbar-container">
<a href="index.html" class="navbar-link">Home</a>
<a href="wunsch.html" class="navbar-link">Film & Serien wunsch</a>
<a href="anleitung.html" class="navbar-link">Anleitung</a>
<a href="funktionen.html" class="navbar-link">Funktionen</a>
<a href="faq.html" class="navbar-link">FAQs</a>
<a href="kontakt.html" class="navbar-link">Kontakt</a>
<a href="link.html" class="navbar-link">Links</a>
<a href="report.html" class="navbar-link">Meldungen</a>
<a href="admin.html" class="navbar-link">Admin</a>
</div>
</nav>
<label class="switch">
<input type="checkbox" id="dark-mode-toggle">
<span class="slider"></span>
</label>
</div>
<div class="container">
<main>
<h3>Kontaktinformationen</h3>
<p>Wenn du Fragen oder Anregungen hast, kannst du uns hier kontaktieren:</p>
<p>Email: <a id="contact-email" href="#"></a></p>
<p>Telegram: <a id="contact-telegram" href="#" target="_blank"></a></p>
<p>Wir freuen uns über dein Feedback!</p>
</main>
</div>
<footer class="footer">
<p>&copy; 2024 M_Viper. Alle Rechte vorbehalten.</p>
</footer>
<script src="js/script.js"></script>
</body>
</html>