-
Notifications
You must be signed in to change notification settings - Fork 60
JS Project Recipe Library - Gabriella #58
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
f7a557a
2d1eef0
47cf6b9
c8929fd
ec578cb
ebeba59
c1a0a65
38133dd
aeb718a
81612e1
91b1cba
a343261
a6f62e1
583be14
a1921ed
94ae331
f8993e9
898e236
c83abed
0c05aba
2091f78
5147d24
4e2a5fb
e75d5c8
30de569
f94de2d
811d6d2
cb2e64c
740a3c4
fd2b772
2a4a1d9
714182d
c472c88
aa2eea6
cc9b3d6
ac7dfc2
70d5f2a
2a52929
a57eabc
0cb1f03
4fe9d18
a64ae9e
094859a
4011633
fa6b6df
c587147
e3d4be3
9868e8e
339695e
441aa69
924fa7a
316aadf
a6dce24
2e45517
97d1c05
0b8aa59
a422201
1e47060
6ef4401
dfdcec5
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,2 @@ | ||
| # js-project-recipe-library | ||
| Link to Netlify: https://js-recipe-library.netlify.app/ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,89 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="en"> | ||
| <head> | ||
| <meta charset="UTF-8"> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
| <title>Recipe Library</title> | ||
| <link rel="stylesheet" href="./style.css"> | ||
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css"> | ||
| </head> | ||
| <body> | ||
| <div class="top-container"> | ||
| <input | ||
| class="search-button" | ||
| id="search-button" | ||
| type="search" | ||
| placeholder="🔍 Search..."> | ||
| <button | ||
| class="favorite-button btn" | ||
| id="favorite-button"> | ||
| My favorite recipes | ||
| <i | ||
| class="fas fa-heart" | ||
| id="favorite-button-heart"> | ||
| </i> | ||
| </button> | ||
| </div> | ||
| <h1 class="title">Recipe Library</h1> | ||
| <div class="controls-container"> | ||
| <div class="filter-container"> | ||
| <h2>Filter on kitchen</h2> | ||
| <div class="filter-buttons-container"> | ||
| <button | ||
| class="btn active" | ||
| id="filter-all-button"> | ||
| All | ||
| </button> | ||
| <button class="btn">African</button> | ||
| <button class="btn">American</button> | ||
| <button class="btn">Asian</button> | ||
| <button class="btn">Italian</button> | ||
| <button class="btn">Mediterranean</button> | ||
| <button class="btn">Mexican</button> | ||
| <button class="btn">Indian</button> | ||
| </div> | ||
| </div> | ||
| <div class="sort-random-container"> | ||
| <div class="sort-container"> | ||
| <h2>Sort on cooking time</h2> | ||
| <div class="sort-buttons-container"> | ||
| <button class="btn">Descending</button> | ||
| <button class="btn">Ascending</button> | ||
| </div> | ||
| </div> | ||
| <div class="random-container"> | ||
| <h2>Can't decide?</h2> | ||
| <div class="random-button-container"> | ||
| <button | ||
| class="btn" | ||
| id="random-button"> | ||
| Get me a random recipe! | ||
| </button> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| <div | ||
| class="modal-overlay hidden" | ||
| id="modal-overlay"> | ||
| <img | ||
|
Comment on lines
+66
to
+69
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. Regarding the modal, take a look at the html element |
||
| class="cross-icon" | ||
| id="cross-icon" | ||
| src="./cross-white.svg" | ||
| alt="cross icon"> | ||
| <div | ||
| class="modal" | ||
|
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. Cool use of "modal", also in js. I have not seen this before:) |
||
| id="modal-popup"> | ||
| <div | ||
| class="modal-content" | ||
| id="modal-content"> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| <div | ||
| class="card-container" | ||
| id="card-container"> | ||
| </div> | ||
| <script src="./script.js"></script> | ||
| </body> | ||
|
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. Good and easy-to-understand structure in your HTML, really nice :) Maybe you could use more semantic tags like “main” and “section” to make it even more accessible. |
||
| </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.
I totally get the choice of the name but maybe for further clarity "search-input" could be another option for it, since it's "not really" a button:)