Skip to content
Open

solved #4746

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
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ If you need more practice, keep working on the `french-soup` exercise. There you

**Happy coding!** :heart:

## FAQs

<br>

Expand Down
90 changes: 59 additions & 31 deletions apple-pie/index.html
Original file line number Diff line number Diff line change
@@ -1,39 +1,67 @@
<!DOCTYPE html>
<html lang="en">
<head>
<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.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.

<!-- HERO -->
<div class="hero">
<div class="hero-bg"></div>
<h1>Apple Pie</h1>
</div>

<!-- MAIN CONTENT -->
<div class="content">

<!-- DESCRIPTION -->
<p class="description">
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>

<!-- RECIPE INFO BAR -->
<div class="recipe-info">
<img src="recipe-info.png" alt="1 h 30 m | 8 servings | 512 cals" />
</div>

<hr />

<!-- INGREDIENTS -->
<div class="ingredients">
<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>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>
</div>

<!-- COOKING INFO -->
<div class="cooking-info">
<img src="cooking-info.png" alt="Prep 30m | Cook 1h | Ready In 1h 30m" />
</div>

<hr />

<!-- DIRECTIONS -->
<div class="directions">
<h2>Directions</h2>
<p>1) 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.</p>
<p>2) 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.</p>
<p>3) 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.</p>
</div>

</div>

</body>
</html>
</html>
109 changes: 101 additions & 8 deletions apple-pie/styles/style.css
Original file line number Diff line number Diff line change
@@ -1,24 +1,117 @@
/* CSS RESET - do not remove */
/* Reset default browser styles and provide a consistent starting point */
html {
box-sizing: border-box;
font-size: 16px;
}

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

body, h1, h2, h3, h4, h5, h6, p, ol, ul {
margin: 0;
padding: 0;
font-weight: lighter;
}

/* Set the font */
body {
font-family: "Helvetica", sans-serif;
}


/* STYLES */
/* Write your CSS below */
position: relative;
width: 100%;
height: 300px;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
}

.hero-bg {
position: absolute;
inset: 0;
background: url('apple-pie.jpg') center center / cover no-repeat;
filter: brightness(0.55);
}

.hero h1 {
position: relative;
z-index: 1;
color: #fff;
font-size: 52px;
font-weight: 300;
letter-spacing: 1px;
}

.content {
max-width: 740px;
margin: 0 auto;
padding: 40px 20px;
}

.description {
font-size: 16px;
line-height: 1.7;
color: #333;
margin-bottom: 32px;
}

.recipe-info {
display: flex;
justify-content: center;
margin-bottom: 24px;
}

.recipe-info img {
height: 28px;
}

hr {
border: none;
border-top: 1px solid #ddd;
margin: 8px 0 32px;
}

.ingredients h2 {
font-size: 20px;
font-weight: bold;
margin-bottom: 16px;
color: #111;
}

.ingredients ul {
list-style: none;
padding: 0;
margin-bottom: 36px;
}

.ingredients ul li {
font-size: 15px;
color: #333;
padding: 3px 0;
line-height: 1.6;
}

.ingredients ul li::before {
content: "- ";
}

.cooking-info {
display: flex;
justify-content: center;
margin-bottom: 8px;
}

.cooking-info img {
height: 60px;
}

.directions h2 {
font-size: 20px;
font-weight: bold;
margin-bottom: 16px;
color: #111;
}

.directions p {
font-size: 15px;
color: #333;
line-height: 1.7;
margin-bottom: 10px;