GithubHelp home page GithubHelp logo

example-tech-test's Introduction

✨ Live Pairing Tech Test ✨

Intro 📣

  • Test is 50 Min's Long
  • You don't need to finish everything
  • Work how you normally would
    • Use google/documentation
    • Ask questions

We know you are good 😉, relax and have fun!!!, we are here to help! 🎉

Goal 🏁

  • Style as per the spec below the list of cards (Block 1 - 25m).
  • Implement pagination based off the results from an API (Block 2 - 25m).

We will be looking out for:

  • Clean CSS styles
  • An understanding of state and data fetching

Where to Start 🌠

Get the dev environment up and running!

yarn install --frozen-lockfile
yarn dev

Might also be a good idea to start watching the tests!

yarn test

Block 1 (Styling) - 25m

Please use styled-components and CSS grid

Design 🎨

Card

Example of Card

  • Card:
    • All padding/margin seen is 10px
    • Border Radius is 10px
    • Box shadow 0px 0px 15px -2px #e0e0e0
  • Image:
    • Height is 200px
    • Full width.
  • Title
    • font-family sans-serif
    • font-size 1.3rem
    • font-weight bold
  • Description
    • font-family serif
    • font-size 1.1rem
  • Price
    • font-family fantasy
    • font-size 1rem
    • underline color is rebeccapurple

Responsive Layout / Grid

  • Achieve a responsive layout with up to 4 cards showing at 1200px width.
  • Each card should get no smaller than 260px and no bigger than 600px.
  • Spacing is 10px

Find below an example of the resulting grids based on different screen sizes.

Example of 1 card layout Example of 2 card layout Example of 3 card layout Example of 4 card layout

Pagination

Pagination with < & > added and styled to buttons.

Basic Pagination

Block 2 (React) - 25m

Functionality 🤖

  • Fetch all results from the API using getServerSideProps
  • The API always returns 25 results you don't need to do multiple requests, the paginations needs to be done in-memory
  • Render results with 12 per page
  • Pagination should update displayed results

example-tech-test's People

Contributors

liammyles avatar lordoffreaks avatar

Watchers

 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.