Red Mode: Nacht-Navigator-Logo mit 'RED RALF MODE'-Bogen
Build & Deploy / deploy (push) Successful in 19s
Build & Deploy / deploy (push) Successful in 19s
- Logo generiert: unterer Textbogen ersetzt, Goldringe rekonstruiert - Logo in Karten-Seite + Spielraum-Lobby eingebunden - Favicon-Swap bei aktivem Red Mode - ?tab= URL-Param fuer Tab-Auswahl (Screenshots/Deep-Links)
This commit is contained in:
+6
-1
@@ -6,8 +6,13 @@ import Cards from './pages/Cards'
|
||||
import Game from './pages/Game'
|
||||
import Contact from './pages/Contact'
|
||||
|
||||
const TABS: TabId[] = ['start', 'regeln', 'karten', 'spiel', 'kontakt']
|
||||
|
||||
export default function App() {
|
||||
const [tab, setTab] = useState<TabId>('start')
|
||||
const [tab, setTab] = useState<TabId>(() => {
|
||||
const p = new URLSearchParams(window.location.search).get('tab')
|
||||
return TABS.includes(p as TabId) ? (p as TabId) : 'start'
|
||||
})
|
||||
|
||||
return (
|
||||
<div className="mx-auto min-h-dvh max-w-md pb-24">
|
||||
|
||||
Reference in New Issue
Block a user