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

Four Card Feature with Next.js

Jani-B 270

@Jani-B

Desktop design screenshot for the Four card feature section coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


What are you most proud of, and what would you do differently next time?

I created this project with Next.js and used the .map to go trough all Card data to get header, content and pictures for each card.

What challenges did you encounter, and how did you overcome them?

Next.js have some different rules than older React had. For example props seems not to be a thing in Next and it made my work with original plan more difficult. I did in the end not do it with props but add the Card.map directly to the card component.

Community feedback

Atatra 170

@Atatra

Posted

I think it was a clever idea to create a component for the Card and map through each CardInfo like you did. You still managed to replicate the desired layout so good job! (I would have struggled a lot I think haha)

Overall, nice solution, your codebase is well organized and easy to read too. :)

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