diff --git a/src/pages/GuestJoin.jsx b/src/pages/GuestJoin.jsx index 8d3a401..70e6078 100644 --- a/src/pages/GuestJoin.jsx +++ b/src/pages/GuestJoin.jsx @@ -1,16 +1,18 @@ import { useState, useEffect } from 'react'; import { useParams, Link } from 'react-router-dom'; -import { Video, User, Lock, Shield, ArrowRight, Loader2, Users, Radio, AlertCircle } from 'lucide-react'; +import { Video, User, Lock, Shield, ArrowRight, Loader2, Users, Radio, AlertCircle, FileText } from 'lucide-react'; import BrandLogo from '../components/BrandLogo'; import api from '../services/api'; import toast from 'react-hot-toast'; import { useLanguage } from '../contexts/LanguageContext'; import { useAuth } from '../contexts/AuthContext'; +import { useBranding } from '../contexts/BrandingContext'; export default function GuestJoin() { const { uid } = useParams(); const { t } = useLanguage(); const { user } = useAuth(); + const { imprintUrl, privacyUrl } = useBranding(); const isLoggedIn = !!user; const [roomInfo, setRoomInfo] = useState(null); const [loading, setLoading] = useState(true); @@ -260,6 +262,36 @@ export default function GuestJoin() { )} + + {(imprintUrl || privacyUrl) && ( +
+ {imprintUrl && ( + + + {t('nav.imprint')} + + )} + {imprintUrl && privacyUrl && ( + · + )} + {privacyUrl && ( + + + {t('nav.privacy')} + + )} +
+ )} diff --git a/src/pages/Home.jsx b/src/pages/Home.jsx index be813f7..90455ce 100644 --- a/src/pages/Home.jsx +++ b/src/pages/Home.jsx @@ -1,12 +1,12 @@ import { Link } from 'react-router-dom'; -import { Video, Shield, Users, Palette, ArrowRight, Zap, Globe } from 'lucide-react'; +import { Video, Shield, Users, Palette, ArrowRight, Zap, Globe, FileText, Lock } from 'lucide-react'; import BrandLogo from '../components/BrandLogo'; import { useLanguage } from '../contexts/LanguageContext'; import { useBranding } from '../contexts/BrandingContext'; export default function Home() { const { t } = useLanguage(); - const { registrationMode } = useBranding(); + const { registrationMode, imprintUrl, privacyUrl } = useBranding(); const isInviteOnly = registrationMode === 'invite'; const features = [ @@ -143,6 +143,35 @@ export default function Home() {

{t('home.footer', { year: new Date().getFullYear() })}

+ {(imprintUrl || privacyUrl) && ( +
+ {imprintUrl && ( + + + {t('nav.imprint')} + + )} + {imprintUrl && privacyUrl && ( + · + )} + {privacyUrl && ( + + + {t('nav.privacy')} + + )} +
+ )} );