responsive review
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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',
|
||||
},
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -253,6 +253,10 @@ export default {
|
||||
gap: 3rem;
|
||||
color: $color-primary;
|
||||
|
||||
@media (max-width: 768px) {
|
||||
gap: 0px;
|
||||
}
|
||||
|
||||
.c-filter-content {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="">
|
||||
<div class="page-busqueda">
|
||||
<!-- <HeroWithSearch
|
||||
title="Productos y servicios"
|
||||
subtitle="Catálogo colectivo de consumo transformador"
|
||||
@@ -31,7 +31,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<div class="c-container row">
|
||||
<div class="c-container">
|
||||
<div class="col-md-3">
|
||||
<ProductFilter
|
||||
:filters="filters"
|
||||
@@ -399,19 +399,36 @@ export default {
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.c-container {
|
||||
contain: content;
|
||||
.page-busqueda {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-content: center;
|
||||
width: 100%;
|
||||
min-height: 100dvh;
|
||||
margin-bottom: 2rem;
|
||||
justify-content: center;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.hero-section {
|
||||
width: 100%;
|
||||
@include mobile {
|
||||
margin-top: 12dvh;
|
||||
margin-top: 0.75rem;
|
||||
}
|
||||
}
|
||||
.c-container {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
gap: 1rem;
|
||||
width: 100%;
|
||||
min-height: 100dvh;
|
||||
margin-bottom: 2rem;
|
||||
|
||||
@media (max-width: 768px) {
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.gradient {
|
||||
position: relative;
|
||||
display: flex;
|
||||
|
||||
@@ -126,6 +126,7 @@ export default {
|
||||
align-self: center;
|
||||
background-image: url('../assets/img/hand-heart.svg');
|
||||
background-size: contain;
|
||||
background-position: center;
|
||||
|
||||
@include mobile {
|
||||
width: 300px;
|
||||
@@ -139,6 +140,7 @@ export default {
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
border-radius: 24px;
|
||||
min-height: 85dvh;
|
||||
background: linear-gradient(180deg, $color-consumo-base-extra-light, $color-consumo-base);
|
||||
|
||||
@@ -413,12 +413,14 @@ export default {
|
||||
img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border-radius: 16px;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
@include mobile {
|
||||
width: 200px;
|
||||
height: 200px;
|
||||
height: 335px;
|
||||
width: 335px;
|
||||
border-radius: 16px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,7 +28,6 @@
|
||||
</div>
|
||||
</section>
|
||||
<div v-if="companyList && companyList.length" class="cards-section">
|
||||
{{ companyList.length }} entidades encontradas
|
||||
<section class="cards-grid">
|
||||
<article v-for="(coop, index) in companyList" :key="index">
|
||||
<CoopCard :coop="coop" />
|
||||
@@ -134,6 +133,10 @@ export default {
|
||||
width: 100%;
|
||||
padding: 4rem;
|
||||
|
||||
@media (max-width: 768px) {
|
||||
padding: 2rem;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
// responsive breakpoints
|
||||
grid-template-columns: 1fr;
|
||||
|
||||
Reference in New Issue
Block a user