bsoc-bitbyte / busify

A centralised bus ticket booking system that will allow the students to book tickets in advance through an online website, saving time and effort.
https://busify.vercel.app
30 stars 67 forks source link

Create a AdminPageLayout component for admin pages. #75

Closed Pratik2026 closed 4 weeks ago

Pratik2026 commented 1 month ago

Is your feature request related to a problem? Please describe.

We will be having multiple pages involving the admin panel sidebar, a Navbar & a Footer as you can see in the below image. This will cause the redundancy in the codebase.

image

Describe the solution you'd like

Create an AdminPageLayout component. The layout component is the wrapper that contains common components and wraps the different pages. You can learn more about this here

Describe alternatives you've considered

No response

Developer Help

Both AdminSidebar & Footer have been created already. Include the Navbar code in the layout component itself. No need to create a separate navbar component as there's not much in it to do except a "Manage Buses" heading and day subheading (refer to the image).

Om-Thorat commented 1 month ago

May I take up this issue, I plan to create a separate layout component and use the prebuilt adminsidebar and footer, and pass in the prop.children in the main component so it can be used as a layout in other components. Also if needed shall i make a page demonstrating the use of the said layout?

Pratik2026 commented 1 month ago

@Om-Thorat, you can start working on it.

Pratik2026 commented 1 month ago

Yeah, you can create a separate page to demonstrate the page layout.