=4.0.0"
}
},
+ "node_modules/sweetalert2": {
+ "version": "11.22.2",
+ "resolved": "https://registry.npmjs.org/sweetalert2/-/sweetalert2-11.22.2.tgz",
+ "integrity": "sha512-GFQGzw8ZXF23PO79WMAYXLl4zYmLiaKqYJwcp5eBF07wiI5BYPbZtKi2pcvVmfUQK+FqL1risJAMxugcPbGIyg==",
+ "license": "MIT",
+ "funding": {
+ "type": "individual",
+ "url": "https://github.com/sponsors/limonte"
+ }
+ },
"node_modules/tapable": {
"version": "1.1.3",
"resolved": "https://registry.npmjs.org/tapable/-/tapable-1.1.3.tgz",
@@ -21519,6 +21530,11 @@
"util.promisify": "~1.0.0"
}
},
+ "sweetalert2": {
+ "version": "11.22.2",
+ "resolved": "https://registry.npmjs.org/sweetalert2/-/sweetalert2-11.22.2.tgz",
+ "integrity": "sha512-GFQGzw8ZXF23PO79WMAYXLl4zYmLiaKqYJwcp5eBF07wiI5BYPbZtKi2pcvVmfUQK+FqL1risJAMxugcPbGIyg=="
+ },
"tapable": {
"version": "1.1.3",
"resolved": "https://registry.npmjs.org/tapable/-/tapable-1.1.3.tgz",
diff --git a/package.json b/package.json
index 985a1ee..5ebfb32 100644
--- a/package.json
+++ b/package.json
@@ -15,6 +15,7 @@
"moment": "^2.29.1",
"nuxt": "^2.15.3",
"nuxt-buefy": "^0.4.4",
+ "sweetalert2": "^11.22.2",
"validator": "^13.6.0"
},
"devDependencies": {
diff --git a/pages/index.vue b/pages/index.vue
index fd28abc..4d31adf 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -1,5 +1,7 @@
+
+
+
+
+
+
{{ type }}
@@ -27,6 +33,7 @@
+
+
\ No newline at end of file
diff --git a/pages/profesor/correo.vue b/pages/profesor/correo.vue
new file mode 100644
index 0000000..b966fb6
--- /dev/null
+++ b/pages/profesor/correo.vue
@@ -0,0 +1,20 @@
+
+
+
+
+ - Asunto: Inscripción CEDETEC
+ - Estimado profesor(a) {{ nombre }}
+ - Informo que su inscripción fue realizad con éxito.
+
+
+
+
¿Cómo puede hacer uso de los servicios?
+ Es necesario revise los siguientes videos para solicitar equipo en el área de profesores.
+
+
+
Nota:
+
Es importante revisar los lineamientos de uso para hacer uso de los servicios que ofrece el CEDETEC.
+
+
+
+
diff --git a/pages/profesor/registro-profesor.vue b/pages/profesor/registro-profesor.vue
new file mode 100644
index 0000000..e69de29
diff --git a/utils/alerts.js b/utils/alerts.js
new file mode 100644
index 0000000..6826d14
--- /dev/null
+++ b/utils/alerts.js
@@ -0,0 +1,44 @@
+// src/utils/alerts.js
+import Swal from 'sweetalert2';
+
+export const inscripcionExitosa = (correo) => {
+ Swal.fire({
+ title: '¡Inscripción exitosa!',
+ html: `Hemos enviado un correo a
${correo} por favor revisar su correo.`,
+ icon: 'success',
+ confirmButtonText: 'Aceptar',
+ confirmButtonColor: '#28a745',
+ backdrop: true,
+ allowOutsideClick: false,
+ });
+};
+
+export const errorAlInscribir = () => {
+ Swal.fire({
+ title: 'Error',
+ text: 'No se pudo completar la inscripción. Intenta más tarde.',
+ icon: 'error',
+ confirmButtonText: 'Aceptar',
+ confirmButtonColor: '#d33',
+ });
+};
+
+export const errorBuscar = () => {
+ Swal.fire({
+ title: 'Error',
+ text: 'Por favor confirme que la informacion enviada es correcta en caso contrario redirigirse a su programa academico',
+ icon: 'error',
+ confirmButtonText: 'Aceptar',
+ confirmButtonColor: '#d33',
+ });
+};
+
+export const profesorYaInscrito = () => {
+ Swal.fire({
+ title: 'Error',
+ text: 'El profesor ya esta inscrito, por favor verificar el correo enviado anteriormente.',
+ icon: 'error',
+ confirmButtonText: 'Aceptar',
+ confirmButtonColor: '#d33',
+ })
+}
\ No newline at end of file