Skip to content

Commit

Permalink
Merge pull request smaranjitghose#785 from ashuvssut/totop-btn
Browse files Browse the repository at this point in the history
Remove toTop button for smaller screens (when screen-width < 768px)
  • Loading branch information
smaranjitghose authored Mar 28, 2021
2 parents a815355 + bf43657 commit 1e3e52f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
12 changes: 12 additions & 0 deletions src/pages/Home/home.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.btnWrapper {
display: block;
position: absolute;
bottom: 0;
left: 0;
}

@media (max-width:768px){
.btnWrapper{
display: none;
}
}
5 changes: 4 additions & 1 deletion src/pages/Home/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import SupportUs from "./sections/SupportUs/SupportUs";
import Team from "./sections/Team/Team";
import ScrollToTop from "./../../components/ScrollToTopButton/ScrollToTopButton";
import Contact from './sections/Contact/ContactUs'
import style from './home.module.scss'

function Home() {

Expand All @@ -29,7 +30,9 @@ function Home() {
<OpenSource />
<SupportUs />
<Contact />
<ScrollToTop />
<div className={style.btnWrapper}>
<ScrollToTop />
</div>
</div>
);
}
Expand Down

0 comments on commit 1e3e52f

Please sign in to comment.