Add blogs
This commit is contained in:
@@ -0,0 +1,86 @@
|
||||
<template>
|
||||
<div
|
||||
class="relative bg-gray-50 pt-16 pb-20 px-4 sm:px-6 lg:pt-24 lg:pb-28 lg:px-8"
|
||||
>
|
||||
<div class="absolute inset-0">
|
||||
<div class="bg-white h-1/3 sm:h-2/3"></div>
|
||||
</div>
|
||||
<div class="relative max-w-7xl mx-auto">
|
||||
<div class="text-center">
|
||||
<h2
|
||||
class="text-3xl leading-9 tracking-tight font-extrabold text-gray-900 sm:text-4xl sm:leading-10"
|
||||
>
|
||||
{{ main.title }}
|
||||
</h2>
|
||||
<div
|
||||
class="mt-3 max-w-2xl mx-auto text-xl leading-7 text-gray-600 sm:mt-4"
|
||||
v-html="main.content"
|
||||
></div>
|
||||
</div>
|
||||
<div
|
||||
class="mt-12 grid gap-5 max-w-lg mx-auto lg:grid-cols-3 lg:max-w-none"
|
||||
>
|
||||
<div
|
||||
class="flex flex-col rounded-lg shadow-lg overflow-hidden"
|
||||
v-for="blog in blogs"
|
||||
:key="blog.id"
|
||||
>
|
||||
<div class="flex-shrink-0">
|
||||
<g-image
|
||||
class="h-48 w-full object-cover"
|
||||
:src="blog.image"
|
||||
alt=""
|
||||
/>
|
||||
</div>
|
||||
<div class="flex-1 bg-white p-6 flex flex-col justify-between">
|
||||
<div class="flex-1">
|
||||
<p class="text-sm leading-5 font-medium text-indigo-600">
|
||||
<a :href="blog.tagUrl" class="hover:underline">
|
||||
{{ blog.tag }}
|
||||
</a>
|
||||
</p>
|
||||
<a :href="blog.blogUrl" class="block">
|
||||
<h3 class="mt-2 text-xl leading-7 font-semibold text-gray-900">
|
||||
{{ blog.title }}
|
||||
</h3>
|
||||
<div
|
||||
v-html="blog.content"
|
||||
class="mt-3 text-base leading-6 text-gray-500"
|
||||
></div>
|
||||
</a>
|
||||
</div>
|
||||
<div class="mt-6 flex items-center">
|
||||
<div class="flex-shrink-0">
|
||||
<a :href="blog.autherUrl">
|
||||
<g-image
|
||||
class="h-10 w-10 rounded-full"
|
||||
:src="blog.authorImg"
|
||||
alt=""
|
||||
/>
|
||||
</a>
|
||||
</div>
|
||||
<div class="ml-3">
|
||||
<p class="text-sm leading-5 font-medium text-gray-900">
|
||||
<a :href="blog.autherUrl" class="hover:underline">
|
||||
{{ blog.author }}
|
||||
</a>
|
||||
</p>
|
||||
<!-- <div class="flex text-sm leading-5 text-gray-500">
|
||||
<time datetime="2020-03-16"> Mar 16, 2020 </time>
|
||||
<span class="mx-1"> · </span>
|
||||
<span> 6 min read </span>
|
||||
</div> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: ["main", "blogs"],
|
||||
};
|
||||
</script>
|
||||
@@ -65,16 +65,17 @@
|
||||
:id="$page.markdownPage.id"
|
||||
/>
|
||||
|
||||
<Blogs
|
||||
v-if="$page.markdownPage.blogs || $page.markdownPage.BlogsMain"
|
||||
:main="$page.markdownPage.BlogsMain"
|
||||
:blogs="$page.markdownPage.blogs"
|
||||
/>
|
||||
|
||||
<InTheNews
|
||||
v-if="$page.markdownPage.inTheNews"
|
||||
:news="$page.markdownPage.inTheNews"
|
||||
/>
|
||||
|
||||
<!-- <SignUp
|
||||
v-if="$page.markdownPage.signup"
|
||||
:signup="$page.markdownPage.signup"
|
||||
/> -->
|
||||
|
||||
<g-image
|
||||
class="m-auto w-3/4 mt-8"
|
||||
v-if="$page.markdownPage.solution_image"
|
||||
@@ -307,6 +308,23 @@
|
||||
link
|
||||
image
|
||||
}
|
||||
BlogsMain{
|
||||
id
|
||||
title
|
||||
content
|
||||
}
|
||||
blogs{
|
||||
id
|
||||
image
|
||||
tagUrl
|
||||
tag
|
||||
blogUrl
|
||||
title
|
||||
authorUrl
|
||||
authorImg
|
||||
author
|
||||
content
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -337,6 +355,7 @@ import InTheNews from "~/components/marketing/sections/logo-clouds/off_white_gri
|
||||
import SignUp from "~/components/custom/sections/SignUp.vue";
|
||||
import VideoPanel from "~/components/custom/VideoPanel.vue";
|
||||
import Partenerships from "~/components/marketing/sections/team-sections/grid_with_large_round_images.vue";
|
||||
import Blogs from "~/components/marketing/sections/blog-sections/3_column_cards.vue";
|
||||
|
||||
export default {
|
||||
components: {
|
||||
@@ -357,6 +376,7 @@ export default {
|
||||
SignUp,
|
||||
VideoPanel,
|
||||
Partenerships,
|
||||
Blogs,
|
||||
},
|
||||
computed: {
|
||||
getImg() {
|
||||
|
||||
Reference in New Issue
Block a user