Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Bootstrap Site Blueprints Volume II

You're reading from  Bootstrap Site Blueprints Volume II

Product type Book
Published in Jan 2016
Publisher Packt
ISBN-13 9781785281099
Pages 328 pages
Edition 1st Edition
Languages
Author (1):
Matt Lambert Matt Lambert
Profile icon Matt Lambert

The Profile template


The last template that we need to create for our wiki is the Profile page. This template will reuse some of the classes that we have already set up and add a bit more to create a complete user profile page. Take a look at this screenshot to understand what we'll be building:

Adding an avatar

We're going to update our page title section to include a user avatar for this page. Update the <h1> tag to include an image, as shown in this example:

<h1><img src="http://fillmurray.com/36/36" width="36" height="36" alt="Avatar"> John Smith</h1>

Also make sure you change the page title to be your user's name. In this case, I'm using John Smith. After you've finished this, add the Edit button back to the inline list so that you can allow the user to edit their profile:

<li>
  <button type="button" class="btn btn-default">Edit</button>
</li>

This concludes the page title setup. Let's move on to the body of the page. It is going to use the...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}