diff --git a/components/ButtonCTA.vue b/components/ButtonCTA.vue
index 985d1c0..0e5a1d4 100644
--- a/components/ButtonCTA.vue
+++ b/components/ButtonCTA.vue
@@ -1,7 +1,11 @@
+ :disabled="disabled"
+ :class="buttonClasses"
+ :href="href ? href : to"
+ :target="isExternal ? '_blank' : null"
+ rel="noopener noreferrer"
+ @click="handleClick">
@@ -20,26 +24,50 @@ export default {
size: {
type: String,
default: "md",
- }
+ },
+ to: {
+ type: [String, Object, null],
+ default: null,
+ },
+ href: {
+ type: [ String, null],
+ default: null,
+ },
},
computed: {
+ isNuxtLink() {
+ return !!this.to;
+ },
+ isExternal() {
+ return !!this.href;
+ },
+ tag() {
+ if (this.isNuxtLink) return 'NuxtLink';
+ if (this.isExternal) return 'a';
+ return 'button';
+ },
buttonClasses() {
return {
- "px-3.5 py-2 gap-x-2 text-sm": this.size === "sm",
- "px-5 py-2.5 gap-x-2 text-sm": this.size === "md",
- "px-6 py-4 gap-x-1 text-base": this.size === "lg",
+ "px-3.5 py-2 gap-x-2 text-sm cursor-pointer": this.size === "sm",
+ "px-5 py-2.5 gap-x-2 text-sm cursor-pointer": this.size === "md",
+ "px-6 py-4 gap-x-1 text-base cursor-pointer": this.size === "lg",
"bg-button hover:bg-button-hover text-white rounded-xl shadow-button":
this.color === "button" && !this.disabled,
"cursor-not-allowed bg-gray-200 border border-gray-400 text-gray-400 stroke-current rounded-xl shadow-button":
this.color === "button" && this.disabled,
+ "text-button hover:text-button-hover":
+ this.color === "only-link" && !this.disabled,
+ "cursor-not-allowed bg-gray-200 border border-gray-400 text-gray-400 stroke-current rounded-xl shadow-button":
+ this.color === "only-link" && this.disabled,
+
"bg-aula-base hover:bg-button hover:text-white rounded-xl shadow-button":
this.color === "aula-base" && !this.disabled,
"cursor-not-allowed bg-gray-200 border border-gray-400 text-gray-400 stroke-current rounded-xl shadow-button":
this.color === "aula-base" && this.disabled,
};
- }
+ },
},
methods: {
handleClick($ev) {
@@ -49,4 +77,4 @@ export default {
},
},
};
-
\ No newline at end of file
+
diff --git a/components/CardCompany.vue b/components/CardCompany.vue
index e56854b..68a60ad 100644
--- a/components/CardCompany.vue
+++ b/components/CardCompany.vue
@@ -13,9 +13,9 @@
-
- {{ link.label }}
-
+
+ {{ link.label }}
+
@@ -33,7 +33,7 @@ export default {
default: null,
},
link: {
- type: String,
+ type: Object,
default: null
},
},
diff --git a/components/HeroHome.vue b/components/HeroHome.vue
index d3bf6c2..8f10b76 100644
--- a/components/HeroHome.vue
+++ b/components/HeroHome.vue
@@ -17,11 +17,9 @@
{{ title }}
{{ subtitle }}
-
-
- {{ button.label }}
-
-
+
+ {{ button.label }}
+
diff --git a/components/NavBar.vue b/components/NavBar.vue
index 5b543fe..f1a7c5b 100644
--- a/components/NavBar.vue
+++ b/components/NavBar.vue
@@ -47,11 +47,9 @@
-
-
+
AULA VIRTUAL
-
diff --git a/components/SectionWithCards.vue b/components/SectionWithCards.vue
index 9b83ba5..fc4c6e4 100644
--- a/components/SectionWithCards.vue
+++ b/components/SectionWithCards.vue
@@ -57,11 +57,9 @@
{{ buttonSection.title }}
-
-
+
{{ buttonSection?.button?.label }}
-
diff --git a/components/TextWithIconAndButtons.vue b/components/TextWithIconAndButtons.vue
index b35ca50..acce944 100644
--- a/components/TextWithIconAndButtons.vue
+++ b/components/TextWithIconAndButtons.vue
@@ -22,16 +22,12 @@
{{ title }}
-
-
- {{ button.label }}
-
-
-
-
- {{ button2.label }}
-
-
+
+ {{ button.label }}
+
+
+ {{ button2.label }}
+
diff --git a/components/TextWithImage.vue b/components/TextWithImage.vue
index 3e0c0a0..ac42bcc 100644
--- a/components/TextWithImage.vue
+++ b/components/TextWithImage.vue
@@ -40,9 +40,7 @@
{{ imageCTA.description }}
-
- {{ imageCTA.button.label }}
-
+
{{ imageCTA.button.label }}
diff --git a/components/WhatIs.vue b/components/WhatIs.vue
index 3e08e8e..2addc2a 100644
--- a/components/WhatIs.vue
+++ b/components/WhatIs.vue
@@ -14,11 +14,9 @@
-
-
- {{ button.label }}
-
-
+
+ {{ button.label }}
+