Nertivia-Client/src/components/app/News.vue
2019-04-09 21:18:13 +01:00

128 lines
2.7 KiB
Vue

<template>
<div class="news">
<div class="change-log">
<span class="news-title">Changes in this release</span>
<div class="change" v-for="change in changelog" :key="change.title">
<div class="heading" :style="change.headColor ? `background-color: ${change.headColor}` : ``">
<div class="date">{{change.date}}</div>
<div class="changes-title">{{change.title}}</div>
</div>
<div class="information">
<div v-if="change.new">
<strong>What's new?</strong>
<br>
<ul>
<li v-for="(wnew, index) in change.new" :key="index">{{wnew}}</li>
</ul>
</div>
<div v-if="change.fix">
<strong>Issues fixed</strong>
<br>
<ul>
<li v-for="(wfix, index) in change.fix" :key="index">{{wfix}}</li>
</ul>
</div>
<div v-if="change.next">
<strong>Up next</strong>
<br>
<ul>
<li v-for="(wnext, index) in change.next" :key="index">{{wnext}}</li>
</ul>
</div>
<div v-if="change.msg">{{change.msg}}</div>
</div>
</div>
</div>
</div>
</template>
<script>
import Spinner from "@/components/Spinner.vue";
import changelog from "@/utils/changelog.js";
export default {
components: {},
data() {
return {
changelog: changelog
};
}
};
</script>
<style scoped>
.news {
display: flex;
width: 100%;
height: 100%;
color: white;
overflow: auto;
background: rgba(0, 0, 0, 0.486);
}
.news-title {
display: inline-block;
margin-bottom: 10px;
font-size: 20px;
color: white;
font-weight: bold;
padding-bottom: 10px;
border-bottom: solid 1px white;
}
.todo-list {
flex: 1;
margin-left: 10px;
background: rgba(0, 0, 0, 0.137);
padding: 20px;
}
.change {
margin-bottom: 20px;
padding-bottom: 10px;
border-bottom: solid 1px white;
}
.heading{
padding: 10px;
background: rgba(0, 0, 0, 0.555);
margin-bottom: 10px;
border-radius: 5px;
}
.heading.latest {
background: rgba(38, 139, 255, 0.87);
}
.change-log {
background: rgba(0, 0, 0, 0.137);
padding: 20px;
overflow-y: auto;
max-width: 700px;
margin: auto;
}
.plan-list {
color: white;
}
.date {
text-align: right;
font-size: 19px;
margin-right: 10px;
color: rgba(255, 255, 255, 0.692);
}
.changes-title {
font-size: 30px;
color: rgba(255, 255, 255, 0.979);
text-align: center;
font-weight: bold;
margin-top: -5px;
margin-bottom: 10px;
}
@media (max-width: 840px) {
.news {
flex-direction: column;
}
.todo-list {
margin-left: 0;
}
.change-log {
margin-bottom: 20px;
}
}
</style>