add links and target blank to hero sections
This commit is contained in:
@@ -1,8 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<button type="button" class="flex items-center justify-center cursor-pointer text-button-base"
|
<a
|
||||||
:disabled="disabled" :class="buttonClasses" @click="handleClick">
|
class="flex items-center justify-center cursor-pointer text-button-base"
|
||||||
<slot></slot>
|
:disabled="disabled" :class="buttonClasses" :href="href" target="_blank" rel="noopener noreferrer" @click="handleClick">
|
||||||
</button>
|
<slot/>
|
||||||
|
</a>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
@@ -22,11 +22,9 @@
|
|||||||
<div class=" flex flex-col items-center z-10 gap-6">
|
<div class=" flex flex-col items-center z-10 gap-6">
|
||||||
<h1 class="font-bold max-w-4xl">{{ title }}</h1>
|
<h1 class="font-bold max-w-4xl">{{ title }}</h1>
|
||||||
<p class="text-2xl-custom max-w-3xl" v-html="subtitle"></p>
|
<p class="text-2xl-custom max-w-3xl" v-html="subtitle"></p>
|
||||||
<NuxtLink v-if="button" :to="button.link">
|
<ButtonCTA v-if="button" :color="button.color" :href="button.link" class="uppercase mt-6">
|
||||||
<ButtonCTA :color="button.color" class="uppercase mt-6">
|
{{ button.label }}
|
||||||
{{ button.label }}
|
</ButtonCTA>
|
||||||
</ButtonCTA>
|
|
||||||
</NuxtLink>
|
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
},
|
},
|
||||||
"button": {
|
"button": {
|
||||||
"label": "entrar al aula",
|
"label": "entrar al aula",
|
||||||
"link": "",
|
"link": "https://aula.kit-eco.social/",
|
||||||
"color": "button"
|
"color": "button"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -101,4 +101,4 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
},
|
},
|
||||||
"button": {
|
"button": {
|
||||||
"label": "EXPLORAR LA HERRAMIENTA",
|
"label": "EXPLORAR LA HERRAMIENTA",
|
||||||
"link": "",
|
"link": "https://certifica-t.kit-eco.social/",
|
||||||
"color": "button"
|
"color": "button"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -127,4 +127,4 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
},
|
},
|
||||||
"button": {
|
"button": {
|
||||||
"label": "Entrar al Marketplace",
|
"label": "Entrar al Marketplace",
|
||||||
"link": "",
|
"link": "https://consumo.kit-eco.social/",
|
||||||
"color": "button"
|
"color": "button"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -122,4 +122,4 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
},
|
},
|
||||||
"button": {
|
"button": {
|
||||||
"label": "Entrar al espacio",
|
"label": "Entrar al espacio",
|
||||||
"link": "",
|
"link": "https://foro.kit-eco.social/",
|
||||||
"color": "button"
|
"color": "button"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -110,4 +110,4 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
},
|
},
|
||||||
"button": {
|
"button": {
|
||||||
"label": "comenzar autodiagnóstico",
|
"label": "comenzar autodiagnóstico",
|
||||||
"link": "",
|
"link": "https://iguales.kit-eco.social/",
|
||||||
"color": "button"
|
"color": "button"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -135,4 +135,4 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
},
|
},
|
||||||
"button": {
|
"button": {
|
||||||
"label": "comenzar autodianóstico",
|
"label": "comenzar autodianóstico",
|
||||||
"link": "",
|
"link": "https://objetivo2030.kit-eco.social/",
|
||||||
"color": "button"
|
"color": "button"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -91,4 +91,4 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user