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

Article Preview / JS, flexbox

Terezaβ€’ 605

@sirriah

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


The hardest part for me was a positioning of a "share menu". I tried to make it responsive, but I think I didn't do very well. I see, that on mobile view, the article box is smaller when the share menu is opened, but it seemed a little strange to me :D. Please leave me some feedback! πŸ‘‹πŸ‘©β€πŸ¦°

Community feedback

Mijail Hernandezβ€’ 950

@MishaHernandez

Posted

Hi Sirriah!

  • the .article-footer container is smaller than its child "menu-share", this is due to the margin allocated in .article-content and this finally forces you to manually calculate the size of "menu-share" in px (width: 327px; and height: 64px;) to cover the remaining space.

  • So I would recommend removing the margin from .article-content and placing in each of its children a padding that keeps the same values and can occupy more space, for example: .article-footer would have padding: 0 40px 31px 40px; and this would make it easier to assign a 100% width and height to the "menu-share".

I hope it was understood πŸ˜… Greetings and continue with the challenges πŸ˜ƒπŸ‘‹

1

Terezaβ€’ 605

@sirriah

Posted

@MishaHernandez Hi, it takes me some time, but I hope I got it :D. I didn't think about responsiveness for smaller screen than 375px. I wanted to make it nicer for screen between 375px - 1440px. I add new breakpoint and I dynamically calculate the "left" poperty. And if you look at mobile version on images in design folder, the height of whole article in "active state" is smaller (in figma I see 504px) than in "inactive state" (in figma 512px) - this is little bit strange. I kept the height same on both versions. :)

1
Mijail Hernandezβ€’ 950

@MishaHernandez

Posted

@sirriah You're right, I just checked it, I did this challenge a long time ago and I didn't see the difference πŸ˜…, however I would not strictly follow the design because it also seems strange to me. You have done a good job with the final design anyway. Keep it up! πŸ‘

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