forked from nayarahilton/vue-pwa-profil
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
lucasjs
committed
Dec 1, 2017
1 parent
c13d5cd
commit ab50fe7
Showing
2 changed files
with
103 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters