Update guest v2 branding and theming

This commit is contained in:
Codex Agent
2026-02-03 15:18:44 +01:00
parent a0ef90e13a
commit a820ef2e8b
57 changed files with 1416 additions and 277 deletions

View File

@@ -15,7 +15,7 @@ import { useEventData } from '../context/EventDataContext';
import { buildEventPath } from '../lib/routes';
import { useOptionalNotificationCenter } from '@/guest/context/NotificationCenterContext';
import { useTranslation } from '@/guest/i18n/useTranslation';
import { useAppearance } from '@/hooks/use-appearance';
import { useGuestThemeVariant } from '../lib/guestTheme';
type AppShellProps = {
children: React.ReactNode;
@@ -31,8 +31,7 @@ export default function AppShell({ children }: AppShellProps) {
const navigate = useNavigate();
const location = useLocation();
const { t } = useTranslation();
const { resolved } = useAppearance();
const isDark = resolved === 'dark';
const { isDark } = useGuestThemeVariant();
const actionIconColor = isDark ? '#F8FAFF' : '#0F172A';
const matomoEnabled = typeof window !== 'undefined' && Boolean((window as any).__MATOMO_GUEST__?.enabled);
const showFab = !/\/photo\/\d+/.test(location.pathname);
@@ -114,6 +113,7 @@ export default function AppShell({ children }: AppShellProps) {
>
<TopBar
eventName={event?.name ?? t('galleryPage.hero.eventFallback', 'Event')}
eventIcon={event?.type?.icon ?? null}
onProfilePress={() => {
setNotificationsOpen(false);
setCompassOpen(false);