Skip to content

KSagar1997/Mobile-First-Landing-Page

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discover Nature Landing Page

A responsive, mobile-first landing page showcasing natural landscapes.

Approach

Mobile-First Development

  • Started with mobile layout and progressively enhanced for wider screens
  • Used CSS Grid for card layouts

Technical Implementation

  1. HTML Structure

    • Semantic HTML5 elements
    • Proper heading hierarchy
    • ARIA roles where appropriate
  2. CSS Features

    • Mobile-firsit media queries
    • Grid layouts
    • CSS animations, enhanced user experience
  3. JavaScript

    • Minimal JavaScript for smooth scrolling
    • Event delegation

📄 License

MIT License - Feel free to use in personal and commercial projects.

🤝 Contributing

  1. Fork the repository
  2. Create your feature branch
  3. Make your changes
  4. Test on multiple devices
  5. Submit a pull request

Performance Optimizations

  • Optimized images using appropriate sizes
  • Minimal JavaScript usage
  • CSS animations for better performance
  • Efficient selectors for styling

Challenges and Solutions

  1. Responsive Images

    • Challenge: Maintaining image aspect ratios across different screen sizes
    • Solution: Used object-fit: cover with defined heights
  2. Smooth Scrolling

    • Challenge: Implementing smooth scroll behavior across browsers
    • Solution: Combined CSS scroll-behavior

Browser Support

  • Tested on latest versions of:
    • Chrome
    • Edge

Future Improvements

  • Add more interactive features(animation on hero banner text)
  • Scroll customize

Setup Instructions

  1. Ensure all assets (images) are in the root directory
  2. Open index.html in a web browser
  3. No build process required (HTML, CSS, and JavaScript implementation).

🔗 Links


Built with ❤️ by Krishna S (Waller)

About

Created with CodeSandbox

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published