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

feat: add Metadata component with react-helmet for dynamic SEO manage #237

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

alienx5499
Copy link
Contributor

@alienx5499 alienx5499 commented Jan 9, 2025

Closes: #238

Overview

This PR introduces the Metadata component, which leverages react-helmet to manage dynamic meta tags for improved SEO and social media integration.

Changes

  • Metadata Component:

    • Created Metadata.jsx to handle dynamic setting of meta tags.
    • Integrated Open Graph and Twitter Card meta tags for enhanced link sharing on social platforms.
    • Added defaultProps to ensure essential meta information is always present.
    • Defined PropTypes for type checking and maintainability.
  • SEO and Accessibility Enhancements:

    • Organized meta tags into standard, Open Graph, Twitter Card, and PWA sections for better readability and structure.
  • Progressive Web App Support:

    • Included links to manifest.json and various favicon sizes to support PWA features.

Benefits

  • SEO Improvement: Better meta management leads to improved search engine rankings.
  • Social Media Integration: Enhanced appearance of shared links on platforms like Facebook and Twitter.
  • Maintainability: Use of PropTypes and defaultProps ensures the component is robust and easy to maintain.
  • Accessibility: Organized meta tags contribute to better accessibility standards.

Testing

  • Verified that meta tags are correctly inserted in the document head.
  • Tested social media sharing to ensure Open Graph and Twitter Card tags are functioning as expected.
  • Ensured that default props provide necessary meta information when specific props are not supplied.

Notes

  • Replace placeholder values (e.g., URL_TO_IMAGE, @YourTwitterHandle) with actual URLs and handles as needed.

Copy link

vercel bot commented Jan 9, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
chaos-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 9, 2025 7:34am

Copy link
Contributor

github-actions bot commented Jan 9, 2025

Thank you for submitting your chaotic pull request! 🙌 We'll review it as soon as possible. In the meantime, please ensure that your changes align with our chaotic CONTRIBUTING.md. If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

👋 Welcome, @alienx5499! Thank you for your first pull request to ChaosWeb! We’re excited to see how you’ve contributed to the madness. 🎉 Our team will review your chaotic creation soon. Keep the disorder coming! 🚀

@vansh-codes
Copy link
Owner

Which issue did you work upon? Please mention the issue number

@vansh-codes vansh-codes added BEGINNER Beginner level SWOC Associated with SWOC labels Jan 9, 2025
@alienx5499
Copy link
Contributor Author

alienx5499 commented Jan 9, 2025

Closes: #238

@vansh-codes vansh-codes merged commit a906515 into vansh-codes:main Jan 9, 2025
4 checks passed
@vansh-codes vansh-codes added the Points Rewarded Points has been rewarded for SWOC label Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BEGINNER Beginner level Points Rewarded Points has been rewarded for SWOC SWOC Associated with SWOC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Chaotic Feat:Add Metadata Component for SEO and Social Media Integration
2 participants