2019-09-09 17:00:25 +01:00
|
|
|
// Copyright (C) 2019 Storj Labs, Inc.
|
|
|
|
// See LICENSE for copying information.
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<div class="checks-area-container">
|
|
|
|
<div class="checks-area-container__header">
|
|
|
|
<p class="checks-area-container__header__title">{{label}}</p>
|
2019-10-02 11:26:50 +01:00
|
|
|
<VInfo
|
|
|
|
:text="infoText"
|
|
|
|
is-extra-padding="true"
|
|
|
|
is-custom-position="true"
|
|
|
|
>
|
2019-09-09 17:00:25 +01:00
|
|
|
<div>
|
2019-10-25 10:53:35 +01:00
|
|
|
<ChecksInfoIcon
|
|
|
|
class="checks-area-image"
|
|
|
|
alt="Blue info icon with question mark"
|
|
|
|
/>
|
2019-09-09 17:00:25 +01:00
|
|
|
</div>
|
2019-09-30 16:17:30 +01:00
|
|
|
</VInfo>
|
2019-09-09 17:00:25 +01:00
|
|
|
</div>
|
2019-09-12 14:46:22 +01:00
|
|
|
<p class="checks-area-container__amount"><b>{{value}}%</b></p>
|
2019-09-09 17:00:25 +01:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import { Component, Prop, Vue } from 'vue-property-decorator';
|
|
|
|
|
2019-09-30 16:17:30 +01:00
|
|
|
import VInfo from '@/app/components/VInfo.vue';
|
2019-09-09 17:00:25 +01:00
|
|
|
|
2019-10-25 10:53:35 +01:00
|
|
|
import ChecksInfoIcon from '@/../static/images/checksInfo.svg';
|
|
|
|
|
2019-09-09 17:00:25 +01:00
|
|
|
@Component ({
|
|
|
|
components: {
|
2019-09-30 16:17:30 +01:00
|
|
|
VInfo,
|
2019-10-25 10:53:35 +01:00
|
|
|
ChecksInfoIcon,
|
2019-09-09 17:00:25 +01:00
|
|
|
},
|
|
|
|
})
|
2019-09-30 16:17:30 +01:00
|
|
|
export default class ChecksArea extends Vue {
|
2019-09-09 17:00:25 +01:00
|
|
|
@Prop({default: ''})
|
|
|
|
private readonly label: string;
|
|
|
|
@Prop({default: ''})
|
|
|
|
private readonly amount: number;
|
|
|
|
@Prop({default: ''})
|
|
|
|
private readonly infoText: string;
|
|
|
|
|
|
|
|
public get value(): string {
|
|
|
|
return this.amount.toFixed(1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
2019-10-11 17:28:47 +01:00
|
|
|
<style scoped lang="scss">
|
2019-09-09 17:00:25 +01:00
|
|
|
.checks-area-container {
|
2019-10-11 17:28:47 +01:00
|
|
|
width: 339px;
|
|
|
|
height: 79px;
|
2019-09-09 17:00:25 +01:00
|
|
|
background-color: #FFFFFF;
|
|
|
|
border: 1px solid #E9EFF4;
|
|
|
|
border-radius: 11px;
|
2019-10-11 17:28:47 +01:00
|
|
|
padding: 32px 30px;
|
|
|
|
margin-bottom: 13px;
|
2019-09-09 17:00:25 +01:00
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&__header {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
&__title {
|
|
|
|
font-size: 14px;
|
2019-10-11 17:28:47 +01:00
|
|
|
line-height: 21px;
|
2019-09-09 17:00:25 +01:00
|
|
|
color: #586C86;
|
2019-10-11 17:28:47 +01:00
|
|
|
margin: 0 5px 0 0;
|
2019-09-09 17:00:25 +01:00
|
|
|
}
|
|
|
|
|
2019-10-02 11:26:50 +01:00
|
|
|
.checks-area-image {
|
2019-09-09 17:00:25 +01:00
|
|
|
margin-top: 3px;
|
2019-10-02 11:26:50 +01:00
|
|
|
cursor: pointer;
|
2019-09-09 17:00:25 +01:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
2019-10-02 11:26:50 +01:00
|
|
|
.checks-area-svg-rect {
|
2019-09-09 17:00:25 +01:00
|
|
|
fill: #A5C7EF;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__amount {
|
|
|
|
font-size: 32px;
|
|
|
|
line-height: 57px;
|
|
|
|
color: #535F77;
|
2019-10-11 17:28:47 +01:00
|
|
|
margin: 0;
|
2019-09-09 17:00:25 +01:00
|
|
|
}
|
|
|
|
}
|
2019-10-11 17:28:47 +01:00
|
|
|
|
|
|
|
/deep/ .info__message-box {
|
|
|
|
min-width: 190px;
|
|
|
|
white-space: normal;
|
|
|
|
}
|
2019-09-09 17:00:25 +01:00
|
|
|
</style>
|