Desegnu paĝon
This commit is contained in:
parent
bf9b9570fb
commit
460b24d96e
|
@ -7,20 +7,33 @@ import AppProvider from "./appContext"
|
|||
import Menu from "./components/Menu"
|
||||
import PlayerListView from "./views/PlayerListView"
|
||||
|
||||
const Columns = styled.div`
|
||||
display: flex;
|
||||
padding: 1em;
|
||||
`
|
||||
|
||||
const Column = styled.div`
|
||||
width: 50%;
|
||||
`
|
||||
|
||||
const render = () => (<AppProvider>
|
||||
<h1>Numenera Datasphere</h1>
|
||||
<div className="columns">
|
||||
<Menu />
|
||||
<Routes>
|
||||
<Route path="/" element={<div>root</div>} />
|
||||
<Route path="campaign" element={<div>campaign</div>} />
|
||||
<Route path="players" element={<PlayerListView />}>
|
||||
<Route path=":name" element={<PlayerListView />} />
|
||||
</Route>
|
||||
<Route path="cyphers" element={<div>cyphers</div>} />
|
||||
<Route path="battles" element={<div>battles</div>} />
|
||||
</Routes>
|
||||
</div>
|
||||
<Columns>
|
||||
<Column>
|
||||
<Menu />
|
||||
</Column>
|
||||
<Column>
|
||||
<Routes>
|
||||
<Route path="/" element={<div>root</div>} />
|
||||
<Route path="campaign" element={<div>campaign</div>} />
|
||||
<Route path="players" element={<PlayerListView />}>
|
||||
<Route path=":name" element={<PlayerListView />} />
|
||||
</Route>
|
||||
<Route path="cyphers" element={<div>cyphers</div>} />
|
||||
<Route path="battles" element={<div>battles</div>} />
|
||||
</Routes>
|
||||
</Column>
|
||||
</Columns>
|
||||
</AppProvider>
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue