From 8a6e70d6c0250d91d00efe3454ebc07ef33185e1 Mon Sep 17 00:00:00 2001 From: Ingelias1205 Date: Fri, 4 Aug 2023 15:59:05 -0500 Subject: [PATCH 1/7] Actualizacion 1 --- index.html | 169 +++---------------- main.js | 117 +------------ styles.css | 484 ++++++++++++++--------------------------------------- 3 files changed, 150 insertions(+), 620 deletions(-) diff --git a/index.html b/index.html index 8e91d429a..b37182513 100644 --- a/index.html +++ b/index.html @@ -4,14 +4,11 @@ - + YardSale: Tienda online - - - - YardSale: tienda online de cositas chidas + - - - - - -
-
- - - -
-
- - + + - + \ No newline at end of file diff --git a/main.js b/main.js index 7ebb1bb3e..c7b649b12 100644 --- a/main.js +++ b/main.js @@ -1,119 +1,10 @@ const menuEmail = document.querySelector('.navbar-email'); -const menuHamIcon = document.querySelector('.menu'); -const menuCarritoIcon = document.querySelector('.navbar-shopping-cart'); -const productDetailCloseIcon = document.querySelector('.product-detail-close') const desktopMenu = document.querySelector('.desktop-menu'); -const mobileMenu = document.querySelector('.mobile-menu'); -const shoppingCartContainer = document.querySelector('#shoppingCartContainer'); -const productDetailContainer = document.querySelector('#productDetail'); -const cardsContainer = document.querySelector('.cards-container'); menuEmail.addEventListener('click', toggleDesktopMenu); -menuHamIcon.addEventListener('click', toggleMobileMenu); -menuCarritoIcon.addEventListener('click', toggleCarritoAside); -productDetailCloseIcon.addEventListener('click', closeProductDetailAside); -function toggleDesktopMenu() { - const isAsideClosed = shoppingCartContainer.classList.contains('inactive'); - - if (!isAsideClosed) { - shoppingCartContainer.classList.add('inactive'); - } - - desktopMenu.classList.toggle('inactive'); -} - -function toggleMobileMenu() { - const isAsideClosed = shoppingCartContainer.classList.contains('inactive'); - - if (!isAsideClosed) { - shoppingCartContainer.classList.add('inactive'); - } - - closeProductDetailAside(); - - mobileMenu.classList.toggle('inactive'); -} - -function toggleCarritoAside() { - const isMobileMenuClosed = mobileMenu.classList.contains('inactive'); - - if (!isMobileMenuClosed) { - mobileMenu.classList.add('inactive'); - } - - const isProductDetailClosed = productDetailContainer.classList.contains('inactive'); - - if (!isProductDetailClosed) { - productDetailContainer.classList.add('inactive'); - } - - shoppingCartContainer.classList.toggle('inactive'); +function toggleDesktopMenu(){ + console.log('click'); + desktopMenu.classList.toggle('inactive'); } - -function openProductDetailAside() { - shoppingCartContainer.classList.add('inactive'); - productDetailContainer.classList.remove('inactive'); -} - -function closeProductDetailAside() { - productDetailContainer.classList.add('inactive'); -} - -const productList = []; -productList.push({ - name: 'Bike', - price: 120, - image: 'https://images.pexels.com/photos/276517/pexels-photo-276517.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940', -}); -productList.push({ - name: 'Pantalla', - price: 220, - image: 'https://images.pexels.com/photos/276517/pexels-photo-276517.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940', -}); -productList.push({ - name: 'Compu', - price: 620, - image: 'https://images.pexels.com/photos/276517/pexels-photo-276517.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940', -}); - -function renderProducts(arr) { - for (product of arr) { - const productCard = document.createElement('div'); - productCard.classList.add('product-card'); - - // product= {name, price, image} -> product.image - const productImg = document.createElement('img'); - productImg.setAttribute('src', product.image); - productImg.addEventListener('click', openProductDetailAside); - - const productInfo = document.createElement('div'); - productInfo.classList.add('product-info'); - - const productInfoDiv = document.createElement('div'); - - const productPrice = document.createElement('p'); - productPrice.innerText = '$' + product.price; - const productName = document.createElement('p'); - productName.innerText = product.name; - - productInfoDiv.appendChild(productPrice); - productInfoDiv.appendChild(productName); - - const productInfoFigure = document.createElement('figure'); - const productImgCart = document.createElement('img'); - productImgCart.setAttribute('src', './icons/bt_add_to_cart.svg'); - - productInfoFigure.appendChild(productImgCart); - - productInfo.appendChild(productInfoDiv); - productInfo.appendChild(productInfoFigure); - - productCard.appendChild(productImg); - productCard.appendChild(productInfo); - - cardsContainer.appendChild(productCard); - } -} - -renderProducts(productList); +console.log('hola'); \ No newline at end of file diff --git a/styles.css b/styles.css index 7228eedc8..e1137842a 100644 --- a/styles.css +++ b/styles.css @@ -1,380 +1,150 @@ -/* General */ :root { - --white: #FFFFFF; - --black: #000000; - --very-light-pink: #C7C7C7; - --text-input-field: #F7F7F7; - --hospital-green: #ACD9B2; - --sm: 14px; - --md: 16px; - --lg: 18px; -} -body { - margin: 0; - font-family: 'Quicksand', sans-serif; -} -.inactive { - display: none; -} - - -/* Navbar (general) */ -nav { - display: flex; - justify-content: space-between; - padding: 0 24px; - border-bottom: 1px solid var(--very-light-pink); -} -.menu { - display: none; -} -.logo { - width: 100px; -} -.navbar-left ul, -.navbar-right ul { - list-style: none; - padding: 0; - margin: 0; - display: flex; - align-items: center; - height: 60px; -} -.navbar-left { - display: flex; -} -.navbar-left ul { - margin-left: 12px; -} -.navbar-left ul li a, -.navbar-right ul li a { - text-decoration: none; - color: var(--very-light-pink); - border: 1px solid var(--white); - padding: 8px; - border-radius: 8px; -} -.navbar-left ul li a:hover, -.navbar-right ul li a:hover { - border: 1px solid var(--hospital-green); - color: var(--hospital-green); -} -.navbar-email { - color: var(--very-light-pink); - cursor: pointer; - font-size: var(--sm); - margin-right: 12px; -} -.navbar-shopping-cart { - position: relative; -} -.navbar-shopping-cart div { - width: 16px; - height: 16px; - background-color: var(--hospital-green); - border-radius: 50%; - font-size: var(--sm); - font-weight: bold; - position: absolute; - top: -6px; - right: -3px; - display: flex; - justify-content: center; - align-items: center; -} - -/* Menu en desktop */ -.desktop-menu { - position: absolute; - top: 60px; - right: 60px; - background: var(--white); - width: 100px; - height: auto; - border: 1px solid var(--very-light-pink); - border-radius: 6px; - padding: 20px 20px 0 20px; -} -.desktop-menu ul { - list-style: none; - padding: 0; - margin: 0; -} -.desktop-menu ul li { - text-align: end; -} -.desktop-menu ul li:nth-child(1), -.desktop-menu ul li:nth-child(2) { - font-weight: bold; -} -.desktop-menu ul li:last-child { - padding-top: 20px; - border-top: 1px solid var(--very-light-pink); -} -.desktop-menu ul li:last-child a { - color: var(--hospital-green); - font-size: var(--sm); -} -.desktop-menu ul li a { - color: var(--back); - text-decoration: none; - margin-bottom: 20px; - display: inline-block; -} + --white: #FFFFFF; + --black: #000000; + --very-light-pink: #C7C7C7; + --text-input-field: #F7F7F7; + --hospital-green: #ACD9B2; + --sm: 14px; + --md: 16px; + --lg: 18px; + } -/* Menu en mobile */ -.mobile-menu { - background-color: var(--white); - position: absolute; - top: 60px; - left: 0; - width: 100%; - padding: 24px; -} -.mobile-menu a { - text-decoration: none; - color: var(--black); - font-weight: bold; - /* margin-bottom: 24px; */ -} -.mobile-menu ul { - padding: 0; - margin: 24px 0 0; - list-style: none; -} -.mobile-menu ul:nth-child(1) { - border-bottom: 1px solid var(--very-light-pink); -} -.mobile-menu ul li { - margin-bottom: 24px; -} -.email { - font-size: var(--sm); - font-weight: 300 !important; -} -.sign-out { - font-size: var(--sm); - color: var(--hospital-green) !important; -} + body { + margin: 0; + font-family: 'Quicksand', sans-serif; + } + + .inactive{ + display: none; + } + nav { + display: flex; + justify-content: space-between; + padding: 0 24px; + border-bottom: 1px solid var(--very-light-pink); + } + + .menu { + display: none; + } + + .logo { + width: 100px; + } -/* Aside (product detail y carrito) */ -aside { - background-color: var(--white); - width: 360px; - box-sizing: border-box; - position: absolute; - right: 0; -} + .navbar-left ul, -/* ShoppingCart */ -#shoppingCartContainer { - padding: 0 24px; -} -.title-container { - display: flex; -} -.title-container img { - transform: rotate(180deg); - margin-right: 14px; -} -.title { - font-size: var(--lg); - font-weight: bold; -} -.order { - display: grid; - grid-template-columns: auto 1fr; - gap: 16px; - align-items: center; - background-color: var(--text-input-field); - margin-bottom: 24px; - border-radius: 8px; - padding: 0 24px; -} -.order p:nth-child(1) { - display: flex; - flex-direction: column; -} -.order p span:nth-child(1) { - font-size: var(--md); - font-weight: bold; -} -.order p:nth-child(2) { - text-align: end; - font-weight: bold; -} -.shopping-cart { - display: grid; - grid-template-columns: auto 1fr auto auto; - gap: 16px; - margin-bottom: 24px; - align-items: center; -} -.shopping-cart figure { - margin: 0; -} -.shopping-cart figure img { - width: 70px; - height: 70px; - border-radius: 20px; - object-fit: cover; -} -.shopping-cart p:nth-child(2) { - color: var(--very-light-pink); -} -.shopping-cart p:nth-child(3) { - font-size: var(--md); - font-weight: bold; -} -.primary-button { - background-color: var(--hospital-green); - border-radius: 8px; - border: none; - color: var(--white); - width: 100%; - cursor: pointer; - font-size: var(--md); - font-weight: bold; - height: 50px; -} + .navbar-right ul { + list-style: none; + padding: 0; + margin: 0; + display: flex; + align-items: center; + height: 60px; + } -/* ProductDetail */ -.product-detail-close { - background: var(--white); - width: 14px; - height: 14px; - position: absolute; - top: 24px; - left: 24px; - z-index: 2; - padding: 12px; - border-radius: 50%; -} -.product-detail-close:hover { - cursor: pointer; -} -#productDetail > img:nth-child(2) { - width: 100%; - height: 360px; - object-fit: cover; - border-radius: 0 0 20px 20px; -} -#productDetail .product-info { - margin: 24px 24px 0 24px; -} -#productDetail .product-info p:nth-child(1) { - font-weight: bold; - font-size: var(--md); - margin-top: 0; - margin-bottom: 4px; -} -#productDetail .product-info p:nth-child(2) { - color: var(--very-light-pink); - font-size: var(--md); - margin-top: 0; - margin-bottom: 36px; -} -#productDetail .product-info p:nth-child(3) { - color: var(--very-light-pink); - font-size: var(--sm); - margin-top: 0; - margin-bottom: 36px; -} -.primary-button { - background-color: var(--hospital-green); - border-radius: 8px; - border: none; - color: var(--white); - width: 100%; - cursor: pointer; - font-size: var(--md); - font-weight: bold; - height: 50px; -} -.add-to-cart-button { - display: flex; - align-items: center; - justify-content: center; -} + .navbar-left { + display: flex; + } + .navbar-left ul { + margin-left: 12px; + } -/* Product List */ -.cards-container { - display: grid; - grid-template-columns: repeat(auto-fill, 240px); - gap: 26px; - place-content: center; - margin-top: 20px; -} -.product-card { - width: 240px; -} -.product-card img { - width: 240px; - height: 240px; - border-radius: 20px; - object-fit: cover; -} -.product-card .product-info { - display: flex; - justify-content: space-between; - align-items: center; - margin-top: 12px; -} -.product-card .product-info figure { - margin: 0; -} -.product-card .product-info figure img { - width: 35px; - height: 35px; -} -.product-card .product-info div p:nth-child(1) { - font-weight: bold; - font-size: var(--md); - margin-top: 0; - margin-bottom: 4px; -} -.product-card .product-info div p:nth-child(2) { - font-size: var(--sm); - margin-top: 0; - margin-bottom: 0; - color: var(--very-light-pink); -} + .navbar-left ul li a, + .navbar-right ul li a { + text-decoration: none; + color: var(--very-light-pink); + border: 1px solid var(--white); + padding: 8px; + border-radius: 8px; + } + .navbar-left ul li a:hover, + .navbar-right ul li a:hover { + border: 1px solid var(--hospital-green); + color: var(--hospital-green); + } -@media (max-width: 640px) { - .menu { - display: block; + .navbar-email { + color: var(--very-light-pink); + cursor: pointer; + font-size: var(--sm); + margin-right: 12px; } - .navbar-left ul { - display: none; + + .navbar-shopping-cart { + position: relative; } - .navbar-email { - display: none; + + .navbar-shopping-cart div { + width: 16px; + height: 16px; + background-color: var(--hospital-green); + border-radius: 50%; + font-size: var(--sm); + font-weight: bold; + position: absolute; + top: -6px; + right: -3px; + display: flex; + justify-content: center; + align-items: center; } + .desktop-menu { - display: none; + position: absolute; + top: 60px; + right: 60px; + background: var(--white); + width: 100px; + height: auto; + border: 1px solid var(--very-light-pink); + border-radius: 6px; + padding: 20px 20px 0 20px; + } + + .desktop-menu ul { + list-style: none; + padding: 0; + margin: 0; } - aside { - width: 100%; + .desktop-menu ul li { + text-align: end; } - .cards-container { - grid-template-columns: repeat(auto-fill, 140px); + .desktop-menu ul li:nth-child(1), + .desktop-menu ul li:nth-child(2) { + font-weight: bold; } - .product-card { - width: 140px; + + .desktop-menu ul li:last-child { + padding-top: 20px; + border-top: 1px solid var(--very-light-pink); } - .product-card img { - width: 140px; - height: 140px; + + .desktop-menu ul li:last-child a { + color: var(--hospital-green); + font-size: var(--sm); } -} -@media (min-width: 641px) { - .mobile-menu { - display: none; + .desktop-menu ul li a { + color: var(--back); + text-decoration: none; + margin-bottom: 20px; + display: inline-block; } -} + + @media (max-width: 640px) { + .menu { + display: block; + } + .navbar-left ul { + display: none; + } + .navbar-email { + display: none; + } + } \ No newline at end of file From 7003720d9623d75aa7752663dc5c541ec42e8e75 Mon Sep 17 00:00:00 2001 From: Ingelias1205 Date: Fri, 4 Aug 2023 15:59:42 -0500 Subject: [PATCH 2/7] Actualizacion 1 --- main.js | 1 - 1 file changed, 1 deletion(-) diff --git a/main.js b/main.js index c7b649b12..2db953451 100644 --- a/main.js +++ b/main.js @@ -7,4 +7,3 @@ function toggleDesktopMenu(){ console.log('click'); desktopMenu.classList.toggle('inactive'); } -console.log('hola'); \ No newline at end of file From 878afd0e645793e2bcffcb2a4f8edfd5c6fe1f23 Mon Sep 17 00:00:00 2001 From: Ingelias1205 Date: Fri, 4 Aug 2023 16:08:11 -0500 Subject: [PATCH 3/7] Actualizacion 2 --- main.js | 1 + 1 file changed, 1 insertion(+) diff --git a/main.js b/main.js index 2db953451..bf5edc93e 100644 --- a/main.js +++ b/main.js @@ -7,3 +7,4 @@ function toggleDesktopMenu(){ console.log('click'); desktopMenu.classList.toggle('inactive'); } + hola mundo From 734d62f19bb5d006bfe1ab682272b7ce6c97dcda Mon Sep 17 00:00:00 2001 From: Ingelias1205 Date: Fri, 4 Aug 2023 16:45:17 -0500 Subject: [PATCH 4/7] Actualizacion --- index.html | 46 ++++++++++++++++++++++++++++++++++++++- main.js | 9 ++++++-- styles.css | 63 ++++++++++++++++++++++++++++++++++++++---------------- 3 files changed, 96 insertions(+), 22 deletions(-) diff --git a/index.html b/index.html index b37182513..b960b0f7f 100644 --- a/index.html +++ b/index.html @@ -63,7 +63,51 @@ Sign out - + + +
+ + + + + +
diff --git a/main.js b/main.js index bf5edc93e..ed25c4aa2 100644 --- a/main.js +++ b/main.js @@ -1,10 +1,15 @@ const menuEmail = document.querySelector('.navbar-email'); const desktopMenu = document.querySelector('.desktop-menu'); +const menuHamIcon = document.querySelector('.menu'); +const mobileMenu = document.querySelector('.mobile-menu'); menuEmail.addEventListener('click', toggleDesktopMenu); +menuHamIcon.addEventListener('click', toggleMobileMenu) function toggleDesktopMenu(){ - console.log('click'); desktopMenu.classList.toggle('inactive'); } - hola mundo + +function toggleMobileMenu(){ + mobileMenu.classList.toggle('inactive'); +} \ No newline at end of file diff --git a/styles.css b/styles.css index e1137842a..8677c3aff 100644 --- a/styles.css +++ b/styles.css @@ -1,3 +1,4 @@ +/* General */ :root { --white: #FFFFFF; --black: #000000; @@ -8,33 +9,28 @@ --md: 16px; --lg: 18px; } - body { margin: 0; font-family: 'Quicksand', sans-serif; } - .inactive{ display: none; } + /*Navbar (general) */ nav { display: flex; justify-content: space-between; padding: 0 24px; border-bottom: 1px solid var(--very-light-pink); } - .menu { display: none; } - .logo { width: 100px; } - .navbar-left ul, - .navbar-right ul { list-style: none; padding: 0; @@ -43,15 +39,12 @@ align-items: center; height: 60px; } - .navbar-left { display: flex; } - .navbar-left ul { margin-left: 12px; } - .navbar-left ul li a, .navbar-right ul li a { text-decoration: none; @@ -60,24 +53,20 @@ padding: 8px; border-radius: 8px; } - .navbar-left ul li a:hover, .navbar-right ul li a:hover { border: 1px solid var(--hospital-green); color: var(--hospital-green); } - .navbar-email { color: var(--very-light-pink); cursor: pointer; font-size: var(--sm); margin-right: 12px; } - .navbar-shopping-cart { position: relative; } - .navbar-shopping-cart div { width: 16px; height: 16px; @@ -93,6 +82,7 @@ align-items: center; } + /* Menu en desktop */ .desktop-menu { position: absolute; top: 60px; @@ -104,32 +94,26 @@ border-radius: 6px; padding: 20px 20px 0 20px; } - .desktop-menu ul { list-style: none; padding: 0; margin: 0; } - .desktop-menu ul li { text-align: end; } - .desktop-menu ul li:nth-child(1), .desktop-menu ul li:nth-child(2) { font-weight: bold; } - .desktop-menu ul li:last-child { padding-top: 20px; border-top: 1px solid var(--very-light-pink); } - .desktop-menu ul li:last-child a { color: var(--hospital-green); font-size: var(--sm); } - .desktop-menu ul li a { color: var(--back); text-decoration: none; @@ -137,6 +121,38 @@ display: inline-block; } + /*Menu en mobile */ + .mobile-menu { + position: absolute; + top: 60px; + padding: 24px; + } + .mobile-menu a { + text-decoration: none; + color: var(--black); + font-weight: bold; + /* margin-bottom: 24px; */ + } + .mobile-menu ul { + padding: 0; + margin: 24px 0 0; + list-style: none; + } + .mobile-menu ul:nth-child(1) { + border-bottom: 1px solid var(--very-light-pink); + } + .mobile-menu ul li { + margin-bottom: 24px; + } + .email { + font-size: var(--sm); + font-weight: 300 !important; + } + .sign-out { + font-size: var(--sm); + color: var(--hospital-green) !important; + } + @media (max-width: 640px) { .menu { display: block; @@ -147,4 +163,13 @@ .navbar-email { display: none; } + .desktop-menu{ + display: none; + } + } + + @media (min-width: 641px) { + .mobile-menu{ + display: none; + } } \ No newline at end of file From 50406ae19cb3c0999d1b9e350a04cbca19be412d Mon Sep 17 00:00:00 2001 From: Ingelias1205 Date: Fri, 4 Aug 2023 22:17:14 -0500 Subject: [PATCH 5/7] Actualizacion Carrito de Compras --- clase13.html | 81 ++++++++++++++++++-------------------- index.html | 44 ++++++++++++++++++++- main.js | 19 +++++++-- styles.css | 108 ++++++++++++++++++++++++++++++++++++++++++++------- 4 files changed, 191 insertions(+), 61 deletions(-) diff --git a/clase13.html b/clase13.html index f237347d5..9c47ea3d5 100644 --- a/clase13.html +++ b/clase13.html @@ -101,56 +101,49 @@ .product-detail { width: 100%; } - } + } - +
+
+ +
+
\ No newline at end of file diff --git a/main.js b/main.js index 9443740ac..c7b175ac2 100644 --- a/main.js +++ b/main.js @@ -4,6 +4,7 @@ const menuCarritoIcon = document.querySelector('.navbar-shopping-cart'); const desktopMenu = document.querySelector('.desktop-menu'); const mobileMenu = document.querySelector('.mobile-menu'); const aside = document.querySelector('.product-detail'); +const cardsContainer = document.querySelector('.cards-container'); menuEmail.addEventListener('click', toggleDesktopMenu); menuHamIcon.addEventListener('click', toggleMobileMenu); @@ -25,4 +26,62 @@ function toggleCarritoAside(){ desktopMenu.classList.add('inactive'); mobileMenu.classList.add('inactive'); aside.classList.toggle('inactive'); -} \ No newline at end of file +} + +const productList = []; +productList.push({ + name: 'Bike', + price: 120, + image: 'https://images.pexels.com/photos/276517/pexels-photo-276517.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940', +}); +productList.push({ + name: 'Pantalla', + price: 220, + image: 'https://images.pexels.com/photos/276517/pexels-photo-276517.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940', +}); +productList.push({ + name: 'Compu', + price: 620, + image: 'https://images.pexels.com/photos/276517/pexels-photo-276517.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940', +}); + +function renderProducts(arr){ + for (product of arr) { + const productCard = document.createElement('div'); + productCard.classList.add('product-card'); + + // product= {name, price, image} -> product.image + const productImg = document.createElement('img'); + productImg.setAttribute('src', product.image); + + const productInfo = document.createElement('div'); + productInfo.classList.add('product-info'); + + const productInfoDiv = document.createElement('div'); + + const productPrice = document.createElement('p'); + productPrice.innerText = '$' + product.price; + const productName = document.createElement('p'); + productName.innerText = product.name; + + productInfoDiv.appendChild(productPrice); + productInfoDiv.appendChild(productName); + + const productInfoFigure = document.createElement('figure'); + const productImgCart = document.createElement('img'); + productImgCart.setAttribute('src', './icons/bt_add_to_cart.svg'); + + productInfoFigure.appendChild(productImgCart); + + productInfo.appendChild(productInfoDiv); + productInfo.appendChild(productInfoFigure); + + productCard.appendChild(productImg); + productCard.appendChild(productInfo); + + cardsContainer.appendChild(productCard); + } +} + +renderProducts(productList); + diff --git a/styles.css b/styles.css index 0fe11ba29..0152566aa 100644 --- a/styles.css +++ b/styles.css @@ -232,6 +232,52 @@ height: 50px; } +/* Lista de productos */ +.cards-container { + margin-top: 20px; + display: grid; + grid-template-columns: repeat(auto-fill, 240px); + gap: 26px; + place-content: center; +} +.product-card { + width: 240px; +} +.product-card img { + width: 240px; + height: 240px; + border-radius: 20px; + object-fit: cover; +} +.product-info { + display: flex; + justify-content: space-between; + align-items: center; + margin-top: 12px; +} +.product-info figure { + margin: 0; +} +.product-info figure img { + width: 35px; + height: 35px; +} +.product-info div p:nth-child(1) { + font-weight: bold; + font-size: var(--md); + margin-top: 0; + margin-bottom: 4px; +} +.product-info div p:nth-child(2) { + font-size: var(--sm); + margin-top: 0; + margin-bottom: 0; + color: var(--very-light-pink); +} + + +/*responsive*/ + @media (max-width: 640px) { .menu { display: block; @@ -248,6 +294,16 @@ .product-detail { width: 100%; } + .cards-container { + grid-template-columns: repeat(auto-fill, 140px); + } + .product-card { + width: 140px; + } + .product-card img { + width: 140px; + height: 140px; + } } @media (min-width: 641px) { From fde61b27d51212280ae3a08f31a4333a30c26e31 Mon Sep 17 00:00:00 2001 From: Ingelias1205 Date: Sat, 5 Aug 2023 21:57:20 -0500 Subject: [PATCH 7/7] Actualizacion todo --- index.html | 17 ++- main.js | 132 ++++++++++------- styles.css | 409 +++++++++++++++++++++++++++++++---------------------- 3 files changed, 336 insertions(+), 222 deletions(-) diff --git a/index.html b/index.html index bcc23b9c2..50521590c 100644 --- a/index.html +++ b/index.html @@ -109,7 +109,7 @@ -