init CTA
This commit is contained in:
@@ -1,57 +1,50 @@
|
||||
<template>
|
||||
<section class="pb-20 px-4 bg-cover text-center">
|
||||
|
||||
<div class="w-full max-w-7xl mx-auto"
|
||||
v-if="id == 'why'"
|
||||
>
|
||||
<div class="w-full max-w-2xl mx-auto" v-if="id == 'why'">
|
||||
<h2
|
||||
v-if="cta.title"
|
||||
class="text-5xl text-center uppercase mb-0 leading-none font-light font-heading"
|
||||
class="text-6xl text-center uppercase mb-2 leading-none font-light font-heading"
|
||||
>
|
||||
{{ cta.title }}
|
||||
</h2>
|
||||
<span
|
||||
class="text-center uppercase mb-6 leading-none text-5xl font-black font-heading"
|
||||
>
|
||||
{{ cta.slogan }}
|
||||
</span>
|
||||
<span
|
||||
class="text-center uppercase leading-none text-5xl text-gray-800 font-black font-heading"
|
||||
>
|
||||
{{ cta.slogan }}
|
||||
</span>
|
||||
<div
|
||||
v-html="cta.content"
|
||||
class="mb-8 text-center text-lg text-gray-800"
|
||||
class="mb-8 mt-10 text-center text-lg text-gray-800"
|
||||
></div>
|
||||
<div class="mt-8 tracking-wide leading-loose" v-if="cta.video_button">
|
||||
<a
|
||||
@click="toggleModal"
|
||||
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-gray-900 text-sm learn-button hover:bg-gray-800 text-gray-100 px-12 py-2 mr-5 mb-4 rounded shadow rounded-full"
|
||||
>{{ cta.video_button }}</a
|
||||
>
|
||||
</div>
|
||||
<a
|
||||
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-gray-900 text-sm learn-button hover:bg-gray-800 text-gray-100 px-12 py-2 mr-5 mb-4 rounded shadow rounded-full"
|
||||
target="_blank"
|
||||
v-if="cta.button"
|
||||
:href="cta.link"
|
||||
>{{ cta.button }}</a
|
||||
>
|
||||
<g-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-gray-900 text-sm learn-button hover:bg-gray-800 text-gray-100 px-12 py-2 mr-5 mb-4 rounded shadow rounded-full"
|
||||
v-if="cta.button2"
|
||||
:to="cta.link2"
|
||||
>{{ cta.button2 }}</g-link
|
||||
>
|
||||
<g-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-gray-900 text-sm learn-button hover:bg-gray-800 text-gray-100 px-12 py-2 mr-5 mb-4 rounded shadow rounded-full"
|
||||
v-if="cta.button3"
|
||||
:to="cta.link3"
|
||||
>{{ cta.button3 }}</g-link
|
||||
>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="w-full max-w-7xl mx-auto" v-else>
|
||||
<div class="w-full max-w-7xl mx-auto" v-else>
|
||||
<h2
|
||||
v-if="cta.title"
|
||||
class="text-4xl leading-tight font-semibold font-heading"
|
||||
@@ -101,7 +94,7 @@
|
||||
import Modal from "~/components/custom/Modal.vue";
|
||||
|
||||
export default {
|
||||
props: ["cta" , "id"],
|
||||
props: ["cta", "id"],
|
||||
data() {
|
||||
return {
|
||||
showModal: false,
|
||||
@@ -118,8 +111,8 @@ export default {
|
||||
this.showModal = false;
|
||||
},
|
||||
},
|
||||
mounted(){
|
||||
console.log(this.id)
|
||||
}
|
||||
mounted() {
|
||||
console.log(this.id);
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user