返回 Skill 列表
extension
分类: 开发与工程无需 API Key

responsive-layouts

使用Tailwind CSS和Next.js App Router为所有页面和组件创建完全响应式的页面布局。

person作者: jakexiaohubgithub

Responsive Layout Design

Instructions

  1. Page layouts

    • Implement mobile-first design
    • Use grid and flexbox for structure
    • Ensure adaptive spacing and padding
  2. Navigation

    • Responsive navbar (desktop → mobile hamburger)
    • Collapsible sidebars for tablet view
  3. Component resizing

    • Ensure cards, buttons, forms scale properly
    • Test on mobile, tablet, and desktop breakpoints

Best Practices

  • Keep breakpoints consistent
  • Avoid horizontal scrolling
  • Modular, reusable layouts