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

Preview Component Master Using CSS Grid and flexbox

@alexSiqueiraLp

Desktop design screenshot for the Article preview component coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


Any Feedback Is Welcome

Community feedback

@ayoam

Posted

Well done! in addition to @Remus432 feedback , the share preview is missing the triangle , you can create it by making the preview container relative and add ::after to it like this:

.preview-conatiner{

...

position :relative

}

.preview-conatiner::after {

  content: "";

  position: absolute;

  left: 50%;

  transform: translate(-50%, 0);

  width: 0;

  height: 0;

  border-left: 12px solid transparent;

  border-right: 12px solid transparent;

  border-top: 13px solid #48556a;

}

you can see the solution on my profile to understand it better.

hope this feedback helps.

Marked as helpful

2
P

@Miculino

Posted

Congrats on completing the challenge, @alexSiqueiraLp!

It looks pretty good overall. I have a few suggestions to offer after looking at your final solution:

  • The font weights for your text are different compared to those in the design. Yours are too bulky

  • There is no box-shadow on your article

  • The share button doesn't toggle as expected. You can only open the share menu but not close it

  • On mobile resolution, the button disappears after the menu is opened

After you make these tweaks, your solution should look even better.

Keep up the good work!

Marked as helpful

1

@alexSiqueiraLp

Posted

Thank you so much for the tips!!! I've already added them.

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