Skip to content
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
54 changes: 49 additions & 5 deletions apple-pie/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,55 @@
<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
<header class="pie-header">
<img class="pie" src="images/apple-pie.jpg" alt="Apple Pie" width="500"/>
<h1>Apple Pie</h1>
</header>

<section class="section-text"> <!--Section1 Intro-->
<article>
<p>
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>
<img src="images/recipe-info.png" alt="recipe info">
</article>
<hr class="solid">
</section>

<section class="section-text"> <!--Section2 Ingredents-->
<h3>Ingredients</h3>
<div>
<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</li>
<li>3 tablespoons all-purpose flour</li>
<li>1/4 cup water 1/2 cup white sugar</li>
<li>1/2 cup packed brown sugar</li>
<li>8 Granny Smith apples - peeled, cored and sliced</li>
</ul>
</div>
<img src="images/cooking-info.png" alt="cooking info">
<hr class="solid">
</section>

<section class="section-text"> <!--Section3 Directions-->
<h3>Directions</h3>
<div>
<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>
</div>
</section>

<!--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
Expand All @@ -30,10 +75,9 @@
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.
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.
degrees C). Continue baking for 35 to 45 minutes, until apples are soft.-->
</body>
</html>
78 changes: 77 additions & 1 deletion apple-pie/styles/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,81 @@ body {
font-family: "Helvetica", sans-serif;
}




/* STYLES */
/* Write your CSS below */
/* Write your CSS below */
html{
margin-bottom: 20%; /*set bottom margin of the webpage*/
}


/*Edit first image and the text on top*/
.pie-header {
display:grid;
grid-template-areas: "a";
align-items: center;
justify-content: center;
margin: 0% 10% 5% 10%;
}

.pie-header img,
.pie-header h1 {
grid-area: a;
display: grid;
justify-content: center;
}

.pie-header h1{
color: white;
}



/*edit the 3 sections*/
.section-text { /*edit text margins*/
margin-left: 20%;
margin-right: 20%;
}

.section-text img { /*edit the images with time, cals, nb servings*/
width: 300px;
display: flex;
justify-content: center;
}

.section-text hr.solid { /*edit bars between secitons*/
border-top: 2px solid grey;
}

.section-text h3 { /*edit the headers*/
margin: 4% 0%;
}

.section-text p, ul, ol { /*edit the color of the text in the paragraphs only*/
color: #3b3b3b;
}

.section-text ul, ol { /*Adjust the margins of the lists*/
margin: 0% 2%;
}


/*Edit the bullet points of an Unordered list*/
.section-text ul {
list-style-type: "- ";
}


/*Edit the number points of an Ordered list*/
.section-text ol {
counter-reset: list;
}
.section-text ol > li {
list-style-type: none;
}
.section-text ol > li:before {
content: counter(list, number) ") ";
counter-increment: list;
}