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,
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]
---

View File

@@ -1,5 +1,6 @@
---
id: contact_product
subtitle: subtitle
title: title
---
id: graph_home
title: 'Products'
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
title: myproducts
content: ayklamdsf
id: img_1
title: ''
excerpt: ''
image : ./img_1.png
---

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

View File

@@ -1,6 +1,6 @@
---
id: contact_product3
title: myproducts
content: ayklamdsf
id: img_3
title: ''
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',
}
},
{
use: '@gridsome/source-filesystem',
options: {
typeName: 'ProductTitle',
path: './content/page/**/productData/**/*.md',
}
},
{
use: '@gridsome/source-filesystem',
options: {
@@ -163,8 +169,8 @@ module.exports = {
header: 'Header',
howItWorks: 'HowItWorks',
howItWorksMain: 'HowItWorks',
productsMain: 'ProductTitle',
productData: 'Product',
productMain: 'Product',
featuresMain: 'Features',
features: 'Features',
logos: 'Logo',

View File

@@ -1,35 +1,26 @@
<template>
<div>
<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="py-8 mb-5">
<div class="w-full text-center">
<p class="text-sm tracking-widest text-gray-700">{{ main.subtitle }}</p>
<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 class="-mt-64">
<div class="w-full text-center">
<p class="text-sm tracking-widest text-white">{{ main.subtitle }}</p>
<h1 class="font-bold text-5xl text-white">{{ main.title }}</h1>
</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
v-for="(product, idx) in products"
:key="idx"
class="p-2 sm:p-0 text-center cursor-pointer"
>
<div
v-for="(product, idx) in products"
:key="idx"
class="p-2 sm:p-10 text-center cursor-pointer"
class="m-auto max-w-sm rounded overflow-hidden shadow-lg hover:bg-white transition duration-500 bg-white"
>
<div
class="py-16 max-w-sm rounded overflow-hidden shadow-lg hover:bg-white transition duration-500 bg-white"
>
<div class="space-y-10">
<i class="fa fa-spa" style="font-size: 48px"></i>
<div class="px-6 py-4">
<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 class="px-2 py-2">
<g-image :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>
</div>
</div>
@@ -41,6 +32,13 @@
<script>
export default {
props: ["products", "main"],
methods: {
img(image) {
if (!image) return "";
if (image.src) return image.src;
return image;
},
},
};
</script>

View File

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