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

in #utopian-io7 years ago (edited)

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

Sort:  

Hey @netuoso I am @utopian-io. I have just super-voted you at 64% Power!

Suggestions https://utopian.io/rules

-Your contribution is less informative than others in this category.
-Utopian has detected 2 bot votes. I am the only bot you should love!!

Achievements

-I am a bot...I love developers... <3
-Votes on this contribution are going well. Nice!
-You are having more votes than average for this category. Nice!
-You have a good amount of votes on your contributions. Good job!
Up-vote this comment to grow my power and help Open Source contributions like this one.

Thank you for the contribution sir . It has been approved.

You can contact us on Discord.
[utopian-moderator]

Thank you so much @netuoso. Amazing work!

Hey @netuoso! Thank you for your participation! Would still be great to talk to you on discord or whatever but you don't seem to be too chatty. :P But that's ok. I also commented on your PR. Would love to merge something from you but your PR is a liiiiittle bit messy. ;)

You are always welcome to message me on discord. My name is the same everywhere. I looked for you and didn't see it, but didnt look very hard.

I don't check SteemIt comments too often. I wish I could turn on pushes for particular people or for messages with certain tags or keywords.

I'll check the PR and maybe make the changes if you asked for some.