diff --git a/index.html b/index.html index ae120a9..9e5c35d 100644 --- a/index.html +++ b/index.html @@ -59,11 +59,7 @@ - - - - - + diff --git a/website/script.js b/website/script.js index 219abd7..475df03 100644 --- a/website/script.js +++ b/website/script.js @@ -8,25 +8,10 @@ window.addEventListener("load",function(e){ displayCopyright(); }); -const goTopBtn = document.querySelector('.go-top-btn'); - -window.addEventListener('scroll', checkHeight) - -function checkHeight(){ - if(window.scrollY > 200) { - goTopBtn.style.display = "flex" - } else { - goTopBtn.style.display = "none" - } +function topFunction() { + document.body.scrollTop = 0; + document.documentElement.scrollTop = 0; } - -goTopBtn.addEventListener('click', () => { - window.scrollTo({ - top: 0, - behavior: "smooth" - }) -}) - function changeCss() { var top = document.getElementById("top"); var scroll_icon = document.getElementById("scroll_icon"); diff --git a/website/style.css b/website/style.css index 22f0b08..80d4aba 100644 --- a/website/style.css +++ b/website/style.css @@ -370,27 +370,28 @@ footer { color: white; } -.go-top-btn { +.top { + background-color: #3333337b; + padding: 10px 7px 10px 7px; + border: none; + border-radius: 10px; position: fixed; - bottom: 35px; - right: 35px; - border-radius: 50%; - cursor: pointer; - height: 65px; - width: 65px; - background: #fff; - border: 3px solid #333; - display: none; - justify-content: center; - z-index: 1000; - align-items: center; - } - - .go-top-btn img { - width: 50px; - height: 50px; - } + bottom: 10px; + right: 10px; + backdrop-filter: blur(7px); + box-shadow: 5px 5px 10px black; + z-index: 50; +} + +#top { + opacity: 0; + transition-duration: 0.3s; +} + +.top img { + height: 20px; +} #navbar { width: 100vw; diff --git a/website/web_images/arrow-up.png b/website/web_images/arrow-up.png deleted file mode 100644 index 5da70c0..0000000 Binary files a/website/web_images/arrow-up.png and /dev/null differ diff --git a/website/web_images/arrow.png b/website/web_images/arrow.png deleted file mode 100644 index 5da70c0..0000000 Binary files a/website/web_images/arrow.png and /dev/null differ