This implements the router based on Next.js for left-sidebar-with-menu layout. In addition, the other layouts have been genericized for wider framework support, although the underlying API is still based on Next.js components.