From 2f35eda0ca709953453eb56269e96d70456ac820 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Fri, 27 Dec 2019 12:18:55 -0500 Subject: static contact and remove mail.php form --- index.php | 16 +- mail/mail.php | 32 -- templates/README.md | 10 +- templates/css/estilos.min.css | 2 +- templates/gnupg/heckyel_pub.asc | 743 ++++++++++++++++++++++++++++++++++++++++ templates/index.tpl | 24 +- templates/js/formulario.js | 64 ---- templates/js/formulario.min.js | 3 - templates/librejs.html | 17 - templates/sass/_front.sass | 8 +- 10 files changed, 766 insertions(+), 153 deletions(-) delete mode 100644 mail/mail.php create mode 100644 templates/gnupg/heckyel_pub.asc delete mode 100644 templates/js/formulario.js delete mode 100644 templates/js/formulario.min.js delete mode 100644 templates/librejs.html diff --git a/index.php b/index.php index 6e7a04f..48da6ca 100644 --- a/index.php +++ b/index.php @@ -4,7 +4,6 @@ $titulo="Sitio personal de Jesús"; $nombre="Jesús"; $profesion="Desarrollador"; $description="Este es el sitio web personal de Jesús, un desarrollador, colaborador y hacker de proyectos con software Libre en reemplazo a las tecnologías privativas."; -$enviado = ""; /* ---- ---- Generated URL ---- ---- */ if ( isset( $_SERVER["HTTPS"] ) && $_SERVER["HTTPS"] == "on" ) { @@ -17,9 +16,6 @@ $extract_url = $pro."://".$_SERVER['SERVER_NAME'].$_SERVER['SCRIPT_NAME']; // URL $siteurl = preg_replace( '/index.php/', '', $extract_url ); -/* ---- ---- Correo ---- ---- */ -require_once('mail/mail.php'); - /* ---- ---- Menu ---- ---- */ $html=new Smarty; $html->assign("siteurl", $siteurl); @@ -32,20 +28,12 @@ $html->assign('yesterday', strtotime("now")); /* ---- ---- Description and Author ---- ---- */ $html->assign("description", $description); -/* ---- ---- EMAIL ---- ---- */ -$html->assign("enviado", $enviado); - /* ---- ---- CSS ---- ---- */ $html->assign('templates', array('estilos' => 'templates/css/estilos.min.css', 'normalize' => 'templates/css/normalize.css', 'favicon' => 'templates/images/favicon.png') ); -/* ---- ---- LibreJS ---- ---- */ -$html->assign('librejs', array('librejs' => 'templates/librejs.html', - 'formulario' => 'templates/js/formulario.min.js') -); - /* ---- ---- Projects and redes Sociales Libres ---- ---- */ $html->assign('projects', array('cl' => 'https://conocimientoslibres.tuxfamily.org', @@ -53,6 +41,10 @@ $html->assign('projects', 'librevideojs' => 'https://notabug.org/heckyel/librevideojs') ); +$html->assign('contacto', + array('keygpg' => 'templates/gnupg/heckyel_pub.asc') +); + $html->assign('sociales', array('diaspora' => 'https://diasp.org/u/heckyel', 'gnusocial' => 'https://quitter.cl/heckyel', diff --git a/mail/mail.php b/mail/mail.php deleted file mode 100644 index f07087f..0000000 --- a/mail/mail.php +++ /dev/null @@ -1,32 +0,0 @@ -
-

LibreVideoJS

+

LibreVideoJS

CSS - ECMAScript

@@ -72,7 +72,7 @@ Hyperbola
-

Hyperbola GNU/Linux-Libre

+

Hyperbola GNU/Linux-Libre

GNU + Linux-Libre

@@ -81,7 +81,7 @@ Conocimientos Libres
-

Conocimientos Libres

+

Conocimientos Libres

HTML5 + Bootstrap 3 + CSS3 + ECMAScript

@@ -93,14 +93,15 @@ - diff --git a/templates/js/formulario.js b/templates/js/formulario.js deleted file mode 100644 index 00bd9a8..0000000 --- a/templates/js/formulario.js +++ /dev/null @@ -1,64 +0,0 @@ -/* -@licstart The following is the entire license notice for the -JavaScript code in this page. - -Copyleft 2019 | Heckyel - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -See the GNU General Public License for more details. - -@licend The above is the entire license notice -for the JavaScript code in this page. -*/ - -(function(){ - let formulario = document.getElementById('formulario'), - nombre = formulario.nombre, - correo = formulario.correo, - mensaje = formulario.mensaje, - error = document.getElementById('error'); - - function validarNombre(e){ - if(nombre.value == '' || nombre.value == null){ - console.info('Por favor completa el nombre'); - error.style.display = 'block'; - error.innerHTML = error.innerHTML + '
  • Por favor completa el nombre
  • '; - e.preventDefault(); - } - } - - function validarCorreo(e){ - if(correo.value == '' || correo.value == null){ - console.info('Por favor completa el correo'); - error.style.display = 'block'; - error.innerHTML = error.innerHTML + '
  • Por favor completa el correo
  • '; - e.preventDefault(); - } - } - - function validarMensaje(e){ - if(mensaje.value == '' || mensaje.value == null){ - console.info('Por favor completa el mensaje'); - error.style.display = 'block'; - error.innerHTML = error.innerHTML + '
  • Por favor completa el mensaje
  • '; - e.preventDefault(); - } - } - - function validarFormulario(e){ - error.innerHTML = ''; - error.style.display = 'none'; - validarNombre(e); - validarCorreo(e); - validarMensaje(e); - } - - formulario.addEventListener('submit', validarFormulario); -}()); diff --git a/templates/js/formulario.min.js b/templates/js/formulario.min.js deleted file mode 100644 index d58b9d2..0000000 --- a/templates/js/formulario.min.js +++ /dev/null @@ -1,3 +0,0 @@ -// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later -!function(){function e(e){""!=a.value&&null!=a.value||(console.info("Por favor completa el nombre"),c.style.display="block",c.innerHTML=c.innerHTML+"
  • Por favor completa el nombre
  • ",e.preventDefault())}function l(e){""!=t.value&&null!=t.value||(console.info("Por favor completa el correo"),c.style.display="block",c.innerHTML=c.innerHTML+"
  • Por favor completa el correo
  • ",e.preventDefault())}function n(e){""!=i.value&&null!=i.value||(console.info("Por favor completa el mensaje"),c.style.display="block",c.innerHTML=c.innerHTML+"
  • Por favor completa el mensaje
  • ",e.preventDefault())}function o(o){c.innerHTML="",c.style.display="none",e(o),l(o),n(o)}var r=document.getElementById("formulario"),a=r.nombre,t=r.correo,i=r.mensaje,c=document.getElementById("error");r.addEventListener("submit",o)}(); -// @license-end diff --git a/templates/librejs.html b/templates/librejs.html deleted file mode 100644 index a9950cf..0000000 --- a/templates/librejs.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - - JavaScript license information - - - - - - - - - -
    formulario.min.jsGNU-GPL-3.0-or-laterformulario.js
    - - diff --git a/templates/sass/_front.sass b/templates/sass/_front.sass index 4448941..0c50530 100644 --- a/templates/sass/_front.sass +++ b/templates/sass/_front.sass @@ -9,6 +9,11 @@ body margin: auto overflow: hidden +a + &.link + text-decoration: none + color: #3895ea + /* ---- ---- HEADER ---- ---- */ header @@ -114,9 +119,6 @@ main font-weight: 700 color: #3895ea margin-bottom: 10px - a - text-decoration: none - color: #3895ea .categoria font-size: 0.8rem color: #636363 -- cgit v1.2.3