Implemented flexbox styling for root layout

This commit is contained in:
Daniel Cojocea committed 2024-06-18 19:17:21 -04:00
1 parent 9da39c8f91
commit 83f260c42d
6 files changed
+21 -27

No files matched your search

+8 -5
View File
@@ -1,10 +1,13 @@
.home-layout {
.main-content {
position: relative;
display: flex;
width: 100%;
height: max-content;
justify-content: flex-start;
}
.main-content {
margin-left: 250px;
flex: 1;
/* padding: 20px; */
.main-content>div:nth-child(2){
position: relative;
overflow-y: auto;
flex: 1;
}
+3 -3
View File
@@ -12,17 +12,17 @@ const HomeLayout = () => {
const { user, msg } = authState;
return (
<div className="home-layout">
<DashboardSidebar />
<NavBar />
<div className="main-content">
<NavBar />
<DashboardSidebar />
{/* Remove me later */}
{user && <p>{user.firstname}</p>}
{user && <p>{user.lastname}</p>}
{user && <p>{user.email}</p>}
{msg && <p>Msg: {msg}</p>}
{/* I am a demo */}
<Outlet />
</div>
<Outlet />
</div>
);
};