Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 9 months ago

Blog Preview Card

Manisha Mardi•50
@mardimanisha
A solution to the Blog preview card challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


What are you most proud of, and what would you do differently next time?

What I'm Most Proud Of: I'm proud of how well the hover effect enhances the user experience by adding a subtle scaling effect to the card. It makes the interaction feel more dynamic and engaging. Additionally, I ensured a responsive design that adapts smoothly across different screen sizes, maintaining a clean and structured layout.

What I Would Do Differently Next Time: Next time, I would explore adding dark mode support to improve accessibility and user experience. I would also experiment with CSS animations to make the card interactions even more engaging, such as smooth transitions when hovering over elements.

What challenges did you encounter, and how did you overcome them?
  1. Ensuring Pixel-Perfect Design One challenge was aligning the layout to match the given design specifications precisely. Minor differences in spacing and font sizes initially made the card look slightly off. Solution: I used CSS Flexbox and Grid to structure the layout properly and fine-tuned spacing using margin, padding, and line-height to ensure a perfect match.

  2. Implementing the Hover Effect Smoothly Making the card scale on hover without affecting the surrounding elements was tricky. The scaling effect initially caused layout shifts. Solution: I applied CSS transform: scale(1.05) along with transition for smooth animation while keeping overflow: hidden to prevent unintended shifts.

  3. Making the Design Fully Responsive The challenge was ensuring the layout adapted well across different screen sizes while maintaining readability and aesthetics. Solution: I followed a mobile-first approach, used relative units (rem, %) instead of fixed px values, and leveraged media queries to adjust the layout for desktops and smaller screens.

These challenges helped me refine my approach to responsive design and smooth UI interactions! 🚀

What specific areas of your project would you like help with?

Currently, the project is well-structured, but I would appreciate feedback or help in the following areas:

Optimizing Hover Effects – Are there better ways to enhance the hover interactions without affecting layout stability?

Performance Improvements – Any suggestions on improving performance, especially with transitions and responsiveness?

Best Practices for Accessibility – Would love insights on making the card more accessible while maintaining a visually appealing design.

Code Optimization – Are there any unnecessary styles or improvements that could make the CSS cleaner and more efficient?

Any feedback on these aspects would be really valuable! 🚀

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Manisha Mardi's solution.

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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License