NoroffFEU / musikkforandrerliv.no

https://norofffeu.github.io/musikkforandrerliv.no/
The Unlicense
13 stars 9 forks source link

Add event pagination with show/hide logic and scroll behavior #1213

Closed Inamarie84 closed 1 month ago

Inamarie84 commented 1 month ago

✅ What does this PR do?

This PR implements client-side pagination for the event section on the News page, allowing users to reveal or hide additional event cards interactively.


✅ Description of Task to be completed


✅ How should this be manually tested?

  1. Navigate to the News page
  2. Scroll to the “Upcoming events” section
  3. Click the downward arrow to load more events
  4. Verify that 6 additional events appear smoothly and the page scrolls to them
  5. Click the upward arrow and confirm that the extra events are hidden and the page scrolls back to the top of the section
  6. Hover over the arrows to see transition effects

✅ Any background context you want to provide?

The pagination uses mock data for events since the CMS is not yet integrated.
This work is based on the Figma design and scoped specifically to the downward/upward arrow behavior in the News page, not the EventNavigation component, which is handled separately.

netlify[bot] commented 1 month ago

Deploy Preview for musikkforandrerliv failed.

Name Link
Latest commit 3242c1f5f3935c759181d04149d8eaceebd26d7b
Latest deploy log https://app.netlify.com/projects/musikkforandrerliv/deploys/6840520968720b0008b5ece2
Inamarie84 commented 1 month ago

Related to #1186

Niksubishi commented 1 month ago

Approved. Conflicts resolved. Merged.