Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions public/blog.html
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
</style>
<body>
Expand Down Expand Up @@ -567,6 +596,10 @@ <h4>Follow Us</h4>
<p>&copy; 2026 ExpenseFlow. All rights reserved.</p>
</div>
</footer>
<!-- Scroll To Top Button -->
<button id="scrollTopBtn" title="Go to top">
<i class="fas fa-arrow-up"></i>
</button>
<script>
const blogs = [
{title:"Mastering Monthly Budgeting",date:"Feb 26, 2026",author:"Finance Team",
Expand Down Expand Up @@ -635,6 +668,21 @@ <h3>${blog.title}</h3>
document.documentElement.setAttribute("data-theme","light");
localStorage.setItem("theme","light");
}
});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"
});
});
</script>
<script src="blog.js"></script>
Expand Down
29 changes: 29 additions & 0 deletions public/faq.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
5 changes: 4 additions & 1 deletion public/faq.html
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,10 @@ <h4>Follow Us</h4>
<p>&copy; 2026 ExpenseFlow. All rights reserved.</p>
</div>
</footer>

<!-- Scroll To Top Button -->
<button id="scrollTopBtn" title="Go to top">
<i class="fas fa-arrow-up"></i>
</button>
<script src="theme.js"></script>
<script src="faq.js"></script>
</body>
Expand Down
17 changes: 16 additions & 1 deletion public/faq.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,4 +237,19 @@ const savedTheme = localStorage.getItem("theme");

if(savedTheme){
document.documentElement.setAttribute("data-theme",savedTheme);
}
}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"
});
});
1 change: 1 addition & 0 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,7 @@
<a href="analytics.html" class="nav-link">Analytics</a>
<a href="goals.html" class="nav-link">Goals</a>
<a href="networth.html" class="nav-link">Net Worth</a>
<a href="receipt.html" class="nav-link">Receipt</a>
<div class="nav-item dropdown">
<a href="#" class="nav-link dropdown-toggle">More</a>
<div class="dropdown-menu">
Expand Down
Loading