Giter Site home page Giter Site logo

odin-recipes's Introduction

odin-recipes

✅ Solution + Preview ✅

📜 Assignment 📜

  • Create a new repo for this project on GitHub called odin-recipes

🔴 Iteration 1 - Initial structure

  1. Create a directory called odin-recipes, and create a index.html file
  2. Create a h1 heading "Odin Recipes"

🔴 Iteration 2 - Recipe Page

  1. Within this directory, create a directory named recipes
  2. Create a HTML file in the recipes directory, e.g. lasagna.html
  3. Create a h1 heading with the recipes name
  4. Within the index.html page, add a link to the recipe page. E.g write out <a href="recipes/recipename.html">Recipe Title</a> below the heading

🔴 Iteration 3 - Recipe Page Content

  1. An image of finished dish under h1 heading. You can find images of the dish from this recipe site

  2. Under the image, there should be an appreopiate sized "Description" heading followed by a paragraph describing the recipe

  3. Under the Description, add an "Ingredients" heading followed by an unordered list of the ingredients

  4. Add a "Steps" heading followed by an ordered list of the steps needed for the recipe.

🔴 Iteration 4 - Add More Recipes

  1. Add two more recipes with identical page structures
  2. Remember to add a link to the new recipes on the index page

👨‍💻 Assignment Notes 👨‍💻

  • I create a new repo on github

  • I copy the SSH link: [email protected]:shivkumar98/odin-recipes.git

$ git clone [email protected]:shivkumar98/odin-recipes.git
  • I create the index.html file in the odin-recipes directory:
$ touch index.html
  • I open this file in VS Code and create the boilerplate and heading:
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <title>My Recipe Page</title>
    </head>
    <body>
        <h1>Odin Recipes</h1>
    </body>
</html>
  • I make a new directory recipes and create the first recipe page:
$ mkdir recipes
$ cd recipes/
$ touch lasagna.html
$ code lasagna.html
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <title>Lasagna Recipe</title>
    </head>
    <body>
        <h1>Lasagna</h1>
    </body>
</html>
  • I add a link to the index.html file:
<body>
    <h1>Odin Recipes</h1>
    <a href="recipes/lasagna.html">Lasagna</a>
</body>
  • I update the lasagna.html file to include the image, ingredients and steps. The HTML now looks like:

  • I create another recipe file (sandwich-toastie.html) which looks like:

  • I update the image for the toastie and update the index page so its easier to use!

  • I now want to publish my website using GitHub pages. In order to do this, the main HTML file should be named as index.html.

  • I go to the Setting section of my repo on GitHub, go to the Pages tab and then set the branch to main and click save:

odin-recipes's People

Contributors

shivkumar98 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.