Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Blog Thumbnails and Author Images Dynamic in BlogCard Component #11

Open
suyashbhawsar opened this issue Sep 18, 2024 · 0 comments
Assignees
Labels
backend Improvements or additions to backend bug Something isn't working

Comments

@suyashbhawsar
Copy link
Member

File:
devops-dynamics-website/src/components/BlogCard.tsx

Issue Description:
Currently, the BlogCard component on the homepage has hardcoded images for the blog thumbnail (/placeholder.avif) and the author image (/user.jpeg). These need to be dynamically loaded from Supabase, similar to how the title, description, and author name are already being fetched.

Expected Behavior:

  • Fetch the blog thumbnail dynamically from the image field in the blog data.
  • Fetch the author image dynamically using the author_id, querying the relevant author details.
  • Use default images if the thumbnail or author image is not available in the database.
@suyashbhawsar suyashbhawsar added the enhancement New feature or request label Sep 18, 2024
@msanchariii msanchariii added bug Something isn't working backend Improvements or additions to backend and removed enhancement New feature or request labels Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Improvements or additions to backend bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants