Responsive article preview with functional share button

Solution retrospective
I am most proud of getting the share button positioned properly. I don't usually do sort of abstract positioning like that, so I started out with no idea of how to do so, or how to display it so differently when the page was resized, but it was much easier than I imagined it would be. I just needed to use relative & absolute positioning, & was able to move it right above the share button.
What challenges did you encounter, and how did you overcome them?I wasn't sure how to change the layout when the screen was resized for the share block, but I asked chat gpt (just so I could quickly get the bits of info that I'm missing, I try not to rely on it too much) & I learned about the 'resize' event, & my problem was solved in no time.
What specific areas of your project would you like help with?As usual, anything you think I could improve on, be more efficient, etc. Any feedback is helpful & welcome! Thanks :)
Please log in to post a comment
Log in with GitHubCommunity feedback
- @Blackpachamame
Hey your solution is amazing! 🤩
📌 Some accessibility and semantics recommendations for your HTML
- To improve the semantics of your HTML, you can change your
<div class="container">
to a<main class="container">
- Use
min-height
andmax-width
, this will help the content stretch or shrink if you need to. Unlikeheight
andwidth
which can cause your content to be cut off on certain screens. For example, usemin-height: 100vh
instead ofheight: 100vh
- Try to avoid using
id
to style your elements, it is best to do it through classes
Marked as helpful - To improve the semantics of your HTML, you can change your
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