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 article preview using HTML, CSS, JS

Arihant Jainā€¢ 175

@jarihant701

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 comment or suggestion is appreciated.

Community feedback

David Payneā€¢ 1,205

@dpayne713

Posted

Hi Arihant -

Looks nice!

  • Iā€™m viewing on mobile. And when Iā€™m horizontal the share button (when clicked) is expanding to the entire container div height. Iā€™m also not seeing the pop up in horizontal mode.

  • the pop up in mobile is working and looks nice! It might be nice to have it toggle back off if you click the share button again.

  • Iā€™d encourage you to look into using a separate style sheet for your projects. As you can see even this small component can take a lot of code so it helps to keep things organized.

Hope this helps Keep it up!

David

3

Arihant Jainā€¢ 175

@jarihant701

Posted

Thank You for your comment, I guess that share button taking up the whole height problem is happening because that mobile active state is not optimized for screen width larger than 600pxšŸ˜…. I will edit this thing in my edits and also add the toggle for the share button.

0
P
ApplePieGiraffeā€¢ 30,545

@ApplePieGiraffe

Posted

Hi there, Arihant Jain! šŸ‘‹

Well done on this challenge! šŸ‘

A few things I'd like to suggest are,

  • Adding cursor: pointer to the social media popup button and the social media links in the popup.
  • Using fixed units things like the size of elements and the font-size of the text in the desktop layout so that things don't get too small right before the layout changes from desktop to mobile. šŸ˜‰

Keep coding (and happy coding, too)! šŸ˜

0

Arihant Jainā€¢ 175

@jarihant701

Posted

@ApplePieGiraffe Thank you for your suggestion I will keep these in mind but a question if I use a fixed font size won't it become small for bigger screen sizes too? Or that thing is fine?

1
P
ApplePieGiraffeā€¢ 30,545

@ApplePieGiraffe

Posted

@jarihant701

I think as long as you set the font-size of the text to something quite readable (like 14-16px or something), you don't have to worry about users on large screens not being able to read text on your site, since the size of the text usually shows up as the same as on smaller desktop screens and there's usually just extra space in different places on larger screens. You might just have to decrease the font-size very slightly for mobile devices. šŸ˜‰ Good luck and have fun! šŸ‘

Oh, and hey, if you found these comments helpful, an upvote would be appreciated. ;)

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