Skip to content
This repository was archived by the owner on Aug 18, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 29 additions & 27 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,33 +15,35 @@ export default function App() {
return (
<div className=".bp3-dark h-screen flex flex-col">
<Nav />
<Switch>
<Route path="/" component={Dash} />
<Route path="/simple">
<SimWrapper>
<Simple />
</SimWrapper>
</Route>
<Route path="/advanced">
<SimWrapper>
<Advanced />
</SimWrapper>
</Route>
<Route path="/viewer/share/:id">
{(params) => <ViewerDash path={params.id} />}
</Route>
<Route path="/viewer">
<ViewerDash path="/" />
</Route>
<Route path="/db">
<DB />
</Route>
<Route>
<div className="m-2 text-center">
<Trans>src.this_page_is</Trans>
</div>
</Route>
</Switch>
<div className="content">
<Switch>
<Route path="/" component={Dash} />
<Route path="/simple">
<SimWrapper>
<Simple />
</SimWrapper>
</Route>
<Route path="/advanced">
<SimWrapper>
<Advanced />
</SimWrapper>
</Route>
<Route path="/viewer/share/:id">
{(params) => <ViewerDash path={params.id} />}
</Route>
<Route path="/viewer">
<ViewerDash path="/" />
</Route>
<Route path="/db">
<DB />
</Route>
<Route>
<div className="m-2 text-center">
<Trans>src.this_page_is</Trans>
</div>
</Route>
</Switch>
</div>
<div className="w-full pt-4 pb-4 md:pl-4">
<Footer />
</div>
Expand Down
7 changes: 7 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@

body {
background-color: #293742;
min-height: 100vh;
display: flex;
flex-direction: column;
}

.content {
flex: 1;
}

/* Chrome, Safari, Edge, Opera */
Expand Down