Giter Site home page Giter Site logo

test-frontend's Introduction

Frontend

Context

We need to build a simple webpage following a design like the following screenshot, which features the "Masonry Layout". See the Figma link for the design.

image

Requirements

  1. It should load a list of picture URLs from a JSON API. Please use the JSON file below as a sample, and build a simple API to serve it.
  2. It should apply Masonry Layout. See the link for the definition and feature list.
  3. It should provide a search input, and allow the users to search images with the "name" attribute. The search input should work as a filter and automatically filters with the user input.

{% file src="../.gitbook/assets/data.json.zip" caption="Data Source JSON file" %}

or download the data.json directly from this repo.

Tech stack

  • Use React, and optionally React-router.
  • Use a state management tool. We often use Redux or MobX.
  • Use SASS or Less for CSS.
  • We are open to other 3rd-party tools but please limit the use - it's a test for you to demonstrate your skill after all.

Advanced requirements

Here are some further challenges for you to demonstrate your skills. You can safely skip them if you are not applying as a senior.

  • Make it responsive.
  • Feature "Lazy-loading".

test-frontend's People

Contributors

ecutdavid avatar flyingant avatar fraserxu avatar juhas avatar makara avatar z4rd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

test-frontend's Issues

Freelancers

Hello guys, are you open to work with freelancers?

Need some clarifications on UI design

  1. In the mock picture, the right icons of each cell under Region column are a bit confusing:
    I assume for the collapsed row the right icon should be + sign, for expanded row, the right icon should be - sign.
    Also on each District level, if it has township, the right label text should be <num> Township, am I right?
  2. For the Filter and search box on the top, what is the Filter dropdown list?
    I'm assuming these filter list are to represent all three Region level State, District, Township, right?
  3. Since there are no separate asset files for icons, can I just crop these icon directly from the mock picture? The image quality would be low, I want to make sure that's acceptable.

Thank you.

Question on test completion

Hello, I was just wondering about whether or not I should submit a PR once I have finished with the core requirements, while I continue to work on the bonus/advanced requirements, or if I should just do it once I have completed all things planned?

about the unit test

Hi,
Here is the preview of my working , yet it still got some problems ,and i am fixing it . the repo and i will finished in one day.
work

And my question is about the unit test , i am not sure about what kind of test it should be, can you explain in more detail ? thx~

Considering icons

Can I use third-party icon packs like font-awesome for icons?
Does those icons have actual functionality or just decorations
image

Initial Questions

  1. Can I use vanilla CSS instead of SASS?

  2. I wanted to ask you your advice in best practices when creating the collapsible row component. What are aspects of this component that I need to be careful with?

  3. When collapsing back to the state level row, does the row go back to its default state?
    See image below for full explanation of edge case scenario.

EdgeCase_RowCollapses

  1. What kind of testing framework would you prefer? This is the first time I have been asked for unit testing on React. I have read Jest is a common framework for unit testing on React.

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.