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

[MAD-PT-09-2024] Vladyslav Kolodnytskyy #4357

Open
wants to merge 3 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
110 changes: 87 additions & 23 deletions apple-pie/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +5,99 @@
<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="apple-pie_div">
<img id="apple-pie_img" src="images/apple-pie.jpg" alt="apple pie image">
<h1>Apple Pie</h1>
</header>

<main>
<section class="recipe-info">

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
<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>
<div class="recipe-div">

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 id="recipes_img" src="images/recipe-info.png" alt="recepie info image">
</div>

</section>
<hr>

<h2>
Ingredients
</h2>

<section class="ingredients-section">
<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>
</section>

<div class="ingredients-div">

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.
<img id="ingredients-info_img" src="images/cooking-info.png" alt="cooking info">
</div>
<hr>

<h2>
Directions
</h2>

<section class="directions-section">

<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>
</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>
101 changes: 100 additions & 1 deletion apple-pie/styles/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,103 @@ body {
}

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

.apple-pie_div {
height: 850px;
overflow: hidden;

}
#apple-pie_img {
width: 100%;
position: relative;
bottom: 115px;

}

h1 {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: white;
font-size:7rem;

}

main {
margin: 9.5rem;
}

.recipe-info {
display: flex;
flex-direction: column;

}

.recipe-info p {
font-size: 2rem;
}
.recipe-div {
display: flex;
align-items: center;
justify-content: center;
margin-top: 2rem ;
margin-bottom: 2rem;

}
.recipe-info img {
width: 47%;

}

h2 {
margin-top:3.5rem ;
margin-bottom: 2.5rem;
font-size: 2.2rem;
}

.ingredients-section ul {
font-size: 1.7rem;
padding-left: 3rem;
list-style-type:none ;
}

.ingredients-section ul li::marker {
content: "- ";
color: black;
font-size: 27px;
}

.ingredients-div {
display: flex;
align-items: center;
justify-content: center;
margin-top: 2rem ;
margin-bottom: 2rem;

}

#ingredients-info_img {
width: 40%;
}

.directions-section ol {
font-size: 1.7rem;
padding-left: 1.7rem;
counter-reset: list-counter;
}

ol {
list-style-type: none;
counter-reset: contador;
}

ol li {
counter-increment: contador;
}

ol li::before {
content: counter(contador) ") ";

}