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-04 14:22:26 +01:00
< svg class = "checks-area-image" width = "18" height = "18" viewBox = "0 0 18 18" fill = "none" xmlns = "http://www.w3.org/2000/svg" alt = "Blue info icon with question mark" >
2019-10-02 11:26:50 +01:00
< rect class = "checks-area-svg-rect" width = "18" height = "18" rx = "9" fill = "#5A667C" / >
2019-09-09 17:00:25 +01:00
< path d = "M8.99928 8.00325C8.44956 8.00325 7.99979 8.48247 7.99979 9.06819L7.99979 13.3351C7.99979 13.3883 8.00312 13.4451 8.00978 13.4984C8.08308 14.006 8.49953 14.4 8.99928 14.4C9.54901 14.4 9.99878 13.9208 9.99878 13.3351L9.99878 9.07174C9.99878 8.48247 9.54901 8.00325 8.99928 8.00325Z" fill = "white" / >
< path d = "M8.99988 6.96423C9.77415 6.96423 10.3992 6.33921 10.3992 5.56494C10.3992 4.79066 9.77415 4.16564 8.99988 4.16564C8.22561 4.16564 7.60059 4.79066 7.60059 5.56494C7.59748 6.33921 8.2225 6.96423 8.99988 6.96423Z" fill = "white" / >
< / svg >
< / 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
@ Component ( {
components : {
2019-09-30 16:17:30 +01:00
VInfo ,
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 : 339 px ;
height : 79 px ;
2019-09-09 17:00:25 +01:00
background - color : # FFFFFF ;
border : 1 px solid # E9EFF4 ;
border - radius : 11 px ;
2019-10-11 17:28:47 +01:00
padding : 32 px 30 px ;
margin - bottom : 13 px ;
2019-09-09 17:00:25 +01:00
position : relative ;
& _ _header {
display : flex ;
align - items : center ;
& _ _title {
font - size : 14 px ;
2019-10-11 17:28:47 +01:00
line - height : 21 px ;
2019-09-09 17:00:25 +01:00
color : # 586 C86 ;
2019-10-11 17:28:47 +01:00
margin : 0 5 px 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 : 3 px ;
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 : 32 px ;
line - height : 57 px ;
color : # 535 F77 ;
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 : 190 px ;
white - space : normal ;
}
2019-09-09 17:00:25 +01:00
< / style >