Skip to content

nicrocs/front-end-candidate-lightbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Lonely Planet Front End Code Test

Welcome to the Lonely Planet coding test for front end developers wishing to join our team. All you need to do is fork this repository, make your changes, and then submit a pull request which we will then review.

Build a lightbox

We want to see your front-end skills and how you approach a problem with a specific set of requirements. It has been started for you, but implementation details are up to you.

Technical Requirements

The Lightbox should support the following:

  • Be able to create a lightbox instance by calling new Lightbox().
  • Open and close a lightbox instance with the open() and close() methods.
  • Common ways to close the lightbox (close button and ESC key).
  • Fetching remote content.
  • Rendering the content in the page.
  • Any link with the js-lightbox-opener class should open the href in a new lightbox instance.
  • When the lightbox is open, the page behind it should not scroll.

Optional

  • CSS animations/transitions for opening effects.
  • Write in ES6 and transpile to ES5.
  • Turn your lightbox into a jQuery plugin.
  • Use jshint/jslint to analyze your code.
  • Automate your workflow using Grunt or Gulp.
  • Use SASS and a CSS autoprefixer.
  • Add unit tests.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published