divyanshudhruv / Minifolio

⚡ A minimal portfolio template for Developers | 2024
https://divyanshudhruv.github.io/Minifolio/
MIT License
36 stars 40 forks source link

Added Back To Top Button #50

Closed Kapileswar-Moharana closed 11 months ago

Kapileswar-Moharana commented 11 months ago

Issue Title: Back to Top Button Issue Number: #7

Close #7

Checklist:

A small Description of the project :

Description:

This pull request enhances the functionality of the "Back to Top" button in the HTML document by adding smooth scrolling behavior and dynamic visibility based on the user's scroll position. Here are the key changes:

CSS:

Improved the styling of the button for better user experience. Added a smooth transition effect on hover to make the button more interactive.

JavaScript:

Added a click event listener to the "Back to Top" button. When clicked, the page now smoothly scrolls back to the top. The button dynamically appears when the user has scrolled down more than 200 pixels and hides when they are near the top of the page. These enhancements provide a smoother and more user-friendly experience for navigating the webpage.

Here is the Video Illustration of the Feature:

https://github.com/divyanshudhruv/Minifolio/assets/129049677/d6a3a532-fdca-40ac-a8b0-414ecfc9fada

divyanshudhruv commented 11 months ago

Cool but can you stlye the back to to button as Know more button when hover as it is our theme i.e the background should be green and text as white only when hover

Kapileswar-Moharana commented 11 months ago

stlye the back to to button as Know more button when hover as it is our theme i.e the background should be green and text as white only when hover

Done Check the video below and merge it @divyanshudhruv sir

https://github.com/divyanshudhruv/Minifolio/assets/129049677/76fe33e6-c253-4f89-ae0e-8a6c03304535

divyanshudhruv commented 11 months ago

Cool but instead of the black color for the icon use the shade of blueblack color(the color used in the text of home section). If possible

divyanshudhruv commented 11 months ago

Also try to lighter the shade of the the hover green color of button. You may use colorhex website for that.

divyanshudhruv commented 11 months ago

Alsonset the background color to f0f0f0

Kapileswar-Moharana commented 11 months ago

@divyanshudhruv All 3 tasks are done now check the changes here below are some Screenshots

Screenshot 2023-10-03 163016

Screenshot 2023-10-03 163054

divyanshudhruv commented 11 months ago

Cool just shift the button to a little more top and a little more left.

Kapileswar-Moharana commented 11 months ago

Cool just shift the button to a little more top and a little more left.

@divyanshudhruv I don't think it will look good because it is in perfect position, Should I make these changes because I uploaded the photo by cropping screenshots, make sure that

Kapileswar-Moharana commented 11 months ago

Cool just shift the button to a little more top and a little more left.

@divyanshudhruv What to do sir? Dushra PR bhhi karnaa haii ?

divyanshudhruv commented 11 months ago

Ok then leave it I'll merge

divyanshudhruv commented 11 months ago

Can you publish the forked site to gh page? I may see that

Kapileswar-Moharana commented 11 months ago

Ok then leave it I'll merge

Can you publish the forked site to gh page? I may see that

Sorry not understand ?

Kapileswar-Moharana commented 11 months ago

Can you publish the forked site to gh page? I may see that

@divyanshudhruv https://github.com/Kapileswar-Moharana/Minifolio is it ?

divyanshudhruv commented 11 months ago

I mean publish to gh pages, so that I can live preview

divyanshudhruv commented 11 months ago

I wanna ask that why you deleted .btn in line 10 ?

Kapileswar-Moharana commented 11 months ago

I mean publish to gh pages, so that I can live preview

@divyanshudhruv Check https://kapileswar-moharana.github.io/Minifolio/

divyanshudhruv commented 11 months ago

In line 10 of button.css you deleted all the div of .btn. So it is creating error. Please revert back the deleted .btn div in button.css file to stop the error

divyanshudhruv commented 11 months ago

Also increase the zindex of the back to top button high as it is overlapping the footer. Else all good

divyanshudhruv commented 11 months ago

Screenshot_20231003_180654_Chrome

Kapileswar-Moharana commented 11 months ago

@divyanshudhruv already updated Check it

Kapileswar-Moharana commented 11 months ago

I wanna ask why you deleted .btn in line 10.

2 Days before I synced the fork at that time may this fault occur? or maybe I deleted the files mistakenly

Kapileswar-Moharana commented 11 months ago

@divyanshudhruv are there any other issues?

divyanshudhruv commented 11 months ago

Cool, will merge soon

Kapileswar-Moharana commented 11 months ago

Cool, will merge soon

@divyanshudhruv WHEN?

divyanshudhruv commented 11 months ago

@Kapileswar-Moharana merge. Congrats

Kapileswar-Moharana commented 11 months ago

@Kapileswar-Moharana merge. Congrats

@divyanshudhruv Thanks