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

Nav problem #1

Open
goktugfevzi opened this issue Jun 11, 2023 · 8 comments
Open

Nav problem #1

goktugfevzi opened this issue Jun 11, 2023 · 8 comments

Comments

@goktugfevzi
Copy link

I click to go to the contact section, another icon becomes active. nav is wrong to solve this

     const offsetTop = section.offsetTop + 5;

you should add

@AjayAsnani
Copy link
Owner

AjayAsnani commented Jun 11, 2023 via email

@goktugfevzi
Copy link
Author

Video_23-06-11_20-32-03.mp4

@AjayAsnani
Copy link
Owner

AjayAsnani commented Jun 11, 2023 via email

@AjayAsnani
Copy link
Owner

AjayAsnani commented Jun 12, 2023 via email

@AjayAsnani
Copy link
Owner

const offsetTop = section.offsetTop + 5;

Exact Where should i add this line

@goktugfevzi
Copy link
Author

Of course my screen size different, everyone has different size.

I made the component myself, I didn't use a ready-made library, so I solved this error this way, but you should use it with offset variable in react-scroll library.

@AjayAsnani
Copy link
Owner

Ya I tried adding that line but it gives me different error

@goktugfevzi
Copy link
Author

Sir, if you want you can use my navbar codes

https://github.com/goktugfevzi/Personal-Portfolio/blob/main/src/components/nav/Nav.jsx

I solved this issue with 43. Line. You can see how I do it. I didnt use any library for navbar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants