Skip to content

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