In-class Assignment: Building a Web Page with Bootstrap Template

Overview

This exercise will require students to work in teams of 4-5 student in order to build a web page from a Bootstrap template. This document will provide step by step instructions as well as links to helpful resources. As always, classroom instructors will be available to provide assistence and answer questions.

Learning Objectives

Helpful links

Instructions

Getting Started
  1. Download the Gaia Bootstrap Template: Todays assignment will leverage a bootstrap template. Click here to navigate to the site where you can download the Gaia template. After the download is complete, unzip it. This will result in a folder called gaia-bootstrap-template-master. Move this folder into your Projects folder.
  2. Open the template in VS Code: In VS Code, click File then Open.... This should open a window for navigating through the folders and file on your computer. Find the folder called gaia-bootstrap-template-master and select it. Then click Open.
  3. Explore the contents of your new project: VS Code has a file explorer for navigating your project in the left panel. Take a few moments to explore the contents of the project. At the top level, you will notice a folder called assets and three files titled freebie.html, LICENCE.md, and README.md. The assets folder contains all of the necessary css, js, fonts, and images for your project. Rename freebie.html to index.html by right clicking on it and then clicking Rename. The index.html file is where we will be doing most of our work today.
  4. Preview your web page locally in your web browser: In the VS Code file explorer, right click on index.html and then click Copy Path. Open up a web browser, paste what you just copied into the address bar, and then hit Enter. You should now see your web page in the default state as provided by the Gaia template. Go back to VS Code. In index.html , line 77 and replace the word Gaia with your team name. Then save your project, navigate back to your web browser, and refresh the page. You should see that the page has changed and includes your team name.
Build
  1. Change the title: Go to line 10 of index.html. Replace the contents within the <title> element with whatever you want the title of your page. What do you think will be the result of this?

  2. Change the background image: You may want to change the background of your web page. Start by going to lines 70-72. The code should look like this:

    Notice that there is a string that says 'assets/img/header-1.jpeg'. If you recall there is a folder called assets in the project. If you open the assets folder in the VS Code file explorer, you will see a folder called img. If you open the img folder, you will find a file called header-1.jpeg. This is the file that contains the background image for your web page. Using this link, find an alternative background and download its file. Then place the downloaded file in the assets/img/ folder. Lastly, modify lines 70-72 so that they refer to the new image file.

  3. Be Creative: Transform this website in any way that you'd like. Have fun and be creative.

Deploy (optional)

Host your new website on Github.io