This commit is contained in:
samaradel
2021-04-04 18:32:37 +02:00
parent c0457a2395
commit dc8fe004af
8 changed files with 77 additions and 53 deletions

View File

@@ -5,8 +5,8 @@ header_title: ARE THE NEW INTERNET
header_image: ./home_header.png header_image: ./home_header.png
header_altImg: threefold header_altImg: threefold
header_excerpt: Welcome to the worlds largest peer-to-peer internet, formed by people who want to make a difference, by people who care, by people just like you. header_excerpt: Welcome to the worlds largest peer-to-peer internet, formed by people who want to make a difference, by people who care, by people just like you.
button: 'Take Part' button: "Take Part"
link: '' link: "#home"
solution_image2: ./video_play.png solution_image2: ./video_play.png
cta2: home_cta2 cta2: home_cta2
productsMain: product productsMain: product

Binary file not shown.

After

Width:  |  Height:  |  Size: 274 KiB

View File

@@ -7,10 +7,11 @@ header_altImg: threefold
header_excerpt: Our mission is accelerate the transition of the data economy to a decentralized P2P model and make it possible for every person to learn, partake and succeed. header_excerpt: Our mission is accelerate the transition of the data economy to a decentralized P2P model and make it possible for every person to learn, partake and succeed.
solution_image: ./404.png solution_image: ./404.png
cta: why_cta cta: why_cta
productsMain: "product_main" appsMain: product_main
productData: [peer_to_peer, internet_available, better_solution] appData: [peer_to_peer, internet_available, better_solution]
partenershipsMain: partenerships_main partenershipsMain: partenerships_main
partnerships: [solidaridad, tag, kleos, threefold] partnerships: [solidaridad, tag, kleos, threefold]
cta2: why_cta2
--- ---
<!-- header: home_header <!-- header: home_header

View File

@@ -244,6 +244,8 @@ module.exports = {
howItWorksMain: 'HowItWorks', howItWorksMain: 'HowItWorks',
productsMain: 'ProductTitle', productsMain: 'ProductTitle',
productData: 'Product', productData: 'Product',
appsMain: 'ProductTitle',
appData: 'Product',
featuresMain: 'Features', featuresMain: 'Features',
features: 'Features', features: 'Features',
logos: 'Logo', logos: 'Logo',

View File

@@ -1,57 +1,50 @@
<template> <template>
<section class="pb-20 px-4 bg-cover text-center"> <section class="pb-20 px-4 bg-cover text-center">
<div class="w-full max-w-2xl mx-auto" v-if="id == 'why'">
<div class="w-full max-w-7xl mx-auto"
v-if="id == 'why'"
>
<h2 <h2
v-if="cta.title" v-if="cta.title"
class="text-5xl text-center uppercase mb-0 leading-none font-light font-heading" class="text-6xl text-center uppercase mb-2 leading-none font-light font-heading"
> >
{{ cta.title }} {{ cta.title }}
</h2> </h2>
<span <span
class="text-center uppercase mb-6 leading-none text-5xl font-black font-heading" class="text-center uppercase leading-none text-5xl text-gray-800 font-black font-heading"
> >
{{ cta.slogan }} {{ cta.slogan }}
</span> </span>
<div <div
v-html="cta.content" v-html="cta.content"
class="mb-8 text-center text-lg text-gray-800" class="mb-8 mt-10 text-center text-lg text-gray-800"
></div> ></div>
<div class="mt-8 tracking-wide leading-loose" v-if="cta.video_button"> <div class="mt-8 tracking-wide leading-loose" v-if="cta.video_button">
<a <a
@click="toggleModal" @click="toggleModal"
class="inline-block bg-blue-900 text-sm learn-button hover:bg-blue-800 text-gray-100 px-12 py-2 mr-5 mb-4 rounded shadow rounded-full" class="inline-block bg-gray-900 text-sm learn-button hover:bg-gray-800 text-gray-100 px-12 py-2 mr-5 mb-4 rounded shadow rounded-full"
>{{ cta.video_button }}</a >{{ cta.video_button }}</a
> >
</div> </div>
<a <a
class="inline-block bg-blue-900 text-sm learn-button hover:bg-blue-800 text-gray-100 px-12 py-2 mr-5 mb-4 rounded shadow rounded-full" class="inline-block bg-gray-900 text-sm learn-button hover:bg-gray-800 text-gray-100 px-12 py-2 mr-5 mb-4 rounded shadow rounded-full"
target="_blank" target="_blank"
v-if="cta.button" v-if="cta.button"
:href="cta.link" :href="cta.link"
>{{ cta.button }}</a >{{ cta.button }}</a
> >
<g-link <g-link
class="inline-block bg-blue-900 text-sm learn-button hover:bg-blue-800 text-gray-100 px-12 py-2 mr-5 mb-4 rounded shadow rounded-full" class="inline-block bg-gray-900 text-sm learn-button hover:bg-gray-800 text-gray-100 px-12 py-2 mr-5 mb-4 rounded shadow rounded-full"
v-if="cta.button2" v-if="cta.button2"
:to="cta.link2" :to="cta.link2"
>{{ cta.button2 }}</g-link >{{ cta.button2 }}</g-link
> >
<g-link <g-link
class="inline-block bg-blue-900 text-sm learn-button hover:bg-blue-800 text-gray-100 px-12 py-2 mr-5 mb-4 rounded shadow rounded-full" class="inline-block bg-gray-900 text-sm learn-button hover:bg-gray-800 text-gray-100 px-12 py-2 mr-5 mb-4 rounded shadow rounded-full"
v-if="cta.button3" v-if="cta.button3"
:to="cta.link3" :to="cta.link3"
>{{ cta.button3 }}</g-link >{{ cta.button3 }}</g-link
> >
</div> </div>
<div class="w-full max-w-7xl mx-auto" v-else>
<div class="w-full max-w-7xl mx-auto" v-else>
<h2 <h2
v-if="cta.title" v-if="cta.title"
class="text-4xl leading-tight font-semibold font-heading" class="text-4xl leading-tight font-semibold font-heading"
@@ -101,7 +94,7 @@
import Modal from "~/components/custom/Modal.vue"; import Modal from "~/components/custom/Modal.vue";
export default { export default {
props: ["cta" , "id"], props: ["cta", "id"],
data() { data() {
return { return {
showModal: false, showModal: false,
@@ -118,8 +111,8 @@ export default {
this.showModal = false; this.showModal = false;
}, },
}, },
mounted(){ mounted() {
console.log(this.id) console.log(this.id);
} },
}; };
</script> </script>

View File

@@ -1,30 +1,31 @@
<template> <template>
<div class="py-12 mb-5"> <div class="py-12 mb-5">
<div class="w-full text-center"> <div class="w-full text-center">
<h2 v-if="main !== null" class="text-4xl font-semibold leading-tight font-heading"> <h2
{{ main.title }} v-if="main !== null"
class="text-4xl font-semibold leading-tight font-heading"
>
{{ main.title }}
</h2> </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">
</div> {{ 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-2">
<a
<a
v-for="(product, idx) in products" v-for="(product, idx) in products"
target="_blank" target="_blank"
:key="idx" :key="idx"
:href="product.url" :href="product.url"
class="m-auto rounded overflow-hidden transition duration-500" class="m-auto rounded overflow-hidden transition duration-500"
> >
<div class="px-2 py-2">
<div class="px-2 py-2"> <g-image class="py-4" :src="img(product.image)" />
<g-image class="py-4" :src="img(product.image)" /> <!-- <div class="font-bold text-xl mb-2">{{ product.title }}</div> -->
<!-- <div class="font-bold text-xl mb-2">{{ product.title }}</div> --> <p v-html="product.content" class="text-gray-700 text-base"></p>
<p v-html="product.content" class="text-gray-700 text-base"></p> </div>
</div> </a>
</a>
</div> </div>
</div> </div>
</template> </template>

View File

@@ -1,5 +1,5 @@
<template> <template>
<div class="py-12 mb-5"> <div class="py-12 mb-5" id="home">
<div class="w-full text-center"> <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 }} {{ main.title }}

View File

@@ -45,11 +45,10 @@
<div class="container sm:pxi-0 mx-auto mt-8 overflow-x-hidden"> <div class="container sm:pxi-0 mx-auto mt-8 overflow-x-hidden">
<AppListItem <AppListItem
v-if=" v-if="
$page.markdownPage.productData && $page.markdownPage.appData && $page.markdownPage.appData.length > 0
$page.markdownPage.productData.length > 0
" "
:products="$page.markdownPage.productData" :products="$page.markdownPage.appData"
:main="$page.markdownPage.productsMain" :main="$page.markdownPage.appsMain"
/> />
</div> </div>
<Partenerships <Partenerships
@@ -62,7 +61,13 @@
/> />
</div> </div>
<!-- <div class="container sm:pxi-0 mx-auto overflow-x-hidden py-5"> <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 <ShowcaseProducts
v-if=" v-if="
$page.markdownPage.productData && $page.markdownPage.productData &&
@@ -71,7 +76,7 @@
:main="$page.markdownPage.productsMain" :main="$page.markdownPage.productsMain"
:products="$page.markdownPage.productData" :products="$page.markdownPage.productData"
/> />
</div> --> </div>
</Layout> </Layout>
</template> </template>
@@ -90,7 +95,7 @@
productsMain{ productsMain{
id id
title title
slogan subtitle
content content
# image # image
} }
@@ -101,6 +106,21 @@
image image
link link
} }
appsMain{
id
title
slogan
content
# image
}
appData{
id
title
content
image
link
}
comparisonMain{ comparisonMain{
id id
title title
@@ -125,6 +145,13 @@
button button
link link
} }
cta2{
title
slogan
content
button
link
}
brandPanel{ brandPanel{
id id
title title