Add JumpToTop component for mobile devices

This commit is contained in:
dertyp7
2024-01-14 18:10:04 +01:00
parent df0168b6bd
commit 357d49a3b1
4 changed files with 83 additions and 4 deletions

11
src/styles/JumpToTop.scss Normal file
View File

@@ -0,0 +1,11 @@
.jumpToTop {
position: fixed;
bottom: 20px;
right: 20px;
cursor: pointer;
svg {
width: 50px;
height: 50px;
}
}

View File

@@ -27,9 +27,7 @@
}
html {
@media (min-width: 768px) {
scroll-behavior: smooth;
}
scroll-behavior: smooth;
}
h1 {