https://github.com/akunna1/mobile-responsiveness
Achieving mobile responsiveness for web apps
https://github.com/akunna1/mobile-responsiveness
frontend reactjs tailwindcss
Last synced: 7 months ago
JSON representation
Achieving mobile responsiveness for web apps
- Host: GitHub
- URL: https://github.com/akunna1/mobile-responsiveness
- Owner: akunna1
- Created: 2024-07-25T02:23:49.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-25T02:37:56.000Z (about 1 year ago)
- Last Synced: 2025-01-31T22:07:22.412Z (9 months ago)
- Topics: frontend, reactjs, tailwindcss
- Language: JavaScript
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
p-6 md:p-10 lg:p-20:
- p-6: Padding of 1.5rem (24px) for small screens
- md:p-10: Padding of 2.5rem (40px) for medium screens and larger
- lg:p-20: Padding of 5rem (80px) for large screens and largergrid grid-cols-1 lg:grid-cols-5:
- grid: Uses CSS Grid layout
- grid-cols-1: Creates a single-column grid for small screens
- lg:grid-cols-5: Creates a five-column grid for large screens and largerlg:col-span-2:
- lg:col-span-2: For large screens and up, spans 2 of the 5 grid columns, making it 40% widthlg:col-span-3:
- lg:col-span-3: For large screens and up, spans 3 of the 5 grid columns, making it 60% widthflex justify-center items-center:
- flex: Uses Flexbox layout
- justify-center: Centers content horizontally
- items-center: Centers content verticallyflex flex-col justify-center space-y-4:
- flex: Uses Flexbox layout
- flex-col: Arranges children in a column
- justify-center: Centers content vertically
- space-y-4: Adds vertical spacing of 1rem (16px) between elementsMore about the grids uses:
- grid-cols-1: Defines a single-column grid layout for small screens by default. This makes each child element occupy the full width of the container
- lg:grid-cols-5: Changes the grid layout to five columns for large screens and larger (starting at 1024px wide). This makes the child elements arrange themselves into five columns, allowing for more complex and responsive layouts