Replace the fixed Rules link (upper-left) and the creator-only Admin link (upper-right) with a single collapsible ☰ Menu in the upper right, leaving the event log alone in its corner. CornerMenu always lists the Rules link; pages can contribute context-specific entries through the extraMenuLinks store, which Dashboard uses for the creator-only Admin link. This gives future misc sub-pages a home without eating more screen corners. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
21 lines
529 B
Svelte
21 lines
529 B
Svelte
<script>
|
|
import Router from 'svelte-spa-router';
|
|
import Home from './pages/Home.svelte';
|
|
import Join from './pages/Join.svelte';
|
|
import Dashboard from './pages/Dashboard.svelte';
|
|
import Admin from './pages/Admin.svelte';
|
|
import CornerMenu from './components/CornerMenu.svelte';
|
|
|
|
const routes = {
|
|
'/': Home,
|
|
'/game/:id/join': Join,
|
|
'/game/:id/player/:pid': Dashboard,
|
|
'/game/:id/admin': Admin,
|
|
};
|
|
</script>
|
|
|
|
<main>
|
|
<Router {routes} />
|
|
<CornerMenu />
|
|
</main>
|