Not Found
Not Found
Request path contains unescaped characters
Request path contains unescaped characters
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 with form Validation

@Mus3b3bdo

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


I'm looking for easier way for form validation in react (more efficient)

Community feedback

codezeloss 570

@codezeloss

Posted

Hey Musab!! I think you tried to apply the same design without having a Figma design file!! Even your design isn't 100% the same, but it's a great work you've given very nice work there. But the interactivity on your solution doesn't exist or work!! Then User infos must display on cards after clicking confirm button...

NOTE: If you want to center your solution like the original design, add those css lines to your main container, the one on which you put cards & the user form. { height: 100vh; display: flex; justify-content: center; align-items: center; }

Good luck, wish u all the best!!!

Marked as helpful

1

@Mus3b3bdo

Posted

Dear @elosscode thanks for your helpful comment I didn't notice that I should Have a card to display user Info upon submit It could easily be added tho so thanks for bringing attention to it

1

@abhay8696

Posted

Hey musab, you've given very nice try up here. It seems you have very good skills in css. For validations, using java-script conditional statements would be a better approach, and also using them with use-state can be useful. Or for simpler approach you can also add 'required' in html element.

You can use use-state hooks for storing values in form inputs and display them on cards.

Since we need to maintain aspect ratio of card images , use px (instead of % and rem) for setting width and height. Change these values with different screen sizes.

Hope this helps. Thank You :)

Marked as helpful

1

@Mus3b3bdo

Posted

Hello @abhay8696 this was very helpful thank you so much for your contribution yes I could use required attribute in html but I wanted more consistent way yes I think it would be better to use px

1

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