-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #330 from bounswe/feature/FE/298/web-sidebar
Layout structure changed
- Loading branch information
Showing
5 changed files
with
46 additions
and
35 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,23 @@ | ||
import React from 'react'; | ||
import { makeStyles } from '@material-ui/core/styles'; | ||
import CssBaseline from '@material-ui/core/CssBaseline'; | ||
import Sidebar from './components/sidebar'; | ||
import { BrowserRouter as Router } from 'react-router-dom'; | ||
|
||
const drawerWidth = 240; | ||
|
||
const useStyles = makeStyles((theme) => ({ | ||
root: { | ||
display: 'flex', | ||
backgroundColor: '#0C1929', | ||
}, | ||
})); | ||
|
||
function Layout() { | ||
const classes = useStyles(); | ||
import Sidebar from './components/sidebar'; // Import your Sidebar component | ||
import Box from '@mui/material/Box'; | ||
|
||
const Layout = ({ children }) => { | ||
return ( | ||
<Router> | ||
<div className={classes.root}> | ||
<CssBaseline /> | ||
<Sidebar /> | ||
</div> | ||
</Router> | ||
<Box | ||
sx={{ | ||
backgroundColor: '#0C1929', // Set the background color | ||
minHeight: '100vh', | ||
color: 'dark grey', | ||
display: 'flex', // Make it a flex container | ||
}} | ||
> | ||
<Sidebar /> {/* Add the Sidebar component */} | ||
<Box sx={{ flex: 1 }}> | ||
<div className="content">{children}</div> | ||
</Box> | ||
</Box> | ||
); | ||
} | ||
}; | ||
|
||
export default Layout; |
Empty file.
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,17 @@ | ||
import React from 'react'; | ||
|
||
function WelcomePage() { | ||
const style = { | ||
color: '#569CB1', | ||
fontWeight: 'bold', | ||
}; | ||
|
||
return ( | ||
<div> | ||
<h1 style={style}> Welcome!</h1> | ||
<p style={style}> This page is under construction.</p> | ||
</div> | ||
); | ||
} | ||
|
||
export default WelcomePage; |