Skip to content

Align blog post author card with reference layout in production#1634

Merged
sanjay-kv merged 5 commits into
mainfrom
copilot/fix-ui-card-display-issue
May 22, 2026
Merged

Align blog post author card with reference layout in production#1634
sanjay-kv merged 5 commits into
mainfrom
copilot/fix-ui-card-display-issue

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 22, 2026

Description

The blog author card under post pages was inconsistent between preview and production and did not match the requested reference UI. This update aligns the production-rendered footer author card with the target structure and styling so it appears as expected below blog posts.

Type of Change

  • New feature (e.g., new page, component, or functionality)
  • Bug fix (non-breaking change that fixes an issue)
  • UI/UX improvement (design, layout, or styling updates)
  • Performance optimization (e.g., code splitting, caching)
  • Documentation update (README, contribution guidelines, etc.)
  • Other (please specify):

Changes Made

  • Footer author card structure (src/theme/BlogPostItem/Footer/index.tsx)

    • Reworked markup to match the requested card layout: avatar block, verified indicator, author name + Author pill, metadata row, summary text, and GitHub CTA.
    • Kept rendering scoped to blog post pages (isBlogPostPage) and primary author availability.
  • Metadata and production-safe formatting

    • Replaced brittle date usage with locale-aware formatting using site locale fallback.
    • Built metadata line consistently from handle/date/read-time with a single separator constant.
    • Simplified GitHub handle fallback behavior to URL/key sources only.
  • Styling parity (src/theme/BlogPostItem/Footer/styles.module.css)

    • Updated spacing, border radius, card background treatment, typography scale, and button styles to mirror the reference direction.
    • Added responsive adjustments for smaller screens.
    • Replaced hardcoded badge colors with theme variables for consistency across themes.
  • Reference screenshot

const blogDate =
  metadata.date &&
  new Intl.DateTimeFormat(siteConfig.i18n?.defaultLocale || "en-US", {
    year: "numeric",
    month: "short",
    day: "numeric",
  }).format(new Date(metadata.date));

const metaItems = [authorHandle, blogDate, readTimeText]
  .filter(Boolean)
  .join(META_SEPARATOR);

Dependencies

  • No new dependencies added.
  • No version/config changes required for this update.

Checklist

  • My code follows the style guidelines of this project.
  • I have tested my changes across major browsers and devices
  • My changes do not generate new console warnings or errors .
  • I ran npm run build and attached screenshot(s) in this PR.
  • This is already assigned Issue to me, not an unassigned issue.

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 22, 2026

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

Project Deployment Actions Updated (UTC)
recode-website Ready Ready Preview, Comment May 22, 2026 5:48am

@Adez017
Copy link
Copy Markdown
Member

Adez017 commented May 22, 2026

@copilot can you post the screenshots with the changes?

Copilot AI changed the title [WIP] Fix UI card display under blog post Align blog post author card with reference layout in production May 22, 2026
Copilot AI requested a review from sanjay-kv May 22, 2026 05:48
Copilot AI requested a review from Adez017 May 22, 2026 05:49
@Adez017
Copy link
Copy Markdown
Member

Adez017 commented May 22, 2026

@sanjay-kv i think it did a great job :
image

i had verified the build locally.

@Adez017 Adez017 marked this pull request as ready for review May 22, 2026 05:59
@sanjay-kv sanjay-kv merged commit 926641a into main May 22, 2026
7 of 8 checks passed
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.

Author Implementation : Wrong

3 participants