Skip to content

AndrewJBateman/html-css-grid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚡ HTML CSS Grid

  • Single page optimised HTML-CSS website to display a grid of images and achieve a perfect lighthouse score
  • Note: to open web links in a new window use: ctrl+click on link

GitHub repo size GitHub pull requests GitHub Repo stars GitHub last commit

📄 Table of contents

📚 General info

  • Built with HTML and CSS. No Javascript.
  • Perfect performance, Perfect scores on accessibility, best practices and SEO.
  • CSS and HTML are minimised to reduce initial render/First Contentful Paint time.

📷 Screenshots

Example screenshot.

📶 Technologies

💾 Setup

💻 Code Examples

  • index.html extract showing how new format webp images are marked up in HTML
        <!--image 1-->
        <div class="gallery__item">
            <picture>
                <source type="image/webp" width="640" height="432" srcset="img/webp/Murcia.webp" alt="Murcia"
                    class="gallery__img" loading="lazy" />
                <source type="image/jpeg" width="640" height="432" srcset="img/jpg/Murcia.jpg" alt="Murcia"
                    class="gallery__img" loading="lazy" />
                <img src="img/jpg/Murcia.jpg" width="640" height="432" alt="Murcia" class="gallery__img"
                    loading="lazy" />
            </picture>
            <p class="gallery__title"><a href="https://www.turismodemurcia.es" target="_blank"
                    rel="noopener noreferrer">Murcia</a>, 51km</p>
        </div>

🆒 Features

  • Lighthouse score perfect

📋 Status & To-Do List

  • Status: Working.
  • To-Do: Image sizes can be reduced to improve loading time

👏 Inspiration

📁 License

  • This project is licensed under the MIT License - see the LICENSE file for details.

✉️ Contact

  • Repo created by ABateman, email: gomezbateman@yahoo.com

About

Single page optimised HTML site to display an image grid and achieve maximum lighthouse score

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published