Introducing our demo project with Bootstrap

This book will teach you how to build a complete Bootstrap website from scratch. Starting with a simple layout in chapter 2, Making a Style Statement, and chapter 3, Building the Layout, we will build and improve the website’s various sections as we progress through each chapter. The concept behind our website is simple—to develop a landing page for photographers. Using this landing page, (hypothetical) users will be able to exhibit their wares and services. While building our website, we will be making use of the same third- party tools and libraries that you would if you were working as a professional software developer. We chose these tools and plugins specifically because of their widespread use. Learning how to use and integrate them will save you a lot of work when developing websites in the future. The tools that we will use to assist us throughout the development of MyPhoto are node package manager (npm) and grunt.

From a development perspective, the construction of MyPhoto will teach you how to use and apply all the essential user interface concepts and components required to build a fully- functioning website. Among other things, you will learn how to do the following:

  • Using the Bootstrap grid system to structure the information presented on your website.
  • Creating a fixed, branded navigation bar with animated scroll effects.
  • Using an image carousel for displaying different photographs, implemented using Bootstrap’s carousel and jumbotron (jumbotron is a design principle for displaying important content). It should be noted that carousels are becoming an increasingly unpopular design choice; however, they are still heavily used and are an important feature of Bootstrap. As such, we do not argue for or against the use of carousels, as their effectiveness depends very much on how they are used, rather than on whether they are used.
  • Building custom tabs that allow users to navigate through different contents.
  • Using and applying Bootstrap’s modal dialogs.
  • Applying a fixed page footer.
  • Creating forms for data entry using Bootstrap’s input controls (text fields, text areas, and buttons) and applying Bootstrap’s input validation styles.
  • Making the best use of Bootstrap’s context classes.
  • Creating alert messages and learning how to customize them.
  • Rapidly developing interactive data tables for displaying product information.
  • Using drop-down menus, custom fonts, and icons.
  • Creating breadcrumbs to aid navigation.
  • Learning to use typeahead.
  • Effectively using Bootstrap utility classes to speed up website development.
  • Managing alignment and layout using flexbox.
  • Building interfaces that support screen readers.

In addition to learning how to use Bootstrap 4, the development of MyPhoto will introduce you to a range of third-party libraries such as Scrollspy (for scroll animations), SalvattoreJS (a library for complementing our Bootstrap grid), Animate.css (for beautiful CSS animations, such as fade-in effects), and Bootstrap DataTables (for rapidly displaying data in tabular form).

The website itself will consist of different sections:

  • A Welcome section
  • An About section
  • A Services section
  • A Gallery section
  • A Contact Us section

The development of each section is intended to teach you how to use a distinct set of features found in third-party libraries. For example, by developing the Welcome section, you will learn how to use Bootstrap’s jumbotron and alert dialogs along with different font and text styles, while the About section will show you how to use cards. The Services section of our project introduces you to Bootstrap’s custom tabs—that is, you will learn how to use Bootstrap’s tabs to display a range of different services offered by our website.

Following on from the Services section, you will need to use rich imagery to really show off the website’s sample services. You will achieve this by mastering Bootstrap’s responsive core along with Bootstrap’s carousel and third-party jQuery plugins. Last but not least, the Contact Us section will demonstrate how to use Bootstrap’s form elements and helper functions—that is, you will learn how to use Bootstrap to create stylish HTML forms, how to use form fields and input groups, and how to handle the display of data validation results.

Finally, toward the end of the book, you will learn how to optimize your website, and integrate it with the popular JavaScript frameworks, AngularJS (https://anguiarjs.org/) and React (https://reactjs.org/). As entire books have been written on AngularJS alone, we will only cover the essentials required for the integration itself.

Now that you have glimpsed a brief overview of MyPhoto, let’s examine Bootstrap 4 in more detail and discuss what makes it so different from its predecessor. Take a look at the following screenshot:

Source: Jakobus Benjamin, Marah Jason (2018), Mastering Bootstrap 4: Master the latest version of Bootstrap 4 to build highly customized responsive web apps, Packt Publishing; 2nd Revised edition.

Leave a Reply

Your email address will not be published. Required fields are marked *