Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Cannot read properties of null (reading 'code')
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 Vite/SCSS

#sass/scss#vite
matryosha 190

@matryosha

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


  • Not sure how do I group and even do I need to group input elements for month and year. Fieldset was added as ad hoc.
  • Is using scale for the preview card is really the right choice to make cards responsive?

There are definitely more question about layout in general but it took too many days to remember them all. Even though there are videos of me doing the challenge I definitely should take notes along the way.

Community feedback

@waltuh12345

Posted

how did you add spaces in the card number input? mine sucks

0

matryosha 190

@matryosha

Posted

@waltuh12345 Here.

Using beforeinput event so that I can manually append value to card input.

The logic is to append a space when there is already 4/8/12 character in the input.

0

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