Git Product home page Git Product logo

medopad-test's Introduction

medopad-test

Technical Challenge for Medopad interview.

Stack and Tools

  • HTML5
  • CSS3
  • JavaScript
  • React
  • Webpack
  • Styled Components
  • Yarn

Goal

Implement the image below from the following JSON:

[
    {
        "id": 1,
        "name": "Jason Bourne",
        "role": "Registered user",
        "place": "New York",
        "avatar_url": "https://api.adorable.io/avatars/250/jason-bourne"
    },
    {
        "id": 2,
        "name": "Michael De Santa",
        "role": "Moderator",
        "place": "Los Santos",
        "avatar_url": "https://api.adorable.io/avatars/250/michael"
    },
    {
        "id": 3,
        "name": "Peter Parker",
        "role": "Moderator",
        "place": "New York",
        "avatar_url": "https://api.adorable.io/avatars/250/peter-parker"
    },
    {
        "id": 4,
        "name": "Harry Potter",
        "role": "Admin",
        "place": "Hogwarts",
        "avatar_url": "https://api.adorable.io/avatars/250/harry"
    },
    {
        "id": 5,
        "name": "Boromir",
        "role": "Registered user",
        "place": "Gondor",
        "avatar_url": "https://api.adorable.io/avatars/250/boromir"
    },
    {
        "id": 6,
        "name": "Bruce Wayne",
        "role": "Sponsor",
        "place": "Gotham City",
        "avatar_url": "https://api.adorable.io/avatars/250/bruce-wayne"
    }
]

Image

Image

My Result

Result
To view the project, download the repo and run yarn install && yarn start

Challenges and Reasoning

  • I chose styled components for styling because I wanted to practice the techniques (I used Sass stylesheet last time)
  • Setting up Webpack took a while but I have a better understanding of configs now
  • Editted the JSON file to generate forum post content, user avatar is used as a placeholder for thumbnail of the post.

Future Work

  • Write snapshot tests for the components
  • Try using CSS Modules for styling
  • Store variables likes colors and font sizes for reuse
  • Match fonts and thumbnails with image

medopad-test's People

Contributors

claracmy avatar

Stargazers

Roman avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.