diff --git a/tryit-frontend/components/home/ContactForm.vue b/tryit-frontend/components/home/ContactForm.vue
new file mode 100644
index 0000000..4d02f7d
--- /dev/null
+++ b/tryit-frontend/components/home/ContactForm.vue
@@ -0,0 +1,188 @@
+
+
+
+
+ Ha habido un error al enviar el mensaje de contacto
+
+
+ Se ha envidado el mensaje de contacto correctamente
+
+
+
+ Contacta con nosotros
+
+
+
+
+
+
+
+
+
+ Introduce tu nombre, correo y mensaje para contactar con nosotros.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ mdi-hand-coin
+
+
+ {{credits}}
+
+
+
+
+
+
+
+
+ mdi-send
+
+ Enviar mensaje
+
+
+
+
+ mdi-close
+
+
+ Cerrar
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/tryit-frontend/components/index.ts b/tryit-frontend/components/index.ts
index d4625b4..f2c97d7 100644
--- a/tryit-frontend/components/index.ts
+++ b/tryit-frontend/components/index.ts
@@ -7,4 +7,4 @@ export { default as DialButton } from "./home/DialButton.vue"
export { default as Timeline } from "./home/Timeline.vue"
export { default as QRReader } from "./home/QRReader.vue"
export { default as PopupLottery } from "./home/PopupLottery.vue"
-
+export { default as ContactForm } from "./home/ContactForm.vue"
diff --git a/tryit-frontend/layouts/default.vue b/tryit-frontend/layouts/default.vue
index fb069bb..db1e19a 100644
--- a/tryit-frontend/layouts/default.vue
+++ b/tryit-frontend/layouts/default.vue
@@ -137,6 +137,20 @@
LOGOUT
+
+
+ mdi-account
+
+
+ CONTACTA
+
@@ -177,6 +191,7 @@ import * as Components from "../components";
PopupLogin: Components.PopupLogin,
Timeline: Components.Timeline,
QRReader: Components.QRReader,
+ ContactForm: Components.ContactForm,
}
})
@@ -206,6 +221,9 @@ export default class extends Vue {
checkLogin() { // @info Returns TRUE iff user is currently logged in and is admin
return this.$store.getters.getLogged && this.$store.getters.getAdmin
}
+ launchContactForm() {
+ this.$nuxt.$emit("toggleContactForm")
+ }
}
diff --git a/tryit-frontend/pages/index.vue b/tryit-frontend/pages/index.vue
index 89b5c3b..ab6b4fe 100644
--- a/tryit-frontend/pages/index.vue
+++ b/tryit-frontend/pages/index.vue
@@ -22,6 +22,7 @@
+
¿Qué ofrecemos?
@@ -151,6 +152,7 @@ import {
QRReader,
ViewEcts,
PopupLottery,
+ ContactForm,
} from "../components"
//import { Context } from '@nuxt/types'
@@ -164,7 +166,8 @@ import {
DialButton,
Timeline,
QRReader,
- PopupLottery
+ PopupLottery,
+ ContactForm,
},
})
@@ -194,6 +197,9 @@ export default class extends Vue {
toggleQRReader() {
this.$nuxt.$emit("toggleQRReader")
}
+ toggleContactForm() {
+ this.$nuxt.$emit("toggleContactForm")
+ }
}