Giter Site home page Giter Site logo

max88-git / enviro-bootstrap Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.67 MB

A landing page for an environmental organisation using Bootstrap 5.

Home Page: https://max88-git.github.io/enviro-bootstrap/

License: MIT License

HTML 87.73% CSS 5.62% JavaScript 1.76% PHP 4.89%
bootstrap bootstrap5 landing-page html5 bootstrapicons css3

enviro-bootstrap's Introduction

Enviro - Responsive Bootstrap landing page

This is a solution to an environmental organisation landing page. It's a monthly subscription site where members can plant trees to offset their carbon footprint. In the process of building this single page I managed to gain a greater understanding of Bootstrap's grid system, components, utilities and be able to create websites that can adapt to every device and every screen size.

Table of contents

Overview

The challenge

Users should be able to:

  • View the optimal layout depending on their device's screen size
  • Interact with the Navbar dropdown menu and return home

Screenshot

Above is what you should see when you click on the link below.

Links

My process

Built with

  • Semantic HTML5 markup
  • Custom CSS properties
  • JavaScript
  • Bootstrap 5.1.3
  • Bootstrap Icons 1.7.2

What I learnt

  • I learnt how to build a modern, responsive website using Bootstrap 5.
  • How to install Bootstrap via CDN.
  • The concept of the grid system and how the content should adjust and change size according to the screen size.
  • Learnt how to use components such as buttons, cards and navbar.
  • How to work with Bootstrap utilities which include display, spacing, sizing and flex.
  • Layout considerations for both desktop and mobile devices.

Here is a code snippet I am proud of:

<!-- Newsletter subscription -->
<div class="col-lg-5 col-md-5 offset-lg-1 offset-md-1 mb-4">
  <form>
    <h5 class="text-white">Subscribe to our newsletter</h5>
    <p class="text-muted">Monthly digest of whats new and exciting from us.</p>
    <div class="d-flex w-100 gap-2">
      <label for="newsletter1" class="visually-hidden">Email address</label>
      <input
        id="newsletter1"
        type="text"
        class="form-control"
        placeholder="Email address"
      />
      <button class="btn btn-primary" type="button">Subscribe</button>
    </div>
  </form>
</div>

Useful resources

  • Bootstrap Docs -This helped me learn about all the different components, content and utilities Bootstrap has in it's collection.
  • Bootstrap Icons - Bootstrap now has it's own open source icon library of over 1,500 icons which is very helpful. I found it very easy to install them using a CDN in my website and embed the icons within the HTML of the page.
  • SVG styling - This Stack Overflow question helped me to figure out how to change the fill color on my svg social media icons.

Author

License

This project is licensed under the terms of the MIT license. A short and simple permissive license with conditions only requiring preservation of copyright and license notices. Licensed works, modifications, and larger works may be distributed under different terms and without source code.

MIT © Max Lockwood

enviro-bootstrap's People

Contributors

max88-git avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.