2017-08-03 08:46:44 +00:00
|
|
|
<template lang="pug">
|
|
|
|
v-flex(xs12 v-ripple="true").elevation-3.elem
|
|
|
|
v-layout(row wrap)
|
|
|
|
v-flex(xs12)
|
2017-10-10 01:51:34 +00:00
|
|
|
h3.title {{ item.title }}
|
2017-09-06 08:35:27 +00:00
|
|
|
v-flex(md2, xs3, xl1, style="height: 220px;")
|
2017-08-07 12:01:04 +00:00
|
|
|
lazy-component
|
|
|
|
img(:src="item.image" onerror="this.src='static/images/error.jpg'").image
|
2017-09-06 08:35:27 +00:00
|
|
|
v-flex(md10, xs9, xl11)
|
2017-08-03 08:46:44 +00:00
|
|
|
v-layout(row wrap)
|
|
|
|
v-flex(xs12)
|
|
|
|
p.synopsis {{ item.text }}
|
|
|
|
v-flex(xs12).link
|
|
|
|
div.button-container
|
2017-10-10 01:51:34 +00:00
|
|
|
v-btn(color='secondary', block, @click="open(item.link)") Open
|
2017-08-03 08:46:44 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
props: {
|
|
|
|
item: Object
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
open (link) {
|
2017-09-17 21:04:32 +00:00
|
|
|
this.$store.dispatch('news/openLink', link)
|
2017-08-03 08:46:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
2017-10-14 15:14:20 +00:00
|
|
|
<style lang="stylus" scoped>
|
|
|
|
@import '~stylus/functions'
|
|
|
|
|
2017-08-03 08:46:44 +00:00
|
|
|
.elem
|
2017-10-14 15:14:20 +00:00
|
|
|
position relative
|
|
|
|
margin-bottom 15px
|
|
|
|
padding 0
|
|
|
|
background-color rgb(60, 60, 60)
|
2017-08-03 08:46:44 +00:00
|
|
|
|
|
|
|
.elem:hover
|
2017-10-14 15:14:20 +00:00
|
|
|
hover_background()
|
2017-08-03 08:46:44 +00:00
|
|
|
|
|
|
|
.title
|
2017-10-14 15:14:20 +00:00
|
|
|
line-height 24px
|
|
|
|
margin-top 10px
|
|
|
|
padding-left 2%
|
|
|
|
padding-right 2%
|
|
|
|
overflow hidden
|
|
|
|
white-space nowrap
|
|
|
|
text-overflow ellipsis
|
2017-08-03 08:46:44 +00:00
|
|
|
|
|
|
|
.image
|
2017-10-14 15:14:20 +00:00
|
|
|
height 220px
|
|
|
|
max-width 100%
|
2017-08-03 08:46:44 +00:00
|
|
|
|
|
|
|
.synopsis
|
2017-10-14 15:14:20 +00:00
|
|
|
padding-top 2%
|
|
|
|
height 150px
|
2017-08-03 08:46:44 +00:00
|
|
|
|
|
|
|
.link
|
2017-10-14 15:14:20 +00:00
|
|
|
height 50%
|
|
|
|
width 100%
|
|
|
|
text-align right
|
|
|
|
display inline-block
|
|
|
|
padding 0 5% 0 10%
|
2017-08-03 08:46:44 +00:00
|
|
|
|
|
|
|
.button-container
|
2017-10-14 15:14:20 +00:00
|
|
|
display inline-block
|
|
|
|
width 15%
|
2017-08-03 08:46:44 +00:00
|
|
|
</style>
|