Skip to content

Instantly share code, notes, and snippets.

@raghubetina
Last active March 31, 2016 15:24
Show Gist options
  • Save raghubetina/df2ff06e1769533d4ee76442550e86a5 to your computer and use it in GitHub Desktop.
Save raghubetina/df2ff06e1769533d4ee76442550e86a5 to your computer and use it in GitHub Desktop.
Friendbook Exercise Resources

Friendbook

In this project, we'll create our very first HTML page; a profile of ourselves. In the end, we'll work our way up to something that looks like this target.

First, we'll create the following sections in the page:

Type in these headings, and then start adding your own content beneath each one.

Then, mark up your content with our basic set of HTML tags:

  • Headings: <h1>, <h2>, ... , <h6>
  • Paragraph: <p>
  • Unordered list: <ul>
  • Ordered list: <ol>
  • List item: <li>
  • Link: <a href="http://www.addressofsomepage.com/whatever">
  • Image: <img src="whatever.jpg">

Next, we'll start to add some styling to our elements with CSS:

<h1 class="greeting">Hi there</h1>

<style>
  .greeting {
    font-size: 24px;
    color: darkgrey;
  }
</style>

Below are some resources that might be helpful as we go along:

  • Google Web Fonts

  • Google Web Font showcases: Beautiful Web Type and Typographic Project

  • Hero unit with cover image:

     .top-cover {
       background: url("cover.jpg") no-repeat center bottom;
       background-size: cover;
       height: 300px;
     }
    
  • Material-Design-style box shadow:

     .some-thing {
       box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
       transition: all 0.2s ease-in-out;
     }
     
     .some-thing:hover {
       box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
     }
    
  • HTML5 Element List

  • An abbreviated list of other useful CSS properties and example values:

     /* Typography */
     
     color: orange;
     font-family: 'Playfair Display', serif;
     font-size: 18px;
     font-weight: bold;
     letter-spacing: 0.4em;
     line-height: 1.86;
     text-align: center;
     text-decoration: none;
     text-transform: uppercase;
     
     /* Box Model */
     
     border-color: rgb(240, 240, 240);
     border-style: solid;
     border-width: 5px;
     border: thick white solid;
     height: 200px;
     margin: auto;
     padding-bottom: 20px;
     padding-left: 20px;
     padding-right: 20px;
     padding: 20px;
     width: 100%;
     
     /* Table */
     
     border-spacing: 10px;
     vertical-align: top;
     
      /* Other */
     
     background-color: rgba(0, 0, 0, 0.5)
     box-shadow: 0 1px 3px rgba(0,0,0,0.12);
     list-style-type: square;
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment