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.
gaia-bootstrap-template-master
. Move this folder into your Projects
folder.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
.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.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.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?
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:
1<div class="image"
2 style="background-image: url('assets/img/header-1.jpeg')">
3</div>`
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.
Be Creative: Transform this website in any way that you'd like. Have fun and be creative.
Host your new website on Github.io