Skip to content

AndrewJBateman/html-css-navbar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚡ HTML CSS Navbar

  • Responsive navbar using html, css and bootstrap5 navbar with code minimised etc. for 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
  • 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

📋 Status & To-Do List

  • Status: Working.
  • To-Do: 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

About

Responsive navbar using html, css and bootstrap5 navbar with code minimised etc. for perfect lighthouse score

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published