Contents  >

Sample Final Project Templates

Introduction

Here you will work with two sample final project templates, each one of which contains three web pages. You can display finished versions of these pages by clicking the images below.

Final Project Sample 1

Final Project Sample 2

Contents

Introduction

Project folders and files

Sample Project 1: Travel Agency

Sample Project 2: Web Design Company

Updating the meta tags

Updating the Google Analytics ID

Adding the privacy pop-up code and message

Uploading the two sample project websites to GitHub

Overview of your final project

Building your final project

Project folders and files

Your first step is to create two folders to store the HTML files, CSS files, and images needed for the sample projects.

  1. If a folder named websites does not already exist on your computer, create it now.
  2. Download the compressed file for the first sample project to your computer:   project-sample-1.zip
  3. Uncompress the ZIP file into a sub-folder of your websites folder named project-sample-1.
  4. Download the compressed file for the second sample project to your computer:   project-sample-2.zip
  5. Uncompress the ZIP file into a sub-folder of your websites folder named project-sample-2.
  6. In File/Windows Explorer, click the index.html files for each of the two projects to open their home web pages with your default web browser. The files will be at the following locations on a Windows PC.   file:///C:/websites/project-sample-1/index.html   file:///C:/websites/project-sample-2/index.html
How to set up a website

Now you can examine and be guided by the files you have downloaded.

Sample Project 1: Travel Agency

The first sample project is for a fictitious web design and marketing agency. It contains the following three web pages:

For all three pages, the <h1> and <h2> text is animated so that it slides down from the top of the screen.

Header
All of the three web pages contain both a desktop and a mobile header, with a logo and a list of menu options in each case.

How to set up a website

Footer
The footer section has the same content on both desktop and mobile screens.

How to set up a website 

Sample Project 2: Web Design Company

The second sample project is for a fictitious web design and marketing company. It contains the following three web pages:

For all three pages, the <h1> and <h2> text is animated so that it slides in from the left of the screen.

Headers and Footers
The headers (logo and menu options) and footers for this project are similar to those for the first sample project.

Updating the meta tags

Before you upload the two sample three-page websites to your account on GitHub, you need to update the details in the <head> sections.

For each sample website, open the three web pages and, within the <head> section, update the content of the <title> and <author> meta tags with your own name.

Project Contact

When finished, save the HTML files.

Updating the Google Analytics ID

For each sample website, open the three web pages and, within the <head> section, update the Google Analytics Tracking Code.

Project Privacy

Each Google Tracking Code has a unique ID in its first and last line. Replace the sample Google Tracking ID with your own Google Tracking ID. The instructions for viewing your website’s unique Google Tracking ID are here.

When finished, save the HTML files.

Adding the privacy pop-up code and message

At the bottom of all six HTML files, just before the closing </body> tag, copy-and-paste the following ‘pop-up‘ privacy code and message. You can find the instructions for generating this code here.


<script src="https://cdn.jsdelivr.net/npm/cookieconsent@3/build/cookieconsent.min.js" data-cfasync="false"></script>
<script>
window.cookieconsent.initialise({
  "palette": {
    "popup": {
      "background": "#000"
    },
    "button": {
      "background": "#f1d600"
    }
  },
  "content": {
    "href": "https://username.github.io/privacy.html"
  }
});
</script>
</body>
</html>

Near the end of this code is the sample web address of https://username.github.io/privacy.html.

Project Contact

Change this to the web address of the privacy page on your own website.

Uploading the two sample project websites to GitHub

After updating the two sample project websites with your own details, the next step is to upload them to your account on GitHub.

All the files for these two projects are in two sub-folders named project-sample-1 and project-sample-2 of your websites folder. So you will need to upload these two sub-folders, which contain both files and other sub-folders, to your account on GitHub.

However, GitHub will not allow you to upload only a folder or folders from your computer.

For this reason, you need to upload a file along with your project-sample-1 and project-sample-2 folders. It can be any file. Follow these steps.

  1. Sign in to your account at GitHub.com. Upload to GitHub
  2. On your GitHub home page, click the name of the repository that holds your web pages. Its name will look as follows, where username is your chosen username on GitHub.   username.github.io   GitHub Upload
  3. On the next screen displayed, near the centre of the screen, click the Upload files button. Project Animation Google Fonts
  4. On your computer, display your websites folder. You should see that it contains the two sub-folders named project-sample-1 and project-sample-2.
    • On a Windows computer, click on the project-sample-1 folder to select it.   Next, press and hold down the CTRL key, and then click on the project-sample-2 folder to select it.   Finally, click on any file in your websites folder to select it.
    • On an Apple Mac, press and hold down the COMMAND key, and click on the project-sample-1 folder to select it.   Next, click on the project-sample-2 folder to select it.   Finally, click on any file in your websites folder to select it.
  5. Drag-and-drop the project-sample-1 and project-sample-2 folders and whatever file you have selected to upload them to your GitHub account. In the example below, the file selected along with the two folders is named base-0.html. Project Animation Google Fonts You do not need to select this particular file. You can use any file. But you cannot upload the two folders on their own.
  6. After uploading the two folders and your selected file, scroll down to the bottom of the GitHub screen, enter a short message in the Commit changes box, click the Commit changes button, and wait for the upload to complete. Project Setup
  7. Your main repository screen should now contain two folders named project-sample-1 and project-sample-2. Project Animation Google Fonts

The web pages of the two sample projects will display correctly online only when:

The two sample projects are now published on GitHub at web addresses similar to the following, where username is the username you have chosen for your GitHub account:

https://username.github.io/project-sample-1/index.html
https://username.github.io/project-sample-2/index.html

or, simply

https://username.github.io/project-sample-1
https://username.github.io/project-sample-2

It may take a few minutes for your uploaded files to appear on GitHub.


Return to Contents.