File tree 3 files changed +27
-14
lines changed
resources/sass/components
3 files changed +27
-14
lines changed Original file line number Diff line number Diff line change 25
25
</span >
26
26
</div >
27
27
<div class =" big-teaser-buttons no-select" :class =" {'without-watchlist': item.rating != null || ! auth}" >
28
- <a v-if =" isOnNetflix( item.homepage)" :href =" item.homepage" target =" _blank" class =" button-netflix" >
28
+ <a v-if =" isOn('netflix', item.homepage)" :href =" item.homepage" target =" _blank" class =" button-netflix" >
29
29
Netflix
30
30
</a >
31
- <a v-if =" isOnAmazon( item.homepage)" :href =" item.homepage" target =" _blank" class =" button-amazon" >
32
- Amazon
31
+ <a v-if =" isOn('amazon', item.homepage)" :href =" item.homepage" target =" _blank" class =" button-amazon" >
32
+ Amazon Prime
33
33
</a >
34
- <a v-if =" isOnDisney( item.homepage)" :href =" item.homepage" target =" _blank" class =" button-disney" >
34
+ <a v-if =" isOn('disney', item.homepage)" :href =" item.homepage" target =" _blank" class =" button-disney" >
35
35
Disney+
36
36
</a >
37
+ <a v-if =" isOn('apple', item.homepage)" :href =" item.homepage" target =" _blank" class =" button-apple" >
38
+ Apple TV+
39
+ </a >
37
40
<span @click =" openTrailer()" v-if =" item.youtube_key" class =" button-trailer" ><i class =" icon-trailer" ></i > {{ lang('watch trailer') }}</span >
38
41
<!-- <span class="button-watchlist" v-if="item.rating == null && auth && ! rated" @click="addToWatchlist(item)"><i class="icon-watchlist"></i> {{ lang('add to watchlist') }}</span>-->
39
42
<!-- <span class="button-watchlist" v-if="item.watchlist && auth && ! rated" @click="removeItem()"><i class="icon-watchlist-remove"></i> {{ lang('remove from watchlist') }}</span>-->
Original file line number Diff line number Diff line change @@ -16,16 +16,8 @@ export default {
16
16
}
17
17
} ,
18
18
19
- isOnNetflix ( homepage ) {
20
- return homepage && homepage . includes ( 'netflix' ) ;
21
- } ,
22
-
23
- isOnAmazon ( homepage ) {
24
- return homepage && homepage . includes ( 'amazon' ) ;
25
- } ,
26
-
27
- isOnDisney ( homepage ) {
28
- return homepage && homepage . includes ( 'disney' ) ;
19
+ isOn ( type , homepage ) {
20
+ return homepage && homepage . includes ( type ) ;
29
21
} ,
30
22
31
23
genreAsString ( genre ) {
Original file line number Diff line number Diff line change 154
154
}
155
155
}
156
156
157
+
158
+ .button-apple {
159
+ background : #444444 ;
160
+ color : #fff ;
161
+
162
+ i {
163
+ font-style : normal ;
164
+ }
165
+
166
+ & :hover {
167
+ background : lighten (#444444 , 10% );
168
+ }
169
+
170
+ & :active {
171
+ background : #444444 ;
172
+ }
173
+ }
174
+
157
175
.icon-trailer {
158
176
background : url (../../../public/assets/img/trailer.png );
159
177
width : 7px ;
You can’t perform that action at this time.
0 commit comments