Responsive Article Preview Component using HTML, SCSS, and JavaScript

Solution retrospective
I'm most proud of how I implemented a contextual share button that behaves differently on desktop and mobile screens. It was rewarding to create a clean, responsive layout that adapts well across devices.
If I were to approach the project again, I would improve the share tooltip by adding smooth animations for opening and closing transitions.
What challenges did you encounter, and how did you overcome them?Ensuring font sizes and layout elements remained fluid. I used clamp() and flexible layout units to enhance responsiveness without relying heavily on multiple breakpoints.
What specific areas of your project would you like help with?I’d appreciate guidance on handling component state and interactivity in vanilla JavaScript, particularly for adapting elements like the share button across different screen sizes in a scalable, accessible, and maintainable way, without duplicating code.
Please log in to post a comment
Log in with GitHubCommunity feedback
- P@kravamax
Good job. I hope you can find a solution for the toast component on mobile. I would recommend you not to nest CSS selectors more than two. Good luck!
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