diff --git a/components/navigation/BlogPostCard.stories.tsx b/components/navigation/BlogPostCard.stories.tsx new file mode 100644 index 00000000000..47d57094fa1 --- /dev/null +++ b/components/navigation/BlogPostCard.stories.tsx @@ -0,0 +1,74 @@ +import type { Meta, StoryObj } from '@storybook/react'; + +import BlogPostItem from './BlogPostItem'; + +const meta: Meta = { + title: 'Components/BlogPostCard', + component: BlogPostItem, + decorators: [ + (Story) => ( +
+ +
+ ) + ] +}; + +export default meta; + +type Story = StoryObj; + +export const BlogPostCard: Story = { + args: { + post: { + title: 'Blog Post Title', + date: '2024-07-28T06:30:00.000Z', + type: 'Blog Category', + tags: ['Tag 1', 'Tag 2'], + cover: '/img/posts/release-notes-3.0.0/cover.webp', + authors: [ + { + name: 'Author Name', + photo: '/favicon-194x194.png', + link: 'https://x.com/AsyncAPISpec', + byline: 'Author Byline' + } + ], + excerpt: 'This is a blog post excerpt.', + toc: [ + { + content: 'Table of Content 1', + slug: 'table-of-content-1', + lvl: 1, + i: 0, + seen: 0 + }, + { + content: 'Table of Content 2', + slug: 'table-of-content-2', + lvl: 2, + i: 1, + seen: 0 + }, + { + content: 'Table of Content 3', + slug: 'table-of-content-3', + lvl: 2, + i: 2, + seen: 0 + } + ], + readingTime: 22, + sectionSlug: '/blog-section-slug', + sectionWeight: 0, + id: 'pages/blog/blog-post-slug', + isIndex: false, + slug: '/blog-post-slug', + featured: false + } + } +}; diff --git a/components/tools/FiltersDropdown.tsx b/components/tools/FiltersDropdown.tsx index fbf2d5c7a20..4acdf84b3f1 100644 --- a/components/tools/FiltersDropdown.tsx +++ b/components/tools/FiltersDropdown.tsx @@ -34,7 +34,9 @@ export default function FiltersDropdown({ return (
{dataList.map((data, index) => { @@ -44,7 +46,7 @@ export default function FiltersDropdown({
handleClickOption(event, data.name)} > diff --git a/public/img/illustrations/icons/CheckedIcon.svg b/public/img/illustrations/icons/CheckedIcon.svg index 591b807daf7..50697b1ac6e 100644 --- a/public/img/illustrations/icons/CheckedIcon.svg +++ b/public/img/illustrations/icons/CheckedIcon.svg @@ -2,7 +2,7 @@ - + diff --git a/public/img/illustrations/icons/UncheckedIcon.svg b/public/img/illustrations/icons/UncheckedIcon.svg index d57fb6e3885..57d4281a6c9 100644 --- a/public/img/illustrations/icons/UncheckedIcon.svg +++ b/public/img/illustrations/icons/UncheckedIcon.svg @@ -1,3 +1,3 @@ - +