Skip to content

Instantly share code, notes, and snippets.

@littlepea
Last active May 24, 2019 03:09
Show Gist options
  • Save littlepea/bdae7b11cd1294cac809 to your computer and use it in GitHub Desktop.
Save littlepea/bdae7b11cd1294cac809 to your computer and use it in GitHub Desktop.
Front-End Test: Users List

Front-End Test: Users List

Background

Display a user list UI as below:

Data should be loaded via a request to https://randomuser.me/ API.

When any user list row is clicked it should expand to show more detail:

Tools

You can use any front-end framework of your choice (or Vanilla JS). But stick to modern tools like Vue, React, Angular, etc...

You should implement one requirement at a time. It doesn't matter how many requirements you implement in the limited period of time, what's more important is implement each requirement well.

Requirements

User List

  • Display the list of users from randomuser.me API with the following information
    • Avatar image
    • Last name
    • First name
    • Username
    • Phone
    • Location
  • Avatar should be rounded
  • Rows in the list are striped (alternating colors)

User Details

  • When user clicks on any one user list row it should expand and show the following additional information:
    • Firsn Name
    • Gender icon
    • Username
    • Registered date
    • Email
    • Location
    • Birthday
    • Phone
    • Cell
    • Bigger avatar image
  • When user clicks on an expanded row again it should collapse
  • When user clicks to another row the current expanded row should collapse

Part Two

In case you have extra time left here's Part Two of this test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment