Reader small image

You're reading from  Bootstrap Site Blueprints Volume II

Product typeBook
Published inJan 2016
Reading LevelIntermediate
PublisherPackt
ISBN-139781785281099
Edition1st Edition
Languages
Right arrow
Author (1)
Matt Lambert
Matt Lambert
author image
Matt Lambert

Matt Lambert is a designer and developer with 15+ years of experience. He currently works full-time as a Senior Software Engineer for CA Technologies in Vancouver, BC, Canada. In his free time he is an author, artist, and musician. In 2005, Matt founded Cardeo Creative, which is a small web design studio based in Vancouver. He works with a select list of clients on a part-time basis while producing his own products on the side. To date, Matt has self-published 3 additional development books titled: Mastering Bootstrap, CSS3 Handbook, and the Freelance Startup Guide.
Read more about Matt Lambert

Right arrow

Coding the friends section


Time to start the final template of this project and the book! The last page that we'll cover is a friends page for our social networking website. It will include a list of all our friends, their bios or descriptions, and a way to delete them:

Like the previous templates, the left and right sidebars won't be changed for this one. We'll only need to edit the middle column, so open up friends.ejs and insert this page-header code at the top of the column:

<h1 class="page-header">
  Friends
  <span class="pull-right"><small>134 Friends</small></span>
</h1>

I'm using the same pattern here as that of the other page headers. But within the <span> tag on this <h1> tag, we are going to use the <small> tag to indicate the number of friends the user has. A <small> tag with a header tag in Bootstrap provides some built-in styles you can take advantage of.

Adding a friend entry

As in the previous templates, let's dissect...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Bootstrap Site Blueprints Volume II
Published in: Jan 2016Publisher: PacktISBN-13: 9781785281099

Author (1)

author image
Matt Lambert

Matt Lambert is a designer and developer with 15+ years of experience. He currently works full-time as a Senior Software Engineer for CA Technologies in Vancouver, BC, Canada. In his free time he is an author, artist, and musician. In 2005, Matt founded Cardeo Creative, which is a small web design studio based in Vancouver. He works with a select list of clients on a part-time basis while producing his own products on the side. To date, Matt has self-published 3 additional development books titled: Mastering Bootstrap, CSS3 Handbook, and the Freelance Startup Guide.
Read more about Matt Lambert