We have only learned the very basics today with HTML and CSS, so what the heck we can really build, right? Wrong, we can build some cool stuff already, and we are going to do just that.
We all have to eat (at least, we should), so let's make some handy recipe pages. We are going to be recreating an Apple Pie recipe. As an extra step, we prepared French Onion Soup recipe as well.
Cloning something that already exists is the best way to get better at frontend development, so check out the deliverable below to see what we are expecting.
Some starter code is already provided, so you can jump right into it.
- Fork this repo
- Clone this repo
- Make sure you use
class
andid
selectors throughout your exercise. Remember, only use type selectors if you want to modify every element of that type - Use a single external CSS stylesheet to style all pages
- Use the images provided to construct the appropriate elements on the page:
- The background with a picture of the apple pie
- The recipe servings / nutrients section
- The prep section
Upon completion, run the following commands:
$ git add .
$ git commit -m "done"
$ git push origin master
Create Pull Request so your TAs can check up your work.
You will be working in the apple-pie
folder. There you will find all the files, images, and text content needed to create the page. The text is in the index.html
, and a CSS file is created in styles/style.css
.
Please find a screenshot of the expected results below:
If you feel you need more practice, you can keep working on the french-soup
exercise. There you will find expected-result.md
file where you can see what is expected from you to build. This folder has the same structure as the the apple-pie
one so follow the same steps.
Happy coding! ❤️
Apple Pies 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.