[LandingPage] Make the rewards pull from the Utopian API; fallback to current data.

Words
235
Reading
2 min
Listen
Play
9y

Make the rewards pull from the Utopian API; fallback to current data.

This update contains the necessary changes to make the displayed rewards on the landing page reflect the current rewards from Utopian as read through the stats API. When the API is unreachable for any reason, the stats will fallback to the currently set values. This should show users a very up-to-date information even in the event of service disruption.

On top of the addition of the AJAX call for the stats, this update also contains some minor changes that remove the Idea Lightbulb image in exchange for font-awesome icons. This should improve rendering and load times for users on mobile.

A few screenshots are attached below, but you can view the current code on the Github pages deploy at anytime.

PS: This repo is for a flat page design that can be hosted with minimal overhead. For the same theme/site in a Ruby/Rails flavor, you can check out this contribution.

Screenshots

Screen Shot 2017-11-03 at 1.33.58 PM.png


Screen Shot 2017-11-03 at 1.33.41 PM.png
Screen Shot 2017-11-03 at 1.33.36 PM.png


Github Repositories

What is Github Pages?

GitHub Pages is a static site hosting service. GitHub Pages is designed to host your personal, organization, or project pages directly from a GitHub repository. ... You can create and publish GitHub Pages online using the Jekyll Theme Chooser. If you prefer to work locally, you can use GitHub Desktop or the command line.
Source


Open Source Contribution posted via Utopian.io

[LandingPage] Make the rewards pull from the Utopian API; fallback ... | Ecency