Code Monkey home page Code Monkey logo

code-test's Introduction

Marvel code test

The task is to create a simple image zoom app with React.

It should take around 2-3 hours so please don't spend excessive amounts of time on it.

This prototype shows how the app might work.

Don't worry about styling, we're more interested in correct functionality and the quality of the code.

You can reference our GraphQL documentation here

You can get up and running using our developer key here once you've logged in with the user you have been given for the test. You are welcome to use a GraphQL library of your choice.

Specification

  • it should use the Marvel GraphQL to retrieve the project named "Code Test" and its images. We will provide you with an account and login containing the project and its images. You can retrieve a users projects using the following GraphQL query in our documentation
  • it should centre each individual image in the viewport
  • it should initially render the image at the zoom level that fits the image, by width, to the viewport, or 100% of the image if the whole image width fits
  • it should allow zooming in and out in 5% increments of the image
  • it should zoom in to a maximum of 100% of the image
  • it should zoom out to a minimum of 50% of the image
  • it should allow selection of any of the 3 sample images provided

Sample images

https://marvelapp.com/static/assets/images/onboarding/iphone6/Onboarding-invite.png https://marvelapp.com/static/assets/images/onboarding/web/Main-page.png https://marvelapp.com/static/assets/images/onboarding/ipad/Onboarding-location.png

Implementation

The only stipulation is that you build the app in React (or a compatible library if you've been using, say, preact or inferno). Beyond that, you are free to use any library (except anything that already implements an image zoom component!).

You can write tests for the app but it's not a requirement.

To submit your solution either send us a link to a code repo or send us a zip file. Please provide simple instructions on how to run your app.

code-test's People

Contributors

mallison avatar moretti avatar oh-moore avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.