patterns, skeleton loading, photo selection/bulk actions with shared‑element transitions, notification detail sheet,
offline banner, maskable manifest icons, and route prefetching.
Key changes
- Navigation/shell: press feedback on all header actions, glassy sticky header and tab bar, safer bottom spacing
(resources/js/admin/mobile/components/MobileShell.tsx, resources/js/admin/mobile/components/BottomNav.tsx).
- Forms + lists: shared mobile form controls, list‑style rows in settings/profile, consistent inputs across core
flows (resources/js/admin/mobile/components/FormControls.tsx, resources/js/admin/mobile/SettingsPage.tsx,
resources/js/admin/mobile/ProfilePage.tsx, resources/js/admin/mobile/EventFormPage.tsx, resources/js/admin/mobile/
EventMembersPage.tsx, resources/js/admin/mobile/EventTasksPage.tsx, resources/js/admin/mobile/
EventGuestNotificationsPage.tsx, resources/js/admin/mobile/NotificationsPage.tsx, resources/js/admin/mobile/
EventPhotosPage.tsx, resources/js/admin/mobile/EventsPage.tsx).
- Media workflows: shared‑element photo transitions, selection mode + bulk actions bar (resources/js/admin/mobile/
EventPhotosPage.tsx).
- Loading UX: shimmering skeletons (resources/css/app.css, resources/js/admin/mobile/components/Primitives.tsx).
- PWA polish + perf: maskable icons, offline banner hook, and route prefetch (public/manifest.json, resources/js/
admin/mobile/hooks/useOnlineStatus.tsx, resources/js/admin/mobile/prefetch.ts, resources/js/admin/main.tsx).
27 lines
853 B
TypeScript
27 lines
853 B
TypeScript
import React from 'react';
|
|
import { useAuth } from '../auth/context';
|
|
import { ADMIN_PUBLIC_LANDING_PATH } from '../constants';
|
|
|
|
export default function LogoutPage() {
|
|
const { logout } = useAuth();
|
|
const safeAreaStyle: React.CSSProperties = {
|
|
paddingTop: 'calc(env(safe-area-inset-top, 0px) + 16px)',
|
|
paddingBottom: 'calc(env(safe-area-inset-bottom, 0px) + 16px)',
|
|
};
|
|
|
|
React.useEffect(() => {
|
|
logout({ redirect: ADMIN_PUBLIC_LANDING_PATH });
|
|
}, [logout]);
|
|
|
|
return (
|
|
<div
|
|
className="flex min-h-screen items-center justify-center bg-gradient-to-br from-rose-50 via-white to-slate-50 text-sm text-slate-600"
|
|
style={safeAreaStyle}
|
|
>
|
|
<div className="rounded-2xl border border-rose-100 bg-white/90 px-6 py-4 shadow-sm shadow-rose-100/60">
|
|
Abmeldung wird vorbereitet ...
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|