Dog Party JS Edition


It’s a dog party! As a frontend developer, you’re going to need to be able to accurately build out the UI (user interface) for websites based on comps provided by a designer. For your first project, you’ll build a 1-page static site to practice writing well structured, semantic HTML with clean, precise CSS, as well as take a first crack at adding some user interaction with Javascript and the DOM.

Similar to what you might be asked to do on the job, we’ve given you a comp with a set of technical specs to go along with it and your challenge is to build it.

Learning Goals

  • practice accurately building a comp
  • write well structured, semantic HTML
  • craft clean, DRY CSS
  • try out working with Javascript to interact with the DOM

Steps to Set Up Your Project Files

  • Using your terminal, create a directory called dog-party
  • Inside of your dog-party directory, create a sub-directory called images
  • Also create three files called index.html, styles.css, and main.js
  • You will also need to download the image assets and insert them into your images directory

Note: DO NOT use CSS flex-box or grid for this project (If you don’t know what this is, no worries! You’ll learn more about these techniques in the coming weeks!)

Basic Project Requirements

Step 1

Start by building the HTML and using semantic tags to create a clean structure for your page. Work to craft your HTML according to the Turing HTML Style Guide

Step 2

Style your site using CSS – aim to get it as visually close to the comp as possible. Work to craft your CSS according to the Turing CSS Style Guide

Step 3

Create a file that gives a brief overview of your project (don’t forget to make sure to include the comp as well as a screen grab of your finished site!)


We won’t cover how to do these in class before this project ends – challenge yourself and investigate how to tackle these tasks. And remember: it is ok if you’re not sure how to do these so take a crack at it and experiment, we’ll go over this material together soon!


  • Make your Dog Party site mobile. Experiment using your DevTools and media queries
    • How could you handle the links in the nav bar? Maybe change them into a menu icon?
    • How will you handle the columns? Will they still fit if they are in 3 columns?
  • Make the What Is Dog buttons horizontally aligned no matter how much text is in each column.


  • Once you have the HTML structure built and styled using CSS, experiment with adding in interaction using Javascript: Build functionality to allow a user to type a dog name in the input field and then, when the user clicks the button, have that dog name replace the text Some Dogs in the main A Site About Some Dogs header and clear out the input field. For example: if I typed Fido into the input, when I click the button the main header of the page should change to read A Site About Fido.
  • Work to craft your Javascript according to the Turing Javascript Style Guide

Submission Details

After you have completed your project and are happy with it, push it up to GitHub. You’ll learn more about Git & GitHub soon, but essentially, it’s a service/website that allows developers(you) to host your code/sites. Pretty cool right!?

Add a public key to your github account

In order to push up your work to GitHub, you’ll need to generate an SSH key. SSH keys are a way to identify trusted computers without involving passwords. You can generate an SSH key and add the public key to your GitHub account by following the procedures outlined in this tutorial from GitHub. This video will walk you through the process and likely save you time.

Setting up Repository on GitHub and Pushing up

  1. Go to Github and create a new repository, also called a repo, by clicking that green button on the home page that says New Repository
  2. Enter in a relevant name for this project (i.e. Dog Party)
  3. Do NOT initialize the repository with a README. You have already created one locally on your computer.
  4. Leave the repo set as public and then click Create Repository
  5. In your terminal, follow steps below in order and enter each command into your terminal
    • git init inside of your dog-party directory (Side Note: git init creates a hidden .git directory that’s used to track changes. Run ls -a in the project directory to ensure your .git directory exists. )
    • git add .
    • git commit -m "Initial commit"
    • git remote add origin (but use the origin of your own GitHub repo that you just created rather than – this step makes the connection between your local files and the repo that lives on GitHub)
    • git push -u origin master (this step pushes your local code up to your GitHub repo)
  6. Once you see your code up in your repository on GitHub, go to Settings and publish your site on GitHub Pages, a great way to host static sites directly through GitHub
  7. Finally, place the links for both you GitHub repo and the live GitHub Pages site in the appropriate tab of the Submission Sheet

Design Comp

Hex Codes:

  • Light blue: #75e2e6
  • Dark blue: #048eaa
  • Background color: #ffffff
  • White text: #ffffff
  • Body text: #000000

Dog Party

Peer Review (10 min each)

With your partner, go through the list of questions below. Take note of the different or similar ways you may have approached the comp focusing on the structure of your HTML and how you implemented your styles. Taking a moment to reflect can help you strategize what you can improve on and how you can perform even better for your next project.

  1. What was your biggest win? Biggest struggle?
  2. What is something you are still working on or struggling with? Maybe your partner has advice?
  3. How did you implement the background image?
  4. How did you approach the header?
  5. What was your strategy for setting up each column?
  6. How did you center the main image?
  7. What was your thought process in centering the logos in the footer?
  8. What are three tips you would have told yourself a week ago?
  9. How did your partner do things similarly/differently from you?
  10. What are some things you would like to continue to work on?

Journal Writing (5 min)

Take a few minutes and write out an action plan for the next few days.

  • This can include restructuring your HTML layout.
    • Making it cleaner
    • Using more semantic HTML over divs
    • Making sure it follows the styleguide
  • How you could refactor your CSS?
    • Making sure classes are named appropriately
    • Organize your styles according to sections
    • Alphabetizing style properties
    • Grouping classes together that share similar styles

Final Eval Peer Review

Use this template

Lesson Search Results

Showing top 10 results