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

Layout groups + stylings #172

Merged
merged 4 commits into from
Aug 15, 2024
Merged

Layout groups + stylings #172

merged 4 commits into from
Aug 15, 2024

Conversation

ejmg
Copy link
Collaborator

@ejmg ejmg commented Aug 15, 2024

Part of #111

This PR adds layout groups to help keep stylings consistent across all major routes. (index)/page.tsx is the default landing page at / and uses app/layout.tsx only. Everything else is under (main)/* which has its own layout.tsx that is used to consolidate the top level styling for the "main" content of each page route.

There's a fine line here for what gets abstracted out into its own component (ui or otherwise) because now each route under (main)/ is largely boilerplate for a data prefetch + page title + page table(s). I feel like I could cut out some more boiler plate with the prefetching stuff, at least for tables (#133). Taking it to the next level by factoring out a common component for page title seems excessive and would make things unnecessarily de-coupled... I think.

@ejmg ejmg merged commit c285f23 into main Aug 15, 2024
@ejmg ejmg deleted the layout-groups branch August 15, 2024 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant