Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Week 1 LAB | CSS Recipes clone #4377

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
99 changes: 70 additions & 29 deletions apple-pie/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,36 +4,77 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Apple Pie Recipe</title>
<!-- Remember to link your styles -->
<link rel="stylesheet" href="styles/style.css" />
</head>
<body>
Apple Pie

This was my grandmother's apple pie recipe. I have never seen another one quite like it. It will always
be my favorite and has won me several first place prizes in local competitions. I hope it becomes one of your
favorites as well!

Ingredients

1 recipe pastry for a 9 inch double crust pie
1/2 cup unsalted butter
3 tablespoons all-purpose flour
1/4 cup water
3 tablespoons all-purpose flour
1/4 cup water 1/2 cup white sugar
1/2 cup packed brown sugar
8 Granny Smith apples - peeled, cored and sliced

Directions

Preheat oven to 425 degrees F (220 degrees C).Melt the butter in a saucepan. Stir in flour to form a paste. Add water, white sugar and brown sugar, and bring
to a boil. Reduce temperature and let simmer.

Place the bottom crust in your pan. Fill with apples, mounded
slightly. Cover with a lattice work crust. Gently pour the sugar and butter liquid over the crust. Pour slowly so
that it does not run off.

Bake 15 minutes in the preheated oven. Reduce the temperature to 350 degrees F (175
degrees C). Continue baking for 35 to 45 minutes, until apples are soft.
<!--HEADER-->
<header>
<h1>Apple Pie</h1>
</header>
<main>
<!--DESCRIPTION-->
<section class="content-box">
<p class="description-text">
This was my grandmother's apple pie recipe. I have never seen another
one quite like it. It will always be my favorite and has won me
several first place prizes in local competitions. I hope it becomes
one of your favorites as well!
</p>
<div class="info-pic-box">
<img
src="images/recipe-info.png"
class="info-pic-1"
alt="recipe-info.png"
/>
</div>
<hr />
</section>
<!--INGREDIANTS-->
<section class="content-box">
<h2>Ingredients</h2>
<ul>
<li>1 recipe pastry for a 9 inch double crust pie</li>
<li>1/2 cup unsalted butter</li>
<li>3 tablespoons all-purpose flour</li>
<li>1/4 cup water 3 tablespoons</li>
<li>all-purpose flour</li>
<li>1/4 cup water</li>
<li>1/2 cup white sugar</li>
<li>1/2 cup packed brown</li>
<li>sugar 8 Granny Smith apples - peeled, cored and sliced</li>
</ul>
<div class="info-pic-box">
<img
src="images/cooking-info.png"
class="info-pic-2"
alt="cooking-info.png"
/>
</div>
<hr />
</section>
<!--DIRECTIONS-->
<section class="content-box">
<h2>Directions</h2>
<ol>
<li>
Preheat oven to 425 degrees F (220 degrees C). Melt the butter in a
saucepan. Stir in flour to form a paste. Add water, white sugar and
brown sugar, and bring to a boil. Reduce temperature and let simmer.
</li>
<li>
Place the bottom crust in your pan. Fill with apples, mounded
slightly. Cover with a lattice work crust. Gently pour the sugar and
butter liquid over the crust. Pour slowly so that it does not run
off.
</li>
<li>
Bake 15 minutes in the preheated oven. Reduce the temperature to 350
degrees F (175 degrees C). Continue baking for 35 to 45 minutes,
until apples are soft.
</li>
</ol>
</section>
<footer></footer>
</main>
</body>
</html>
98 changes: 95 additions & 3 deletions apple-pie/styles/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,22 @@ html {
font-size: 16px;
}

*, *:before, *:after {
*,
*:before,
*:after {
box-sizing: inherit;
}

body, h1, h2, h3, h4, h5, h6, p, ol, ul {
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ol,
ul {
margin: 0;
padding: 0;
font-weight: lighter;
Expand All @@ -21,4 +32,85 @@ body {
}

/* STYLES */
/* Write your CSS below */
/* Write your CSS below */

header {
background-image: url(../images/apple-pie.jpg);
height: 790px;
background-position: 0 0;
background-repeat: no-repeat;
background-size: cover;
position: relative;
align-content: center;
padding-left: 0;
padding-right: 0;
}

h1 {
text-align: center;
color: white;
font-size: 7.9em;
}

main {
padding-left: 10%;
padding-right: 10%;
}

h2 {
font-size: 2em;
padding-top: 5%;
padding-bottom: 4%;
}

ul {
list-style-type: "- ";
margin-left: 3%;
}

li {
font-size: 1.6em;
}

ol {
list-style: none;
margin-left: 3%;
}
ol > li {
counter-increment: listcounter;
}
ol > li:before {
content: counter(listcounter) ")";
}
footer {
height: 120px;
}

.description-text {
text-align: justify;
font-size: 2.39em;
margin-top: 7%;
}

.content-box {
}

.info-pic-box {
align-items: center;
display: flex;
flex-direction: column;
}

.info-pic-1 {
height: 90px;
margin-top: 5%;
margin-bottom: 4%;
display: block;
}

.info-pic-2 {
height: 110px;
margin-top: 5%;
margin-bottom: 4%;
display: block;
}
84 changes: 73 additions & 11 deletions french-soup/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,80 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>French Onion Soup Recipe</title>
<!-- don't forget to link your styles -->
<link rel="stylesheet" href="styles/style.css" />
</head>
<body>
French Onion Soup We have been trying French onion soup in restaurants for years and my family and friends agree
none can compare to my recipe for taste and simplicity of preparation. Ingredients 1/2 cup unsalted butter 2
tablespoons olive oil 4 cups sliced onions 4 (10.5 ounce) cans beef broth 2 tablespoons dry sherry (optional) 1
teaspoon dried thyme salt and pepper to taste 4 slices French bread 4 slices provolone cheese 2 slices Swiss cheese,
diced 1/4 cup grated Parmesan cheese Directions Melt butter with olive oil in an 8 quart stock pot on medium heat.
Add onions and continually stir until tender and translucent. Do not brown the onions. Add beef broth, sherry and
thyme. Season with salt and pepper, and simmer for 30 minutes. Heat the oven broiler. Ladle soup into oven safe
serving bowls and place one slice of bread on top of each (bread may be broken into pieces if you prefer). Layer
each slice of bread with a slice of provolone, 1/2 slice diced Swiss and 1 tablespoon Parmesan cheese. Place bowls
on cookie sheet and broil in the preheated oven until cheese bubbles and browns slightly.
<!--HEADER-->
<header>
<h1>French Onion Soup</h1>
</header>
<main>
<!--DESCRIPTION-->
<section class="content-box">
<p class="description-text">
We have been trying French onion soup in restaurants for years and my
family and friends agree none can compare to my recipe for taste and
simplicity of preparation.
</p>
<div class="info-pic-box">
<img
src="images/recipe-info.png"
class="info-pic-1"
alt="recipe-info.png"
/>
</div>
<hr />
</section>
<!--INGREDIANTS-->
<section class="content-box">
<h2>Ingredients</h2>
<ul>
<li>1/2 cup unsalted butter</li>
<li>2 tablespoons olive oil</li>
<li>4 cups sliced onions</li>
<li>4 (10.5 ounce) cans beef broth</li>
<li>2 tablespoons dry sherry (optional)</li>
<li>1 teaspoon dried thyme</li>
<li>salt and pepper to taste</li>
<li>4 slices French bread</li>
<li>4 slices provolone cheese</li>
<li>2 slices Swiss cheese, diced</li>
<li>1/4 cup grated Parmesan cheese</li>
</ul>
<div class="info-pic-box">
<img
src="images/cooking-info.png"
class="info-pic-2"
alt="cooking-info.png"
/>
</div>
<hr />
</section>
<!--DIRECTIONS-->
<section class="content-box">
<h2>Directions</h2>
<ol>
<li>
Melt butter with olive oil in an 8 quart stock pot on medium heat.
Add onions and continually stir until tender and translucent. Do not
brown the onions.
</li>
<li>
Add beef broth, sherry and thyme. Season with salt and pepper, and
simmer for 30 minutes.
</li>
<li>Heat the oven broiler.</li>
<li>
Ladle soup into oven safe serving bowls and place one slice of bread
on top of each (bread may be broken into pieces if you prefer).
Layer each slice of bread with a slice of provolone, 1/2 slice diced
Swiss and 1 tablespoon Parmesan cheese. Place bowls on cookie sheet
and broil in the preheated oven until cheese bubbles and browns
slightly.
</li>
</ol>
</section>
<footer></footer>
</main>
</body>
</html>
82 changes: 82 additions & 0 deletions french-soup/styles/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,85 @@ html {
font-family: 'Open Sans', sans-serif;
font-size: 18px
}


header {
background-image: url(../images/soup.jpg);
height: 790px;
background-position: 0 0;
background-repeat: no-repeat;
background-size: cover;
position: relative;
align-content: center;
padding-left: 0;
padding-right: 0;
}

h1 {
text-align: center;
color: white;
font-size: 7.9em;
}

main {
padding-left: 10%;
padding-right: 10%;
}

h2 {
font-size: 2em;
padding-top: 5%;
padding-bottom: 4%;
}

ul {
list-style-type: "- ";
margin-left: 3%;
}

li {
font-size: 1.6em;
}

ol {
list-style: none;
margin-left: 3%;
}
ol > li {
counter-increment: listcounter;
}
ol > li:before {
content: counter(listcounter) ")";
}
footer {
height: 120px;
}

.description-text {
text-align: justify;
font-size: 2.39em;
margin-top: 7%;
}

.content-box {
}

.info-pic-box {
align-items: center;
display: flex;
flex-direction: column;
}

.info-pic-1 {
height: 90px;
margin-top: 5%;
margin-bottom: 4%;
display: block;
}

.info-pic-2 {
height: 110px;
margin-top: 5%;
margin-bottom: 4%;
display: block;
}