54 lines
1.1 KiB
Vue
54 lines
1.1 KiB
Vue
<template>
|
|
<div class="navsearch_container container-fluid">
|
|
<NuxtLink to="/busqueda"> Todos</NuxtLink>
|
|
<button @click="searchLastestProducts"> Últimos productos</button>
|
|
<NuxtLink to="/busqueda"> Más buscados</NuxtLink>
|
|
<NuxtLink to="/c"> Cooperativas</NuxtLink>
|
|
<NuxtLink to="/registro"> Regístrate</NuxtLink>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
methods: {
|
|
searchLastestProducts() {
|
|
return navigateTo({
|
|
name: 'busqueda',
|
|
query: { order: 'newest' }
|
|
})
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.navsearch_container {
|
|
border-bottom: 3px solid $color-grey-nav;
|
|
text-align: center;
|
|
padding: 1.25em 1.25em;
|
|
|
|
@include mobile {
|
|
display: none;
|
|
}
|
|
|
|
a, button {
|
|
font-size: $m;
|
|
font-weight: $bold;
|
|
color: $color-navy;
|
|
text-decoration: none;
|
|
}
|
|
a:nth-child(1):after,
|
|
a:nth-child(2):after,
|
|
a:nth-child(3):after,
|
|
a:nth-child(4):after,
|
|
button:nth-child(1):after,
|
|
button:nth-child(2):after,
|
|
button:nth-child(3):after,
|
|
button:nth-child(4):after {
|
|
color: $color-navy;
|
|
content: '\22EE';
|
|
margin: 0.5rem;
|
|
}
|
|
}
|
|
</style>
|