Skip to content

Eileenpk/Interactive-details-form

Repository files navigation

Frontend Mentor - Interactive card details form

Table of contents

Overview

Here is an Interactive Card Details Form coding challenge project from Frontend Mentor. it uses Semantic HTML5 markup, CSS custom properties, Tailwind CSS, a mobile-first workflow, and React.js: The project involved creating an interactive form for entering credit card details. The form should have input fields for the cardholder's name, card number, expiration date, and security code. To begin, the project uses Semantic HTML5 markup to structure the content of the form in a logical and meaningful way. This includes using appropriate tags such as form, label, and input to create a clear hierarchy and make the form easy to understand and use. The project also uses CSS custom properties to define reusable styles that can be easily modified and updated. This allows for greater flexibility and maintainability of the form's design. The project employs a mobile-first workflow, meaning that the form is designed to be responsive and work well on mobile devices. This is achieved through the use of Tailwind CSS, a utility-first CSS framework that provides a set of pre-defined classes for styling HTML elements. Finally, the project utilizes React.js to add interactive functionality to the form. This includes the ability to show the input form details on the preview card, as well as the validation of the input fields to ensure that the form is filled out correctly. Overall, this Interactive Card Details Form coding challenge project combines the use of Semantic HTML5 markup, CSS custom properties, Tailwind CSS, a mobile-first workflow, and React.js to create a user-friendly and functional form for entering credit card details.

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 Expected behavior Update the details on the card as the user fills in the fields Validate the form fields when the form is submitted If there are no errors, display the completed state Reset the form when the user clicks "Continue" on the completed state

Screenshot

screen shot of full screen webpage screen shot of mobile webpage

Links

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Tailwind CSS
  • Mobile-first workflow
  • React.js

Author

About

This was a frontend Mentor challenge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published