Skip to content

Assignment 1: Portfolio Page Structure

This assignment is to take a page from one of the portfolios we looked at in class and recreate the overall page structure with HTML and CSS in a Pen on the site CodePen.

Before You Start

Here is what you will need before you start.

  1. GitHub Account: https://www.github.com
  2. Sign in to Codepen: https://codepen.io
  3. Pick a page in the portfolio that you will recreate. The home page or work pages are often good choices.

Steps to Complete the Assignment

  1. Three Page Content Areas. Look at the page and figure out what content is in the three main sections of a page:
    • Header <header>: typically navigation and logo or person’s name. This is usually repeated on each page of the site.
    • Main <main>: the content on the page that is specific to the page.
    • Footer <footer>: the content on the bottom of the page that repeats across pages.
  2. Content Areas in <main>. For the content in main, determine which content areas are there. This might be things like an introduction, a block for each project shown on the page and things like that.
    • If you are a visual person it may help to screenshot the page and draw boxes around these areas.
    • web site with header/main/footer sections outlined and content areas outlined
  3. Create a new Pen.
    • Go to https://codepen.io
    • Sign in using GitHub account (if you don’t sign in you will not be able to save your pen)
    • Click the word Pen near the top left of the pagescreenshot of the new pen button on codepen.io
  4. Add Three Major Page Content Areas. Remember not to type out the entire element. Let Emmet do the work for you by just typing the name (with no < or >) and then pressing the tab key.
    • header: <header>header</header> for now you can just write the word header for content
    • main: <main></main> you will add more elements inside of main
    • footer: <footer>footer</footer>for now you can just write the word footer for content
  5. Add other content areas to main. Add in the HTML elements for the content areas you identified in step 2 above.
    • Use the Container Elements post to help you figure out which elements to use and for example HTML.
  6. Use CSS Grid for layout where it applies.
    • Remember that you need an element that will be your grid container that contains all of your grid elements. If you didn’t add this in the previous step, you may have to add it now.
    • Use the Grid Layout Basics post to help you with styling a grid layout.

Resources

Turning it In

You will turn in the assignment by copying the URL of your CodePen and pasting that into the comment area of the Portfolio Page Structue assignment on Blackboard. your URL will be something like: https://codepen.io/profstein/pen/WNmzLxq

Leave a Reply