Skip to content

A simple and responsive blog preview card built with HTML and CSS. This project was created as part of a Frontend Mentor challenge to improve layout skills using Flexbox and custom styling. It features clean design, hover effects, and mobile-first responsiveness.

Notifications You must be signed in to change notification settings

mdismail13/blog-preview-card

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - Blog preview card solution

This is my solution to the Blog preview card challenge on Frontend Mentor. This challenge helped me improve my HTML and CSS skills by building a realistic, responsive card layout.

Table of contents

Overview

The challenge

Users should be able to:

  • See hover states for the blog title
  • View a responsive blog preview card with proper layout and spacing

Screenshot

Blog Preview Card Screenshot

Links

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • CSS Grid
  • Mobile-first workflow
  • Google Fonts (Figtree)

What I learned

While building this project, I practiced:

  • Using :root variables for consistent styling
  • Applying box-shadow and border-radius for card UI
  • Styling hover effects with transition
  • Using flexbox to align elements properly

Example CSS I’m proud of:

.card {
  display: flex;
  flex-direction: column;
  max-width: 24rem;
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: var(--card-radius);
  gap: 0.75rem;
  border: 0.0625rem solid;
  box-shadow: 0.5rem 0.5rem 0 black;
}

Continued development

I want to improve my skills in CSS animations and transitions to make components more interactive.
Also, I plan to learn more about accessibility to make my projects user-friendly for all users.

Useful resources

Author

Acknowledgments

I would like to thank Frontend Mentor for providing this challenge which helped me improve my frontend skills.
Also, thanks to the online communities and tutorials that guided me through learning CSS Grid and Flexbox.

About

A simple and responsive blog preview card built with HTML and CSS. This project was created as part of a Frontend Mentor challenge to improve layout skills using Flexbox and custom styling. It features clean design, hover effects, and mobile-first responsiveness.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published