Skip to content

fix: #154 resolve blog page images not displaying #168

Open
Mrgig7 wants to merge 1 commit intololpanda2004:mainfrom
Mrgig7:fix/blog-images-not-displaying
Open

fix: #154 resolve blog page images not displaying #168
Mrgig7 wants to merge 1 commit intololpanda2004:mainfrom
Mrgig7:fix/blog-images-not-displaying

Conversation

@Mrgig7
Copy link

@Mrgig7 Mrgig7 commented Sep 18, 2025

Bug Fix: Blog Page Images Not Displaying

Problem

  • Blog page thumbnails/cover images were not rendering
  • Broken image icons appeared instead of expected images
  • Missing placeholder.svg file causing 404 errors
  • Inconsistent image handling across components

Root Cause

  • Blog components referenced non-existent /placeholder.svg file
  • No fallback mechanism for failed image loads
  • Placeholder URLs with query parameters not handled properly

Solution

  • Created professional placeholder.svg with clean design
  • Updated all blog post images to use existing assets (hero-image.png, team-image.png)
  • Added robust error handling with onError fallbacks
  • Fixed image sources across all components (blog, about, testimonials)
  • Implemented graceful degradation for missing images

Files Changed

  • rontend/public/placeholder.svg (new)
  • rontend/src/app/blog/page.tsx (image sources + error handling)
  • rontend/src/components/blog.tsx (image sources + error handling)
  • rontend/src/components/about.tsx (image source)
  • rontend/src/components/testimonials.tsx (image sources + error handling)
  • rontend/src/app/about/page.tsx (image sources + error handling)

Impact

  • Professional blog appearance with proper thumbnails
  • Improved user engagement through visual appeal
  • Robust error handling prevents future broken images
  • Consistent image handling across entire application

Testing

  • All images load correctly
  • Fallback mechanism works for missing images
  • No linting errors
  • Cross-component consistency verified

Fixes: Blog page image display issue
Type: bug fix
Priority: high

 Bug Fix: Blog Page Images Not Displaying

## Problem
- Blog page thumbnails/cover images were not rendering
- Broken image icons appeared instead of expected images
- Missing placeholder.svg file causing 404 errors
- Inconsistent image handling across components

## Root Cause
- Blog components referenced non-existent /placeholder.svg file
- No fallback mechanism for failed image loads
- Placeholder URLs with query parameters not handled properly

## Solution
-  Created professional placeholder.svg with clean design
-  Updated all blog post images to use existing assets (hero-image.png, team-image.png)
-  Added robust error handling with onError fallbacks
-  Fixed image sources across all components (blog, about, testimonials)
-  Implemented graceful degradation for missing images

## Files Changed
- rontend/public/placeholder.svg (new)
- rontend/src/app/blog/page.tsx (image sources + error handling)
- rontend/src/components/blog.tsx (image sources + error handling)
- rontend/src/components/about.tsx (image source)
- rontend/src/components/testimonials.tsx (image sources + error handling)
- rontend/src/app/about/page.tsx (image sources + error handling)

## Impact
-  Professional blog appearance with proper thumbnails
-  Improved user engagement through visual appeal
-  Robust error handling prevents future broken images
-  Consistent image handling across entire application

## Testing
-  All images load correctly
-  Fallback mechanism works for missing images
-  No linting errors
-  Cross-component consistency verified

Fixes: Blog page image display issue
Type: bug fix
Priority: high
@vercel
Copy link

vercel bot commented Sep 18, 2025

@Mrgig7 is attempting to deploy a commit to the LolPanda2004's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link

Thanks for creating a PR for your Issue! ☺️

We'll review it as soon as possible.
In the meantime, please double-check the file changes and ensure that all commits are accurate.

If there are any unresolved review comments, feel free to resolve them. 🙌🏼

@vercel
Copy link

vercel bot commented Sep 19, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
amour-editorial-website Error Error Sep 19, 2025 4:06pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant