diff --git a/src/components/common/PostItem/PostItem.vue b/src/components/common/PostItem/PostItem.vue new file mode 100644 index 0000000..fb63bb9 --- /dev/null +++ b/src/components/common/PostItem/PostItem.vue @@ -0,0 +1,198 @@ + + + + + + + + diff --git a/src/components/common/PostItem/index.sass b/src/components/common/PostItem/index.sass new file mode 100644 index 0000000..6b6f492 --- /dev/null +++ b/src/components/common/PostItem/index.sass @@ -0,0 +1,2 @@ +@import 'UiKit/styles/_colors.sass' +@import 'UiKit/styles/_global.sass' diff --git a/src/components/common/PostItem/types.ts b/src/components/common/PostItem/types.ts new file mode 100644 index 0000000..3ea48c7 --- /dev/null +++ b/src/components/common/PostItem/types.ts @@ -0,0 +1,28 @@ + +export interface IMarkdownOptions { + title: string; + subTitle?: string; + description: string; + date: string; + image: string; + slug?: string; + authors?: string; + draft?: boolean; + tags?: string[]; + route?: string; +} + +export interface IPostContent extends IMarkdownOptions { + content: string; +} + +export interface IAuthor { + title: string; + date: string; + draft?: boolean; + image: string; + position?: string; + description: string; + favoriteTags?: string[]; + slug?: string; +}