diff --git a/public/blog.html b/public/blog.html index 5cd93f78..cef3d293 100644 --- a/public/blog.html +++ b/public/blog.html @@ -459,6 +459,35 @@ /* Light mode button color */ html[data-theme="light"] .theme-toggle{ color:#2563eb; +}/* Scroll To Top Button */ + +#scrollTopBtn{ + position: fixed; + bottom: 30px; + right: 30px; + background: linear-gradient(135deg,#00e6a8,#64ffda); + color: #000; + border: none; + padding: 14px 16px; + border-radius: 50%; + font-size: 18px; + cursor: pointer; + display: none; + z-index: 1000; + box-shadow: 0 0 15px rgba(100,255,218,0.7); + transition: all 0.3s ease; +} + +#scrollTopBtn:hover{ + transform: translateY(-4px) scale(1.1); + box-shadow: 0 0 25px rgba(100,255,218,1); +} + +/* Dark Mode */ + +body.dark-mode #scrollTopBtn{ + background: linear-gradient(135deg,#64ffda,#00bfa5); + color:white; }
@@ -567,6 +596,10 @@© 2026 ExpenseFlow. All rights reserved.
+ + diff --git a/public/faq.css b/public/faq.css index c92ee082..7d83bfeb 100644 --- a/public/faq.css +++ b/public/faq.css @@ -681,4 +681,33 @@ html[data-theme="light"] .category-btn:hover{ /* FAQ hover */ html[data-theme="light"] .faq-item:hover{ background:#f9fafb; +}/* Scroll To Top Button */ + +#scrollTopBtn{ + position: fixed; + bottom: 30px; + right: 30px; + background: linear-gradient(135deg,#00e6a8,#64ffda); + color: #000; + border: none; + padding: 14px 16px; + border-radius: 50%; + font-size: 18px; + cursor: pointer; + display: none; + z-index: 1000; + box-shadow: 0 0 15px rgba(100,255,218,0.7); + transition: all 0.3s ease; +} + +#scrollTopBtn:hover{ + transform: translateY(-4px) scale(1.1); + box-shadow: 0 0 25px rgba(100,255,218,1); +} + +/* Dark Mode */ + +body.dark-mode #scrollTopBtn{ + background: linear-gradient(135deg,#64ffda,#00bfa5); + color:white; } \ No newline at end of file diff --git a/public/faq.html b/public/faq.html index ede67564..91e02ad2 100644 --- a/public/faq.html +++ b/public/faq.html @@ -568,7 +568,10 @@© 2026 ExpenseFlow. All rights reserved.
- + + diff --git a/public/faq.js b/public/faq.js index 51f6916d..7221132b 100644 --- a/public/faq.js +++ b/public/faq.js @@ -237,4 +237,19 @@ const savedTheme = localStorage.getItem("theme"); if(savedTheme){ document.documentElement.setAttribute("data-theme",savedTheme); -} \ No newline at end of file +}const scrollBtn = document.getElementById("scrollTopBtn"); + +window.onscroll = function () { + if (document.body.scrollTop > 300 || document.documentElement.scrollTop > 300) { + scrollBtn.style.display = "block"; + } else { + scrollBtn.style.display = "none"; + } +}; + +scrollBtn.addEventListener("click", function () { + window.scrollTo({ + top: 0, + behavior: "smooth" + }); +}); \ No newline at end of file diff --git a/public/index.html b/public/index.html index ccb4bd6e..f1a5dddd 100644 --- a/public/index.html +++ b/public/index.html @@ -496,6 +496,7 @@ Analytics Goals Net Worth + Receipt