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
62 changes: 37 additions & 25 deletions apple-pie/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,36 +4,48 @@
<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
<header class="hero-section">
<img src="images/apple-pie.jpg" alt="A delicious apple pie"/>
<h1>Apple Pie</h1>
</header>

<main>
<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 information"/>

<hr>

Directions
<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</li>
<li>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>

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.
<img src="images/cooking-info.png" alt="Cooking time"/>

<hr>

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.
<h2>Directions</h2>
<ol>
<li>1) Preheat oven to 425 degrees F (220 degrees C).</li>
<li>2) 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>3) 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>4) 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>
<li>5) Enjoy!! :) </li>
</ol>
</main>

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.
</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 @@ -18,7 +18,83 @@ body, h1, h2, h3, h4, h5, h6, p, ol, ul {
/* Set the font */
body {
font-family: "Helvetica", sans-serif;
color: black;
}

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

.hero-section {
position: relative;
width: 100%;
height: 400px;
overflow: hidden;
}

.hero-section img {
width: 100%;
height: 100%;
object-fit: cover;
}

.hero-section h1 {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: white;
font-size: 5rem;
font-weight: bold;
margin: 0;
}

main {
padding: 2rem;
max-width: 800px;
margin: 0 auto;
}

main img {
width: 100%;
margin: 1rem 0;
display: block;
}

h2 {
font-size: 1.5rem;
font-weight: bold;
margin: 2rem 0 1rem 0;
}

p {
margin: 1rem 0;
line-height: 1.5;
font-size: 1.3rem;
text-align: left;
font-style: italic;
font-family: "Times New Roman", serif;
}

ul {
margin: 1rem 0;
padding-left: 2rem;
font-size: 1.1rem;
}

ol {
margin: 1rem 0;
padding-left: 0rem;
list-style-type: none;
font-size: 1.1rem;
}

li {
margin: .5rem 0;
}

hr {
border: none;
height: 1px;
background-color: gray;
margin: 1rem 0;
}