Book Image

Bootstrap Site Blueprints

Book Image

Bootstrap Site Blueprints

Overview of this book

Table of Contents (16 chapters)
Bootstrap Site Blueprints
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Preface

Since its debut in August 2011, Twitter Bootstrap, now simply Bootstrap, has become by far the most popular framework for empowering and enhancing frontend web design. With Version 3, Bootstrap reaches an exciting new milestone, introducing a mobile-first responsive grid, new and powerful LESS mixins, and a lean code base optimized for modern browsers.

This book is a hands-on guide to the inner workings of Bootstrap. In an easy-to-follow, step-by-step format, you'll experience the power of customizing and recompiling Bootstrap's LESS files and adapting Bootstrap's JavaScript plugins to design professional user interfaces.

At the end of the day, this book is about something bigger than Bootstrap. Bootstrap is but a tool—a means to an end. By the end of this book, you will become a more adept and efficient web designer.

What this book covers

Chapter 1, Getting Started with Bootstrap, teaches us how to download Bootstrap, set up a site template based on the HTML5 Boilerplate, and practice compiling Bootstrap's LESS files to CSS.

Chapter 2, Bootstrappin' Your Portfolio, helps us to build a basic portfolio site with a full-width carousel, three columns of text, and social icons provided by Font Awesome—customizing Bootstrap's LESS files and adding your own in the process.

Chapter 3, Bootstrappin' a WordPress Theme, enables us to take the portfolio design from Chapter 2, Bootstrappin' Your Portfolio, and turn it into a WordPress theme. We'll start with the excellent Roots Theme and customize template files, LESS, CSS, and JavaScript to suit our needs.

Chapter 4, Bootstrappin' Business, shows us how to create a complex banner area, add dropdown menus and utility navigation, build a complex three-column page layout, and add a four-column footer, and ensures that all these things remain fully responsive!

Chapter 5, Bootstrappin' E-commerce, guides us through the design of a products page capable of managing multiple rows of products in a complex responsive grid. While at it, we will provide a fully responsive design for options to filter products by category, brand, and so on.

Chapter 6, Bootstrappin' a One-page Marketing Website, gives a detailed outline of how to design a beautiful one-page scrolling website with a large welcome message, a grid of product features with large icons, customer testimony in a masonry layout, and a set of three thoughtfully designed pricing tables.

Appendix A, Optimizing Site Assets, walks us through the essential process for optimizing Bootstrap LESS/CSS and JavaScript for production, using the portfolio results from Chapter 2, Bootstrappin' Your Portfolio as an example. This will help you in all Bootstrap projects.

Appendix B, Implementing Responsive Images, includes the process of implementing the leading responsive images solution, Picturefill, in the home page carousel for the portfolio site in Chapter 2, Bootstrappin' Your Portfolio, which you can use in all your future projects.

Appendix C, Adding Swipe to the Carousel, describes the process of implementing a leading plugin for adding swipe functionality, Hammer.js, to the Bootstrap carousel.

What you need for this book

To complete the exercises in this book, you will need the following software:

  • A modern web browser (Internet Explorer 8 or newer)

  • A code editor

  • A LESS compiler with less.js updated to at least Version 1.3.3

Who this book is for

This book is assumed to be good for readers who are comfortable with hand-coding HTML and CSS and are familiar with the fundamentals of valid HTML5 markup and well-structured stylesheets. Basic familiarity with JavaScript is a bonus, as we will be making use of Bootstrap's jQuery plugins. We will work a great deal with LESS to customize, compose, and compile stylesheets. Those who are familiar with LESS will gain significant experience working with the details of Bootstrap's LESS files. Those who are new to LESS will find this book a reasonably thorough primer.

Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "less/bootstrap/navbar.less".

A block of code is set as follows:

<FilesMatch "\.(ttf|otf|eot|woff)$">
  <IfModule mod_headers.c>
    Header set Access-Control-Allow-Origin "*"
  </IfModule>
</FilesMatch>

New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "Once there, the large Download source button is your friend."

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or may have disliked. Reader feedback is important for us to develop titles that you really get the most out of.

To send us general feedback, simply send an e-mail to , and mention the book title via the subject of your message.

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide on www.packtpub.com/authors.

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Downloading the example code

You can download the example code files for all Packt books you have purchased from your account at http://www.packtpub.com. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files e-mailed directly to you.

Errata

Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you would report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/submit-errata, selecting your book, clicking on the errata submission form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded on our website, or added to any list of existing errata, under the Errata section of that title. Any existing errata can be viewed by selecting your title from http://www.packtpub.com/support.

Piracy

Piracy of copyright material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works, in any form, on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.

Please contact us at with a link to the suspected pirated material.

We appreciate your help in protecting our authors, and our ability to bring you valuable content.

Questions

You can contact us at if you are having a problem with any aspect of the book, and we will do our best to address it.