/html-css-terracota

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

Primary LanguageHTMLMIT LicenseMIT

⚑ 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

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