Skip to content

Single page optimised HTML site to market an estate and achieve perfect lighthouse score

License

Notifications You must be signed in to change notification settings

AndrewJBateman/html-css-terracota

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚡ HTML CSS Terracota

  • Single page optimised HTML-CSS-JS website to market a holiday home 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, CSS and JavaScript with Bootstrap 5 CSS and Javascript
  • Progressive Web App (PWA)
  • Perfect performance, Perfect scores on accessibility, best practices and SEO.
  • CSS and Javascript 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
          <div class="carousel-item active">
            <picture>
              <source
                type="image/webp"
                class="d-block w-100"
                srcset="./images/bg/house-front.webp"
                alt="house front view"
              />
              <source
                type="image/jpeg"
                class="d-block w-100"
                srcset="/images/bg/house-front.jpg"
                alt="house front view"
              />
              <img
                src="/images/bg/house-front.jpg"
                class="d-block w-100"
                alt="house front view"
              />
            </picture>
            <div class="carousel-caption col-md-6 col-10 col-offset-md-6">
              <h1>Terracota</h1>
              <p class="carousel-image-text">
                Una vivienda moderna, muy bien equipada y muy confortable. En
                este alojamiento se respira tranquilidad: ¡relájate con toda la
                familia!
              </p>
            </div>
          </div>

🆒 Features

  • Lighthouse score perfect
  • This is a Progressive Web App (PWA) so user experience is close as possible to a downloaded app. It can run on multiple platforms, handles off-line by caching resources locally and can be downloaded as a permanent app.

📋 Status & To-Do List

  • Status: Working.
  • To-Do: Add sections. Optimise images using compress or CDN. Work out how to remove unused javascript.

👏 Inspiration

📁 License

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

✉️ Contact

About

Single page optimised HTML site to market an estate and achieve perfect lighthouse score

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published