TODO:
JS when clicking on the button, nothing happens.
- Implement the
getArticles
function, so it fetches the 1st page of articles using the endpointhttps://raw.githubusercontent.com/miquelmasrieramrf/webTest/main/data/articles/{ __PAGE_NUMBER__ }
- make the function showArticles use the articles fetched using the previous one, so they are shown in the page.
- now show the articles of the pages 1 and 2 (articles [1, 10]) in order.
CSS
Styling is not fine
- we want to display the articles in a vertical list and add some space between them
- style the button exacly as the
article
s - make it response (make the articels fit in a smartphone screen)
Analysis
- improve the showArticles function
- html discussion