Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚀 Enhanced Privacy Policy Page with Scroll Button! 🖱️🔝 #146

Merged
merged 2 commits into from
Jan 18, 2025
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
7 changes: 2 additions & 5 deletions pricing.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"
/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"/>
<link rel="stylesheet" href="navbar.css" />
<link rel="stylesheet" href="pricing.css" />
<title>Pricing - Ajivika</title>
Expand Down Expand Up @@ -378,6 +375,6 @@ <h3>Subscribe to Our Newsletter</h3>
});
});
</script>

</body>
</html>
63 changes: 58 additions & 5 deletions privacy.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"
/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<link rel="stylesheet" href="navbar.css" />
<link rel="stylesheet" href="pricing.css" />
<title>Privacy-Policy - Ajivika</title>
Expand All @@ -22,8 +20,42 @@
body.dark ul li {
color: aqua; /* Aqua text in dark mode */
}
.scroll-btn {
position: fixed;
bottom: 20px;
right: 20px;
width: 50px;
height: 50px;
background-color: #d6a52b;
color: white;
border: none;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
font-size: 24px;
cursor: pointer;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
}
.scroll-btn:hover {
background-color: black;
transform: scale(1.1);
}
.scroll-btn.show {
opacity: 1;
visibility: visible;
}
</style>
<body>

<!-- Scroll to Top Button -->
<button class="scroll-btn" id="scrollToTopBtn">
<i class="fas fa-arrow-up"></i>
</button>

<!-- Navigation -->
<nav class="navbar">
<div class="logo">
Expand Down Expand Up @@ -405,6 +437,27 @@ <h3 style="color: #d6a52b;">Subscribe to Our Newsletter</h3>
document.body.classList.toggle('dark');
}
</script>


<script>
const scrollBtn = document.getElementById('scrollToTopBtn');

// Show the button when scrolling down
window.addEventListener('scroll', () => {
if (window.scrollY > 300) {
scrollBtn.classList.add('show');
} else {
scrollBtn.classList.remove('show');
}
});

// Scroll to top functionality
scrollBtn.addEventListener('click', () => {
window.scrollTo({
top: 0,
behavior: 'smooth'
});
});
</script>

</body>
</html>
Loading