-
Notifications
You must be signed in to change notification settings - Fork 70
Solution: Adrià Aparicio & Javier Fernández #55
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?
Conversation
Google Slides
| <!-- Modal Post --> | ||
|
|
||
|
|
||
| <div class="modal fade" id="modal__wrapp" tabindex="-1" aria-labelledby="modal__wrapp" aria-hidden="true"> |
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.
Tags could be more semantic in the modal sections
| .then(response => response.json()) | ||
| .then(data => data) | ||
| } | ||
|
|
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.
this{ and }catch{} could be used here
|
|
||
| function displayPost() { | ||
| getPost().then(dataPost => { | ||
| for(let i = 0; i < 20; i++) { |
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.
map () is better
| } | ||
|
|
||
| // crear el plantilla del post 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.
A refactor with smaller functions might help structure and readability
| @@ -0,0 +1,28 @@ | |||
| /* Event Modal | |||
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.
perhaps it would be better to pass the postStructure function in this file
Gaerste
left a comment
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.
files should be better organized and can be refactored
Blog with API. All info on the .pdf
Thank you.