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

modify index.html and style.css #4370

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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
apple-pie/.DS_Store
86 changes: 50 additions & 36 deletions apple-pie/index.html
Original file line number Diff line number Diff line change
@@ -1,39 +1,53 @@
<!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

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.
</body>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Apple Pie Recipe</title>
<link rel="stylesheet" href="styles/style.css" />
</head>
<body>
<div class="wrapper">
<section id="hero"><h1>Apple Pie</h1></section>
<section id="introduction">
<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 class="cookie-info" src="./images/cooking-info.png" alt="Cookie information">
</section>
<section id="ingredients">
<h2>Ingredients</h2>
<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>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>
<img class="recipe-info" src="./images/recipe-info.png" alt="Recipe information" class="recipe-info">
</section>
<section id="directions">
<h2>Directions</h2>
<ol class="directions-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>
</ul>
</section>
</div>
</body>
</html>
106 changes: 96 additions & 10 deletions apple-pie/styles/style.css
Original file line number Diff line number Diff line change
@@ -1,24 +1,110 @@
/* CSS RESET - do not remove */
/* Reset default browser styles and provide a consistent starting point */
html {
box-sizing: border-box;
font-size: 16px;
box-sizing: border-box;
font-size: 16px;
}

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

body, h1, h2, h3, h4, h5, h6, p, ol, ul {
margin: 0;
padding: 0;
font-weight: lighter;
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;
font-family: "Helvetica", sans-serif;
}

/* STYLES */
/* Write your CSS below */
/* Write your CSS below */
body {
background-color: #000;
}
.wrapper {
margin: 0 auto;
max-width: 860px;
background-color: #fff;
}

h2 {
font-size: 1.5rem;
margin-bottom: 1.5rem;
}

#hero {
width: 100%;
height: 28rem;
display: flex;
justify-content: center;
align-items: center;
background-image: url(../images/apple-pie.jpg);
background-size: cover;
margin-bottom: 4rem;
}
#hero h1 {
font-size: 4rem;
color: #fff;
}
#introduction {
margin: 0 4rem 3rem;
padding-bottom: 3rem;
border-bottom: 1px solid;
}
#introduction p {
font-size: 1.3rem;
line-height: 1.3;
}
img.cookie-info,
img.recipe-info {
display: block;
margin: 2rem auto 0;
max-width: 320px;
height: auto;
}
img.recipe-info {
max-width: 380px;
}
#ingredients {
margin: 0 4rem 3rem;
padding-bottom: 3rem;
border-bottom: 1px solid;
}
#ingredients ul {
padding-left: 0.3rem;
}
#ingredients ul li {
list-style: none;
margin-bottom: 0.5rem;
}
#ingredients ul li:before {
content: "-";
margin-right: 0.3rem;
}

#directions {
margin: 0 4rem 3rem;
padding-bottom: 4rem;
}
#directions ol {
padding-left: 0.3rem;
list-style-position: inside;
}
#directions ol li {
margin-bottom: 0.5rem;
}