This is a solution to the Blog Preview Card challenge on Frontend Mentor. This challenge helps practice and improve coding skills by building realistic projects.
Users should be able to:
- View hover and focus states for all interactive elements on the page
- View the page with a responsive layout on different devices (desktop and mobile)
- Solution URL: View My Solution on FrontMentor
- Live Site URL: Preview Card
- Semantic HTML5 to structure the content
- CSS3 for styling and layout
- Flexbox for element alignment
- Media queries for responsive card resizing (content inside the card remains unchanged)
- Display
block
andflex
for layout adjustments - Yellow and black color palette for a minimalist design
This project was a great opportunity to improve my HTML and CSS skills, especially in terms of applying responsive design principles. I used media queries
to adjust the card size based on the screen width, ensuring a consistent visual experience on both mobile and desktop devices without altering the content within the card.
@media only screen and (min-width: 375px) and (max-width: 800px) {
#content {
display: block;
margin-inline: auto;
width: 327px;
height: 501px;
background: white;
border: 1px solid black;
border-radius: 20px;
}
}
This code snippet shows how the card’s size is adjusted to fit within the specified screen width range, keeping the content layout inside the card intact.
I plan to continue exploring responsive design techniques, including adding animations to enhance interactivity. Additionally, I aim to improve my knowledge of CSS variables to streamline style organization and facilitate future customizations.
- Alura Blog - Provided helpful tips for web design and CSS best practices.
- Stack Overflow - Helped troubleshoot issues and find solutions during development.
- Google Gemini - Useful for understanding responsive design fundamentals.
- Dev Media Blog - Offered great insights into CSS techniques and HTML structuring.
- Frontend Mentor - @aclf12
- LinkedIn - Ana Ferreira
Thanks to Frontend Mentor for the opportunity to work on this project and to the resources that were essential for learning during the creation of this website.