wip produtoras/id page
This commit is contained in:
@@ -1,13 +1,33 @@
|
||||
<template>
|
||||
<div class="container">
|
||||
<div class="row c-description">
|
||||
<div class="col-md-4">
|
||||
<div class="content">
|
||||
<div class="c-description">
|
||||
<div class="c-image-links">
|
||||
<div class="c-image-container">
|
||||
<img v-if="coop?.logo" :src="coop?.logo" alt="" />
|
||||
<img v-else src="@/assets/img/latienda-product-default.svg" alt="" />
|
||||
<img v-else src="@/assets/img/consumo-default.png" alt="" />
|
||||
</div>
|
||||
<BButton
|
||||
v-if="coop?.shop_link"
|
||||
class="div-link"
|
||||
align="center"
|
||||
:href="coop?.shop_link"
|
||||
target="_blank"
|
||||
>
|
||||
<img class="div-link-img" src="@/assets/img/latienda-tienda.svg" />
|
||||
<span>COMPRA EN SU TIENDA</span>
|
||||
</BButton>
|
||||
<BButton
|
||||
v-if="coop?.web_link"
|
||||
class="div-link"
|
||||
align="center"
|
||||
:href="coop?.web_link"
|
||||
target="_blank"
|
||||
>
|
||||
<img class="div-link-img" src="@/assets/img/latienda-web.svg" />
|
||||
<span>CONOCE MÁS SU PROYECTO</span>
|
||||
</BButton>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="c-text">
|
||||
<h1 class="coop-name">{{ coop?.company_name }}</h1>
|
||||
<p class="coop-text">
|
||||
{{ coop?.description }}
|
||||
@@ -19,63 +39,38 @@
|
||||
:to="tagRoute(n)"
|
||||
class="tag_container"
|
||||
>
|
||||
<img class="tag_img" src="@/assets/img/latienda-tag.svg" />
|
||||
<span>{{ n }}</span>
|
||||
</NuxtLink>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row coop-links">
|
||||
<div class="col-md-4">
|
||||
<BButton
|
||||
v-if="coop?.shop_link"
|
||||
class="div-link"
|
||||
align="center"
|
||||
:href="coop?.shop_link"
|
||||
target="_blank"
|
||||
>
|
||||
<img class="div-link-img" src="@/assets/img/latienda-tienda.svg" />
|
||||
<span>Tienda online</span>
|
||||
</BButton>
|
||||
<BButton
|
||||
v-if="coop?.web_link"
|
||||
class="div-link"
|
||||
align="center"
|
||||
:href="coop?.web_link"
|
||||
target="_blank"
|
||||
>
|
||||
<img class="div-link-img" src="@/assets/img/latienda-web.svg" />
|
||||
<span>Página web</span>
|
||||
</BButton>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div v-if="coop?.mobile || coop?.phone" class="div-action tel">
|
||||
<img
|
||||
class="div-action-img"
|
||||
src="@/assets/img/latienda-telefono.svg"
|
||||
/>
|
||||
<span
|
||||
>{{ coop?.phone }} <br />
|
||||
{{ coop?.mobile }}</span
|
||||
>
|
||||
</div>
|
||||
<div v-if="coop?.email" class="div-action mail">
|
||||
<img class="div-action-img" src="@/assets/img/latienda-email.svg" />
|
||||
<span>{{ coop?.email }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div v-if="coop?.address" class="div-action address">
|
||||
<img class="div-action-img" src="@/assets/img/latienda-casa.svg" />
|
||||
<span>{{ coop?.address }}</span>
|
||||
</div>
|
||||
<div v-if="coop?.city" class="div-action location">
|
||||
<img
|
||||
class="div-action-img"
|
||||
src="@/assets/img/latienda-ubicacion.svg"
|
||||
/>
|
||||
<span>{{ coop?.city }}</span>
|
||||
</div>
|
||||
<div class="coop-links">
|
||||
<div v-if="coop?.address" class="div-action address">
|
||||
<img class="div-action-img" src="@/assets/img/latienda-casa.svg" />
|
||||
<span>{{ coop?.address }}</span>
|
||||
</div>
|
||||
<div v-if="coop?.mobile || coop?.phone" class="div-action tel">
|
||||
<img
|
||||
class="div-action-img"
|
||||
src="@/assets/img/latienda-telefono.svg"
|
||||
/>
|
||||
<span
|
||||
>{{ coop?.phone }} <br />
|
||||
{{ coop?.mobile }}</span
|
||||
>
|
||||
</div>
|
||||
<div v-if="coop?.email" class="div-action mail">
|
||||
<img class="div-action-img" src="@/assets/img/latienda-email.svg" />
|
||||
<span>{{ coop?.email }}</span>
|
||||
</div>
|
||||
|
||||
<!-- <div v-if="coop?.city" class="div-action location">
|
||||
<img
|
||||
class="div-action-img"
|
||||
src="@/assets/img/latienda-ubicacion.svg"
|
||||
/>
|
||||
<span>{{ coop?.city }}</span>
|
||||
</div> -->
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
@@ -125,7 +120,7 @@ import { mapState } from 'pinia'
|
||||
export default {
|
||||
setup(){
|
||||
definePageMeta({
|
||||
layout: 'main',
|
||||
layout: 'default',
|
||||
})
|
||||
},
|
||||
//TODO: implement head() method
|
||||
@@ -264,132 +259,185 @@ export default {
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
<!-- <style lang="scss" scoped>
|
||||
//global classes for Bootstrap styling
|
||||
ul.nav > li.nav-item {
|
||||
font-weight: bolder;
|
||||
:hover {
|
||||
color: $color-navy;
|
||||
color: $color-consumo-base;
|
||||
}
|
||||
.active {
|
||||
border-top: 4px solid $color-navy;
|
||||
color: $color-navy;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</style> -->
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.container {
|
||||
margin-top: 80px;
|
||||
margin-bottom: 80px;
|
||||
|
||||
@include mobile {
|
||||
padding: 0.4em 2em;
|
||||
}
|
||||
.content {
|
||||
// margin-top: 80px;
|
||||
// margin-bottom: 80px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.c-description {
|
||||
margin-top: 40px;
|
||||
margin-bottom: 40px;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: start;
|
||||
justify-content: start;
|
||||
gap: 4rem;
|
||||
width: 100%;
|
||||
padding: 4rem 4rem;
|
||||
border-radius: var(--rounded-3xl, 24px);
|
||||
background: linear-gradient(
|
||||
180deg,
|
||||
$color-consumo-base-extra-light 0%,
|
||||
$color-bg-light 100%
|
||||
);
|
||||
|
||||
@include tablet {
|
||||
gap: 1rem;
|
||||
}
|
||||
@include mobile {
|
||||
margin-bottom: 0;
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
margin-top: 5rem;
|
||||
padding: 2rem 1rem;
|
||||
}
|
||||
.c-image-links {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: auto;
|
||||
gap: 1.5rem;
|
||||
@include mobile {
|
||||
flex-direction: column;
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.div-link:hover {
|
||||
background-color: white;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.div-link {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 0.7rem;
|
||||
width: 100%;
|
||||
border: 1px solid $color-button;
|
||||
border-radius: 5px;
|
||||
background-color: transparent;
|
||||
font-weight: $bold;
|
||||
padding: 15px 0;
|
||||
|
||||
.div-link-img {
|
||||
width: 20px;
|
||||
}
|
||||
span {
|
||||
color: $color-button;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.coop-links {
|
||||
margin-bottom: 40px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
width: 100%;
|
||||
|
||||
.div-action {
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: start;
|
||||
padding-left: 8px;
|
||||
overflow: hidden;
|
||||
|
||||
.img-tel {
|
||||
width: 16px;
|
||||
}
|
||||
background-color: transparent;
|
||||
font-size: $m;
|
||||
}
|
||||
|
||||
.div-link-img,
|
||||
.div-action-img {
|
||||
width: 20px;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
.div-action-img {
|
||||
margin-left: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
.c-image-container {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
height: 300px;
|
||||
width: 300px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background-color: white;
|
||||
border-radius: 16px;
|
||||
img {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
object-fit: cover;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
@include mobile {
|
||||
width: 200px;
|
||||
height: 200px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
}
|
||||
|
||||
.coop-name {
|
||||
font-size: $xl;
|
||||
color: $color-navy;
|
||||
text-transform: capitalize;
|
||||
}
|
||||
.coop-text {
|
||||
margin-top: 8px;
|
||||
font-family: $font-secondary;
|
||||
font-size: $s;
|
||||
color: $color-greytext;
|
||||
}
|
||||
.c-text {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
justify-content: center;
|
||||
@include mobile {
|
||||
margin-top: 2rem;
|
||||
}
|
||||
|
||||
.div-link:hover {
|
||||
box-shadow: 0 4px 16px rgba(99, 99, 99, 0.2);
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.div-link {
|
||||
width: 100%;
|
||||
border: 3px solid $color-orange;
|
||||
border-radius: 5px;
|
||||
background-color: $color-light;
|
||||
font-weight: $bold;
|
||||
padding: 15px 0;
|
||||
margin-bottom: 5px;
|
||||
|
||||
span {
|
||||
color: $color-orange;
|
||||
.coop-name {
|
||||
font-size: $h2;
|
||||
font-weight: $bold;
|
||||
text-transform: capitalize;
|
||||
}
|
||||
.coop-text {
|
||||
margin-top: 8px;
|
||||
font-size: $m;
|
||||
width: 80%;
|
||||
@include tablet {
|
||||
width: 100%;
|
||||
}
|
||||
@include mobile {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.div-action {
|
||||
width: 100%;
|
||||
background-color: $color-grey-nav;
|
||||
border: none;
|
||||
color: $color-greytext;
|
||||
font-family: $font-secondary;
|
||||
font-size: $s;
|
||||
padding: 20px 0;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.tag_container {
|
||||
margin: 5px 6px 0 0;
|
||||
border: 2px solid $color-greylayout;
|
||||
border-radius: 5px;
|
||||
padding: 6px 10px;
|
||||
display: inline-block;
|
||||
font-family: $font-secondary;
|
||||
font-size: $xs;
|
||||
color: $color-greytext;
|
||||
.tags_container {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: start;
|
||||
gap: 8px;
|
||||
|
||||
.tag_img {
|
||||
width: 18px;
|
||||
.tag_container {
|
||||
margin: 5px 6px 0 0;
|
||||
border-radius: 1rem;
|
||||
padding: 8px;
|
||||
display: inline-block;
|
||||
font-family: $font-secondary;
|
||||
font-size: $xs;
|
||||
background-color: white;
|
||||
color: #4B4B4B;
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user