oksas / fcc-leaderboard

Small React app that displays top Free Code Camp user data.

Home Page:http://top-dawgs.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Free Code Camp Leaderboard

A small React app that fetches data on Free Code Camp's top users, from an external API, and displays them to the user in a custom interface. The list can be sorted either by recent points or all-time points.

Check it out

Currently live at http://top-dawgs.herokuapp.com/.

โš› React Component Breakdown

Leaderboard Container

Fetches data and holds application state. Displays <LoadingSpinner> if data is not yet loaded, and <Leaderboard> once data has been loaded.

LoadingSpinner

Displays a loading spinner animation (๐ŸŽ‰ surprise! ๐ŸŽ‰).

Leaderboard

Displays list title, <LeaderboardTop>, and <LeaderboardList>.

LeaderboardTop

Displays 4 <LeaderboardCell> elements, passing in the cell title and style.

LeaderboardCell

Receives child props to display contents of the cell, and also receives style prop that is used for the react-css-modules styleName prop, so that a single <LeaderboardCell> component can be reused with variable styles specified by a parent component.

LeaderboardList

Maps over items prop to display a series of <LeaderboardItem>s.

LeaderboardItem

Represents a single "row" in the actual list of data. Displays 4 <LeaderboardCell> elements, passing in the appropriate user data for each cell.

About

Small React app that displays top Free Code Camp user data.

http://top-dawgs.herokuapp.com/


Languages

Language:JavaScript 73.8%Language:CSS 20.3%Language:HTML 5.9%