Skip to content

Commit

Permalink
fixed homapage layout structure
Browse files Browse the repository at this point in the history
  • Loading branch information
ImieboGodson committed Aug 17, 2022
1 parent e913425 commit e5b4018
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 13 deletions.
3 changes: 1 addition & 2 deletions src/components/Feed/Feed.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.feed {
flex: 4.7;
padding: 30px 30px 0 30px;
width: 100%;
}
2 changes: 1 addition & 1 deletion src/components/RightBar/RightBar.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.rightBar {
flex: 2.1;
width: 100%;
background-color: rgba(255, 255, 255, 0);
}
5 changes: 3 additions & 2 deletions src/components/SideBar/SideBar.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.sideBar {
margin-top: 30px;
flex: 1.7;
/* margin-top: 30px; */
/* flex: 1.7; */
width: 100%;
/* min-height: calc(100vh - 70px); */
height: fit-content;
/* padding: 10px 0; */
Expand Down
2 changes: 1 addition & 1 deletion src/components/TopPicks/TopPicks.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.topPicks {
margin-top: 30px;
/* margin-top: 30px; */
width: 100%;
/* padding-top: 10px; */
background-color: #fff;
Expand Down
37 changes: 34 additions & 3 deletions src/pages/Homepage/Homepage.css
Original file line number Diff line number Diff line change
@@ -1,15 +1,46 @@
.homepage {
position: relative;
max-width: 1000px;
margin: 0 auto;
position: relative;
height: 100vh;
overflow-y: hidden;
display: flex;
background-color: rgb(240, 240, 240);
transform: translateZ(0);
}

main {
position: relative;
margin-top: auto;
width: 100%;
min-height: calc(100vh - 70px);
padding: 0 30px;
height: calc(100vh - 70px);
display: flex;
/* background-color: rgb(240, 240, 240); */
overflow-y: hidden;
}

.leftViewContainer {
flex: 1.7;
}

.feedViewContainer {
flex: 4.7;
margin-left: auto;
padding: 0 30px 0 30px;
}

.rightViewContainer {
flex: 2.1;
}

.viewsOverflowStyle {
overflow-x: hidden;
overflow-y: auto;
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}


.viewsOverflowStyle::-webkit-scrollbar {
display: none;
}
14 changes: 10 additions & 4 deletions src/pages/Homepage/Homepage.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,19 @@ const Homepage = () => {
return (
<div className='homepage'>
{/* Header */}
<Header homePage/>
{/* <Header homePage/> */}

{/* Main Section */}
<main>
<SideBar />
<Feed />
<RightBar />
<div className='leftViewContainer viewsOverflowStyle'>
<SideBar />
</div>
<div className='feedViewContainer viewsOverflowStyle'>
<Feed />
</div>
<div className='rightViewContainer viewsOverflowStyle'>
<RightBar />
</div>
</main>

</div>
Expand Down

0 comments on commit e5b4018

Please sign in to comment.