diff --git a/src/App.tsx b/src/App.tsx index 8f87e13..50648a8 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -29,6 +29,17 @@ function useScrollAnimation() { function App() { const [activeTestimonial, setActiveTestimonial] = useState(0); const [openFaq, setOpenFaq] = useState(null); + const [showSuccess, setShowSuccess] = useState(false); + + // Check for successful payment redirect + useEffect(() => { + const params = new URLSearchParams(window.location.search); + if (params.get('success') === 'true') { + setShowSuccess(true); + // Remove query param from URL + window.history.replaceState({}, '', window.location.pathname); + } + }, []); // Scroll animation refs const problemSection = useScrollAnimation(); @@ -68,6 +79,27 @@ function App() { return (
+ {/* SUCCESS MODAL */} + {showSuccess && ( +
+
+
+ +
+

Buchung erfolgreich!

+

+ Vielen Dank für Ihre Buchung. Sie erhalten in Kürze eine Bestätigungs-E-Mail mit allen Details zu Ihrer SunHouse-Führung. +

+ +
+
+ )} + {/* SECTION 1: HERO */}
Jetzt Buchen @@ -493,9 +523,7 @@ function App() { Gruppe Buchen @@ -542,9 +570,7 @@ function App() { Premium Buchen