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..6ed0f2af 100644 --- a/public/index.html +++ b/public/index.html @@ -467,6 +467,60 @@ opacity: 1; transform: translateY(0); } +}/* Toggle Button */ + +.theme-toggle { + background: linear-gradient(135deg,#6366f1,#64ffda); + border: none; + width: 42px; + height: 42px; + border-radius: 50%; + color: white; + cursor: pointer; + font-size: 16px; + display: flex; + align-items: center; + justify-content: center; + margin-right: 10px; + box-shadow: 0 6px 18px rgba(0,0,0,0.25); + transition: all 0.3s ease; +} + +.theme-toggle:hover{ + transform: scale(1.1); +} + +/* LIGHT MODE */ + +body.light-mode{ + background:#f5f7fb; + color:#222; +} + +body.light-mode .navbar{ + background:white; +} + +body.light-mode .feature-card{ + background:white; + color:#222; +} + +body.light-mode .balance-card{ + background:white; +} + +body.light-mode .history-section{ + background:white; +} + +/* inputs */ + +body.light-mode input, +body.light-mode select{ + background:white; + color:#222; + border:1px solid #ddd; } @@ -496,6 +550,7 @@ Analytics Goals Net Worth + Receipt +