Skip to content

Commit

Permalink
Edit components nayarahilton#1
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasjs committed Nov 7, 2017
1 parent 5346998 commit c33c9a3
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 4 deletions.
File renamed without changes.
79 changes: 79 additions & 0 deletions src/components/VisualSelector.vue
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>
8 changes: 4 additions & 4 deletions src/components/social-button.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ export default {
},
computed: {
socialbtnStyle() {
if (this.design === 'main' || !this.design) return 'social-btn-main';
if (this.design === 'login') return 'social-btn-login';
if (this.design === 'main' || !this.design) return 'social-btn--main';
if (this.design === 'login') return 'social-btn--login';
},
},
};
Expand All @@ -44,10 +44,10 @@ export default {
position relative
margin-bottom 20px
&-main
&--main
border 1px solid $blue
&-login
&--login
border 0
.icon
Expand Down

0 comments on commit c33c9a3

Please sign in to comment.