-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathpros-cons.vue
93 lines (89 loc) · 1.74 KB
/
pros-cons.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<template>
<div>
<p class="intro">
{{ intro }}
</p>
<div class="comparison">
<div class="comparison__container">
<div class="comparison__heading">
<i class="material-icons blue-text">check</i>
Pros
</div>
<ul>
<li
v-for="item in good"
:key="item"
:inner-html.prop="item"
/>
</ul>
</div>
<div class="comparison__container comparison__container--donts">
<div class="comparison__heading comparison__heading--donts">
<i class="material-icons">close</i>
Cons
</div>
<ul>
<li
v-for="item in bad"
:key="item"
:inner-html.prop="item"
/>
</ul>
</div>
</div>
</div>
</template>
<script>
export default {
name: 'pros-cons',
props: {
intro: {
type: String,
required: true,
},
good: {
type: Array,
default: null,
},
bad: {
type: Array,
default: null,
},
},
}
</script>
<style scoped lang='stylus'>
.intro
margin 0
font-weight $fw-bold
.comparison
display flex
margin-top 1.5rem
&__container
width 50%
padding-left 1.5rem
margin-bottom 1.5em
border-top 4px solid blue(#000, 255)
&--donts
border-color red(#000, 255)
&__heading
margin-top 38px
margin-bottom 28px
font-size $fs-1
font-weight $fw-bold
color blue(#000, 255)
display flex
align-items center
&--donts
color red(#000, 255)
&__icon
margin-right 0.5rem
height 24px
li
margin-bottom $base-sizing
padding-left 0
font-size $fs-2
line-height 1.33rem
list-style-type initial
text-indent 0
</style>