public/kontakt.html aktualisiert
This commit is contained in:
parent
4f057c0129
commit
65cf86fa9b
|
@ -1,81 +1,54 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="de">
|
<html lang="de">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<link rel="stylesheet" href="css/styles.css">
|
<link rel="stylesheet" href="css/styles.css">
|
||||||
<link rel="icon" type="image/png" href="img/Viper-plex-logo.png">
|
<link rel="icon" type="image/png" href="img/Viper-plex-logo.png">
|
||||||
<title>Kontakt - Viper-Plex</title>
|
<title id="web-title">${WEB_NAME}</title> <!-- Platzhalter für den Titel -->
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<!-- Logo separat einfügen -->
|
<!-- Logo separat einfügen -->
|
||||||
<div class="logo-container">
|
<div class="logo-container">
|
||||||
<a href="index.html">
|
<a href="index.html">
|
||||||
<img src="img/Viper-plex-logo.png" alt="Viper-Plex Logo" class="logo">
|
<img src="img/Viper-plex-logo.png" alt="Viper-Plex Logo" class="logo">
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="welcome-box">
|
<div class="welcome-box">
|
||||||
<h1>Kontakt</h1>
|
<h1 id="welcome-title">${WEB_NAME}</h1> <!-- ID für das h1-Tag -->
|
||||||
<nav class="navbar">
|
<nav class="navbar">
|
||||||
<div class="navbar-container">
|
<div class="navbar-container">
|
||||||
<a href="index.html" class="navbar-link">Home</a>
|
<a href="index.html" class="navbar-link">Home</a>
|
||||||
<a href="wunsch.html" class="navbar-link">Film & Serien wunsch</a>
|
<a href="wunsch.html" class="navbar-link">Film & Serien wunsch</a>
|
||||||
<a href="anleitung.html" class="navbar-link">Anleitung</a>
|
<a href="anleitung.html" class="navbar-link">Anleitung</a>
|
||||||
<a href="funktionen.html" class="navbar-link">Funktionen</a>
|
<a href="funktionen.html" class="navbar-link">Funktionen</a>
|
||||||
<a href="faq.html" class="navbar-link">FAQs</a>
|
<a href="faq.html" class="navbar-link">FAQs</a>
|
||||||
<a href="kontakt.html" class="navbar-link">Kontakt</a>
|
<a href="kontakt.html" class="navbar-link">Kontakt</a>
|
||||||
<a href="link.html" class="navbar-link">Links</a>
|
<a href="link.html" class="navbar-link">Links</a>
|
||||||
<a href="report.html" class="navbar-link">Meldungen</a>
|
<a href="report.html" class="navbar-link">Meldungen</a>
|
||||||
<a href="admin.html" class="navbar-link">Admin</a>
|
<a href="admin.html" class="navbar-link">Admin</a>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
<label class="switch">
|
<label class="switch">
|
||||||
<input type="checkbox" id="dark-mode-toggle">
|
<input type="checkbox" id="dark-mode-toggle">
|
||||||
<span class="slider"></span>
|
<span class="slider"></span>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<main>
|
<main>
|
||||||
<h3>Kontaktinformationen</h3>
|
<h3>Kontaktinformationen</h3>
|
||||||
<p>Wenn du Fragen oder Anregungen hast, kannst du uns hier kontaktieren:</p>
|
<p>Wenn du Fragen oder Anregungen hast, kannst du uns hier kontaktieren:</p>
|
||||||
<p>Email: <a id="contact-email" href="#"></a></p>
|
<p>Email: <a id="contact-email" href="#"></a></p>
|
||||||
<p>Telegram: <a id="contact-telegram" href="#" target="_blank"></a></p>
|
<p>Telegram: <a id="contact-telegram" href="#" target="_blank"></a></p>
|
||||||
<p>Wir freuen uns über dein Feedback!</p>
|
<p>Wir freuen uns über dein Feedback!</p>
|
||||||
</main>
|
</main>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<footer class="footer">
|
<footer class="footer">
|
||||||
<p>© 2024 Viper-Plex. Alle Rechte vorbehalten.</p>
|
<p>© 2024 M_Viper. Alle Rechte vorbehalten.</p>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
<script>
|
<script src="js/script.js"></script>
|
||||||
// Darkmode umschalten
|
</body>
|
||||||
const toggle = document.getElementById('dark-mode-toggle');
|
</html>
|
||||||
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>
|
|
||||||
|
|
Loading…
Reference in New Issue