X Games

X Games

Status: Active

Categories: API Integration, WordPress, GSAP

As a contractor with HDC, I joined their team on a second phase of the X Games WordPress site, adding new blocks, pages, and functionality, including the XGL (X Games League) pages and clubs content.

Leaderboard API Integration

The site was already pulling scoring and result data from an API, and I integrated new endpoints for team data and rankings. Team records were stored in WordPress as a Custom Post Type so editors could review or edit them. Team rankings powered an on-site leaderboard.

Because this data changes infrequently, storing it in a Custom Post Type also worked well as a simple cache. It was rewarding to see the API data come through during the live events.

Custom Mega Menu

WordPress mega menu plugins are often messy and confusing to implement, so we built our own using a Custom Post Type that is edited in the block editor. When a Mega Menu item appears in the main navigation, a custom navigation walker (the class WordPress uses to output menu markup) renders it on the front end. That kept menu management inside the familiar block editor.

GSAP Scroll Effects

Using GSAP, I built scroll effects, including a section that horizontally stacks carousel items as the user scrolls down the page.