update products

This commit is contained in:
2021-02-09 11:06:40 +02:00
parent 4edc90a58d
commit f6f1873984
18 changed files with 87 additions and 61 deletions

View File

@@ -9,6 +9,7 @@ slides:
digital_sovereignty_for_everyone, digital_sovereignty_for_everyone,
a_new_internet_for_our_planet, a_new_internet_for_our_planet,
] ]
productMain: contact_product productData: [img_1, img_2, img_3, img_4, img_5, img_6]
productsMain: graph_home
contactData: [collaborate, support, press, join] contactData: [collaborate, support, press, join]
--- ---

View File

@@ -1,5 +1,6 @@
--- ---
id: contact_product id: graph_home
subtitle: subtitle title: 'Products'
title: title subtitle: 'subtitle'
image : ./tech_infogram.png
--- ---

Binary file not shown.

After

Width:  |  Height:  |  Size: 968 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 118 KiB

View File

@@ -1,6 +1,6 @@
--- ---
id: contact_product1 id: img_1
title: myproducts title: ''
content: ayklamdsf excerpt: ''
image : ./img_1.png
--- ---

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

View File

@@ -1,6 +1,6 @@
--- ---
id: contact_product2 id: img_2
title: myproducts2 title: ''
content: ayklamdsf2 excerpt: ''
image : ./img_2.png
--- ---

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

View File

@@ -1,6 +1,6 @@
--- ---
id: contact_product3 id: img_3
title: myproducts title: ''
content: ayklamdsf excerpt: ''
image : ./img_3.png
--- ---

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

View File

@@ -0,0 +1,6 @@
---
id: img_4
title: ''
excerpt: ''
image : ./img_4.png
---

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

View File

@@ -0,0 +1,6 @@
---
id: img_5
title: ''
excerpt: ''
image : ./img_5.png
---

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

View File

@@ -0,0 +1,6 @@
---
id: img_6
title: ''
excerpt: ''
image : ./img_6.png
---

View File

@@ -64,7 +64,13 @@ module.exports = {
path: './content/page/**/productData/**/*.md', path: './content/page/**/productData/**/*.md',
} }
}, },
{
use: '@gridsome/source-filesystem',
options: {
typeName: 'ProductTitle',
path: './content/page/**/productData/**/*.md',
}
},
{ {
use: '@gridsome/source-filesystem', use: '@gridsome/source-filesystem',
options: { options: {
@@ -163,8 +169,8 @@ module.exports = {
header: 'Header', header: 'Header',
howItWorks: 'HowItWorks', howItWorks: 'HowItWorks',
howItWorksMain: 'HowItWorks', howItWorksMain: 'HowItWorks',
productsMain: 'ProductTitle',
productData: 'Product', productData: 'Product',
productMain: 'Product',
featuresMain: 'Features', featuresMain: 'Features',
features: 'Features', features: 'Features',
logos: 'Logo', logos: 'Logo',

View File

@@ -1,35 +1,26 @@
<template> <template>
<div> <div class="py-8 mb-5">
<div
class="bannerFondo bg-green-800 bg-left-top bg-auto bg-repeat-x"
style="background-image: url(./img/continuartl_4.png)"
></div>
<div class="-mt-64">
<div class="w-full text-center"> <div class="w-full text-center">
<p class="text-sm tracking-widest text-white">{{ main.subtitle }}</p> <p class="text-sm tracking-widest text-gray-700">{{ main.subtitle }}</p>
<h1 class="font-bold text-5xl text-white">{{ main.title }}</h1> <h1 class="text-4xl mt-2 mb-6 leading-tight font-heading">
{{ main.title }}
</h1>
<g-image :src="img(main.image)" class="hidden md:block" />
</div> </div>
<div class="grid grid-cols-1 gap-4 sm:grid-cols-3"> <div class="grid grid-cols-1 gap-4 sm:grid-cols-2 sm:hidden">
<div <div
v-for="(product, idx) in products" v-for="(product, idx) in products"
:key="idx" :key="idx"
class="p-2 sm:p-10 text-center cursor-pointer" class="p-2 sm:p-0 text-center cursor-pointer"
> >
<div <div
class="py-16 max-w-sm rounded overflow-hidden shadow-lg hover:bg-white transition duration-500 bg-white" class="m-auto max-w-sm rounded overflow-hidden shadow-lg hover:bg-white transition duration-500 bg-white"
> >
<div class="space-y-10"> <div class="px-2 py-2">
<i class="fa fa-spa" style="font-size: 48px"></i> <g-image :src="img(product.image)" />
<!-- <div class="font-bold text-xl mb-2">{{ product.title }}</div> -->
<div class="px-6 py-4"> <p v-html="product.content" class="text-gray-700 text-base"></p>
<div class="space-y-5">
<div class="font-bold text-xl mb-2">{{ product.title }}</div>
<p class="text-gray-700 text-base">{{ product.excerpt }}</p>
</div>
</div>
</div>
</div> </div>
</div> </div>
</div> </div>
@@ -41,6 +32,13 @@
<script> <script>
export default { export default {
props: ["products", "main"], props: ["products", "main"],
methods: {
img(image) {
if (!image) return "";
if (image.src) return image.src;
return image;
},
},
}; };
</script> </script>

View File

@@ -24,6 +24,15 @@
:card="card" :card="card"
/> />
<ShowcaseProducts
:main="$page.markdownPage.productsMain"
:products="$page.markdownPage.productData"
v-if="
$page.markdownPage.productData &&
$page.markdownPage.productData.length > 0
"
/>
<GetInTouch <GetInTouch
:contacts="$page.markdownPage.contactData" :contacts="$page.markdownPage.contactData"
v-if="$page.markdownPage.contactData.length > 0" v-if="$page.markdownPage.contactData.length > 0"
@@ -34,15 +43,6 @@
:header="$page.markdownPage.header" :header="$page.markdownPage.header"
/> />
<ShowcaseProducts
:main="$page.markdownPage.productMain"
:products="$page.markdownPage.productData"
v-if="
$page.markdownPage.productData &&
$page.markdownPage.productData.length > 0
"
/>
<HowItWorks <HowItWorks
v-if="$page.markdownPage.howItWorks.length > 0" v-if="$page.markdownPage.howItWorks.length > 0"
:HIWData="$page.markdownPage.howItWorks" :HIWData="$page.markdownPage.howItWorks"
@@ -164,15 +164,17 @@
title title
image image
} }
productMain{ productsMain{
id id
subtitle
title title
subtitle
image
} }
productData{ productData{
id id
title title
excerpt excerpt
image
} }
brandPanel{ brandPanel{
id id