' . "\n";
$contido .= '
' . "\n";
$contido .= '' . "\n";
diff --git a/site/templates/css/style.css b/site/templates/css/style.css
index af7f7ee..abd5b61 100644
--- a/site/templates/css/style.css
+++ b/site/templates/css/style.css
@@ -10,6 +10,15 @@ body
font-size: 1rem;
}
+body.signin
+{
+ display: flex;
+ align-items: center;
+ padding-top: 40px;
+ padding-bottom: 40px;
+ background-color: #f5f5f5;
+}
+
a
{
color: rgba(var(--cor_30), var(--bs-link-opacity, 1));
@@ -274,18 +283,18 @@ time span
padding-right: unset;
}
-.form-floating > .form-control,
-.form-floating > .form-control-plaintext,
-.form-floating > .form-select
+#search .form-floating > .form-control,
+#search .form-floating > .form-control-plaintext,
+#search .form-floating > .form-select
{
height: calc(2.25rem + 2px);
line-height: 1.25;
}
-.form-floating > .form-control:focus ~ label,
-.form-floating > .form-control:not(:placeholder-shown) ~ label,
-.form-floating > .form-control-plaintext ~ label,
-.form-floating > .form-select ~ label
+#search .form-floating > .form-control:focus ~ label,
+#search .form-floating > .form-control:not(:placeholder-shown) ~ label,
+#search .form-floating > .form-control-plaintext ~ label,
+#search .form-floating > .form-select ~ label
{
height: unset;
width: unset;
@@ -410,6 +419,31 @@ a.collapse-head.active:before
border-color: rgba(var(--cor_30), var(--bs-border-opacity)) !important;
}
+.form-signin
+{
+ max-width: 330px;
+ padding: 15px;
+}
+
+.form-signin .form-floating:focus-within
+{
+ z-index: 2;
+}
+
+.form-signin input[type="text"]
+{
+ margin-bottom: -1px;
+ border-bottom-right-radius: 0;
+ border-bottom-left-radius: 0;
+}
+
+.form-signin input[type="password"]
+{
+ margin-bottom: 10px;
+ border-top-left-radius: 0;
+ border-top-right-radius: 0;
+}
+
@media (min-width: 992px)
{
#menu-desplegable .nav-item,
diff --git a/site/templates/js/main.js b/site/templates/js/main.js
index e7039b0..81931cd 100644
--- a/site/templates/js/main.js
+++ b/site/templates/js/main.js
@@ -22,7 +22,6 @@ document.addEventListener("hide.bs.collapse", function (e)
e.target.previousElementSibling.classList.remove("active");
});
-
const swiper_galeria = new Swiper("#galeria",
{
slidesPerView: 1,
@@ -50,3 +49,58 @@ const swiper_galeria = new Swiper("#galeria",
},
});
+function getLogin(event)
+{
+ event.preventDefault();
+ grecaptcha.ready(function()
+ {
+ grecaptcha.execute('6LexXqYiAAAAACwDpMGIg1OMnAXVJU0VmbEMQUD8', { action: 'submit' }).then(function(token)
+ {
+ var form = document.getElementById("inicio-sesion");
+ var boton_token = document.createElement('input');
+
+ boton_token.type = 'hidden';
+ boton_token.name = 'token';
+ boton_token.id = 'token';
+ boton_token.value = token;
+
+ var boton_action = document.createElement('input');
+ boton_action.type = 'hidden';
+ boton_action.name = 'action';
+ boton_action.id = 'action';
+ boton_action.value = 'submit';
+
+ form.appendChild(boton_token);
+ form.appendChild(boton_action);
+ form.submit();
+ });;
+ });
+}
+
+function getContact(event)
+{
+ event.preventDefault();
+ grecaptcha.ready(function()
+ {
+ grecaptcha.execute('6LexXqYiAAAAACwDpMGIg1OMnAXVJU0VmbEMQUD8', { action: 'submit' }).then(function(token)
+ {
+ var form = document.getElementById("formulario-contacto");
+ var boton_token = document.createElement('input');
+
+ boton_token.type = 'hidden';
+ boton_token.name = 'token';
+ boton_token.id = 'token';
+ boton_token.value = token;
+
+ var boton_action = document.createElement('input');
+ boton_action.type = 'hidden';
+ boton_action.name = 'action';
+ boton_action.id = 'action';
+ boton_action.value = 'submit';
+
+ form.appendChild(boton_token);
+ form.appendChild(boton_action);
+ form.submit();
+ });;
+ });
+}
\ No newline at end of file
diff --git a/site/templates/layout/partial/main_foot.php b/site/templates/layout/partial/main_foot.php
index 22f18c2..11b396d 100644
--- a/site/templates/layout/partial/main_foot.php
+++ b/site/templates/layout/partial/main_foot.php
@@ -27,6 +27,8 @@
+
+