BlogCard layout and image optimization#52
BlogCard layout and image optimization#52Adnaan-786 wants to merge 1 commit intoStabilityNexus:mainfrom
Conversation
WalkthroughThis PR adds dark mode styling to the blog card's title element, extending the className with dark mode text colors, hover state gradients, and color transitions. No functional behavior changes—purely visual styling enhancements. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes
Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🔇 Additional comments (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Updated the
BlogCardcomponent to use the Next.jsfillprop strategy instead of hardcoded dimensions. This fixes layout misalignment issues where cards had varying heights based on image aspect ratios.Changes Made
divwithaspect-videoto ensure all blog cards maintain a uniform 16:9 ratio, preventing grid breakage.width/heightwithfilland added thesizesprop to optimize LCP (Largest Contentful Paint) and responsive loading.h-autotoobject-coverto ensure images fill the card area without distortion or empty space.Type of Change
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.