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

Add BlogPostCard component #71

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add BlogPostCard component #71

wants to merge 1 commit into from

Conversation

nukeop
Copy link
Owner

@nukeop nukeop commented Jun 7, 2024

Introduces the BlogPostCard component to the library, designed specifically for showcasing blog posts.

  • Component Addition: Adds the BlogPostCard component with props for href, thumbnail, title, excerpt, author, and date, enabling users to display blog post previews effectively.
  • Styling: Includes styles.module.scss for the BlogPostCard, ensuring a visually appealing layout that is consistent with the design language of the library.
  • Documentation and Examples: Updates README.md to document the BlogPostCard component, providing a usage example and describing its props for easy integration by users.
  • Export Update: Modifies src/index.tsx to export the BlogPostCard, making it available for import and use in projects.
  • Storybook Stories: Adds Storybook stories for the BlogPostCard in src/stories/BlogPostCard.stories.tsx, showcasing the default usage and a variant with a custom thumbnail, aiding in visual testing and documentation.
  • Testing: Implements snapshot tests in src/__tests__/BlogPostCard.test.tsx to ensure the component's render output remains consistent over time.

For more details, open the Copilot Workspace session.

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.

1 participant