Friday, April 1, 2016

HTML & CSS_Project_Adoptly

1.In the header, add five items for:
  • Adoptly
  • About
  • Animals
  • Blog
  • Events
To get the colors used in the nav, try out Colorzilla (Chrome, Firefox). It lets you get a color reading from a web page so that you can use that hex value in your CSS.
               <ul>
                    <li class="main">Adoptly</li>
                    <li>About</li>
                    <li>Animals</li>
                    <li>Blog</li>
                    <li>Events</li>
                </ul>
            /* Header */
            .header {
                background-color:#30627E;
            }
            .header ul {
                list-style: none;
                text-align: center;
                margin: 0;
                padding: 0;
            }
            .header li {
                color: #fff;
                display: inline-block;
                font-size: 20px;
                text-align: center;
                padding: 20px 30px;
                margin: 0;
            }
            .header .main {
                font-size: 28px;
                background-color: #e52364;
            } 
2.In the jumbotron, add text for the heading and change the background image. Here's the image we used.
            <h1>Meet your new best friend.</h1> 
            /* Jumbotron */
            .jumbotron {
                background: url(https://s3.amazonaws.com/codecademy-content/projects/adoptly/bg.jpg) no-repeat center center;
                background-size: cover;
                height: 500px;
                text-align: center;
                margin-bottom: 0;
            }
            .jumbotron h1 {
                color: #e52364;
                font-weight: 700;
            }  
3.In the supporting section, use Bootstrap's grid to add columns for each piece of content. Each piece of content is made up of a heading, a paragraph, and a link styled as a button.
            <div class="row">
                    <div class="col-md-4">
                        <h2>Search</h2>
                        <p>Find a pet based on location, type, breed, age, and gender. We look through hundreds of shelters, agencies, and rescue sites. </p>
                        <a href="#" class="btn">Go</a>
                    </div>
                    <div class="col-md-4">
                        <h2>Learn</h2>
                        <p>Read articles on feeding, training, grooming, and more. Our resources ensure that you are fully prepared as a new pet owner.</p>
                        <a href="#" class="btn">Go</a>
                    </div>
                    <div class="col-md-4">
                        <h2>Help</h2>
                        <p>Get involved to help pets in need. You can make a difference through volunteering, social media, and donations.</p>
                        <a href="#" class="btn">Go</a>
                    </div>
                </div> 
            /* Supporting */
            .supporting {
                text-align: center;
                padding: 60px 30px 80px;
            }
            .supporting h2 {
                color:#333;
                font-size: 30px;
                margin-top: 0;
            }
            .supporting p {
                font-family: 'Open Sans', sans-serif;
                font-size: 14px;
                min-height: 80px;
            }
            .btn {
                font-size:16px;
                border-radius:0px;
                margin: 20px auto 60px;
                padding: 10px 20px;
                color: #30627E;
                width: 200px;
                border: 1px solid #30627E;
                text-transform: uppercase;
            }
4.In the footer, use Bootstrap's grid to add columns for each piece of content. There is one piece of content for the copyright, and another piece of content for the menu. Color the background #e52364.
            /* Footer */
            .footer {
                color:#fff;
                background-color: #e52364;
                padding: 20px;
            }
            .copy {
                padding-top: 10px;
            }
            .nav li a {
                color: #fff;
            }  
            <div class="row">
                    <div class="col-md-2">
                        <div class="copy">&copy;
                            Adoptly
                        </div>
                    </div>
                    <div class="col-md-10">
                        <ul class="nav nav-pills pull-right">
                            <li><a href="#">FAQ</a></li>
                            <li><a href="#">Contact</a></li>
                        </ul>
                    </div>
                </div>

HTML & CSS_Project_Junction

1.Change the background image of the page's body. Here's the image we used.
          body {
                    background: url(https://s3.amazonaws.com/codecademy-content/projects/junction/bg.jpg) no-repeat center center fixed;
                    background-size: cover;
                } 
2.In the header, add this logo and add four list items:
  • About
  • Blog
  • Help
  • Contact
Write CSS to color the background rgba(0,0,0,.5). (Check out how RGBa colors work.)
Display the list items on one line.
           <div class="header">
                <div class="container">
                    <div class="row">
                        <img class="logo" src="https://s3.amazonaws.com/codecademy-content/projects/junction/logo.svg" height="36" width="36">
                        <ul class="nav">
                            <li>About</li>
                            <li>Blog</li>
                            <li>Help</li>
                            <li>Contact</li>
                        </ul>
                    </div>
                </div>
            </div>
                .header {
                    background:rgba(0,0,0,.5);
                    height:60px;
                    padding: 10px 0;
                }
                .logo {
                    margin:0 30px 0;
                }
                .nav {
                    display:inline-block;
                    margin: 0;
                    padding: 8px 0;
                }
                .nav li {
                    color: #fff;
                    display: inline;
                    font-size: 14px;
                    margin-right: 30px;
                    padding:0 0 5px;
                }
                .nav li:hover {
                    border-bottom:1px solid #00ffbc;
                    color: #00ffbc;
                    cursor:pointer;
                }
3.In the jumbotron section, add text for the heading.
           <div class="jumbotron">
                <div class="container">
                    <h1>Meet Junction</h1>
                </div>
            </div> 
              .jumbotron {
                    background-color: transparent;
                    text-align: center;
                    position: relative;
                    top: 30px;
                }
                .jumbotron h1 {
                    color: #fff;
                    font-size: 60px;
                    text-shadow: 0 2px 3px rgba(0,0,0,.4);
                }
                .jumbotron p {
                    color: #c9c3e6;
                    font-size: 18px;
                } 
4.In the supporting section, create a row with three equal-sized columns. In each column, add an image and text. Here's the first image, second image, and third image.
                  <div class="row">
                        <div class="col-md-4">
                            <img class="read" src="https://s3.amazonaws.com/codecademy-content/projects/junction/read.svg" height="128" width="128">
                            <h2>Read</h2>
                            <p>Discover new stories and follow your favorite writers.</p>
                        </div>
                        <div class="col-md-4">
                            <img class="write" src="https://s3.amazonaws.com/codecademy-content/projects/junction/write.svg" height="128" width="128">
                            <h2>Write</h2>
                            <p>Create stories about our world, or entirely new worlds.</p>
                        </div>
                        <div class="col-md-4">
                            <img class="talk" src="https://s3.amazonaws.com/codecademy-content/projects/junction/talk.svg" height="128" width="128">
                            <h2>Talk</h2>
                            <p>Join the conversation by talking with your favorite readers and your fans.</p>
                        </div>
                    </div>
               .supporting {
                    margin-top: 40px;
                    text-shadow: 0 2px 3px rgba(0,0,0,.4);
                }
                .supporting .col-md-4 {
                    text-align: center;
                    color: #fff;
                    margin-bottom: 40px;
                }
                .supporting h2 {
                    font-size: 25px;
                }
                .supporting p {
                    font-size: 16px;
                } 
5.Under the supporting section, add a new section.
In the new section, add a button that says Join. Color the button rgba(0,255,188,0.5).
          <div class="download">
                <div class="container">
                <a href="#" class="btn btn-default">
                    <span>Join</span>
                </a>
            </div> 
               .download {
                    position: relative;
                    top: 80px;
                    text-align: center;
                }
                .btn-default {
                    background:rgba(0,255,188,0.5);
                    border:none;
                    border-radius: 8px;
                    color: #fff;
                    font-size: 18px;
                    letter-spacing: 1.3px;
                    padding: 10px 60px;
                    margin-bottom: 100px;
                }
                .btn-default:hover {
                    background:rgba(0,0,0,0.5);
                    border:none;
                    color: #fff;
                }

HTML & CSS_Project_ BestBite

1.In the header section, add a row with two columns. In the first column, write the heading BestBite. In the second column, make a navigation bar using Boostrap's pills. Add three links that say:
  • About
  • Sign Up
  • Log In
Set the class of the About item to be active.
<div class="header">
            <div class="container">
                <div class="row">
                    <div class="col-md-4">
                        <h1>BestBite</h1>
                    </div>
                    <ul class="nav nav-pills">
                        <li class="active">
                            <a href="#">About</a>
                        </li>
                        <li>
                            <a href="#">Sign Up</a>
                        </li>
                        <li>
                            <a href="#">Log In</a>
                        </li>
                    </ul>
                </div>
            </div>
        </div> 
2.In the jumbotron section, add headings that say Browse. Create. Share.. Use margins and Bootstrap's offset columns to achieve the alignment shown in the design.
Add a background image to the jumbotron. The one we used is here.
        <div class="jumbotron">
            <div class="container">
                <div class="row">
                    <div class="col-md-4">
                        <h2>Browse.</h2>
                        <h2>Create.</h2>
                        <h2>Share.</h2>
                    </div>
                </div>
            </div>
        </div> 
          .jumbotron {
                background: url(https://s3.amazonaws.com/codecademy-content/projects/bestbite/bg.jpg) no-repeat center center;
                background-size:cover;
                height: 500px;
                padding-top: 25px;
                margin-bottom: 0;
            }
            .jumbotron h2:first-child {
                margin:120px 0 0;
            }
            .jumbotron h2 {
                color:#fff;
                font-size: 60px;
                text-align: right;
                margin:0;
                width:100%;
            } 
3.In the banner section, add a link that says Learn More.
Style the link into a large default Bootstrap button. Write CSS to color it rgba(216,25,47,.5) and to adjust the top margin.
                <a class="btn btn-lg btn-default" href="#">
                    Learn More
                </a> 
           .section {
                text-align: center;
                padding-top: 40px;
            }
            .section h3 {
                margin: 0;
                padding: 0 0 20px;
                font-size: 30px;
            }
            .banner h3 {
                margin: 0;
                padding: 0;
                color:#fff;
            }
            .section h4 {
                color:#d8192f;
                margin: 30px 0 20px;
                padding: 0;
                font-size: 20px;
            }
            .section .btn {
                background-color:rgba(216,25,47,.5);
                border:0px;
                margin-top: 24px;
                color: #fff;
            } 
4.In the supporting section, within the page-header div, add a row with three equal-sized columns.
In each column, add a subheading, and then add a list containing recipe names.
             <div class="row">
                    <div class="col-md-4">
                        <h4>Breakfast</h4>
                        <ul>
                            <li>Maple French Toast</li>
                            <li>Rolled Oats with Berries</li>
                        </ul>
                    </div>
                    <div class="col-md-4">
                        <h4>Dinner</h4>
                        <ul>
                            <li>Black Bean Stuffed Peppers</li>
                            <li>Pesto Pasta with Spinach</li>
                        </ul>
                    </div>
                    <div class="col-md-4">
                        <h4>Dessert</h4>
                        <ul>
                            <li>German Chocolate Cake</li>
                            <li>Hazelnut Tiramisu</li>
                        </ul>
                    </div>
                </div> 
5.In the footer section, add text for each column, style the text as shown in the design, and color the background #eeeeee.
      <div class="footer">
            <div class="container">
                <p>&copy; 2014 BestBite</p>
                <p class="a-center">
                    <a href="#">BestBite.com</a>
                </p>
                <p class="a-right">12 Greentree Lane, Orlando, FL</p>
            </div>
        </div>  
        .footer {
                height:100px;
                padding: 40px 0px 100px;
                margin-top: 80px;
                background-color: #eee;
                font-size: 14px;
            }
            .footer p {
                float:left;
                width:33%;
            }
            .footer a {
                color: #d8192f;
            }
            .a-center {
                text-align:center;
            }
            .a-right {
                text-align:right;
            }

HTML & CSS_Project_Red Eye Photography

1.In the header, add text for a heading. We used Red Eye Photography.
Adjust the heading's margins and width so that it matches the final result.
    <div class="header">
      <h1>Red Eye Photography</h1>
    </div>
.header h1 {
  color: #31363d;
    font-size: 32px;
    margin: 0 auto;
    position: relative;
    padding-bottom: 10px;
    text-transform: uppercase;
    top:44px;
}
2.In the nav section, add a list containing four items:
  • Home
  • About
  • Gallery
  • Contact
Write CSS to display them on the same line.
       <div class="nav">
            <div class="container">
                <ul>
                    <li>Home</li>
                    <li>About</li>
                    <li>Gallery</li>
                    <li>Contact</li>
                </ul>
            </div>
        </div> 
           .nav ul {
                height:50px;
                margin: 0 0 30px;
                padding: 20px 0px;
                text-align: center;
            }
            .nav li {
                color: #fff;
                display: inline;
                text-transform: uppercase;
                padding: 0px 10px;
                -webkit-transition:color 0.25s;
                transition:color 0.25s;
            }
3.In the container section, there are two <div class="row">...</div> rows. Inside each row, use Bootstrap's grid create three equal-sized columns.
You can also learn more about Bootstrap in our Make a Website course.
4.Inside each column, add an image. Feel free to use your own images.
Here are the ones we used: one, two, three, four, five, and six.
Use Bootstrap's CSS class img-responsive to style each image. Feel free to use your own images.
    <div class="container">
            <div class="row">
                <div class="col-md-4">
                    <img class="img-responsive" src="https://s3.amazonaws.com/codecademy-content/projects/red-eye-photography/p1.jpg">
                </div>
                <div class="col-md-4">
                    <img class="img-responsive" src="https://s3.amazonaws.com/codecademy-content/projects/red-eye-photography/p2.jpg">
                </div>
                <div class="col-md-4">
                    <img class="img-responsive" src="https://s3.amazonaws.com/codecademy-content/projects/red-eye-photography/p3.jpg">
                </div>
            </div>
            <div class="row">
                <div class="col-md-4">
                    <img class="img-responsive" src="https://s3.amazonaws.com/codecademy-content/projects/red-eye-photography/p4.jpg">
                </div>
                <div class="col-md-4">
                    <img class="img-responsive" src="https://s3.amazonaws.com/codecademy-content/projects/red-eye-photography/p5.jpg">
                </div>
                <div class="col-md-4">
                    <img class="img-responsive" src="https://s3.amazonaws.com/codecademy-content/projects/red-eye-photography/p6.jpg">
                </div>
            </div>
        </div>
5.Add a footer section with text for the copyright.
Write CSS to align as shown in the final result.
       <div class="footer">
            Photography by Matthew Wiebe
        </div> 
        .footer {
                color: #31363d;
                font-size: 10px;
                height: 70px;
                line-height:70px;
                padding-right:40px;
                text-align: right;
                text-transform: uppercase;
                margin-bottom: 100px;
                }

HTML & CSS_Project_Shutterbugg

1.Use CSS to add a background image to the main section. Here's the image we used.
.main {
            background-image: url('https://s3.amazonaws.com/codecademy-content/projects/shutterbugg/intro.jpg');
            height: 550px;
            padding-top: 55px;
        } 
2.In the main section, add text for the heading and subheading. Add a link that says Download Shutterbugg and write CSS to style it into a button. Color the button rgba(238,68,95,0.9).
                   <div class="main">
                        <div class="container">
                            <h1>Introducing Shutterbugg</h1>
                            <p>Capture the moments that matter.</p>
                            <a class="download" href="#">
                                Download Shutterbugg
                            </a>
                        </div>
                    </div>  
       .download {
            background-color:rgba(238,68,95,0.9);
            border-radius:4px;
            color: #fff;
            padding: 8px 30px;
            transition:box-shadow 0.5s;
        }
        .download:hover {
            background-color:rgba(238,68,95,1);
            box-shadow:0px 1px 6px rgba(0,0,0,0.6);
            border-radius:4px;
            color: #fff;
            padding: 8px 30px;
            text-decoration: none;
            transition:box-shadow 0.25s;
        }
3.Within the first <div class="section">, use Bootstrap's grid system to create a row that has two equal-sized columns.
Inside the first column, add this image.
Inside the second column, add text for the heading and paragraph.
                              <div class="row">
                                    <div class="col-md-6">
                                        <img src="https://s3.amazonaws.com/codecademy-content/projects/shutterbugg/share.png" >
                                    </div>
                                    <div class="col-md-6">
                                        <h1>Share</h1>
                                        <p>
                                            Share your moments with the people who matter to you most. With Shutterbugg, it's easy to share with the right people.
                                        </p>
                                    </div>
                                </div>
4.Inside the second <div class="section">, create a row that has two equal-sized columns.
In the first column, add text for the heading and paragraph.
In the second column, add this image .
                           <div class="row">
                                <div class="col-md-6">
                                    <h1>Explore</h1>
                                    <p>
                                        Explore moments from your friends and family. Shutterbugg makes it easy to see what's happening in the world and take in everything around you.
                                    </p>
                                </div>
                                <div class="col-md-6" style="text-align: right;">
                                    <img src="https://s3.amazonaws.com/codecademy-content/projects/shutterbugg/explore.png" >
                                </div>
                            </div>
5.Inside the third <div class="section">, create a row that has two equal-sized columns.
Inside the first column, add this image.
Inside the second column, add text for the heading and paragraph.
<div class="row">
                            <div class="col-md-6">
                                <img src="https://s3.amazonaws.com/codecademy-content/projects/shutterbugg/save.png" >
                            </div>
                            <div class="col-md-6">
                                <h1>Save</h1>
                                <p>Save every photo you take. Shutterbugg automatically saves your photos so you can show them off from anywhere.</p>
                            </div>
                        </div> 
6.In the footer, create a row with three equal-sized columns.
Inside the first column, add a heading that says Company and a list with items that say Careers, Terms, and Help. Write CSS to adjust the text size and to color the text #555555.
Inside the second and third columns, add headings and lists as shown in the redesign.
                      <div class="row">
                            <div class="col-md-3">
                                <h3>Company</h3>
                                <ul>
                                    <li>Careers</li>
                                    <li>Terms</li>
                                    <li>Help</li>
                                </ul>
                            </div>
                            <div class="col-md-3">
                                <h3>Products</h3>
                                <ul>
                                    <li>Shutterbugg</li>
                                    <li>Speakerboxx</li>
                                </ul>
                            </div>
                            <div class="col-md-3">
                                <h3>News</h3>
                                <ul>
                                    <li>Blog</li>
                                    <li>Twitter</li>
                                    <li>YouTube</li>
                                    <li>Google+</li>
                                    <li>Facebook</li>
                                </ul>
                            </div>
                        </div>
       .footer {
            border-top: 1px solid #dbdbdb;
            background-color: #f3f3f3;
            padding: 20px 0px 80px;
        }
        .footer h3 {
            color: #555;
            font: 400 1.2em 'Open Sans',arial,sans-serif;
            margin-bottom: 10px;
        }
        .footer ul {
            list-style-type: none;
            padding-left: 0;
        }
        .footer li {
            color: #999;
            font-weight: 600;
        }

Tuesday, March 29, 2016

HTML & CSS_Project_MOVE

What it looks like: 
https://s3.amazonaws.com/codecademy-content/projects/move/index.html

1.In the main section, add a heading, a paragraph, and a link. Write CSS to style the link into a button and to change the background image of main.Here's the image we used.
<div class="main">
      <div class="container">
        <h1>Move</h1>
        <p>Form healthy habits to take your fitness to the next level.</p>
        <a href="#" class="btn">start now</a>
      </div>
    </div>
/* Main */
      .main {
        text-align: center;
        background: url(https://s3.amazonaws.com/codecademy-content/projects/move/bg.jpg) no-repeat center center;
        background-size: cover;
        height: 600px;
      }

      .main .container {
        position: relative;
        top: 100px;
      }

      .main h1 {
        color: #fff;
        margin: 0;
        font-size: 150px;
      }

      .main p {
        color: #fff;
        margin: 0 0 20px 0;
        font-size: 18px;
      }

      .main .btn {
        background-color: #1c1c1c;
        color: #fff;
        font-size: 18px;
        padding: 8px 30px;
        text-decoration: none;
        display: inline-block;
      }
 
2.In the supporting section, change the background color to #1c1c1c.
Add a section for Sync and a section for Compete, as shown in the redesign.
    .supporting {
        background-color: #1c1c1c;
        text-align: center;
        padding: 50px 0 80px;
      }
        <div class="col">
          <h2>Sync</h2>
          <p>Access your activity on your phone, tablet, or computer.</p>
        </div>
        <div class="col">
          <h2>Compete</h2>
          <p>Set personal challenges and see how you rank against your friends.</p>
        </div>
3.In the feature section, change the background image and add text for the heading. Here's the image we used.
     /* Feature */
      .feature {
        background: url(https://s3.amazonaws.com/codecademy-content/projects/move/feature.jpg) no-repeat center center;
        background-size: cover;
        height: 600px;
        text-align: center;
      }

      .feature .container {
        position: relative;
        top: 200px;
      }

      .feature h2 {
        color: #fff;
        font-size: 40px;
        margin:0;
        padding:50px 0 0;

      }
    <div class="feature">
      <div class="container">
          <h2>Move. Rest. Recover. Move.</h2>
      </div>
    </div>
4.Under the feature section, add another supporting section with text for the heading, paragraph, and link.Write CSS to style the link into a button.
   <div class="supporting">
      <div class="container">
        <h2>Go Premium</h2>
        <p>Receive recommendations based on your activity to level up.</p>
        <a class="btn" href="#">Learn More</a>
      </div>
    </div>
 .supporting .btn {
  background-color: #eee;
  color: #1c1c1c;
  font-size: 18px;
  padding: 8px 30px;
  text-decoration: none;
  display: inline-block;
}
5.Add a footer section with text for the heading and link.Write CSS to style the link into a button and change the background image.Here's the image we used.
    <div class="footer">
      <div class="container">
        <h2>Stop scrolling. Start moving</h2>
        <a class="btn" href="#">Start Now</a>
      </div>
    </div>
/* Footer */
      .footer {
        background: url(https://s3.amazonaws.com/codecademy-content/projects/move/footer.jpg) no-repeat center center;
        background-size: cover;
        height: 600px;
        text-align: center;
      }

      .footer .container {
        position: relative;
        top: 200px;
      }

      .footer h2 {
        color: #fff;
        font-size: 40px;
        margin: 0 0 20px 0;
        padding:50px 0 0;
      }

      .footer p {
        color: #fff;
        margin: 0 0 20px 0;
        font-size: 18px;
      }

      .footer .btn {
        background-color: #1c1c1c;
        color: #fff;
        font-size: 18px;
        padding: 8px 30px;
        text-decoration: none;
        display: inline-block;
      }

      a.btn:hover {
        background:#ffa800;
        color:#000;
      }