Blog Single

VBlogContent

The VBlogContent component is a Vue 3 component that displays the content of a blog post, including the title, subtitle, image, and customizable content.

Props

Prop NameTypeRequiredDescription
currentPostUiBlogContentRecordYesThe exact blog fields consumed by the component, including title, subtitle, dates, and image.
wideBooleanNoA flag to indicate if the content should be displayed in a wide layout.

Example

vue
<script setup lang="ts">
  import { VBlogContent } from '@webdevelop-pro/ui-kit/docs';
  const post = {
    title: 'My Blog Post',
    subTitle: 'An interesting subtitle',
    image: '/images/blog/players.jpeg',
    publishDate: '2024-10-10',
    updateDate: '2024-10-11',
  };
</script>
<VBlogContent :currentPost="post" wide />

My Blog Post

An interesting subtitle

blog image

VBlogDisqus

The VBlogDisqus component integrates Disqus comments into the blog page.

Props

Prop NameTypeRequiredDescription
frontendUrlStringYesThe base URL for the frontend application.

Example

vue
<VBlogDisqus :frontend-url="env.FRONTEND_URL" />

VBlogHeader

The VBlogHeader component displays the blog post header, including the author's information and publication date, key tags.

Props

Prop NameTypeRequiredDescription
dataUiBlogContentRecordYesThe exact blog fields consumed for publication date and tags.
authorUiAuthorContentRecordYesThe author's URL, title, image, and optional srcset.

Example

vue
<script setup lang="ts">
  import { VBlogHeader } from '@webdevelop-pro/ui-kit/docs';
  const postData = {
  title: 'Understanding Vue 3 Composition API',
  description: 'A comprehensive guide to the Vue 3 Composition API.',
  publishDate: '2024-10-10',
  image: '/images/vue-composition-api.png',
};

const authorData = {
  title: 'Iryna Maksymova',
  image: '/images/blog/iryna-photo.jpg',
};
</script>
<VBlogHeader :data="postData" :author="authorData" />

VBlogReadMore

The VBlogReadMore component displays up to three newest blog posts with the same tag, excluding the current post.

Props

Prop NameTypeRequiredDescription
tagstringNoTag used to find related blog posts. Defaults to the current page's first tag.

Example

vue
<VBlogReadMore tag="Fintech" />

Unit Tests in Golang Way

article Unit Tests in Golang Way image

Choosing network architecture for tokenization

article Choosing network architecture for tokenization image

Issuance Is Solved: Any Asset Manager Can Put a Fund On-Chain Today

article Issuance Is Solved: Any Asset Manager Can Put a Fund On-Chain Today image

VBlogShare

The VBlogShare component provides sharing options for the blog post on various social media platforms.

Props

Prop NameTypeRequiredDescription
dataUiBlogContentRecordYesThe blog tags consumed by the sharing surface.

Example

vue
<script setup lang="ts">
  import { VBlogShare } from '@webdevelop-pro/ui-kit/docs';
  const postData = {
  title: 'Understanding Vue 3 Composition API',
  description: 'A comprehensive guide to the Vue 3 Composition API.',
  publishDate: '2024-10-10',
  image: '/images/vue-composition-api.png',
  tags: ['tag1', 'tag2', 'tag3']
};
</script>
<VBlogShare :data="postData" />