Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Add a button that scrolls the page back to top #542

Closed
dev-palwar opened this issue Oct 14, 2023 · 8 comments
Closed

Add a button that scrolls the page back to top #542

dev-palwar opened this issue Oct 14, 2023 · 8 comments

Comments

@dev-palwar
Copy link

Expected Behavior

The button should have the functionality to smoothly scroll the page back to the top upon being clicked.

Current Behavior

Right now, we have to manually scroll up the page, which can be a hassle, especially when reading blogs.

@dev-palwar dev-palwar changed the title Add a button that scrolls back to top Add a button that scrolls the page back to top Oct 14, 2023
@NiallJoeMaher
Copy link
Contributor

Any ideas on where something like this should be added or examples of blogs with it?

@dev-palwar
Copy link
Author

Yeah, something like this
Screenshot 2023-10-14 at 14-52-22 Create a workflow to display your latest articles on your GitHub profile

A button on the right side of the page similar to the one homepage that when clicked smoothly scrolls the page to the top

@MadhavKrishanGoswami
Copy link
Contributor

I think I can work on this, just one thing where would I get the icon from?

@NiallJoeMaher
Copy link
Contributor

@MadhavKrishanGoswami I'm trying to mock up something for the mobile design and then you can take it. 🦾

@akashsiddamshetty
Copy link

akashsiddamshetty commented Oct 18, 2023

@dev-palwar @NiallJoeMaher check this below screen shot i have created this button to scroll to top smoothly. I want to make pr. can you guys add hacktoberfest labels to this issue #542

Screenshot 2023-10-18 at 1 59 09 PM Screenshot 2023-10-18 at 2 07 37 PM

@Bitnagar
Copy link
Contributor

@akashsiddamshetty Great job! The icon looks good. IMO we should not use gray color because it looks dull and not visually appealing. We can try sticking to the design in 2nd screenshot or else we can use gradient color that is in our theme.

@akashsiddamshetty
Copy link

akashsiddamshetty commented Oct 18, 2023

@akashsiddamshetty Great job! The icon looks good. IMO we should not use gray color because it looks dull and not visually appealing. We can try sticking to the design in 2nd screenshot or else we can use gradient color that is in our theme.

@Bitnagar @NiallJoeMaher @dev-palwar check this out.
Screenshot 2023-10-18 at 3 51 45 PM

@NiallJoeMaher
Copy link
Contributor

The problem is when we are on mobile. I just haven't seen a pattern on mobile I like. 😅 Any examples of sites doing it well?

@codu-code codu-code locked and limited conversation to collaborators Oct 21, 2023
@NiallJoeMaher NiallJoeMaher converted this issue into discussion #581 Oct 21, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants