init video panel part
This commit is contained in:
@@ -25,6 +25,7 @@ logos: [logo1, logo2, logo3, logo4, logo5, logo6]
|
|||||||
inTheNews: in_the_news
|
inTheNews: in_the_news
|
||||||
solution_image: ./cta_image.svg
|
solution_image: ./cta_image.svg
|
||||||
cta: home_cta
|
cta: home_cta
|
||||||
|
videoPanel: home_videoPanel
|
||||||
---
|
---
|
||||||
|
|
||||||
<!-- header: home_header
|
<!-- header: home_header
|
||||||
|
|||||||
6
content/page/home/videoPanel/index.md
Normal file
6
content/page/home/videoPanel/index.md
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
id: home_videoPanel
|
||||||
|
video: https://www.youtube.com/embed/5DtVU66Z74s
|
||||||
|
title: More than an Internet, a new paradigm
|
||||||
|
---
|
||||||
|
ThreeFold started from the ground up to build secure and sustainable peer-to-peer Internet infrastructure and technologies that can scale anywhere and empower you, your business and your community with data sovereignty.
|
||||||
@@ -231,6 +231,14 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
use: '@gridsome/source-filesystem',
|
||||||
|
options: {
|
||||||
|
typeName: 'VideoPanel',
|
||||||
|
path: './content/page/**/videoPanel/*.md',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
use: '@gridsome/source-filesystem',
|
use: '@gridsome/source-filesystem',
|
||||||
options: {
|
options: {
|
||||||
@@ -270,7 +278,8 @@ module.exports = {
|
|||||||
brandPanel2: 'BrandPanel2',
|
brandPanel2: 'BrandPanel2',
|
||||||
allSlides: 'About',
|
allSlides: 'About',
|
||||||
partenershipsMain: 'PartenershipsMain',
|
partenershipsMain: 'PartenershipsMain',
|
||||||
partnerships: 'Partenerships'
|
partnerships: 'Partenerships',
|
||||||
|
videoPanel: 'VideoPanel'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -394,34 +403,34 @@ module.exports = {
|
|||||||
options: {
|
options: {
|
||||||
searchFields: ['title', 'name', 'content', 'status', 'linkedin', 'excerpt', 'cities', 'countries', 'websites'],
|
searchFields: ['title', 'name', 'content', 'status', 'linkedin', 'excerpt', 'cities', 'countries', 'websites'],
|
||||||
collections: [{
|
collections: [{
|
||||||
typeName: 'Blog',
|
typeName: 'Blog',
|
||||||
indexName: 'Blog',
|
indexName: 'Blog',
|
||||||
fields: ['path']
|
fields: ['path']
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
typeName: 'Project',
|
typeName: 'Project',
|
||||||
indexName: 'Project',
|
indexName: 'Project',
|
||||||
fields: ['path']
|
fields: ['path']
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
typeName: 'Person',
|
typeName: 'Person',
|
||||||
indexName: 'Person',
|
indexName: 'Person',
|
||||||
fields: ['path']
|
fields: ['path']
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
typeName: 'News',
|
typeName: 'News',
|
||||||
indexName: 'News',
|
indexName: 'News',
|
||||||
fields: ['path']
|
fields: ['path']
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
typeName: 'MarkdownPage',
|
typeName: 'MarkdownPage',
|
||||||
indexName: 'MarkdownPage',
|
indexName: 'MarkdownPage',
|
||||||
fields: ['path']
|
fields: ['path']
|
||||||
},
|
},
|
||||||
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -499,19 +508,19 @@ module.exports = {
|
|||||||
pathPrefix: "threefold",
|
pathPrefix: "threefold",
|
||||||
plugins: [
|
plugins: [
|
||||||
['gridsome-plugin-remark-prismjs-all', {
|
['gridsome-plugin-remark-prismjs-all', {
|
||||||
highlightClassName: "gridsome-highlight",
|
highlightClassName: "gridsome-highlight",
|
||||||
codeTitleClassName: "gridsome-code-title",
|
codeTitleClassName: "gridsome-code-title",
|
||||||
classPrefix: 'language-',
|
classPrefix: 'language-',
|
||||||
aliases: {},
|
aliases: {},
|
||||||
noInlineHighlight: false,
|
noInlineHighlight: false,
|
||||||
showLineNumbers: false, // `require("prismjs/plugins/line-numbers/prism-line-numbers.css");`
|
showLineNumbers: false, // `require("prismjs/plugins/line-numbers/prism-line-numbers.css");`
|
||||||
languageExtensions: [],
|
languageExtensions: [],
|
||||||
prompt: { // `require("prismjs/plugins/command-line/prism-command-line.css");`
|
prompt: { // `require("prismjs/plugins/command-line/prism-command-line.css");`
|
||||||
user: `root`,
|
user: `root`,
|
||||||
host: `localhost`,
|
host: `localhost`,
|
||||||
global: false,
|
global: false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// '@noxify/gridsome-remark-table-align', ['@noxify/gridsome-remark-classes', {
|
// '@noxify/gridsome-remark-table-align', ['@noxify/gridsome-remark-classes', {
|
||||||
// 'table': 'table table-striped',
|
// 'table': 'table table-striped',
|
||||||
// 'tableCell[align=center]': 'text-center',
|
// 'tableCell[align=center]': 'text-center',
|
||||||
|
|||||||
28
src/components/custom/VideoPanel.vue
Normal file
28
src/components/custom/VideoPanel.vue
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
<template>
|
||||||
|
<div class="lg:py-12 lg:flex lg:justify-center flex flex-col">
|
||||||
|
<div class="bg-white lg:flex lg:max-w-5xl lg:rounded-lg">
|
||||||
|
<div class="lg:w-1/2">
|
||||||
|
<div class="aspect-w-16 aspect-h-9">
|
||||||
|
<iframe
|
||||||
|
width="560"
|
||||||
|
height="315"
|
||||||
|
:src="card.video"
|
||||||
|
title="YouTube video player"
|
||||||
|
frameborder="0"
|
||||||
|
allowfullscreen
|
||||||
|
></iframe>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="py-6 px-6 max-w-xl lg:max-w-5xl lg:w-1/2">
|
||||||
|
<h2 class="text-2xl text-gray-700 font-bold">{{ card.title }}</h2>
|
||||||
|
<div class="mt-4 text-gray-700" v-html="card.content"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
props: ["card"],
|
||||||
|
};
|
||||||
|
</script>
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="container sm:pxi-0 mx-auto overflow-x-hidden py-5">
|
<div class="container sm:pxi-0 mx-auto overflow-x-hidden py-5">
|
||||||
<g-image
|
<!-- <g-image
|
||||||
class="m-auto w-2/4 lg:mt-20"
|
class="m-auto w-2/4 lg:mt-20"
|
||||||
v-if="$page.markdownPage.solution_image2"
|
v-if="$page.markdownPage.solution_image2"
|
||||||
:src="$page.markdownPage.solution_image2.src"
|
:src="$page.markdownPage.solution_image2.src"
|
||||||
@@ -22,7 +22,8 @@
|
|||||||
<CallToAction
|
<CallToAction
|
||||||
v-if="$page.markdownPage.cta2"
|
v-if="$page.markdownPage.cta2"
|
||||||
:cta="$page.markdownPage.cta2"
|
:cta="$page.markdownPage.cta2"
|
||||||
/>
|
/> -->
|
||||||
|
<VideoPanel :card="$page.markdownPage.videoPanel" />
|
||||||
|
|
||||||
<!-- <g-image
|
<!-- <g-image
|
||||||
class="m-auto w-2/4 lg:mt-20"
|
class="m-auto w-2/4 lg:mt-20"
|
||||||
@@ -291,6 +292,12 @@
|
|||||||
button2
|
button2
|
||||||
link2
|
link2
|
||||||
}
|
}
|
||||||
|
videoPanel {
|
||||||
|
id
|
||||||
|
video
|
||||||
|
title
|
||||||
|
content
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -317,6 +324,7 @@ import CallToActionbg2 from "~/components/custom/sections/CallToActionbg2.vue";
|
|||||||
import logoShowcase from "~/components/marketing/sections/cta-sections/logoShowcase.vue";
|
import logoShowcase from "~/components/marketing/sections/cta-sections/logoShowcase.vue";
|
||||||
import InTheNews from "~/components/marketing/sections/logo-clouds/off_white_grid.vue";
|
import InTheNews from "~/components/marketing/sections/logo-clouds/off_white_grid.vue";
|
||||||
import SignUp from "~/components/custom/sections/SignUp.vue";
|
import SignUp from "~/components/custom/sections/SignUp.vue";
|
||||||
|
import VideoPanel from "~/components/custom/VideoPanel.vue";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
@@ -333,6 +341,7 @@ export default {
|
|||||||
CallToActionbg2,
|
CallToActionbg2,
|
||||||
InTheNews,
|
InTheNews,
|
||||||
SignUp,
|
SignUp,
|
||||||
|
VideoPanel,
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
getImg() {
|
getImg() {
|
||||||
|
|||||||
Reference in New Issue
Block a user