Skip to content

Commit cdac135

Browse files
authored
Merge pull request #4 from CodeLouisville/Week2
Week2
2 parents b144cdd + e43f14d commit cdac135

File tree

4 files changed

+110
-18
lines changed

4 files changed

+110
-18
lines changed

README.md

Lines changed: 48 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,54 @@ Classroom activity for front-end web dev class
66
1. Update index.html to include _/css/styles.css_
77
2. Update index.html to include _/css/fonts.css_
88
3. In index.html locate the header section. Recreate the content and layout of the header section.
9-
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%.
10-
2. Find the Nav selector in style.css and give it a top margin of 4em.
9+
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%.
10+
b. Find the Nav selector in style.css and give it a top margin of 4em.
1111
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"_
1212
5. Update to include an unordred list of links inside the _"nav"_ tag to:
13-
1. Welcome
14-
2. History
15-
3. Menu
16-
4. Contact
13+
a. Welcome
14+
b. History
15+
c. Menu
16+
d. Contact
1717
5. The Header or Top section of your page should now match the site according to the site.pdf file included in this project.
18+
19+
#Week 2 Challenge
20+
21+
This week we will complete the "Welcome to Louie's" and "Contact Louie" sections of this site. As a reference,
22+
refer to the site.pdf file included in this repo to see what the target style should look like.
23+
24+
##Complete the Welcome Section
25+
26+
1. Find the Welcome section of the site in index.html.
27+
2. Add a subheading (h2) with the text "WELCOME TO LOUIE'S"
28+
3. Add the following paragraph after the subheading:```
29+
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”. ```
30+
5. Use the grid system classes `col` and `span_{columns}_of_2` to make the content take up the full width.
31+
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.
32+
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.
33+
34+
##Complete the Newsletter Section
35+
36+
1. Find the Email section of the site in index.html.
37+
2. Similar to the welcome section, add a wrapper div with the class `wrap`.
38+
3. Add a subheading of "Join Louie's List today, and get a free slice!".
39+
4. Add a form with a lable of "Email", an email input, and a "Join Now" submit button.
40+
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%;
41+
6. Style the label, input, and button according to the image in site.pdf. See hints below.
42+
43+
###Hints:
44+
Height of input and button is 40px;
45+
46+
Input border is: 1px solid #c0af8e;
47+
Input border radius is 3px;
48+
49+
font for button is 'Roboto Slab' and is 80% of the base font size. The font weight is 700.
50+
Background color of button is #871719;
51+
##Fix Clearing Issues with Floats
52+
53+
The col class assings a `property: value` of `float: left` to the elements it's applied to.
54+
In order to give our containing `wrap` element height, we must clear these floats.
55+
Our grid system has a `section` class and a `group` class that can clear our floats.
56+
Wrap the col elements in a new div with these two classes to fix our floating issue.
57+
58+
59+

css/styles.css

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ p {
7777
font-weight: 300;
7878
}
7979

80+
p.small-txt {
81+
font-size: 80%;
82+
}
83+
8084
table {
8185
font-size:120%;
8286
line-height: 1.6;
@@ -246,3 +250,53 @@ a.hero-button:hover {
246250
background-color: #871719;
247251
}
248252

253+
/* ==========================================================================
254+
FORMS
255+
========================================================================== */
256+
257+
form {
258+
259+
}
260+
261+
input {
262+
width: 90%;
263+
display: block;
264+
border: 1px solid #333333;
265+
border-radius: 3px;
266+
height: 36px;
267+
padding: 8px;
268+
margin: 10px 0px;
269+
font-size: 100%;
270+
}
271+
272+
label {
273+
margin-top: 20px;
274+
margin-bottom: 10px;
275+
}
276+
277+
textarea#comment-field {
278+
display: block;
279+
border: 1px solid #333333;
280+
border-radius: 3px;
281+
height: 200px;
282+
padding: 8px;
283+
margin: 10px 0px;
284+
font-size: 100%;
285+
width: 100%;
286+
}
287+
288+
button {
289+
background-color: #FFC400;
290+
color: #871719;
291+
font-family: 'Roboto Slab', serif;
292+
font-size: 80%;
293+
text-transform: uppercase;
294+
font-weight: 700;
295+
height: 40px;
296+
width: 100%;
297+
}
298+
299+
input.button:hover {
300+
background: #fff;
301+
color: #09C;
302+
}

index.html

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -72,29 +72,25 @@ <h1>World's Favorite Pizza!</h1>
7272

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

75-
7675
</section>
7776

7877
<!-- WELCOME -->
7978

80-
<!-- HISTORY -->
79+
<!--Email -->
8180

82-
<section id="history" class="history" name="history">
81+
<section id="nwsltr" class="nwsltr">
8382

84-
</section>
83+
</section>
8584

85+
<!--Email -->
86+
8687
<!-- HISTORY -->
8788

88-
<!-- EMAIL -->
89-
90-
<!-- HIDE
91-
<section id="email-list" class="email-list">
92-
93-
</section>
89+
<section id="history" class="history" name="history">
9490

95-
-->
91+
</section>
9692

97-
<!-- EMAIL -->
93+
<!-- HISTORY -->
9894

9995
<!-- MENU -->
10096

site.pdf

-2.2 MB
Binary file not shown.

0 commit comments

Comments
 (0)