Design comparison
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
- @MishaHernandezPosted almost 4 years ago
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;
andheight: 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 havepadding: 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@sirriahPosted almost 4 years ago@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@MishaHernandezPosted almost 4 years ago@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 GitHubJoin 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