init tft uses part

This commit is contained in:
samaradel
2021-08-15 17:29:38 +02:00
parent 320de53488
commit b23322f986
9 changed files with 169 additions and 9 deletions

View File

@@ -15,4 +15,6 @@ brandPanel: tft_brandPanel
card: tft_card card: tft_card
carousel: [slide1, slide2, slide3, slide4, slide5, slide6 , slide7] carousel: [slide1, slide2, slide3, slide4, slide5, slide6 , slide7]
sliderMain: slider_main sliderMain: slider_main
useTftMain: useTft_main
tftUses: [col1, col2, col3]
--- ---

View File

@@ -0,0 +1,4 @@
---
id: col1
title: TFT USES
---

View File

@@ -0,0 +1,4 @@
---
id: col2
---
A TFT is crearted everytime someone adds capacity to the ThreeFold Grid. This is rewarded to the person adding the capacity.

View File

@@ -0,0 +1,4 @@
---
id: col3
---
Developers and solution providers also use TFT to purchase capacity, storage or compute on the ThreeFold Grid.

View File

@@ -0,0 +1,4 @@
---
id: useTft_main
image: ./tft_uses.jpg
---

Binary file not shown.

After

Width:  |  Height:  |  Size: 147 KiB

View File

@@ -387,6 +387,22 @@ module.exports = {
} }
}, },
{
use: '@gridsome/source-filesystem',
options: {
typeName: 'TftUsesMain',
path: './content/page/**/tftUses/main/*.md',
}
},
{
use: '@gridsome/source-filesystem',
options: {
typeName: 'TftUses',
path: './content/page/**/tftUses/**/*.md',
}
},
{ {
use: '@gridsome/source-filesystem', use: '@gridsome/source-filesystem',
options: { options: {
@@ -447,7 +463,9 @@ module.exports = {
pageHeader: 'PageHeader', pageHeader: 'PageHeader',
card: 'Card', card: 'Card',
carousel: 'Carousel', carousel: 'Carousel',
sliderMain: 'CarouselMain' sliderMain: 'CarouselMain',
useTftMain: 'TftUsesMain',
tftUses: 'TftUses'
} }
} }
}, },

View File

@@ -1,9 +1,65 @@
<template> <template>
<div class="bg-white"> <div class="bg-white">
<div class="mx-auto py-12 px-4 max-w-screen-xl sm:px-6 lg:px-8 lg:py-24"> <div
v-if="id == 'tft'"
class="mx-auto py-12 px-4 max-w-screen-xl sm:px-6 lg:px-8 lg:py-24"
>
<!-- <div
class="
space-y-5
text-center
sm:space-y-4
md:max-w-xl
lg:max-w-3xl
xl:max-w-none
"
>
<h2 class="text-4xl mb-2 leading-tight font-semibold font-heading">
{{ main.title }}
</h2>
<p class="text-gray-600">
{{ main.description }}
</p>
</div> -->
<div
class="
sm:grid sm:grid-cols-3
sm:gap-x-6 sm:gap-y-12
sm:space-y-0
lg:grid-cols-3
lg:gap-x-8
"
>
<div v-for="(section, index) in sections" :key="index" class="p-5">
<div class="leading-6">
<h2 class="text-8xl font-bold uppercase" v-if="section.title">
{{ section.title }}
</h2>
<div
v-if="section.content"
class="text-2xl"
v-html="section.content"
></div>
</div>
</div>
</div>
<g-image class="mt-0" :src="main.image" />
</div>
<div
v-else
class="mx-auto py-12 px-4 max-w-screen-xl sm:px-6 lg:px-8 lg:py-24"
>
<div class="space-y-12"> <div class="space-y-12">
<div <div
class="space-y-5 text-center sm:space-y-4 md:max-w-xl lg:max-w-3xl xl:max-w-none" class="
space-y-5
text-center
sm:space-y-4
md:max-w-xl
lg:max-w-3xl
xl:max-w-none
"
> >
<h2 class="text-4xl mb-2 leading-tight font-semibold font-heading"> <h2 class="text-4xl mb-2 leading-tight font-semibold font-heading">
{{ main.title }} {{ main.title }}
@@ -13,7 +69,14 @@
</p> </p>
</div> </div>
<div <div
class="space-y-12 sm:grid sm:grid-cols-2 sm:gap-x-6 sm:gap-y-12 sm:space-y-0 lg:grid-cols-2 lg:gap-x-8" class="
space-y-12
sm:grid sm:grid-cols-2
sm:gap-x-6 sm:gap-y-12
sm:space-y-0
lg:grid-cols-2
lg:gap-x-8
"
> >
<div <div
v-for="(section, index) in sections" v-for="(section, index) in sections"
@@ -45,13 +108,35 @@
v-if="urlChecker(main.link)" v-if="urlChecker(main.link)"
target="_blank" target="_blank"
:href="main.link" :href="main.link"
class="bg-blue-900 text-sm learn-button hover:bg-blue-800 text-gray-100 px-12 py-2 mr-5 shadow rounded-full" class="
bg-blue-900
text-sm
learn-button
hover:bg-blue-800
text-gray-100
px-12
py-2
mr-5
shadow
rounded-full
"
>{{ main.button }}</a >{{ main.button }}</a
> >
<a <a
v-else v-else
:href="main.link" :href="main.link"
class="bg-blue-900 text-sm learn-button hover:bg-blue-800 text-gray-100 px-12 py-2 mr-5 shadow rounded-full" class="
bg-blue-900
text-sm
learn-button
hover:bg-blue-800
text-gray-100
px-12
py-2
mr-5
shadow
rounded-full
"
>{{ main.button }}</a >{{ main.button }}</a
> >
</div> </div>
@@ -61,13 +146,35 @@
v-if="urlChecker(main.link2)" v-if="urlChecker(main.link2)"
target="_blank" target="_blank"
:href="main.link2" :href="main.link2"
class="bg-blue-900 text-sm learn-button hover:bg-blue-800 text-gray-100 px-12 py-2 mr-5 shadow rounded-full" class="
bg-blue-900
text-sm
learn-button
hover:bg-blue-800
text-gray-100
px-12
py-2
mr-5
shadow
rounded-full
"
>{{ main.button2 }}</a >{{ main.button2 }}</a
> >
<a <a
v-else v-else
:href="main.link2" :href="main.link2"
class="bg-blue-900 text-sm learn-button hover:bg-blue-800 text-gray-100 px-12 py-2 mr-5 shadow rounded-full" class="
bg-blue-900
text-sm
learn-button
hover:bg-blue-800
text-gray-100
px-12
py-2
mr-5
shadow
rounded-full
"
>{{ main.button2 }}</a >{{ main.button2 }}</a
> >
</div> </div>
@@ -79,7 +186,7 @@
<script> <script>
export default { export default {
props: ["main", "sections"], props: ["id", "main", "sections"],
methods: { methods: {
img(image) { img(image) {
if (!image) return ""; if (!image) return "";

View File

@@ -115,6 +115,13 @@
:slides="$page.markdownPage.carousel" :slides="$page.markdownPage.carousel"
:main="$page.markdownPage.sliderMain" :main="$page.markdownPage.sliderMain"
/> />
<TFTFuel
v-if="$page.markdownPage.tftUses.length > 0"
:id="$page.markdownPage.id"
:main="$page.markdownPage.useTftMain"
:sections="$page.markdownPage.tftUses"
/>
<Partenerships <Partenerships
v-if=" v-if="
$page.markdownPage.partnerships && $page.markdownPage.partnerships &&
@@ -461,6 +468,15 @@
button button
link link
} }
useTftMain {
id
image
}
tftUses{
id
title
content
}
} }
allCustomCta { allCustomCta {
edges { edges {
@@ -499,6 +515,7 @@ import Partenerships from "~/components/marketing/sections/team-sections/grid_wi
import CenteredAccordion from "~/components/marketing/sections/faq-sections/CenteredAccordion.vue"; import CenteredAccordion from "~/components/marketing/sections/faq-sections/CenteredAccordion.vue";
import CustomCTA from "~/components/custom/sections/CustomCTA.vue"; import CustomCTA from "~/components/custom/sections/CustomCTA.vue";
import Slider from "~/components/custom/Slider.vue"; import Slider from "~/components/custom/Slider.vue";
export default { export default {
components: { components: {
NewCard, NewCard,