This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Recetas cocteles | |
https://www.thecocktaildb.com/ | |
Recetas Comidas | |
https://www.themealdb.com/ | |
https://undraw.co/illustrations?fbclid=IwAR1L5IGumrG6MpeeSdZz7d6iV2wY9LKObizS9qdK21gvwJ5HnbnUAXl8juw |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Variables | |
const btnEnviar = document.querySelector('#enviar'); | |
const btnReset = document.querySelector('#resetBtn'); | |
const formulario = document.querySelector('#enviar-mail'); | |
// Variables para campos | |
const email = document.querySelector('#email'); | |
const asunto = document.querySelector('#asunto'); | |
const mensaje = document.querySelector('#mensaje'); | |
const er = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// crea un nuevo registro | |
public function crear() { | |
// Sanitizar los datos | |
$atributos = $this->sanitizarAtributos(); | |
// Insertar en la base de datos | |
$query = " INSERT INTO " . static::$tabla . " ( "; | |
$query .= join(', ', array_keys($atributos)); | |
$query .= " ) VALUES ('"; | |
$query .= join("', '", array_values($atributos)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:root{ | |
--fuenteHeading: 'PT Sans', sans-serif; | |
--fuenteParrafos: 'Open Sans', sans-serif | |
--primario: #784d3c; | |
--blanco: #ffffff; | |
--negro: #000000; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Calculadora de Propinas y Consumos</title> | |
<link rel="stylesheet" href="css/bootstrap.min.css"> | |
<link rel="stylesheet" href="css/app.css"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Validar que sea un id válido | |
$id = $_GET['id']; | |
$id = filter_var($id, FILTER_VALIDATE_INT); | |
if (!$id) { | |
header('Location: /admin'); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- -------------------------------------------------------- | |
-- Host: 127.0.0.1 | |
-- Versión del servidor: 8.0.27 - MySQL Community Server - GPL | |
-- SO del servidor: Win64 | |
-- HeidiSQL Versión: 11.2.0.6213 | |
-- -------------------------------------------------------- | |
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | |
/*!40101 SET NAMES utf8 */; | |
/*!50503 SET NAMES utf8mb4 */; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://unsplash.com/ | |
https://burst.shopify.com/ | |
https://www.pexels.com/ | |
https://pixabay.com/ | |
https://www.freeimages.com/ | |
https://kaboompics.com/ | |
https://stocksnap.io/ | |
https://www.canva.com/photos/free/ | |
https://www.lifeofpix.com/ | |
https://gratisography.com/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- -------------------------------------------------------- | |
-- Host: 127.0.0.1 | |
-- Versión del servidor: 8.0.27 - MySQL Community Server - GPL | |
-- SO del servidor: Win64 | |
-- HeidiSQL Versión: 11.2.0.6213 | |
-- -------------------------------------------------------- | |
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | |
/*!40101 SET NAMES utf8 */; | |
/*!50503 SET NAMES utf8mb4 */; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<main class="contenido-principal contenedor"> | |
<h2 class="text-center">Nuestros Productos</h2> | |
<div class="listado-productos"> | |
<div class="producto"> | |
<img src="img/producto1.jpg" alt="Imagen Producto"> | |
<div class="texto-producto"> | |
<h3>Producto 1</h3> | |
<p>Proin condimentum sodales risus ut aliquet. Nunc eu neque quis sapien feugiat posuere sed nec |