Skip to content

Updates to the excersises #4607

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

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
86 changes: 58 additions & 28 deletions apple-pie/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +5,65 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Apple Pie Recipe</title>
<!-- Remember to link your styles -->
</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.
<link rel="stylesheet" href="styles/style.css" />
</head>

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>
<header>
<p>Apple Pie</p>
</header>
<div class="main-content">
<section class="description">
<div>
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!
</div>
<img src="./images/recipe-info.png" alt="recipe-info" />
</section>
<section class="recipe">
<div class="recipe-details">
<span>Ingredients</span>
<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>
<div class="cooking-info">
<img src="./images/cooking-info.png" alt="cooking-info" />
</div>
</div>
</section>
<section class="instructions">
<div class="instructions-header">
<span>Directions</span>
<ul>
<li>
reheat 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>
</ul>
</div>
</section>
</div>
</body>
</html>
101 changes: 98 additions & 3 deletions apple-pie/styles/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,115 @@ html {
font-size: 16px;
}

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

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

/* Set the font */
body {
font-family: "Helvetica", sans-serif;
color: grey;
font-size: 18px;
}

/* STYLES */
/* Write your CSS below */
/* Write your CSS below */
header {
width: 100%;
height: 400px;
background-image: url("../images/apple-pie.jpg");
background-size: cover;
color: white;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
font-size: 55px;
letter-spacing: 2px;
font-weight: 500;
}
.main-content {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
gap: 20px;
}
section {
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
margin-top: 20px;
}
section:not(:last-of-type) {
border-bottom: 1px solid grey;
}

section div {
width: 80%;
display: flex;
flex-direction: column;
gap: 20px;
}
.cooking-info {
width: 100%;
display: flex;
align-items: center;
justify-content: center;
}
img {
height: auto;
margin-top: 20px;
width: 400px;
}
span {
color: black;
font-weight: 100;
font-size: 25px;
}
.instructions-header ul {
list-style: none;
counter-reset: item;
padding-left: 1.5em;
}

.instructions-header ul li {
counter-increment: item;
position: relative;
margin-bottom: 10px;
}

.instructions-header ul li::before {
content: counter(item) ") ";
position: absolute;
left: -1.2em;
}
@media (max-width: 768px) {
.main-content,
section div {
padding: 10px;
gap: 10px;
}

img {
width: 100%;
}
}
68 changes: 58 additions & 10 deletions french-soup/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,65 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>French Onion Soup Recipe</title>
<!-- don't forget to link your styles -->
<link rel="stylesheet" href="styles/style.css">
</head>
<body>
French Onion Soup We have been trying French onion soup in restaurants for years and my family and friends agree
none can compare to my recipe for taste and simplicity of preparation. Ingredients 1/2 cup unsalted butter 2
tablespoons olive oil 4 cups sliced onions 4 (10.5 ounce) cans beef broth 2 tablespoons dry sherry (optional) 1
teaspoon dried thyme salt and pepper to taste 4 slices French bread 4 slices provolone cheese 2 slices Swiss cheese,
diced 1/4 cup grated Parmesan cheese Directions Melt butter with olive oil in an 8 quart stock pot on medium heat.
Add onions and continually stir until tender and translucent. Do not brown the onions. Add beef broth, sherry and
thyme. Season with salt and pepper, and simmer for 30 minutes. Heat the oven broiler. Ladle soup into oven safe
serving bowls and place one slice of bread on top of each (bread may be broken into pieces if you prefer). Layer
each slice of bread with a slice of provolone, 1/2 slice diced Swiss and 1 tablespoon Parmesan cheese. Place bowls
on cookie sheet and broil in the preheated oven until cheese bubbles and browns slightly.
<header>
<p>Frech Onion Soup</p>
</header>
<div class="main-content">
<section class="description">
<div>
French Onion Soup We have been trying French onion soup in restaurants
for years and my family and friends agree none can compare to my
recipe for taste and simplicity of preparation.
</div>
<img src="./images/recipe-info.png" alt="recipe-info" />
</section>
<section class="recipe">
<div class="recipe-details">
<span>Ingredients</span>
<ul>
<li>2 tablespoons olive oil 4 cups sliced</li>
<li>onions 4 (10.5 ounce) cans beef broth</li>
<li>2 tablespoons dry sherry (optional)</li>
<li>1 teaspoon dried thyme</li>
<li>salt and pepper to taste</li>
<li>4 slices French bread</li>
<li>4 slices provolone cheese</li>
<li>2 slices Swiss cheese,diced</li>
<li>1/4 cup grated Parmesan cheese</li>
</ul>
<div class="cooking-info">
<img src="./images/cooking-info.png" alt="cooking-info" />
</div>
</div>
</section>
<section class="instructions">
<div class="instructions-header">
<span>Directions</span>
<ul>
<li>
Melt butter with olive oil in an 8 quart stock pot on medium heat.
Add onions and continually stir until tender and translucent. Do
not brown the onions
</li>
<li>
Add beef broth, sherry and thyme. Season with salt and pepper, and
simmer for 30 minutes.
</li>
<li>Heat the oven broiler.</li>
<li>
Ladle soup into oven safe serving bowls and place one slice of
bread on top of each (bread may be broken into pieces if you
prefer). Layer each slice of bread with a slice of provolone, 1/2
slice diced Swiss and 1 tablespoon Parmesan cheese. Place bowls on
cookie sheet and broil in the preheated oven until cheese bubbles
and browns slightly.
</li>
</ul>
</div>
</section>
</div>
</body>
</html>
Loading