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 component

@catherineisonline

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


Hello, Frontend Mentor community! This is my solution to the Article preview component.

I have read all the feedback on this project and improved my code. Due to the fact that I published this project very long ago, I am no longer updating it and changing its status to Public Archive on my Github.

You are free to download or use the code for reference in your projects, but I no longer update it or accept any feedback.

Thank you

Community feedback

vishwa3 250

@vishwa3

Posted

Loved your solution - I was facing challenge to get the mobile view correct especially for the share section which sits at the bottom for mobile view - referred to your solution for the same - also liked how you have added click EventListener on the entire document to close the share modal when clicked anywhere on the screen

0

Olabisi 70

@olabisi09

Posted

Great job! You've inspired me to take on more challenging projects here.

0

@wahyufaturrizky

Posted

Great work @catherineisonline,

Maybe some advice for increasing your accessibility web by reading this article https://medium.com/swlh/all-we-need-to-know-about-web-accessibility-8d0957208f

don't forget to hit button "remark helpful" cheers :)

0

Rafael 460

@rafaelvieiracosta

Posted

Good job! ✨

The way you centered it works for screens with 1440px but when you put it on a bigger screen it ends up breaking, and your article ends up expanding too much. If you want to test, one way to solve these problems would be the following:

  • To ensure perfect alignment on all screens, we can use the display flex, so just remove ALL the margin from your .article-container and add the following code to your main tag:
main{
    display: flex;
    justify-items: center;
    align-items: center;
    min-height: 100vh;
}
  • And to prevent the .article-container from expanding, just put a max-width on it:
.article-container{
    max-width:720px;
}

If you only have a 1440px screen, you can test other sizes using your browser's DevTools

0

imad 3,310

@imadbg01

Posted

hey Catherine , I take a look to your code is very clean and easy to understood, however you may want to take look at CSS max() function for the width property, it's really helpful and you may not need to use media query at all in small component. have a good day and happy coding :)

0

Danteie 300

@Danteie

Posted

wow I like your code and solutions. I learn so much from you.

0

@jgengo-alt

Posted

It seems you just edited it, because I got to see "test" everywhere in the page and the layout is broken :'(

0

Account Deleted

@catherineisonline you are fast!

as usual, you use pixelperfect marvelously! you did an awesome job.

my only feedback would be probably to change your mobile layout around 1150px instead of 1030px, just to make it look more appealing to the eye. Also, using width: 50% on your article make it huge for big screen :D

0

@catherineisonline

Posted

@jgengo Thanks for the feedback. Making it responsive is always annoying for me! :D

0

Account Deleted

@catherineisonline ahah :) I can imagine! I find a nice trick that work for example for my latest deployment where I'm using something like this on the line 44

https://github.com/jgengo-alt/jgengo-alt.github.io/blob/main/four-card-feature-section/css/style.css#L44

Marked as helpful

1

@catherineisonline

Posted

@jgengo I was thinking about this kind of approach, never really dived deeper into this. Definitely would like to learn more now! Thank you!

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