davidwwu / dog-breed-masonry

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About

This is a quick demo which lazy-loads all images from the Dog API.

This app is bootstrapped using create-react-app with following packages installed:

TODO

There are some improvments I'd like to make if given more time.

  • Implement dynamic heights so the image ratio is closer to original as shown in example here.
    Note that the solution implemented in the example requires heavy overhead computing. If the image list is large (20k+, take the dog-api for example), the performance will drop significantly.
    One way to improve this is to set up a server that computes the image dimensions before serving them to client side.
  • Improve styling for mobile view: currently the responsive window size only supports widths down to 400px.

About


Languages

Language:JavaScript 80.9%Language:HTML 11.3%Language:CSS 7.8%