/interactive-card-details-form-main

Solution to a front end mentor problem (interactive-card-details-form) using HTML, CSS and Javascript

Primary LanguageJavaScript

Frontend Mentor - Interactive card details form solution

This is a solution to the Interactive card details form challenge on Frontend Mentor.

Table of contents

Overview

The challenge

Users should be able to:

  • Fill in the form and see the card details update in real-time
  • Receive error messages when the form is submitted if:
    • Any input field is empty
    • The card number, expiry date, or CVC fields are in the wrong format
  • View the optimal layout depending on their device's screen size
  • See hover, active, and focus states for interactive elements on the page

Screenshot

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • CSS Grid
  • JavaScript

What I learned

It was a great project. It acted as a source of revision of the concepts that I had learnt in JavaScript a long time ago. It was a lengthy project (for me), took almost a week. But yeah, at the end, it was worth it!!

Useful resources

Author