Desegnu paĝon

This commit is contained in:
Savanni D'Gerinel 2021-12-29 12:50:59 -05:00
parent bf9b9570fb
commit 460b24d96e
1 changed files with 25 additions and 12 deletions

View File

@ -7,10 +7,22 @@ import AppProvider from "./appContext"
import Menu from "./components/Menu" import Menu from "./components/Menu"
import PlayerListView from "./views/PlayerListView" import PlayerListView from "./views/PlayerListView"
const Columns = styled.div`
display: flex;
padding: 1em;
`
const Column = styled.div`
width: 50%;
`
const render = () => (<AppProvider> const render = () => (<AppProvider>
<h1>Numenera Datasphere</h1> <h1>Numenera Datasphere</h1>
<div className="columns"> <Columns>
<Column>
<Menu /> <Menu />
</Column>
<Column>
<Routes> <Routes>
<Route path="/" element={<div>root</div>} /> <Route path="/" element={<div>root</div>} />
<Route path="campaign" element={<div>campaign</div>} /> <Route path="campaign" element={<div>campaign</div>} />
@ -20,7 +32,8 @@ const render = () => (<AppProvider>
<Route path="cyphers" element={<div>cyphers</div>} /> <Route path="cyphers" element={<div>cyphers</div>} />
<Route path="battles" element={<div>battles</div>} /> <Route path="battles" element={<div>battles</div>} />
</Routes> </Routes>
</div> </Column>
</Columns>
</AppProvider> </AppProvider>
) )