Skip to content

feat: Add social media preview images and Open Graph meta tags#5

Merged
BenGWeeks merged 3 commits intomainfrom
claude/add-social-preview-cKRAZ
Jan 4, 2026
Merged

feat: Add social media preview images and Open Graph meta tags#5
BenGWeeks merged 3 commits intomainfrom
claude/add-social-preview-cKRAZ

Conversation

@BenGWeeks
Copy link
Copy Markdown
Contributor

Add dynamic Open Graph and Twitter Card images using Next.js ImageResponse
API. The social preview features:

  • Dark theme with KnowAll.ai brand colors (#00D26A green accent)
  • Clock icon logo with "Thyme by KnowAll.ai" branding
  • "Time Tracking, Perfectly Synced" tagline
  • Microsoft Dynamics 365 Business Central badge

Also enhances layout.tsx metadata with:

  • Complete Open Graph tags (title, description, url, siteName, locale)
  • Twitter Card configuration for summary_large_image
  • Author, creator, and publisher information
  • SEO-friendly robots configuration

Add dynamic Open Graph and Twitter Card images using Next.js ImageResponse
API. The social preview features:
- Dark theme with KnowAll.ai brand colors (#00D26A green accent)
- Clock icon logo with "Thyme by KnowAll.ai" branding
- "Time Tracking, Perfectly Synced" tagline
- Microsoft Dynamics 365 Business Central badge

Also enhances layout.tsx metadata with:
- Complete Open Graph tags (title, description, url, siteName, locale)
- Twitter Card configuration for summary_large_image
- Author, creator, and publisher information
- SEO-friendly robots configuration
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds dynamic social media preview images for Open Graph and Twitter Card integrations, along with enhanced SEO metadata. The implementation uses Next.js ImageResponse API to generate on-the-fly preview images with KnowAll.ai branding.

Key changes:

  • Adds dynamic social media preview image generation with brand-consistent dark theme design
  • Enhances metadata configuration with comprehensive Open Graph and Twitter Card tags
  • Implements proper SEO configuration including robots, author, and publisher information

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/app/twitter-image.tsx Generates Twitter Card preview image using Next.js edge runtime with branded design
src/app/opengraph-image.tsx Generates Open Graph preview image with identical design to Twitter image
src/app/layout.tsx Expands metadata configuration with Open Graph, Twitter Card, author information, and SEO settings

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/app/twitter-image.tsx
Comment thread src/app/opengraph-image.tsx
Address Copilot review feedback by eliminating code duplication between
opengraph-image.tsx and twitter-image.tsx. The shared image generation
logic is now in src/components/social/SocialImageContent.tsx.
@BenGWeeks
Copy link
Copy Markdown
Contributor Author

Social Media Preview Image

Once deployed, the social preview will be available at:

  • Open Graph: https://thyme.knowall.ai/opengraph-image
  • Twitter Card: https://thyme.knowall.ai/twitter-image

Preview Design

The 1200x630 image features:

┌────────────────────────────────────────────────────────┐
│                                                        │
│            ┌──────┐                                    │
│            │  🕐  │  Thyme                             │
│            └──────┘  by KnowAll.ai                     │
│                                                        │
│              Time Tracking,                            │
│              Perfectly Synced  (in green)              │
│                                                        │
│    ┌─────────────────────────────────────────────┐     │
│    │ ⊞ Powered by Microsoft Dynamics 365 BC     │     │
│    └─────────────────────────────────────────────┘     │
│                                                        │
└────────────────────────────────────────────────────────┘

Colors:

  • Background: Dark gradient (#020617 → #0f172a)
  • Accent: KnowAll green (#00D26A) with glow effect
  • Grid pattern overlay for visual depth
  • Microsoft logo badge at bottom

To test locally, run npm run dev and visit http://localhost:3000/opengraph-image

@BenGWeeks
Copy link
Copy Markdown
Contributor Author

Social Preview Image

Social Preview

This is the design that will be dynamically generated for Open Graph and Twitter Card previews when the site is shared on social media.

@BenGWeeks BenGWeeks merged commit b1f9dc7 into main Jan 4, 2026
3 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.

3 participants