Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Tast Description
In this pull request, I created an underbar component to use in the website's navbar to display product categories. This underbar provides easy navigation for users to access different product categories available on the website.
Styling
for the styling, the underbar is responsive on the desktop screen
and the tablet screen
for the mobile screen, I kept it as it is to modify it later when we added it to the navbar
Code
I created an ul inside a div and put each category inside a link I kept the href of the link empty to add later when the products page is ready
I put the ul inside a div added a tailwind-merge function and passed a className as a second argument to the function if later we want to alter the display of the underbar in mobile size we can pass the style as a prop for example if we want to change the background in the mobile size we added a prop and it will override the default style
Related Issue