This is a solution to the Blog preview card challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
Users should be able to:
- See hover and focus states for all interactive elements on the page
- View the optimal layout for the component depending on their device's screen size
- Solution URL: Project Solution
- Live Site URL: Blog Preview Page Website
- Semantic HTML5 markup
- CSS custom properties (CSS variables)
- Flexbox for layout
- Mobile-first workflow
- Figtree - Google Font
- VS Code - Code editor
- Gemini Code Assist - AI assistance
- Claude AI - Learning and understanding
This project helped me understand the fundamentals of HTML structure and CSS styling. Here are some key takeaways:
1. Semantic HTML Structure
<article class="card">
<div class="card__content">
<!-- Content goes here -->
</div>
</article>2. CSS Custom Properties for Maintainability
:root {
--yellow: hsl(47, 88%, 63%);
--grey-950: hsl(0, 0%, 7%);
}3. Flexbox for Centering
body {
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
}4. Creating Brutalist Design with Box Shadows
.card {
box-shadow: 8px 8px 0px var(--grey-950);
transition: box-shadow 0.3s ease-in-out;
}
.card:hover {
box-shadow: 16px 16px 0px var(--grey-950);
}This challenge particularly helped me understand:
- BEM naming convention for CSS classes
- Using Flexbox for positioning and alignment
- Creating smooth hover transitions
- Implementing responsive design with media queries
- The importance of semantic HTML for accessibility
In future projects, I want to focus on:
- Advanced CSS animations and transitions
- CSS Grid for complex layouts
- JavaScript for interactive components
- Accessibility best practices
- Performance optimization techniques
- Frontend Mentor - @noob-coder6
- GitHub - @noob-coder6
Special thanks to:
- Frontend Mentor for providing this challenge
- Gemini Code Assist for code refinement suggestions
- Claude AI for helping me understand new concepts and best practices
- The Frontend Mentor community for inspiration and feedback