Bootstrap Demo

Updated on June 26th, 2021 at 1:34 am

What is it?

This Bootstrap Demo is a series of web pages that I created as part of a lesson set in a Udemy course taught by Brad Hussey. I wanted to learn Bootstrap, so I took a course on it and created this site as part of the class project. Though I wrote every line of code, it was pretty much a copy of the instructor’s lessons, with a few of my own changes.

The site consists of three pages, each using a variety of Bootstrap components and layouts.

  • The Home page consists of a screen-sized title and contact form, a parallax image carousel with captions, a three-column card deck with images, an asymmetrical translucent section above a background image, and a three-column card deck arranged in a masonry-style layout.
  • The Startup Page consists of a screen-sized title and Sign-Up button, various sections with an alternating two-column layout, and modern-styled image placement.
  • The Band Page consists of an animated navigation menu that opens down. Within the menu, is a two-column layout and an inner navigation menu. The page also has a translucent section above a background image and a three-column deck of cards.

What does it do?

This site is very much a demo. Most of the links do not go anywhere, the images are free stock photos, and nearly all the content is filler Latin text. I use this demo as a reference when designing layouts for front-end views on other projects. Though this site only represents a small amount of Bootstrap’s potential, it is definitely helpful when I am trying to get ideas on modern layouts, and because I wrote all of the code, it is easy to copy and paste what I need from it.

How does it work?

The code for this project is really light and simple. The work that I created only consists of HTML and CSS. Because the site uses Bootstrap, the style sheets are a lot smaller than you would expect. Bootstrap works in the form of classes, so simply assigning certain elements to specific classes results in a lot a beautiful and powerful functionality without much effort. As an example, the Bootstrap carousel did most of the work to make a responsive and interactive image slider. All I did was model the carousel using the right elements with the correct classes/roles, label the captions, and set up the slider controls using Bootstrap’s API.

Home Page Image Carousel

The CSS is extremely simple. Without it, however, you wouldn’t actually see anything on the page. It controls how large the carousel should be, which images to use, how to display them.

Band Page Navigation Menu

The Navigation menu on the Band Page is interesting. Instead of having a menu that turns into a collapsible icon on smaller devices, the reverse happens. Click the hamburger icon, and a navigation menu opens down, revealing a two-column layout as well as an inner navigation menu. This is created using the collapse and bg-inverse classes to make a collapsible menu icon and a navbar-inverse class for the inner navigation menu.

Believe it or not, I didn’t actually create any styles for navigation menu. Bootstrap makes it possible to make minor style changes without using a style-sheet. This is because they took a lot of basic style attributes like margin, padding, padding, text-align, etc. and turned them into classes that can be assigned to their associated elements.

Links