From 88f93c1c5eb05c525d96dfb1d930aed5bf7e688c Mon Sep 17 00:00:00 2001 From: mikel Date: Thu, 1 Feb 2024 12:12:15 +0100 Subject: [PATCH] commit3 --- CSS/main.css | 92 ++++++++++ HTML/Contactos.html | 21 ++- HTML/Eventos.html | 19 +++ HTML/Productos.html | 22 ++- HTML/Servicios.html | 19 +++ HTML/index.html | 29 +++- JS/index.js | 306 ++++++++++++++++++++++++++++------ RECURSOS/Logo/fotoCarrito.png | Bin 0 -> 16990 bytes 8 files changed, 453 insertions(+), 55 deletions(-) create mode 100644 RECURSOS/Logo/fotoCarrito.png diff --git a/CSS/main.css b/CSS/main.css index 756227a..a84506f 100644 --- a/CSS/main.css +++ b/CSS/main.css @@ -58,6 +58,73 @@ color: white; } +/*----------------------------Carrito Compra---------------------------*/ + +.cestaCompra { + display: flex; + flex-direction: row; + position: fixed; + cursor: pointer; + right: 5px; + bottom: 100px; + z-index: 999; + +} + +.img-carrito img{ + + width: 40px; + height: 40px; + +} +.desplegable-carrito { + display: none; + opacity: 0; + padding: 10px; +} + +.img-carrito:hover ~ .desplegable-carrito{ + display:block; + opacity: 1; + z-index: 999; + + } + + .cestaCompra:hover > .desplegable-carrito{ + display:block; + opacity: 1; + z-index: 999; + background-color: white; + } + .cestaCompra:hover > .img-carrito{ + opacity: 0; + } + + .articulo-carrito { + display: flex; + flex-direction: row; + justify-content: space-between; + } + + .articulo-carrito p{ + margin: 0 5px; + padding-top: 5px; + align-self: center; + } + + + + .listaCarrito { + list-style: none; + padding: 0; + margin: 0; + } + +.infoArticulo { + display: flex; + flex-direction: column; + padding: 5px; +} /*----------------------------Boton Arriba------------------*/ .btn-up { @@ -299,13 +366,25 @@ border-style: solid; margin: 0; font-weight: bold; + align-self: center; } .productos-disponibles { color: #576c57; } +.contenedor-boton-añadir { + display: flex; + align-items: center; +} +.añadirProd { + margin: 10px; + border-radius: 25%; + width: 80px; + height: 60px; + text-overflow: ellipsis; +} .item-lista-productos .container-carousel .btn-left, .item-lista-productos .container-carousel .btn-right { @@ -677,6 +756,10 @@ } + + + + .dropdown:hover > ul { display:block; opacity: 1; @@ -1045,6 +1128,15 @@ button.boton-enviar-form { .info-producto{ margin: 0; padding: 0; + display: flex; + flex-direction: column; + + } + .descripcion-producto{ + display: flex; + flex-direction: row; + text-align: center; + justify-content: center; } .slider-section-prod { padding: 0; diff --git a/HTML/Contactos.html b/HTML/Contactos.html index ab81432..5de5a88 100644 --- a/HTML/Contactos.html +++ b/HTML/Contactos.html @@ -39,6 +39,25 @@ + +
+
+ +
+ +
+

Total:

+ + + + + +
    +
+ + +
+
@@ -68,7 +87,7 @@

Contacta con La Forja

- +