-
Notifications
You must be signed in to change notification settings - Fork 60
Julia D, recipe library #62
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
base: main
Are you sure you want to change the base?
Changes from all commits
7be2738
3c44d98
bdaccbc
d632815
b6ccdf2
9fcf4e5
50a90d1
bed7660
ac93c99
dac5477
da148e9
d4b899c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,10 @@ | ||
| # js-project-recipe-library | ||
|
|
||
| ### Netlify link: | ||
|
|
||
| https://juls-recipe-library.netlify.app/ | ||
|
|
||
| ### Description: | ||
|
|
||
| - Recipe Library app | ||
| - Fetches random recepies from Spoonacular API (https://spoonacular.com/food-api) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,118 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="en"> | ||
| <head> | ||
| <meta charset="UTF-8" /> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
| <title>Document</title> | ||
| <link rel="stylesheet" href="./style.css" /> | ||
| </head> | ||
|
|
||
| <body> | ||
| <header> | ||
| <h1>Recipe Library</h1> | ||
| <section id="fav-cont" class="filter fav-container"> | ||
| <button id="btnFavourites" class="btn btn-fav"> | ||
| My fav recipes ♡ | ||
| </button> | ||
| </section> | ||
| </header> | ||
| <main> | ||
| <section class="filter-container"> | ||
| <div class="filter-wrapper"> | ||
| <h3>Filter by kitchen</h3> | ||
| <div class="filter filter-kitchen"> | ||
| <button id="btnAll" class="btn btn-filter-kitch">All</button> | ||
| <button id="asianCuisine" class="btn btn-filter-kitch"> | ||
| Asian | ||
| </button> | ||
| <button id="frenchCuisine" class="btn btn-filter-kitch"> | ||
| French | ||
| </button> | ||
| <button id="mexicanCuisine" class="btn btn-filter-kitch"> | ||
| Mexican | ||
| </button> | ||
| <button id="italianCuisine" class="btn btn-filter-kitch"> | ||
| Italian | ||
| </button> | ||
| </div> | ||
| </div> | ||
|
|
||
| <div class="filter-wrapper"> | ||
| <h3>Filter by cooking time</h3> | ||
| <div class="filter filter-time"> | ||
| <button class="btn btn-filter-min">Under 30 min</button> | ||
| <button class="btn btn-filter-min">Under 45 min</button> | ||
| <button class="btn btn-filter-min">Under 1,5 hour</button> | ||
| <button class="btn btn-filter-min">Under 3 hours</button> | ||
| </div> | ||
| </div> | ||
|
|
||
| <div class="filter-wrapper"> | ||
| <h3>Sort by time</h3> | ||
| <div class="filter sort-options"> | ||
| <button class="btn btn-sort" id="sortShortest"> | ||
| Shortest Time ⏱️ | ||
| </button> | ||
| <button class="btn btn-sort" id="sortLongest"> | ||
| Longest Time ⏱️ | ||
| </button> | ||
| </div> | ||
| </div> | ||
|
|
||
| <div class="filter filter-wrapper filter-random"> | ||
| <h3>Feeling adventurous?</h3> | ||
| <button id="btnRandom" class="btn">✨Get a random recipe✨</button> | ||
| </div> | ||
| </section> | ||
|
|
||
| <article class="cards-container"> | ||
| <div class="card"> | ||
| <a | ||
| href="https://www.kingarthurbaking.com/blog/2025/01/03/recipe-of-the-year-focaccia" | ||
| target="_blank" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Link settings are careful: target="_blank" + rel="noopener noreferrer" safe and neat. |
||
| rel="noopener noreferrer" | ||
| class="card-link" | ||
| ><img | ||
| class="card-img" | ||
| src="./Assets/focaccia.png" | ||
| alt="close-up photo of a focaccia with cherry tomatoes on it" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The alt text on the image is good: “close-up photo of a focaccia…” it helps both accessibility and SEO. |
||
| /> | ||
| <div class="card-content"> | ||
| <h2 class="card-big-heading">Cheat's cheesy Focaccia</h2> | ||
| <hr class="card-line" /> | ||
| <dl class="details-card"> | ||
| <div class="card-detail"> | ||
| <dt>Cuisine:</dt> | ||
| <dd>Italian</dd> | ||
| </div> | ||
| <div class="card-detail"> | ||
| <dt>Time:</dt> | ||
| <dd>40 minutes</dd> | ||
| </div> | ||
| </dl> | ||
| <hr class="card-line" /> | ||
| <h3>Ingredients</h3> | ||
| <ul class="ingredient-list"> | ||
| <li class="ingredient">500 pack bread mix</li> | ||
| <li class="ingredient"> | ||
| 2tbsp. olive oil, plus a little extra for drizzling | ||
| </li> | ||
| <li class="ingredient"> | ||
| 25g parmesan (or vegetarian alternative), grated | ||
| </li> | ||
| <li class="ingredient"> | ||
| 75g dolcelatte cheese (or vegetarian alternative) | ||
| </li> | ||
| </ul> | ||
| </div> | ||
| </a> | ||
| <button class="favourite-btn" data-id="1" title="Add to favourites"> | ||
| 🤍 | ||
| </button> | ||
| </div> | ||
| </article> | ||
| </main> | ||
|
|
||
| <script src="./index.js" type="module"></script> | ||
| </body> | ||
| </html> | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The filter section feels inspiring: “Feeling adventurous?” with a ✨ button makes me want to click. Fun!