Manchester | ITP-May-26 | Abdu Hassen | Sprint 3 | Project TV Show - #80
Manchester | ITP-May-26 | Abdu Hassen | Sprint 3 | Project TV Show #80Abduhasen wants to merge 21 commits into
Conversation
…ml,using <template> add a function for each episodes that create a card and write all necessary information. added css style borders for texts and images
Manchester | ITP-May-26 | Abdu Hassen | sprint 1 | Project TV Show
Manchester | ITP-May-26 | Joanne O'Malley | Sprint 2 | Partner project tv show level 200
…error statement for error
Manchester | ITP-May-26 | Abdu Hassen | Sprint 2 | Level 300
Manchester | ITP-May-26 | Abdu Hassen | Sprint 2 | level 300
Manchester | ITP-May-26| Joanne O'Malley | Sprint 3 | Partner project tv show level 400
Manchester | ITP-May-26 | Abdu Hassen | Sprint 3 | Project Tv show refactoring code and creating css features
…change css color.
Manchester | ITP-May-26 | Abdu Hassen | Sprint 3 |Project TV Show Feature/level 500
LonMcGregor
left a comment
There was a problem hiding this comment.
- Deployed page meets all the requirements
- Good use of semantic HTML and templates
- Appropriate use of caching
Good work on this. ITP is complete now, but if you want an extra challenge, feel free to respond to my comments.
| } | ||
| return episodeCache[showId]; | ||
| } | ||
| async function setup() { |
There was a problem hiding this comment.
Unless there's a clear reason for it, having all your functions defined inside setup might not be such a good idea. Do you think this approach is the best for your code?
| const link = card.querySelector(".episode-link"); | ||
| title.textContent = `${episode.name} - ${formatEpisodeCode(episode)}`; | ||
| image.src = episode.image?.medium || ""; | ||
| image.alt = episode.name; |
There was a problem hiding this comment.
Is this an appropriate use of an alt tag? See what https://axesslab.com/alt-texts/ has to say
| title.textContent = `${episode.name} - ${formatEpisodeCode(episode)}`; | ||
| image.src = episode.image?.medium || ""; | ||
| image.alt = episode.name; | ||
| summary.innerHTML = episode.summary || ""; |
There was a problem hiding this comment.
This isn't wrong, but can you think of any potential side effects of inserting the summary from the API directly into your HTML like this?
| image.alt = episode.name; | ||
| summary.innerHTML = episode.summary || ""; | ||
| if (episode.url) { | ||
| link.addEventListener("click", () => { |
There was a problem hiding this comment.
If the purpose of this button is to open a page, is there a more semantic approach you could use than writing js to open said link?
Learners, PR Template
Self checklist
Changelist
-created a template on html
-used the template to create a card in js
-added search bar for episode list
-added drop down for the episode list
-fetch data from API that list episodes
-added API that fetch tv show
-added search bar for tv show and drop down
-added back button from episode list
Questions