Article preview component

Please log in to post a comment
Log in with GitHubCommunity feedback
- @NKoshmak
Good job! But I have a couple suggestions on how you can improve your code, which you might find useful: 1. Some class names, such as .image, .container, .info, and .share, are too generic. More descriptive class names, like .main-image, .content-container, .info-wrapper, or .share-button, would make the code self-explanatory. 2. Such deep nesting 'main .container .info .name span' can make CSS harder to maintain and is prone to breakage when restructuring HTML. Instead, add meaningful class names to avoid relying on structure. It would be useful to get familiar with the specificity of selectors and how it impacts code.
Marked as helpful
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