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
Nov 7, 2017
1 parent
5346998
commit c33c9a3
Showing
3 changed files
with
83 additions
and
4 deletions.
There are no files selected for viewing
File renamed without changes.
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,79 @@ | ||
<template> | ||
<div | ||
:class="selectStyle" | ||
class="visual-seletors" | ||
> | ||
<a | ||
v-for="option of options" | ||
:key="option.id" | ||
class="visual-seletor" | ||
> | ||
<img | ||
:src="option.src" | ||
:alt="option.alt" | ||
/> | ||
<span> | ||
{{ option.text }} | ||
</span> | ||
</a> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
props: { | ||
design: { | ||
type: String, | ||
}, | ||
}, | ||
data() { | ||
return { | ||
options: [ | ||
{ | ||
id: 1, | ||
src: '', | ||
alt: 'Guru', | ||
text: 'Ainda não sei o que fazer. Vim aqui para descobrir coisas novas e ver a rotina de trabalho dos Gurus.', | ||
}, | ||
{ | ||
id: 2, | ||
src: '', | ||
alt: 'Aprendiz', | ||
text: 'Sou especialista! Vou dividir conhecimento sobre a minha área e ajudar os aprendizes a descobrir o melhor caminho.', | ||
}, | ||
], | ||
}; | ||
}, | ||
computed: { | ||
selectStyle() { | ||
if (this.design === 'main' || !this.design) return 'visual-selectors--main'; | ||
}, | ||
}, | ||
}; | ||
</script> | ||
|
||
<style lang="stylus" scoped> | ||
@import '../assets/styles/_colors' | ||
* | ||
box-sizing border-box | ||
.visual-selectors | ||
background transparent | ||
font-size 12pt | ||
margin-bottom 20px | ||
width 100% | ||
&--main a | ||
border 1px solid $dark-pink | ||
border-radius 15px | ||
color $dark-pink | ||
display block | ||
margin-bottom 10px | ||
padding 15px | ||
width 100% | ||
&:focus | ||
border-color $dark-blue | ||
outline 0 | ||
</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