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

Responsive component with mobile-first approach

anna 340

@annab6

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


This challenge was quite difficult for me. I haven´t managed to create a small "triangle" under the sharing menu in the desktop layout. Any ideas on how to add it? Any feedback on what I could improve is very welcome!

Community feedback

Yazdun 1,310

@Yazdun

Posted

Hi Anna and well done on the challenge, for issue you mentioned, you must use before css pseudo selector to add the triangle, something like :

 .card__share-desktop::before {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    background-color: var(--dark-grey-blue);
    position: absolute;
    bottom: -10px;
    right: 100px;
    transform: rotate(45deg);
  }

also use Prettier extension on your IDE to format your code.

✅ I opened a pull request to your repository which will fix the issue.

I hope this was helpful

Marked as helpful

1

anna 340

@annab6

Posted

@Yazdun Thanks a lot for your help! I´ve merged the changes that you had done and now I have a nice triangle! And yes, now my code looks "prettier", so I´ve added the extension to my VSCode - it´s very helpful:)

0
Yazdun 1,310

@Yazdun

Posted

@annab6 Glad I could help

0
darryncodes 6,430

@darryncodes

Posted

Hi Anna,

Pretty sure I used this as a guide for the triangle.

All the best!

Marked as helpful

1

anna 340

@annab6

Posted

@darryncodes A great guide, thanks!

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