Skip to content

Commit

Permalink
Merge pull request #4 from CodeLouisville/Week2
Browse files Browse the repository at this point in the history
Week2
  • Loading branch information
Bumbolio authored Jan 24, 2017
2 parents b144cdd + e43f14d commit cdac135
Show file tree
Hide file tree
Showing 4 changed files with 110 additions and 18 deletions.
54 changes: 48 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,54 @@ Classroom activity for front-end web dev class
1. Update index.html to include _/css/styles.css_
2. Update index.html to include _/css/fonts.css_
3. In index.html locate the header section. Recreate the content and layout of the header section.
1. Look at style.css and look for the grid system section. Make the .span_1_of_2 class have a width of 48.2%.
2. Find the Nav selector in style.css and give it a top margin of 4em.
a. Look at style.css and look for the grid system section. Make the .span_1_of_2 class have a width of 48.2%.
b. Find the Nav selector in style.css and give it a top margin of 4em.
4. Update to include _"louies-logo.svg"_ with the _"alt"_ tag of "Louie's Pizza logo and tagline" and with a class of _"nav-logo"_
5. Update to include an unordred list of links inside the _"nav"_ tag to:
1. Welcome
2. History
3. Menu
4. Contact
a. Welcome
b. History
c. Menu
d. Contact
5. The Header or Top section of your page should now match the site according to the site.pdf file included in this project.

#Week 2 Challenge

This week we will complete the "Welcome to Louie's" and "Contact Louie" sections of this site. As a reference,
refer to the site.pdf file included in this repo to see what the target style should look like.

##Complete the Welcome Section

1. Find the Welcome section of the site in index.html.
2. Add a subheading (h2) with the text "WELCOME TO LOUIE'S"
3. Add the following paragraph after the subheading:```
Enjoy the old-school ambiance, original wooden booths sentimentally etched by our loyal customers, the black and white art deco floors worn by time, turn of the century tin ceilings and faded murals tell tale of a bygone era. Sit back, relax, enjoy the smell of simmering tomatoes and hot pizza, feel the warmth and camaraderie, hear the laughter and conversation of happy diners and you feel like you are home again, somewhere familliar, comfortable, affordable, family centered and “ORIGINAL”. ```
5. Use the grid system classes `col` and `span_{columns}_of_2` to make the content take up the full width.
6. Notice that the content doesn't line up with the existing content. The header has a `div` with the class `wrap` which limits the width of the content. Let's apply this to our welcome section.
7. Finally, make just the name "Louie's" in the subheading the color `#871719` (dark red). Hint: You can use `span` elements inside the `h2` element to apply special stying to specific text.

##Complete the Newsletter Section

1. Find the Email section of the site in index.html.
2. Similar to the welcome section, add a wrapper div with the class `wrap`.
3. Add a subheading of "Join Louie's List today, and get a free slice!".
4. Add a form with a lable of "Email", an email input, and a "Join Now" submit button.
5. Add a paragraph with the class "small-txt" below the input/button. Style this paragraph so that it has a font-size of 80%;
6. Style the label, input, and button according to the image in site.pdf. See hints below.

###Hints:
Height of input and button is 40px;

Input border is: 1px solid #c0af8e;
Input border radius is 3px;

font for button is 'Roboto Slab' and is 80% of the base font size. The font weight is 700.
Background color of button is #871719;
##Fix Clearing Issues with Floats

The col class assings a `property: value` of `float: left` to the elements it's applied to.
In order to give our containing `wrap` element height, we must clear these floats.
Our grid system has a `section` class and a `group` class that can clear our floats.
Wrap the col elements in a new div with these two classes to fix our floating issue.



54 changes: 54 additions & 0 deletions css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ p {
font-weight: 300;
}

p.small-txt {
font-size: 80%;
}

table {
font-size:120%;
line-height: 1.6;
Expand Down Expand Up @@ -246,3 +250,53 @@ a.hero-button:hover {
background-color: #871719;
}

/* ==========================================================================
FORMS
========================================================================== */

form {

}

input {
width: 90%;
display: block;
border: 1px solid #333333;
border-radius: 3px;
height: 36px;
padding: 8px;
margin: 10px 0px;
font-size: 100%;
}

label {
margin-top: 20px;
margin-bottom: 10px;
}

textarea#comment-field {
display: block;
border: 1px solid #333333;
border-radius: 3px;
height: 200px;
padding: 8px;
margin: 10px 0px;
font-size: 100%;
width: 100%;
}

button {
background-color: #FFC400;
color: #871719;
font-family: 'Roboto Slab', serif;
font-size: 80%;
text-transform: uppercase;
font-weight: 700;
height: 40px;
width: 100%;
}

input.button:hover {
background: #fff;
color: #09C;
}
20 changes: 8 additions & 12 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,29 +72,25 @@ <h1>World's Favorite Pizza!</h1>

<section id="welcome" class="welcome" name="menu">


</section>

<!-- WELCOME -->

<!-- HISTORY -->
<!--Email -->

<section id="history" class="history" name="history">
<section id="nwsltr" class="nwsltr">

</section>
</section>

<!--Email -->

<!-- HISTORY -->

<!-- EMAIL -->

<!-- HIDE
<section id="email-list" class="email-list">
</section>
<section id="history" class="history" name="history">

-->
</section>

<!-- EMAIL -->
<!-- HISTORY -->

<!-- MENU -->

Expand Down
Binary file modified site.pdf
Binary file not shown.

0 comments on commit cdac135

Please sign in to comment.