Skip to content

jordanlewis9/interactivepricingcomponent

Repository files navigation

Frontend Mentor - Interactive pricing component solution

This is a solution to the Interactive pricing component challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Table of contents

Overview

The challenge

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

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Sass preprocessor
  • Flexbox
  • CSS Grid
  • Custom webpack

What I learned

I really focused on implementing Sass for this project, as well as creating a custom webpack. I have prior experience with Sass, but none with webpack. I learned how to create a custom webpack configuration, as well as the differences between dev and production environments.

The checkbox CSS "hack" was necessary to complete this challenge, and I was able to master it as well as the :before and :after CSS pseudo-elements.

Continued development

I failed to do this project with a mobile-first design, and I felt the pain of it later on. I need to emphasize the necessity of mobile-first design.

Useful resources

Author