julienemo / thp_next_39

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Project: The Hyper Progame 2028

Demo here

This is a single-page-application made from vanilla JavaScript


Page Behaviour

  1. On list view by any criteria, page always displays release of next 365 days for a total of no more than 27 entries. Nine will be shown initially, more to add by the button "see more"; which slightly pushes new content up to window.
  2. Exception goes to the two side buttons, that erases current query with preset queries.
  3. When searching, separate keywords by space. All games containing any of the keyword will be returned.
  4. On list view, there is a filter on platform by dropdown list. Only 7 of the largest platforms (in terms of numbers of game hosted at any page loading moment) will be provided in the list. If the current list view is already by platform (ex, click on a platform of a game), changing the filter will change the platform. If the current view has criteria other than platform, changing filter will add chosen platform to criteria.
  5. On detail view, no more than 4 screenshots, 4 youtube videos and 4 similar games will be shown. The similar games are not chosen by particular order.
  6. On detailed view and list view, hover on any card, game info will display. Click on any card (top part of either image or hover), page will redirect to detailed view of selected game

Animation

List view

Intersection observer on card

Hover on card, game info over photo tuto here

"See more" btn fills page with new elements and pushes them up. CF scroll, scrollTo(), scrollBy(), scrollIntoView. To test more effects

Detail view

Intersection observer on info sections (only the ones on lower page, from purchase)

Smooth scrolling to top when clicking on a similar game

Always

Side bar button glowing with CSS.

Questions

  1. any tricks chaining queries ?
  2. any way to make p and all hs proportionally larger without setting one by one ?
  3. Is it possible to do a scrollBy() with smooth behaviour ?
  4. Is there any way to change url without changing window location ?

About


Languages

Language:JavaScript 75.1%Language:CSS 21.1%Language:HTML 3.8%