responsive review

This commit is contained in:
María
2025-10-07 13:09:10 +02:00
parent b945bf0673
commit 2784c9c1bf
10 changed files with 76 additions and 37 deletions

View File

@@ -78,6 +78,7 @@ export default {
.card {
display: flex;
flex-direction: column;
justify-content: center;
border-radius: 1rem;
border: 2px solid white;
background: #fff;
@@ -87,6 +88,11 @@ export default {
max-height: 546px;
max-width: 288px;
@include mobile {
width: 100%;
max-width: 100%;
}
.card-image {
width: 100%;
height: 288px;

View File

@@ -13,6 +13,7 @@
ref="productDetails"
class="carousel"
:items-to-show="itemsToShow"
:breakpoints="config.breakpoints"
:gap="1"
:pagination-enabled="false"
:wrap-around="false"
@@ -80,7 +81,7 @@ export default {
},
itemsToShow: {
type: Number,
default: 4,
default: 1,
},
},
data() {
@@ -90,15 +91,15 @@ export default {
height: 200,
breakpointMode: 'carousel', // o 'viewport'
breakpoints: {
300: {
itemsToShow: 2,
768: {
itemsToShow: 3,
snapAlign: 'center',
},
400: {
1024: {
itemsToShow: 3,
snapAlign: 'start',
},
500: {
1440: {
itemsToShow: 4,
snapAlign: 'start',
},

View File

@@ -103,7 +103,7 @@
</li>
</NuxtLink>
</ul>
<ul class="link-list">
<!-- <ul class="link-list">
<li class="link">
<a href="https://coceta.coop/" target="_blank">
<span class="link-text">Coceta</span>
@@ -124,7 +124,7 @@
<span class="link-text">Cookies</span>
</li>
</NuxtLink>
</ul>
</ul> -->
<div class="credits">
<span>2025 Consumo Cuidado</span>
<a href="http://enreda.coop/" target="_blank"
@@ -239,7 +239,7 @@ export default {
.section-text {
font-weight: $medium;
font-size: $s;
font-size: $l;
}
.section-img {

View File

@@ -192,10 +192,10 @@ export default {
flex-shrink: 0;
align-self: stretch;
border-radius: 24px 24px 0 0;
@include mobile {
max-height: 10rem;
max-width: 10rem;
}
// @include mobile {
// max-height: 10rem;
// max-width: 10rem;
// }
.image {
width: 100%;
height: 100%;
@@ -218,6 +218,10 @@ export default {
position: relative; // necesario para controlar hijos absolutos
overflow: hidden;
@include mobile {
width: 270px;
}
p {
text-align: center;
display: -webkit-box;

View File

@@ -297,6 +297,7 @@ export default {
@include mobile {
margin-top: 7rem;
padding: 2rem;
}
}
@@ -308,17 +309,14 @@ export default {
gap: 4rem;
width: 100%;
@media screen and (max-width: 1024px) {
flex-direction: column;
gap: 2rem;
margin-top: 4rem;
padding: 3rem 2rem;
}
// @media screen and (max-width: 1024px) {
// flex-direction: column;
// gap: 2rem;
// padding: 3rem 2rem;
// }
@include mobile {
flex-direction: column;
gap: 1rem;
margin-top: 5rem;
padding: 2rem 1rem;
}
}
@@ -339,11 +337,11 @@ export default {
border-radius: 16px;
}
@include mobile {
width: 200px;
height: 200px;
margin: 0 auto;
}
// @include mobile {
// width: 200px;
// height: 200px;
// margin: 0 auto;
// }
}
.image {
@@ -358,7 +356,8 @@ export default {
flex-direction: column;
align-items: flex-start;
justify-content: center;
max-width: 100%;
word-break: break-word;
@include mobile {
margin-top: 2rem;
}
@@ -378,7 +377,6 @@ export default {
.description {
margin-top: 8px;
font-size: $m;
width: 80%;
@include tablet {
width: 100%;
}
@@ -482,6 +480,8 @@ export default {
.coop_info {
margin-top: 25px;
max-width: 100%;
word-break: break-word;
h4 {
font-size: $h4;
font-weight: $medium;

View File

@@ -253,6 +253,10 @@ export default {
gap: 3rem;
color: $color-primary;
@media (max-width: 768px) {
gap: 0px;
}
.c-filter-content {
width: 100%;
}