Skip to content
Open

done #4756

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
70 changes: 46 additions & 24 deletions apple-pie/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,36 +4,58 @@
<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 id="recipe-hero">
<h1 id="recipe-title">Apple Pie</h1>
</header>

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
<main id="recipe-page">
<section id="recipe-intro" class="recipe-section">
<p class="section-copy">
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>

Directions
<img class="section-image" src="images/recipe-info.png" alt="Recipe information" />
</section>

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.
<section id="recipe-ingredients" class="recipe-section">
<h2 class="section-heading">Ingredients</h2>

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.
<ul class="ingredient-list">
<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>

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

<section id="recipe-directions" class="recipe-section">
<h2 class="section-heading">Directions</h2>

<ol class="direction-list">
<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>
</main>
</body>
</html>
128 changes: 127 additions & 1 deletion apple-pie/styles/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,130 @@ body {
}

/* STYLES */
/* Write your CSS below */
/* Write your CSS below */
#recipe-hero {
display: flex;
align-items: center;
justify-content: center;
min-height: 680px;
background-image: url("../images/apple-pie.jpg");
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}

#recipe-title {
color: #ffffff;
font-size: 5rem;
font-weight: 400;
}

#recipe-page {
max-width: 1024px;
margin: 0 auto;
padding: 72px 88px 56px;
}

.recipe-section {
padding: 0 0 72px;
margin-bottom: 72px;
border-bottom: 1px solid #d8d8d8;
}

#recipe-directions {
margin-bottom: 0;
padding-bottom: 0;
border-bottom: 0;
}

.section-copy {
font-size: 1.5rem;
line-height: 1.6;
}

.section-image {
display: block;
max-width: 100%;
margin: 36px auto 0;
}

#recipe-intro .section-image {
width: 420px;
}

#recipe-ingredients .section-image {
width: 400px;
margin-top: 32px;
}

.section-heading {
margin-bottom: 32px;
font-size: 2rem;
font-weight: 400;
}

.ingredient-list,
.direction-list {
padding-left: 0;
font-size: 1.25rem;
line-height: 1.8;
}

.ingredient-list {
list-style: none;
}

.ingredient-list li {
position: relative;
padding-left: 18px;
}

.ingredient-list li::before {
position: absolute;
left: 0;
content: "-";
}

.direction-list {
list-style: none;
counter-reset: recipe-steps;
}

.direction-list li {
position: relative;
padding-left: 28px;
counter-increment: recipe-steps;
}

.direction-list li::before {
position: absolute;
left: 0;
content: counter(recipe-steps) ")";
}

@media (max-width: 768px) {
#recipe-hero {
min-height: 420px;
padding: 24px;
}

#recipe-title {
font-size: 3.5rem;
text-align: center;
}

#recipe-page {
padding: 48px 24px;
}

.recipe-section {
padding-bottom: 48px;
margin-bottom: 48px;
}

.section-copy,
.ingredient-list,
.direction-list {
font-size: 1.125rem;
}
}