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

Feat: Designed and implemented a new standardized admin header component #164

Merged
merged 1 commit into from
Feb 18, 2025

Conversation

SobaSkee
Copy link
Contributor

Overview
As requested in issue #148 , I have standardized the design for headers on all admin pages except for overview. Additionally, there are options beneath the header that may be passed in to the header component if appropriate for a specific page. Examples of these props are listed below.

Example 1
For the Music.tsx page, if the prop "music={true}" is passed into admin header component, two call-to-action (cta) buttons will be rendered: Track Queue and Search Tracks. Cta buttons have been nicely styled and takes inspiration from Github's header component.

Example 2
If a page requires a more generalized cta button, one can pass in an object to the prop cta. This object is structured as a label and a link. As shown below, the label represents the name for the button that will be displayed and the link refers to the path of the page the button redirects to.

image

Final result
Before:
image
After:
image

@IkeHunter
Copy link
Collaborator

@SobaSkee Looks great!

@IkeHunter IkeHunter merged commit 859e763 into ufosc:main Feb 18, 2025
4 checks passed
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.

2 participants