-
-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
107 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
import React from 'react'; | ||
import { get } from 'lodash-es'; | ||
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom'; | ||
import About from './About'; | ||
import NotFound from './NotFound'; | ||
import Login from './pages/Login'; | ||
|
||
|
||
// import useSiteSettings from './models/site/useSiteSettings'; | ||
import UnAuthenticatedAppHeader from './components/UnAuthenticatedAppHeader'; | ||
|
||
import Home from './pages/Home'; | ||
|
||
// import Footer from './components/Footer'; | ||
|
||
export default function UnAuthenticatedSwitch() { | ||
// const { data: siteSettings } = useSiteSettings(); | ||
// const siteNeedsSetup = get(siteSettings, [ | ||
// 'site.needsSetup', | ||
// 'value', | ||
// ]); | ||
|
||
return ( | ||
<main> | ||
<div style={{ | ||
position: 'fixed', | ||
top: 0, | ||
maxWidth: '1440px', | ||
marginLeft: 'auto', | ||
marginRight: 'auto', | ||
zIndex: '100', | ||
width: '100%', | ||
}}> | ||
<UnAuthenticatedAppHeader /> | ||
</div> | ||
<div | ||
style={{ | ||
position: 'absolute', | ||
top: 0, | ||
left: 0, | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
overflow: 'hidden', | ||
boxSizing: 'border-box', | ||
width: '100%', | ||
minHeight: 'calc(100vh - 64px)', // Assuming the header height is 64px | ||
}} | ||
> | ||
<Router> | ||
<Routes> | ||
<Route path="/about" element={<About />} /> | ||
<Route path="/home" element={<Home />} /> | ||
<Route path="/login" element={<Login />} /> | ||
<Route path="/" element={<Home />} /> | ||
<Route path="*" element={<NotFound />} /> | ||
</Routes> | ||
</Router> | ||
{/* <Footer authenticated /> */} | ||
</div> | ||
</main> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters