Book Image

Bootstrap Site Blueprints Volume II

By : Matt Lambert
Book Image

Bootstrap Site Blueprints Volume II

By: Matt Lambert

Overview of this book

Bootstrap is the most popular open source project on GitHub today. With a little bit of know-how, this massively popular CSS framework can leveraged for any type of complex web application or website. Bootstrap Site Blueprints Volume II will teach you to build these types of projects in an easy-to-understand fashion. The key to any complex Bootstrap project is a strong development foundation for your project. The book will first teach you how to build a Bootstrap development environment using Harp.js, Node, and Less. In the next chapters, we’ll build on this foundation by creating restaurant and mobile-first aggregator projects. Once you’re warmed up, we’ll move on to more complex projects such as a wiki, a new magazine, a dashboard, and finally a social networking website. Whether you are brand new to Bootstrap or a seasoned expert, this book will provide you with the skills you need to successfully create a number of popular web applications and websites.
Table of Contents (14 chapters)
Bootstrap Site Blueprints Volume II
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Coding the notifications section


The notifications template for the social network is a collection of actions that apply directly to the user. Here, you might see things such as the confirmation of a new friend following you, someone who has liked one of your posts, or a public reply to a post from another user. Like the previous template, we are going to use the same code for the first column. The main changes will be to the second column, where the content will change to reflect the types of notifications you might receive.

Before we start, let's see what this page will look like:

Open the notifications.ejs file and insert the partial for the first column. Here's the code again, just in case you need it:

<!-- left side //-->
<div class="col-lg-3">
  <div class="sidebar-left">
    <%- partial("partial/_sidebar-left") %>
  </div>
</div>

Updating the center column

The layout code for this column will not change. However, the content of the column will be different...