Design comparison
Solution retrospective
Content Structure: .container: A flex container that centers its content horizontally and vertically. .card: Represents a card containing blog information. .header: Contains an image related to the article. .main: Contains the main content of the card. .main__btn: A button with a "Learning" label. Headings (h2, h1, p) providing information about the article. .footer: Contains an image (presumably an avatar) and the author's name.
Styling for .container:
Uses flexbox to center content. Applies padding for mobile devices using a responsive mixin. Styling for .card:
Sets border, background color, padding, border-radius, and box shadow. Applies a transition effect for a smooth change on hover. On hover, changes the box shadow for a subtle interactive effect. Styling for .header:
Styles the image within the header with border-radius and margin. Styling for .main:
Sets margin for spacing. Styles the button with a specific font size, color, padding, and background color. Applies a hover effect to the button. Adjusts styles for smaller screens using a responsive mixin. Styling for .footer:
Uses flexbox to align items. Styles the author's image with a border-radius.
Community feedback
Please log in to post a comment
Log in with GitHubJoin 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