Skip to content

Conversation

@yumi520
Copy link

@yumi520 yumi520 commented Nov 25, 2025

ℹ️ Issue

Closes #71

📝 Description

Created a usable component for the navbar

Briefly list the changes made to the code:

  1. added navbar components
  2. created navbar item components so you can easily add more tabs to the navbar

✔️ Verification

Screenshot 2025-11-25 at 5 14 25 PM

🏕️ (Optional) Future Work / Notes

  1. Links dont work yet
  2. search bar doesnt work yet

@yumi520 yumi520 added the enhancement New feature or request label Nov 25, 2025
@yumi520 yumi520 added this to BHCHP Nov 25, 2025
@SamNie2027 SamNie2027 removed this from BHCHP Jan 5, 2026
@SamNie2027
Copy link

If we aren't migrating frontend libraries this is ready to be reviewed again.

Copy link

@rayyanmridha rayyanmridha left a comment

Choose a reason for hiding this comment

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

Looks good so far but there's a couple of things that should change

description="All time submissions"
icon={usersIcon}
/>
<div className="flex flex-row">

Choose a reason for hiding this comment

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

Is there anyway to add some sort of padding in between the navbar and main content? Currently, the cards and navbar look like they're touching each other.

onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
}

const SearchBar: React.FC<SearchBarProps> = ({

Choose a reason for hiding this comment

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

Like Hannah mentioned, do we still need to use React.FC? The prop should still be typed directly as a regular function so it can be maintained easier.

Copy link

@rayyanmridha rayyanmridha left a comment

Choose a reason for hiding this comment

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

Accidentally highlighted the wrong piece of code in the last review but I corrected it now:

href="#setting"
label="Setting"
icon={<IoIosSettings />}
/>

Choose a reason for hiding this comment

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

Change the label to be "Settings"

href="#notification"
label="Notification"
icon={<FaBell />}
/>

Choose a reason for hiding this comment

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

Change the label to be "Notifications"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create Navigation Bar

5 participants