Popup free generatoren

This commit is contained in:
Timo Knuth
2026-04-16 19:34:26 +02:00
parent 673eaf7fd3
commit 231a85ffa4
22 changed files with 225 additions and 1 deletions

View File

@@ -14,6 +14,7 @@ import {
import { Button } from '@/components/ui/Button';
import { Input } from '@/components/ui/Input';
import { cn } from '@/lib/utils';
import PostDownloadPopup, { shouldShowDownloadPopup } from '@/components/marketing/PostDownloadPopup';
// Brand Colors - Microsoft Teams Purple
const BRAND = {
@@ -53,6 +54,7 @@ export default function TeamsGenerator() {
const [userEmail, setUserEmail] = useState('');
const [qrColor, setQrColor] = useState(BRAND.primary);
const [frameType, setFrameType] = useState('none');
const [showPopup, setShowPopup] = useState(false);
const qrRef = useRef<HTMLDivElement>(null);
@@ -96,6 +98,7 @@ export default function TeamsGenerator() {
} catch (err) {
console.error('Download failed', err);
}
if (shouldShowDownloadPopup()) setShowPopup(true);
};
const getFrameLabel = () => {
@@ -104,6 +107,8 @@ export default function TeamsGenerator() {
};
return (
<>
<PostDownloadPopup open={showPopup} onClose={() => setShowPopup(false)} />
<div className="w-full max-w-5xl mx-auto px-4 md:px-6">
{/* Main Generator Card */}
@@ -314,5 +319,6 @@ export default function TeamsGenerator() {
</Link>
</div>
</div>
</>
);
}