Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Interactive Card Details Form with Identifyting Card Types

@IamArshadAli

Desktop design screenshot for the Interactive card details form coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


🙋‍♂️ Hello, Everyone,

Here is my solution for the Interactive Card Details Form.

  • Scored 99% on Google Pagespeed Insights! 🤩
  • Built with ReactJS | Designed with TailwindCSS ⚙️
  • Implemented Regular Expressions to validate and format the inputs. ⌨️
  • Implemented Luhn's Algorithm to validate a card number. 💳
  • Tried a combination of TailwindCSS & BEM to make the structure consistent and scalable. 📈
  • Learned a way to add a gradient to the border: 💯
  • Minified the CSS files to improve site performance 🚀

❗But I have some constraints regarding the design:

  • The gradient border doesn't accept the border-radius property.
  • Custom background configuration in tailwind.config.js doesn't work in production.

Your feedback is appreciated if you know the answer and/or find any other constraints. 🤝 Also, I'll be happy to hear any other Feedback or Advice on improving the code. 🤓

Code Together | Learn Together | Grow Together

Community feedback

Please log in to post a comment

Log in with GitHub
Discord logo

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord