Skip to content

streem/web-code-challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Streem Web Code Challenge

Welcome to Streem's Web Code challenge. This challenge will have you determining the dimensions of items in a grid dynamically so they are laid out nicely in their parent container. We have made a React application for you to start with so you can focus on the sizing and layout specifics.

Before you begin...

Please read through this README carefully. If you have any questions, please ask.

Challenge

We want to display n divs in a grid such that the grid reorganizes itself and resizes items into the best number of columns and rows. When working, it should look and act similar to this:

code_challenge_visual_ac

🔗 High quality MOV

Requirements

  • The grid can accommodate n items.
  • Each grid item must maintain a 16/9 aspect ratio.
  • The grid should reorganize and resize items into the best amount of columns and rows. Best is defined as the largest possible item is displayed and each item is the same size.
  • The only code you should modify is the getGridItemDimensions function in the file Result.tsx. This function must return the Dimensions for a grid item.
  • No new dependencies.

Available Scripts

In the project directory, you can run:

yarn start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

yarn test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

About

@streem web code challenge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •