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
link: https://threefold.io/marketplace
- name: Digital Twin
link: https://mydigital.twin.io
link: https://mydigitaltwin.io
- name: Conscious Internet
link: https://threefold.io/aci
- name: ThreeFold Tech

View File

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

View File

@@ -101,7 +101,7 @@
<nav
: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
:key="index"

View File

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

View File

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

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"
>{{ product.button }}</a
>
<g-link
<a
v-else
: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"
>{{ product.button }}</g-link
>{{ product.button }}</a
>
</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"
>{{ product.button }}</a
>
<g-link
<a
v-else
: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"
>{{ product.button }}</g-link
>{{ product.button }}</a
>
</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"
>{{ main.button }}</a
>
<g-link
<a
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
>{{ main.button }}</a
>
</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"
>{{ product.button }}</a
>
<g-link
<a
v-else
: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"
>{{ product.button }}</g-link
>{{ product.button }}</a
>
</div>
</div>

View File

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

View File

@@ -5,9 +5,7 @@
<div
class="space-y-5 text-center sm:space-y-4 md:max-w-xl lg:max-w-3xl xl:max-w-none"
>
<h2
class="text-4xl mb-2 leading-tight font-semibold font-heading"
>
<h2 class="text-4xl mb-2 leading-tight font-semibold font-heading">
{{ main.title }}
</h2>
<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"
>{{ main.button }}</a
>
<g-link
<a
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 shadow rounded-full"
>{{ main.button }}</g-link
>{{ main.button }}</a
>
</div>
</div>