diff --git a/README.md b/README.md index 829823c..328f604 100644 --- a/README.md +++ b/README.md @@ -7,11 +7,12 @@ Schnappix-Web ist die Landing-Page und Informationsseite für die Schnappix Phot - **Responsive Design**: Optimiert für alle Bildschirmgrößen (Desktop, Tablet, Mobile). - **Moderne UI/UX**: Neon-Synthwave Ästhetik passend zur Schnappix App, mit fließenden Übergängen (View Transition API) und Micro-Animations. - **Seiten**: - - `index.html`: Startseite mit App-Vorstellung + - `index.html`: Startseite mit App-Vorstellung & Google Play Store Link - `features.html`: Detaillierte Übersicht aller App-Funktionen + - `upload.html`: Upload für individuelle Fotorahmen - `faq.html`: Häufig gestellte Fragen und Antworten - `feedback.html`: Formular für Nutzerfeedback - - `impressum.html` & `datenschutz.html`: Rechtliche Seiten + - `impressum.html` & `datenschutz.html`: Rechtliche Seiten (DDG- und DSGVO-konform für Web & Play Store) ## Tech Stack diff --git a/app.js b/app.js index 31298e0..77e8e1a 100644 --- a/app.js +++ b/app.js @@ -363,49 +363,6 @@ document.addEventListener('DOMContentLoaded', () => { }); } - // --- Tester Registration Logic --- - const testerForm = document.getElementById('tester-form'); - if (testerForm) { - testerForm.addEventListener('submit', async (e) => { - e.preventDefault(); - - const emailInput = document.getElementById('tester-email'); - const submitBtn = document.getElementById('tester-submit-btn'); - const successMsg = document.getElementById('tester-success-msg'); - const errorMsg = document.getElementById('tester-error-msg'); - - submitBtn.disabled = true; - submitBtn.textContent = 'Wird gesendet...'; - successMsg.style.display = 'none'; - errorMsg.style.display = 'none'; - - try { - const response = await fetch('tester_backend.php', { - method: 'POST', - headers: { 'Content-Type': 'application/json' }, - body: JSON.stringify({ email: emailInput.value }) - }); - - const result = await response.json(); - - if (result.success) { - successMsg.style.display = 'block'; - testerForm.reset(); - } else { - errorMsg.innerHTML = ' ' + (result.error || 'Unbekannter Fehler'); - errorMsg.style.display = 'block'; - } - } catch (err) { - console.error(err); - errorMsg.innerHTML = ' Netzwerkfehler. Bitte später erneut versuchen.'; - errorMsg.style.display = 'block'; - } finally { - submitBtn.disabled = false; - submitBtn.textContent = 'Als Tester anmelden'; - } - }); - } - // --- Modal Management for Impressum & Privacy --- const modalTriggers = document.querySelectorAll('.legal-trigger'); const modals = document.querySelectorAll('.modal-overlay'); @@ -457,10 +414,10 @@ document.addEventListener('DOMContentLoaded', () => { adminTrigger.addEventListener('click', (e) => { e.preventDefault(); if (isAdmin) { - adminPanelModal.classList.add('open'); + if (adminPanelModal) adminPanelModal.classList.add('open'); } else { - adminLoginModal.classList.add('open'); - adminPasswordInput.focus(); + if (adminLoginModal) adminLoginModal.classList.add('open'); + if (adminPasswordInput) adminPasswordInput.focus(); } document.body.style.overflow = 'hidden'; }); @@ -469,7 +426,7 @@ document.addEventListener('DOMContentLoaded', () => { if (adminLoginForm) { adminLoginForm.addEventListener('submit', async (e) => { e.preventDefault(); - const password = adminPasswordInput.value; + const password = adminPasswordInput ? adminPasswordInput.value : ''; try { const response = await fetch('feedback_backend.php', { @@ -482,22 +439,22 @@ document.addEventListener('DOMContentLoaded', () => { isAdmin = true; sessionStorage.setItem('schnappix_is_admin', 'true'); sessionStorage.setItem('schnappix_admin_secret', password); - adminPasswordInput.value = ''; - adminLoginError.style.display = 'none'; + if (adminPasswordInput) adminPasswordInput.value = ''; + if (adminLoginError) adminLoginError.style.display = 'none'; // Switch Modals - adminLoginModal.classList.remove('open'); - adminPanelModal.classList.add('open'); + if (adminLoginModal) adminLoginModal.classList.remove('open'); + if (adminPanelModal) adminPanelModal.classList.add('open'); // Re-render to show trash cans renderFeedback(getActiveFilter()); } else { - adminLoginError.style.display = 'block'; - adminPasswordInput.value = ''; + if (adminLoginError) adminLoginError.style.display = 'block'; + if (adminPasswordInput) adminPasswordInput.value = ''; } } catch (err) { console.error(err); - adminLoginError.style.display = 'block'; + if (adminLoginError) adminLoginError.style.display = 'block'; } }); } @@ -506,7 +463,7 @@ document.addEventListener('DOMContentLoaded', () => { adminLogoutBtn.addEventListener('click', () => { isAdmin = false; sessionStorage.removeItem('schnappix_is_admin'); - adminPanelModal.classList.remove('open'); + if (adminPanelModal) adminPanelModal.classList.remove('open'); document.body.style.overflow = ''; // Hide export code if visible diff --git a/datenschutz.html b/datenschutz.html index 0419f7f..a9f9395 100644 --- a/datenschutz.html +++ b/datenschutz.html @@ -24,7 +24,7 @@ Upload FAQ Feedback Hub - App Testing + Play Store Admin +
+

Schnappix ist offiziell im Google Play Store verfügbar! Du kannst die App direkt über folgenden Link auf deinem Android-Tablet oder Smartphone installieren: +

+ + Schnappix im Google Play Store öffnen + +

+
+ +
@@ -144,7 +160,7 @@

Erstelle ein transparentes PNG im Format 1500 x 1000 px (3:2 Querformat, max. 5 MB) - Variante 1 - Für besondere Anlässe: Das erstelle Bild kann auf der Seite + Variante 1 - Für besondere Anlässe: Das erstellte Bild kann auf der Seite unter Upload an den Entwickler übermittelt werden. Dieser kann das Template dann in die App integrieren. Wichtig hierbei ist, dass nicht alle Anfragen berücksichtigt werden können. @@ -197,7 +213,7 @@ versteckten Admin-Bereich in der App und trage dort unter "Event-Name" den Titel deiner Veranstaltung ein (z. B. "Hochzeit Anna & Paul"). Ab diesem Moment werden alle Fotos und Collagen automatisch unter diesem Namen verknüpft und gespeichert. - Bei Neuinstallation der App wird automatisch nach dem Event gefragt, welcher in der + Bei Neuinstallation der App wird automatisch nach dem Event-Namen gefragt, welcher in der Admin-Übersicht jederzeit eingesehen und geändert werden kann.

@@ -322,6 +338,21 @@ + +
+
+
+

Noch Fragen? Einfach ausprobieren!

+

+ Lade Schnappix direkt aus dem Google Play Store herunter und teste alle Features selbst auf deinem Tablet. +

+ + Jetzt im Google Play Store herunterladen + +
+
+
+