Thanks for checking out this front-end coding challenge.
Your challenge is to build out this interactive pricing component and get it looking as close to the design as possible.
Use React components to solve this challenge. Apart from that, chose any tools you like to help you complete the challenge.
Your users should be able to:
- View the optimal layout for the app depending on their device's screen size
- See hover states for all interactive elements on the page
- Use the slider and toggle to see prices for different page view numbers (details provided below)
Here are the different page view ranges and the corresponding monthly price totals:
- 10K pageviews / $8 per month
- 50K pageviews / $12 per month
- 100K pageviews / $16 per month
- 500k pageviews / $24 per month
- 1M pageviews / $36 per month
If the visitor switches the toggle to yearly billing, a 25% discount should be applied to all prices.
Your task is to build out the project to the designs inside the /design
folder. You will find both a mobile and a desktop version of the design.
The designs are in JPG static format. Using JPGs will mean that you'll need to use your best judgment for styles such as font-size
, padding
and margin
.
You will find all the required assets in the /images
folder. The assets are already optimized.
There is a style-guide.md
file containing the information you'll need, such as color palette and fonts.
You are free to chose how you want to style the code with CSS or with CSS-in-JavaScript library (e.g. styled-components).
Have fun building! ๐