You-Dont-Need-JavaScript
You-Dont-Need-JavaScript copied to clipboard
Fix issue #844: Improve mobile responsiveness and fix layout overflow in Travelling Website
Layout Fixes:
- Fixed horizontal overflow by replacing 100vw with 100% and max-width
- Removed problematic fixed margin-left: 400px in navigation
- Added overflow-x: hidden to prevent horizontal scrolling
- Fixed booking form width constraints that broke on mobile
Mobile Responsiveness:
- Added comprehensive media queries for mobile (≤768px), small mobile (≤480px), and tablet (769px-1024px)
- Made navigation stack vertically on mobile with proper spacing
- Responsive booking form with flexible inputs and button sizing
- Improved places and hotels sections with proper wrapping
UI Improvements:
- Better flex layout with flex-wrap for navigation and content areas
- Improved button and input field sizing for touch devices
- Enhanced spacing and padding for better mobile experience
- Made background-attachment scroll on mobile for better performance
Technical Improvements:
- Proper use of flexbox with justify-content and align-items
- Responsive image sizing that scales with screen size
- Better use of min-height instead of fixed heights
- Improved CSS selector specificity and organization
Fixes #844
Can you show me the the before and after demo video of the project? @rishu685