Fix links

This commit is contained in:
samaradel
2021-04-08 12:05:16 +02:00
parent e00c81d6ad
commit a027bfa505
9 changed files with 63 additions and 52 deletions

View File

@@ -23,7 +23,7 @@ items:
- name: P2P Marketplace - name: P2P Marketplace
link: https://threefold.io/marketplace link: https://threefold.io/marketplace
- name: Digital Twin - name: Digital Twin
link: https://mydigital.twin.io link: https://mydigitaltwin.io
- name: Conscious Internet - name: Conscious Internet
link: https://threefold.io/aci link: https://threefold.io/aci
- name: ThreeFold Tech - name: ThreeFold Tech

View File

@@ -2,7 +2,7 @@
id: better_solution id: better_solution
title: A better solution for our planet. title: A better solution for our planet.
subtitle: subtitle:
sourceUrl: sourceUrl: /blog/post/for_our_planet/
btnTxt: Learn More btnTxt: Learn More
image: better_solution.png image: better_solution.png
--- ---

View File

@@ -101,7 +101,7 @@
<nav <nav
:class="isOpen ? 'block' : 'hidden'" :class="isOpen ? 'block' : 'hidden'"
class="navbar md:order-2 px-2 pt-2 pb-4 sm:flex sm:p-0 sm:w-100" class="navbar md:order-2 px-2 pt-2 pb-4 sm:flex sm:p-0 sm:w-100 bg-white"
> >
<div <div
:key="index" :key="index"

View File

@@ -10,7 +10,7 @@
v-for="(section, index) in sections" v-for="(section, index) in sections"
:key="index" :key="index"
> >
<g-link :to="section.link"> <!-- <g-link :to="section.link"> -->
<g-image <g-image
class="mx-auto" class="mx-auto"
:src="section.svg.src" :src="section.svg.src"
@@ -29,7 +29,7 @@
v-html="section.content" v-html="section.content"
></div> ></div>
</div> </div>
</g-link> <!-- </g-link> -->
</div> </div>
</div> </div>
@@ -63,11 +63,11 @@
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
> >
<g-link <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 }}</g-link >{{ main.button }}</a
> >
</div> </div>
</section> </section>

View File

@@ -16,16 +16,29 @@
brand.subtitle brand.subtitle
}}</span> }}</span>
</h2> </h2>
<div <div class="py-6 mt-4 text-gray-600" v-html="brand.content"></div>
class="py-6 mt-4 text-gray-600"
v-html="brand.content"
></div>
<a <a
v-if="brand.sourceUrl.includes('http')"
target="_blank"
:href="brand.sourceUrl" :href="brand.sourceUrl"
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-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"
>{{ brand.btnTxt }}</a >{{ brand.btnTxt }}</a
> >
<a <a
v-else
:href="brand.sourceUrl"
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"
>{{ brand.btnTxt }}</a
>
<a
v-if="brand.sourceUrl2.includes('http')"
target="_blank"
:href="brand.sourceUrl2"
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"
>{{ brand.btnTxt2 }}</a
>
<a
v-else
:href="brand.sourceUrl2" :href="brand.sourceUrl2"
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-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"
>{{ brand.btnTxt2 }}</a >{{ brand.btnTxt2 }}</a

View File

@@ -70,11 +70,11 @@
class="bg-transparent text-sm learn-button border-gray-900 text-gray-900 px-12 py-2 mr-5 shadow rounded-full" class="bg-transparent text-sm learn-button border-gray-900 text-gray-900 px-12 py-2 mr-5 shadow rounded-full"
>{{ product.button }}</a >{{ product.button }}</a
> >
<g-link <a
v-else v-else
:href="product.link" :href="product.link"
class="bg-transparent text-sm learn-button border-gray-900 text-gray-900 px-12 py-2 mr-5 shadow rounded-full" class="bg-transparent text-sm learn-button border-gray-900 text-gray-900 px-12 py-2 mr-5 shadow rounded-full"
>{{ product.button }}</g-link >{{ product.button }}</a
> >
</div> </div>
</div> </div>
@@ -107,11 +107,11 @@
class="bg-gray-800 text-sm learn-button border-gray-900 text-white px-12 py-2 mr-5 shadow rounded-full" class="bg-gray-800 text-sm learn-button border-gray-900 text-white px-12 py-2 mr-5 shadow rounded-full"
>{{ product.button }}</a >{{ product.button }}</a
> >
<g-link <a
v-else v-else
:href="product.link" :href="product.link"
class="bg-gray-800 text-sm learn-button border-gray-900 text-white px-12 py-2 mr-5 shadow rounded-full" class="bg-gray-800 text-sm learn-button border-gray-900 text-white px-12 py-2 mr-5 shadow rounded-full"
>{{ product.button }}</g-link >{{ product.button }}</a
> >
</div> </div>
</div> </div>
@@ -148,11 +148,11 @@
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" 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 >{{ main.button }}</a
> >
<g-link <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 rounded shadow rounded-full" 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 >{{ main.button }}</a
> >
</div> </div>
</div> </div>

View File

@@ -33,11 +33,11 @@
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"
>{{ product.button }}</a >{{ product.button }}</a
> >
<g-link <a
v-else v-else
:href="product.url" :href="product.url"
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"
>{{ product.button }}</g-link >{{ product.button }}</a
> >
</div> </div>
</div> </div>

View File

@@ -36,35 +36,35 @@
</div> </div>
</div> </div>
</div> </div>
<div v-if="main.button || main.button2"> <div v-if="main.button || main.button2">
<a <a
v-if="main.link.includes('http')" v-if="main.link.includes('http')"
target="_blank" target="_blank"
:href="main.link" :href="main.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-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"
>{{ main.button }}</a >{{ main.button }}</a
> >
<g-link <a
v-else v-else
:href="main.link" :href="main.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-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"
>{{ main.button }}</g-link >{{ main.button }}</a
> >
<a <a
v-if="main.link2.includes('http')" v-if="main.link2.includes('http')"
target="_blank" target="_blank"
:href="main.link2" :href="main.link2"
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-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"
>{{ main.button2 }}</a >{{ main.button2 }}</a
> >
<g-link <a
v-else v-else
:href="main.link2" :href="main.link2"
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-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"
>{{ main.button2 }}</g-link >{{ main.button2 }}</a
> >
</div> </div>
</div> </div>
</div> </div>
</template> </template>

View File

@@ -5,9 +5,7 @@
<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 <h2 class="text-4xl mb-2 leading-tight font-semibold font-heading">
class="text-4xl mb-2 leading-tight font-semibold font-heading"
>
{{ main.title }} {{ main.title }}
</h2> </h2>
<p class="text-gray-600"> <p class="text-gray-600">
@@ -47,11 +45,11 @@
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
> >
<g-link <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 }}</g-link >{{ main.button }}</a
> >
</div> </div>
</div> </div>