2026-05-18refactor
Component directory restructured; shared client components isolated
- Change:
app/post-gallery.tsx,app/post-pagination.tsx, andapp/sidebars.tsxmoved intoapp/_component/. All shared client-side components now live under this directory. - Why: Separates Next.js route segments (pages) from reusable client components; the
_prefix prevents the directory from being treated as a route. - Affected Modules:
app/_component/,app/layout.tsx,app/page.tsx - Trade-offs:
- Pro: Clear boundary between route files and shared UI; easier to add new shared components without polluting the route tree.
- Con: Slightly deeper import paths; absolute imports (
@/app/_component/…) mitigate this.