init products part
This commit is contained in:
7
content/page/token/productData/main/main.md
Normal file
7
content/page/token/productData/main/main.md
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
id: token_product
|
||||
title:
|
||||
subtitle:
|
||||
button: Get Tokens
|
||||
link:
|
||||
---
|
||||
8
content/page/token/productData/product1/index.md
Normal file
8
content/page/token/productData/product1/index.md
Normal file
@@ -0,0 +1,8 @@
|
||||
---
|
||||
id: swiptft
|
||||
title: SWAP TFT
|
||||
image: ./swiptft.png
|
||||
url:
|
||||
---
|
||||
|
||||
Exchange your TFT with other tokens including Bitcoin.
|
||||
BIN
content/page/token/productData/product1/swiptft.png
Normal file
BIN
content/page/token/productData/product1/swiptft.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 102 KiB |
8
content/page/token/productData/product2/index.md
Normal file
8
content/page/token/productData/product2/index.md
Normal file
@@ -0,0 +1,8 @@
|
||||
---
|
||||
id: spendft
|
||||
title: SPEND TFT
|
||||
image : ./spendft.png
|
||||
url :
|
||||
---
|
||||
|
||||
Purchase products and services on the threefold grid.
|
||||
BIN
content/page/token/productData/product2/spendft.png
Normal file
BIN
content/page/token/productData/product2/spendft.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 86 KiB |
BIN
content/page/token/productData/product3/earn_interst.png
Normal file
BIN
content/page/token/productData/product3/earn_interst.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 22 KiB |
8
content/page/token/productData/product3/index.md
Normal file
8
content/page/token/productData/product3/index.md
Normal file
@@ -0,0 +1,8 @@
|
||||
---
|
||||
id: earn_interst
|
||||
title: EARN INTEREST
|
||||
image : ./earn_interst.png
|
||||
url :
|
||||
---
|
||||
|
||||
Earn even more by staking your TFTs (coming 2021).
|
||||
@@ -12,4 +12,6 @@ comparisonSecs: [expand_grid, invest_token, earn_more]
|
||||
partenershipsMain: cryptocurrency_main
|
||||
partnerships:
|
||||
[be_ur_bank, secure, transact_p2p, backed, decentralized, lives_stellar]
|
||||
productsMain: token_product
|
||||
productData: [swiptft, spendft, earn_interst]
|
||||
---
|
||||
|
||||
@@ -33,19 +33,19 @@
|
||||
>{{ main.button }}</a
|
||||
> -->
|
||||
|
||||
<a
|
||||
v-if="main.link.includes('http')"
|
||||
target="_blank"
|
||||
:href="main.link"
|
||||
class="bg-blue-900 text-sm learn-button hover:bg-blue-800 text-gray-100 px-12 py-2 mr-5 rounded shadow rounded-full"
|
||||
>{{ main.button }}</a
|
||||
>
|
||||
<g-link
|
||||
v-else
|
||||
:href="main.link"
|
||||
class="bg-blue-900 text-sm learn-button hover:bg-blue-800 text-gray-100 px-12 py-2 mr-5 rounded shadow rounded-full"
|
||||
>{{ main.button }}</g-link
|
||||
>
|
||||
<a
|
||||
v-if="main.link.includes('http')"
|
||||
target="_blank"
|
||||
:href="main.link"
|
||||
class="bg-blue-900 text-sm learn-button hover:bg-blue-800 text-gray-100 px-12 py-2 mr-5 rounded shadow rounded-full"
|
||||
>{{ main.button }}</a
|
||||
>
|
||||
<g-link
|
||||
v-else
|
||||
:href="main.link"
|
||||
class="bg-blue-900 text-sm learn-button hover:bg-blue-800 text-gray-100 px-12 py-2 mr-5 rounded shadow rounded-full"
|
||||
>{{ main.button }}</g-link
|
||||
>
|
||||
</div>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
@@ -2,17 +2,20 @@
|
||||
<div class="py-0 mb-5">
|
||||
<div class="w-full text-center">
|
||||
<h2
|
||||
v-if="main !== null"
|
||||
v-if="main !== null && main.title"
|
||||
class="text-4xl font-semibold leading-tight font-heading"
|
||||
>
|
||||
{{ main.title }}
|
||||
</h2>
|
||||
<p v-if="main !== null" class="mb-6 text-m tracking-widest text-gray-800">
|
||||
<p
|
||||
v-if="main !== null && main.subtitle"
|
||||
class="mb-6 text-m tracking-widest text-gray-800"
|
||||
>
|
||||
{{ main.subtitle }}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="grid grid-cols-1 gap-4 sm:grid-cols-2">
|
||||
<div class="grid grid-cols-1 gap-4 sm:grid-cols-3 text-center">
|
||||
<a
|
||||
v-for="(product, idx) in products"
|
||||
target="_blank"
|
||||
@@ -22,11 +25,33 @@
|
||||
>
|
||||
<div class="px-2 py-2">
|
||||
<g-image class="py-4" :src="img(product.image)" />
|
||||
<!-- <div class="font-bold text-xl mb-2">{{ product.title }}</div> -->
|
||||
<p v-html="product.content" class="text-gray-700 text-base"></p>
|
||||
<div class="font-bold text-xl mb-2">{{ product.title }}</div>
|
||||
<div v-html="product.content" class="text-gray-700 text-base"></div>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<div v-if="main.button" class="my-10 text-center">
|
||||
<!-- <a
|
||||
v-if="main.button"
|
||||
class="bg-blue-900 text-sm learn-button hover:bg-blue-800 text-gray-100 px-12 py-2 mr-5 rounded shadow rounded-full"
|
||||
:href="main.link"
|
||||
>{{ main.button }}</a
|
||||
> -->
|
||||
|
||||
<a
|
||||
v-if="main.link.includes('http')"
|
||||
target="_blank"
|
||||
:href="main.link"
|
||||
class="bg-blue-900 text-sm uppercase learn-button hover:bg-blue-800 text-gray-100 px-12 py-2 mr-5 rounded shadow rounded-full"
|
||||
>{{ main.button }}</a
|
||||
>
|
||||
<g-link
|
||||
v-else
|
||||
:href="main.link"
|
||||
class="bg-blue-900 text-sm uppercase learn-button hover:bg-blue-800 text-gray-100 px-12 py-2 mr-5 rounded shadow rounded-full"
|
||||
>{{ main.button }}</g-link
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -1,35 +1,35 @@
|
||||
<template>
|
||||
<div class="py-12 mb-5" id="home">
|
||||
<div class="w-full text-center">
|
||||
<h2 v-if="main !== null" class="text-4xl font-semibold leading-tight font-heading">
|
||||
<h2
|
||||
v-if="main !== null"
|
||||
class="text-4xl font-semibold leading-tight font-heading"
|
||||
>
|
||||
{{ main.title }}
|
||||
</h2>
|
||||
<p v-if="main !== null" class="mb-6 text-m tracking-widest text-gray-800">{{ main.subtitle }}</p>
|
||||
<p v-if="main !== null" class="mb-6 text-m tracking-widest text-gray-800">
|
||||
{{ main.subtitle }}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="grid grid-cols-1 gap-4 sm:grid-cols-3">
|
||||
|
||||
<a
|
||||
<a
|
||||
v-for="(product, idx) in products"
|
||||
target="_blank"
|
||||
:key="idx"
|
||||
:href="product.url"
|
||||
class="m-auto rounded overflow-hidden transition duration-500"
|
||||
>
|
||||
|
||||
<div class="px-2 py-2">
|
||||
<g-image class="py-4" :src="img(product.image)" />
|
||||
<!-- <div class="font-bold text-xl mb-2">{{ product.title }}</div> -->
|
||||
<p v-html="product.content" class="text-gray-700 text-base"></p>
|
||||
</div>
|
||||
|
||||
</a>
|
||||
|
||||
class="m-auto rounded overflow-hidden transition duration-500"
|
||||
>
|
||||
<div class="px-2 py-2">
|
||||
<g-image class="py-4" :src="img(product.image)" />
|
||||
<!-- <div class="font-bold text-xl mb-2">{{ product.title }}</div> -->
|
||||
<div v-html="product.content" class="text-gray-700 text-base"></div>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: ["products", "main"],
|
||||
|
||||
@@ -61,15 +61,6 @@
|
||||
:main="$page.markdownPage.partenershipsMain"
|
||||
:partnerships="$page.markdownPage.partnerships"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<CallToAction
|
||||
:id="$page.markdownPage.id"
|
||||
v-if="$page.markdownPage.cta2"
|
||||
:cta="$page.markdownPage.cta2"
|
||||
/>
|
||||
|
||||
<div class="container sm:pxi-0 mx-auto overflow-x-hidden py-5">
|
||||
<ShowcaseProducts
|
||||
v-if="
|
||||
$page.markdownPage.productData &&
|
||||
@@ -79,6 +70,14 @@
|
||||
:products="$page.markdownPage.productData"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<CallToAction
|
||||
:id="$page.markdownPage.id"
|
||||
v-if="$page.markdownPage.cta2"
|
||||
:cta="$page.markdownPage.cta2"
|
||||
/>
|
||||
|
||||
<div class="container sm:pxi-0 mx-auto overflow-x-hidden py-5"></div>
|
||||
</Layout>
|
||||
</template>
|
||||
|
||||
@@ -101,6 +100,8 @@
|
||||
title
|
||||
subtitle
|
||||
content
|
||||
button
|
||||
link
|
||||
# image
|
||||
}
|
||||
productData{
|
||||
@@ -235,9 +236,6 @@ export default {
|
||||
return name;
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
console.log(this.$page.markdownPage);
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<style scoped>
|
||||
|
||||
Reference in New Issue
Block a user