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 15, 2017
1 parent 5f11af4 commit 229818d
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/AlertMessage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ export default {
computed: {
alertStyle() {
if (this.design === 'main' || !this.design) return 'alert--main';
if (this.design === 'danger') return 'alert--center';
if (this.design === 'danger') return 'alert--danger';
if (this.design === 'success') return 'alert--success';
},
},
};
Expand All @@ -47,11 +48,12 @@ export default {
&--danger
color red
&--sucess
&--success
color green
&__text
font-size 12pt
font-weight 300
margin 0
text-align center
</style>
40 changes: 40 additions & 0 deletions src/components/FeedbackMessage.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<template>
<div
class="feedback"
>
<span class="feedback__text">
{{ msgText }}
</span>
</div>
</template>

<script>
export default {
props: {
msgText: {
required: true,
type: String,
},
},
};
</script>

<style lang="stylus" scoped>
@import '../assets/styles/_colors'
*
box-sizing border-box
.feedback
background transparent
margin-bottom 20px
padding 15px
width 100%
&__text
color red
font-size 12pt
font-weight 300
margin 0
text-align center
</style>

0 comments on commit 229818d

Please sign in to comment.