Nertivia-Client/src/components/app/Tabs/News.vue
supertiger1234 d795473f8e bug fixes.
2019-08-17 11:31:10 +01:00

146 lines
2.9 KiB
Vue

<template>
<div class="news">
<div class="change-log">
<span class="news-title">Changes in this release</span>
<div
v-for="(change, index) in changelog"
:key="index"
class="change"
>
<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"
v-html="wnew"
/>
</ul>
</div>
<div v-if="change.fix">
<strong>Issues fixed</strong>
<br>
<ul>
<li
v-for="(wfix, index) in change.fix"
:key="index"
v-html="wfix"
/>
</ul>
</div>
<div v-if="change.next">
<strong>Up next</strong>
<br>
<ul>
<li
v-for="(wnext, index) in change.next"
:key="index"
v-html="wnext"
/>
</ul>
</div>
<div
v-if="change.msg"
v-html="change.msg"
/>
</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: 10px;
}
.information {
overflow-wrap: break-word;
}
.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;
}
</style>