Skip to content

Added jumpToTop button in ourCharter #88

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
21 changes: 20 additions & 1 deletion pages/about/our-charter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -749,9 +749,28 @@ function OurCharter() {
you believe would assist in resolving this.
</p>
</p>
<button
onClick={() => window.scrollTo({ top: 0, behavior: "smooth" })}
style={{
position: "fixed",
bottom: "20px", // Keeps the button at the bottom
left: "50%", // Centers horizontally
transform: "translateX(-50%)", // Adjusts position to truly center horizontally
padding: "10px 20px",
fontSize: "16px",
backgroundColor: "#007bff",
color: "white",
border: "none",
borderRadius: "5px",
cursor: "pointer"
}}
>
Back to Top
</button>

</main>
</>
);
};

export default OurCharter;
export default OurCharter;