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

Modified HTML and CSS Files #4427

Open
wants to merge 2 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
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<h2>Learning Goals</h2>
</summary>

This exercise allows you to practice and apply the concepts and techniques taught in class.
This exercise allows you to practice and apply the concepts and techniques taught in class.

Upon completion of this exercise, you will be able to:

Expand All @@ -18,7 +18,7 @@
- Submit completed work using Git and GitHub by creating a pull request.

<br>
<hr>
<hr>

</details>

Expand Down Expand Up @@ -65,7 +65,7 @@ Please find a screenshot of the expected results below:

![Apple Pie](https://i.imgur.com/lGGM68Q.jpg)

<!-- ![French Onion](https://i.imgur.com/uepu2DO.jpg) -->
![French Onion](https://i.imgur.com/uepu2DO.jpg)

## Extra Practice

Expand Down Expand Up @@ -93,7 +93,7 @@ If you need more practice, keep working on the `french-soup` exercise. There you
If you are stuck in your code and need help with how to solve the problem or where to start, you should take a step back and try to form a straightforward question about the specific issue you are facing. This will help you narrow down the problem and develop potential solutions.


For example, is it a concept you don't understand, or are you receiving an error message you don't know how to fix? It is usually helpful to state the problem as clearly as possible, including any error messages you receive. This can help you communicate the issue to others and potentially get help from classmates or online resources.
For example, is it a concept you don't understand, or are you receiving an error message you don't know how to fix? It is usually helpful to state the problem as clearly as possible, including any error messages you receive. This can help you communicate the issue to others and potentially get help from classmates or online resources.


Once you have a clear understanding of the problem, you will be able to start working toward the solution.
Expand All @@ -105,7 +105,7 @@ Once you have a clear understanding of the problem, you will be able to start wo
<summary>How can I style an ordered list <code>ol</code> to use parentheses (e.g., 1), 2) ) instead of dots?</summary>
<br>

You can use [CSS counters](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Counter_Styles/Using_CSS_counters) to style an ordered list (`ol`) element to use parentheses (e.g., 1), 2) ). Here's how to do it:
You can use [CSS counters](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Counter_Styles/Using_CSS_counters) to style an ordered list (`ol`) element to use parentheses (e.g., 1), 2) ). Here's how to do it:


1. First, you need to remove the default list style
Expand All @@ -116,12 +116,12 @@ You can use [CSS counters](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_

```css
ol {
/* 1. Remove the default list style */
/* 1. Remove the default list style */
list-style: none;
}

ol > li {
/* 2. Create a custom list counter */
/* 2. Create a custom list counter */
counter-increment: listcounter;
}

Expand Down Expand Up @@ -157,7 +157,7 @@ Here is an example of how you can use the `text-align` property to center align
```html
<div>
<h2>This is a title</h2>

<p>This is some text in here</p>
</div>
```
Expand Down Expand Up @@ -187,7 +187,7 @@ For more information, check: [W3C: Centering Things](https://www.w3.org/Style/Ex
<summary>How do I center align HTML block elements?</summary>
<br>

To center align a block-level element, such as a `div`, `h1`, etc., you can use the `margin` property and set it to `auto`. This will center the element horizontally within its parent container.
To center align a block-level element, such as a `div`, `h1`, etc., you can use the `margin` property and set it to `auto`. This will center the element horizontally within its parent container.

Here is an example of how you can do this:

Expand Down
87 changes: 53 additions & 34 deletions apple-pie/index.html
Original file line number Diff line number Diff line change
@@ -1,39 +1,58 @@
<!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 -->
</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
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Apple Pie Recipe Robert's</title>
<link rel="stylesheet" href="../apple-pie/styles/style.css">
<!-- Remember to link your styles -->
</head>
<body>
<header>
<h1>Apple Pie</h1>
</header>
<section>
<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="Cooking infos">
<hr>
<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 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>
<img src="./images/cooking-info.png" alt="Cooking infos">

Directions
<hr>
<h2>Directions</h2>
<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>
</body>

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.
</body>
</html>
</html>
67 changes: 66 additions & 1 deletion apple-pie/styles/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ html {

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

}

body, h1, h2, h3, h4, h5, h6, p, ol, ul {
Expand All @@ -21,4 +22,68 @@ body {
}

/* STYLES */
/* Write your CSS below */
header {
background-image: url("../images/apple-pie.jpg");
background-size: cover;
width: 100%;
height: 53.125rem;
display: flex;
justify-content: center;
align-items: center;
}

h1{
color: white;
font-size: 2.5em;
font-weight: 300;
}
section {
width: 75%;
margin: 4.6875rem auto 3.125rem auto;

}

section img {
display: block;
width: 35%;
margin: 1.25rem auto;
}

section p {
text-align: justify;
font-size: 1.5em;
}


p {
text-align: justify;
font-size: 1.2em;
/* margin: 60px 0 0; */
}




h2 {
font-weight: 500;
margin: 1.25rem 0;
}

ul{
list-style-type: "- ";
}
li{
margin: 0rem 0rem 0rem 1.5625rem;
font-size: 1.2em;
}

ol {
counter-reset: list;
}
ol > li {
list-style: none;
}
ol > li:before {
content: counter(list) ") ";
counter-increment: list;
}
74 changes: 55 additions & 19 deletions french-soup/index.html
Original file line number Diff line number Diff line change
@@ -1,21 +1,57 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>French Onion Soup Recipe</title>
<!-- don't forget to link your styles -->
</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.
</body>
</html>

<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>French Onion Soup Recipe</title>
<link rel="stylesheet" href="./styles/style.css">
<!-- don't forget to link your styles -->
</head>

<body>
<header>
<h1>French Onion Soup</h1>
</header>
<section>
<p>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.</p>
<img src="./images/recipe-info.png" alt="Recipe Info">
<hr>
<h2>Ingredients</h2>
<ul>
<li>1/2 cup unsalted butter</li>
<li>2 tablespoons olive oil</li>
<li>4 cups sliced onions</li>
<li>4 (10.5 ounce) cans beef broth</li>
<li>2 tablespoons dry sherry (optional)</li>
<li>1 teaspoon dried thyme 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>
<img src="./images/cooking-info.png" alt="Cooking Info">
<hr>
<h2>Directions</h2>
<ol>
<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>
</ol>
</section>
</body>
</html>
48 changes: 48 additions & 0 deletions french-soup/styles/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,51 @@ html {
font-family: 'Open Sans', sans-serif;
font-size: 18px
}


header {
background: url(../images/soup.jpg) no-repeat;
background-size: cover;
background-position: center bottom;
width: 100%;
height: 120vh;
display: flex;
justify-content: center;
align-items: center;
}
header h1{
color: white;
font-weight: 200;
font-size: 2.5em;
}

section {
width: 75%;
margin: 4.6875rem auto 3.125rem auto;
}

section p{
text-align: justify;
font-size: 1.5em;
}

section img {
display: block;
width: 35%;
margin: 1.25rem auto;
}

ul{
list-style-type: "- ";
}

ol {
counter-reset: list;
}
ol > li {
list-style: none;
}
ol > li:before {
content: counter(list) ") ";
counter-increment: list;
}