2020-02-16 21:03:50 +01:00
|
|
|
<template lang="pug">
|
2020-07-09 02:27:17 +02:00
|
|
|
.announcement.announcement.text-white(body-style='padding: 0px;')
|
2020-02-16 21:03:50 +01:00
|
|
|
nuxt-link(:to='`/announcement/${announcement.id}`')
|
|
|
|
.title <i class='el-icon-info'/> {{announcement.title}}
|
|
|
|
|
2020-07-09 02:27:17 +02:00
|
|
|
//- .card-body
|
|
|
|
//- .description(v-html='description')
|
2020-02-16 21:03:50 +01:00
|
|
|
|
|
|
|
</template>
|
|
|
|
<script>
|
|
|
|
import { mapState } from 'vuex'
|
|
|
|
|
|
|
|
export default {
|
|
|
|
props: {
|
|
|
|
announcement: { type: Object, default: () => ({}) }
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
...mapState(['announcements']),
|
|
|
|
description () {
|
2020-06-22 19:15:32 +02:00
|
|
|
return this.announcement.announcement.replace(/(<br>)+/g, '<br>')
|
2020-02-16 21:03:50 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
<style lang='less'>
|
|
|
|
.announcement {
|
2020-07-09 02:27:17 +02:00
|
|
|
padding: 2%;
|
|
|
|
background-color: #511;
|
|
|
|
margin: 1rem 0;
|
|
|
|
border-radius: 5px;
|
|
|
|
a:hover {
|
|
|
|
text-decoration: none;
|
2020-02-16 21:03:50 +01:00
|
|
|
}
|
2020-07-09 02:27:17 +02:00
|
|
|
.title {
|
|
|
|
font-size: 1.2em;
|
|
|
|
color: white;
|
|
|
|
transition: color .2s;
|
|
|
|
&:hover {
|
|
|
|
color: #fbd6b5;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
border: 2px solid #ff4500ba;
|
|
|
|
// box-shadow: inset 0px 0px 10px 0px orangered;
|
2020-02-16 21:03:50 +01:00
|
|
|
}
|
|
|
|
</style>
|