Skip to content

feat: Add Social Share Buttons and BlogPost Layout (#6)#21

Open
Nagajyothi-tammisetti wants to merge 6 commits into
HerStack-org:mainfrom
Nagajyothi-tammisetti:feat/social-share-buttons
Open

feat: Add Social Share Buttons and BlogPost Layout (#6)#21
Nagajyothi-tammisetti wants to merge 6 commits into
HerStack-org:mainfrom
Nagajyothi-tammisetti:feat/social-share-buttons

Conversation

@Nagajyothi-tammisetti
Copy link
Copy Markdown

What does this PR do?

Implements social share buttons and a reusable blog post layout as requested in issue #6.

  • Added src/data/blog.js with sample blog data following the existing mentors.js pattern
  • Created src/components/ShareButtons.jsx β€” reusable component supporting Twitter/X, LinkedIn, WhatsApp, Copy Link, and native navigator.share for mobile
  • Created src/components/BlogPostLayout.jsx β€” blog post template with category badge, meta info, tags, and ShareButtons at the bottom
  • Updated src/App.jsx with /blog and /blog/:slug routes
  • Updated src/main.jsx to wrap app in <BrowserRouter>

Type of change

  • ✨ New feature

Checklist

  • I've tested my changes locally (npm run dev)
  • My code follows the project style guide
  • No console errors introduced
  • No third-party tracking scripts introduced
  • Components accept title and url as props
  • Responsive and consistent with HerStack design system

Screenshots (if UI change)

image

Related issue

Closes #6

@vercel
Copy link
Copy Markdown

vercel Bot commented May 17, 2026

@Nagajyothi-tammisetti is attempting to deploy a commit to the HerStack's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Nagajyothi-tammisetti
Copy link
Copy Markdown
Author

Hi @escher-m, I've opened PR #21 with the implementation.
All acceptance criteria from the issue are covered.
Please review when you get a chance!

@Nagajyothi-tammisetti
Copy link
Copy Markdown
Author

βœ… Screenshots β€” Feature Working Locally

Blog Listing Page β€” All 3 blog posts render correctly with category badges, titles, excerpts, and read time.

Screenshot 2026-05-17 105812

Share Buttons β€” Twitter/X, LinkedIn, WhatsApp, Copy Link, and native Share button all render at the bottom of each blog post.

Screenshot 2026-05-17 110123

Copy Link Toast β€” Clicking "Copy Link" changes button text to "Link Copied!" and shows a green "βœ… Link copied to clipboard!" toast confirmation.

Screenshot 2026-05-17 110245

All acceptance criteria from issue #6 are verified and working locally. Ready for review!

@Nagajyothi-tammisetti
Copy link
Copy Markdown
Author

mark the points as per GSSoC contribution guidelines? Thanks!

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.

[feat] Add Social Share Buttons for Blog/Resource Pages

1 participant