Skip to content

A simple SPA front-end task for prospective drivvn software developers

License

Notifications You must be signed in to change notification settings

drivvn/frontend-task

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Frontend Task

Introduction

This is a simple task to create a suitable single page application front-end incorporating:

The solution must use HTML, CSS and JavaScript. You can use whatever framework or dependencies you require - e.g. React, Vue.js, Bootstrap, Tailwind CSS. You could even use no external dependencies - it's up to you.

Minimum Requirements

TIP: Read the documentation for the Deck of Cards API carefully

  • Initialise a shuffled single deck of cards
  • Provide a button that will 'draw' a card from that deck
  • Display an image of the newly drawn card, with an image of the previous card to its left (if there is no previous card, display a placeholder)
  • If the value of the newly drawn card matches the previous one, display the message SNAP VALUE!
  • If the suit of the newly drawn card matches the previous one, display the message SNAP SUIT!
  • If neither the value nor suit match, display no message
  • Once all 52 cards have been drawn, remove the button and instead display the total number of value matches and the total number of suit matches
  • A suite of suitable tests should be created for these requirements

UI Wireframes

Frontend task UI

Optional Requirements

  • A counter, displaying the current card number (or how many cards are left) - e.g. Card 12 of 52 or 29 cards remaining
  • The probability that the next card drawn will either be a value or suit match (this requires keeping track of what cards have already been drawn)
  • Some animation and/or sound effects

Submission

Here's what you'll need to send us:

  • A link to a public GitHub repo that you have created, containing the code
  • It should contain a suite of tests (using whichever test framework you prefer)
  • It should also contain a README.md file explaining how to run the app and its tests
  • You may also send us a link to a location hosting your code (for example, Netlify)

The task should take around 2-3 hours.

About

A simple SPA front-end task for prospective drivvn software developers

Topics

Resources

License

Stars

Watchers

Forks