Chanda-Abdul / Angular-Interactive-Card-Details-Form-Frontend-Mentor

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

Home Page:https://stalwart-twilight-d769cf.netlify.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Frontend Mentor - Interactive card details form solution

Design preview for the Interactive card details form coding challenge

This is a solution to the Interactive card details form 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:

  • Update the inputs on the form as the user fills in the fields and see the card details update in real-time
  • Validate the form fields when the form is submitted and 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
  • If there are no errors, display the completed state
  • Reset the form when the user clicks "Continue" on the completed state
  • View the optimal layout depending on their device's screen size
  • See hover, active, and focus states for interactive elements on the page

Screenshots

  • Mobile View @ 375px

  • Desktop View @ 1440px
    • Initial Screen with empty form

    • Form with Invalid Inputs and Error Messages

    • Form with Dynamic Card Logo (Visa, Amex, MasterCard, Discover, or Default)

    • Form with Valid Inputs

    • Form with Button Hover State

    • Completed Form Confirmation Screen

Links

My process

Built with

What I learned

πŸ”œ

Continued development

Soon

  • πŸ”œ Deploy
  • πŸ”œ add animations

Someday

  • Move functionality to a service
  • πŸ€·πŸ½β€β™€οΈ add date FormGroup
  • πŸ€·πŸ½β€β™€οΈ move confirmation screen functionality to ConfirmationComponent
  • πŸ€·πŸ½β€β™€οΈ formatting for input Regex Form Validators

Useful resources

Author

Acknowledgments





#Angular #Template-Driven-Form #JavaScript #TypeScript #Validators #RegEx

About

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

https://stalwart-twilight-d769cf.netlify.app/


Languages

Language:TypeScript 36.5%Language:HTML 30.5%Language:SCSS 27.9%Language:JavaScript 5.1%