Skip to content

Commit

Permalink
Edit tabs bottom nayarahilton#1
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasjs committed Dec 1, 2017
1 parent c13d5cd commit ab50fe7
Show file tree
Hide file tree
Showing 2 changed files with 103 additions and 1 deletion.
97 changes: 97 additions & 0 deletions src/components/TabsBottomAprendiz.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
<template>
<nav class="tabs-bottom">
<ul class="tabs-bottom__links">
<li
v-for="link in links"
:key="link.class"
>
<router-link
:to="link.url"
class="tabs-bottom__link"
:class="link.class"
active-class="active"
>
{{ link.name }}
</router-link>
</li>
</ul>
</nav>
</template>

<script>
export default {
data() {
return {
links: [
{
class: 'home',
url: '/home',
name: 'home',
},
{
class: 'buscar',
url: '/buscar',
name: 'buscar',
},
{
class: 'perguntar',
url: '/perguntas',
name: 'perguntar',
},
{
class: 'perfil',
url: '/perfil',
name: 'perfil',
},
],
};
},
};
</script>

<style lang="stylus" scoped>
@import '../assets/styles/*'
*
box-sizing border-box
.tabs-bottom
background #fff
bottom 0
box-shadow 0px 0px 20px 0px rgba(0, 0, 0, 0.3)
padding 10px
position fixed
width 100%
z-index 99
&__links
align-items center
display flex
justify-content space-between
margin 0
padding 0 10px
holder()
li
list-style none
&__link
color $pink
font-size 12pt
text-transform lowercase
&.active
font-weight 600
position relative
&:after
background $pink
top -13px
content ''
height 5px
left 0
margin 0 auto
position absolute
right 0
width 80%
</style>
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,12 @@ export default {
{
class: 'responder',
url: '/perguntas',
name: 'perguntas',
name: 'responder',
},
{
class: 'perfil',
url: '/perfil',
name: 'perfil',
},
],
};
Expand Down

0 comments on commit ab50fe7

Please sign in to comment.