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

Created Dropdown Options #897

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

pratikkabade
Copy link

@pratikkabade pratikkabade commented Apr 18, 2024

Enhancement

Fixes #867

Implemented dropdown options in the navbar to allow users to hide additional options

Visuals

Screenshot 2024-04-17 23 33 45

Copy link

vercel bot commented Apr 18, 2024

@pratikkabade is attempting to deploy a commit to the timlrx's projects Team on Vercel.

A member of the Team first needs to authorize it.

@pratikkabade pratikkabade changed the title #867 Created Dropdown Options Created Dropdown Options Apr 18, 2024
@pratikkabade pratikkabade changed the title Created Dropdown Options Created Dropdown Options #867 Apr 18, 2024
@pratikkabade pratikkabade changed the title Created Dropdown Options #867 Created Dropdown Options Apr 18, 2024
Copy link

vercel bot commented Apr 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
tailwind-nextjs-starter-blog ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 22, 2024 8:10am

@pratikkabade
Copy link
Author

@timlrx any problem with pr?
As you haven't yet merged it

@timlrx
Copy link
Owner

timlrx commented Apr 21, 2024

@pratikkabade the build failed. Could you run it through prettier and push the updated changes?

@pratikkabade
Copy link
Author

I thought it failed because of permission youve set, sure I'll give it a try
Do I have to create another pr?

@timlrx
Copy link
Owner

timlrx commented Apr 22, 2024

Inspect

It's mostly prettier related. You should have initialized the husky git pre-commit hooks which will automatically run it through eslint and prettier, but since the code is already pushed, you can just run prettier --write and push the formatted codes.

CleanShot 2024-04-22 at 11 44 25@2x

@pratikkabade
Copy link
Author

@timlrx I've made prettier formatting, please review it

@pratikkabade
Copy link
Author

@timlrx any problem with PR?
why haven't you merged it yet?

@timlrx
Copy link
Owner

timlrx commented Apr 30, 2024

@pratikkabade, the desktop version in good. The mobile version needs to be updated. I was thinking either to list it out but indent it like Dribble or making it an expandable dropdown like Figma. Any preference?
CleanShot 2024-04-30 at 22 29 26@2x
CleanShot 2024-04-30 at 22 31 09@2x

@@ -6,4 +6,12 @@ const headerNavLinks = [
{ href: '/about', title: 'About' },
]

export const headerNavOptions = {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need for an additional field. You can modify the original headerNavLink to something like this:

const headerNavLinks = [
  { href: '/', title: 'Home' },
  { href: '/blog', title: 'Blog' },
  { href: '/tags', title: 'Tags' },
  { title: 'Others': children: [
    { href: '/projects', title: 'Projects' },
    { href: '/about', title: 'About' },
  ]
]

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it I'll see if i could do that and will change

@@ -37,6 +38,7 @@ const Header = () => {
{link.title}
</Link>
))}
<NavOptions />
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can move the rendering of all the headerNavLinks to NavOptions

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

Successfully merging this pull request may close these issues.

[Feature request] navbar dropdown
2 participants