2019-01-24 20:15:10 +00:00
|
|
|
// Copyright (C) 2019 Storj Labs, Inc.
|
2018-11-28 16:20:23 +00:00
|
|
|
// See LICENSE for copying information.
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<div class="empty-state">
|
|
|
|
<div class="empty-state__wrap">
|
2018-12-05 16:39:03 +00:00
|
|
|
<h1>{{mainTitle}}</h1>
|
2019-01-31 12:23:04 +00:00
|
|
|
<div class="empty-state__wrap__additional-text" v-html="additionalText"/>
|
2019-02-15 13:19:17 +00:00
|
|
|
<div id="addApiKeysPopupEmptyButton" v-if="isButtonShown">
|
2019-02-01 16:19:30 +00:00
|
|
|
<Button
|
|
|
|
:onPress="onButtonClick"
|
|
|
|
:label="buttonLabel"
|
2019-04-08 23:34:28 +01:00
|
|
|
width="190px"
|
|
|
|
height="50px"/>
|
2019-02-01 16:19:30 +00:00
|
|
|
</div>
|
2018-12-05 16:39:03 +00:00
|
|
|
<div class="empty-state__wrap__img" v-html="imageSource"></div>
|
2018-11-28 16:20:23 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
2019-09-09 11:33:39 +01:00
|
|
|
import { Component, Prop, Vue } from 'vue-property-decorator';
|
2018-11-28 16:20:23 +00:00
|
|
|
|
2019-09-09 11:33:39 +01:00
|
|
|
import Button from '@/components/common/Button.vue';
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
components: {
|
|
|
|
Button,
|
2019-09-13 15:58:18 +01:00
|
|
|
},
|
2019-09-09 11:33:39 +01:00
|
|
|
})
|
|
|
|
export default class EmptyStateProjectArea extends Vue {
|
|
|
|
@Prop({default: ''})
|
|
|
|
private readonly mainTitle: string;
|
2019-09-13 10:48:27 +01:00
|
|
|
|
2019-09-09 11:33:39 +01:00
|
|
|
@Prop({default: ''})
|
|
|
|
private readonly additionalText: string;
|
2019-09-13 10:48:27 +01:00
|
|
|
|
2019-09-09 11:33:39 +01:00
|
|
|
@Prop({default: ''})
|
|
|
|
private readonly imageSource: string;
|
2019-09-13 10:48:27 +01:00
|
|
|
|
2019-09-09 11:33:39 +01:00
|
|
|
@Prop({default: false})
|
|
|
|
private readonly isButtonShown: boolean;
|
2019-09-13 10:48:27 +01:00
|
|
|
|
2019-09-09 11:33:39 +01:00
|
|
|
@Prop()
|
|
|
|
private readonly onButtonClick: Function;
|
2019-09-13 10:48:27 +01:00
|
|
|
|
2019-09-09 11:33:39 +01:00
|
|
|
@Prop({default: 'Default'})
|
|
|
|
private readonly buttonLabel: string;
|
|
|
|
}
|
2018-11-28 16:20:23 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
.empty-state {
|
|
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
margin-top: 120px;
|
2019-04-08 23:34:28 +01:00
|
|
|
color: rgba(56, 75, 101, 0.7);
|
2018-11-28 16:20:23 +00:00
|
|
|
|
|
|
|
&__wrap {
|
2019-01-02 13:46:55 +00:00
|
|
|
text-align: center;
|
|
|
|
margin-top: 30px;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
2018-12-05 16:39:03 +00:00
|
|
|
|
2019-01-31 12:23:04 +00:00
|
|
|
&__additional-text {
|
2019-03-26 16:38:35 +00:00
|
|
|
font-family: 'font_regular';
|
2019-01-31 12:23:04 +00:00
|
|
|
font-size: 16px;
|
2019-02-15 13:19:17 +00:00
|
|
|
width: 60%;
|
2019-02-01 16:19:30 +00:00
|
|
|
margin-bottom: 10px;
|
2019-01-31 12:23:04 +00:00
|
|
|
|
|
|
|
b {
|
2019-03-26 16:38:35 +00:00
|
|
|
font-family: 'font_bold' !important;
|
2019-01-31 12:23:04 +00:00
|
|
|
font-size: 16px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-10 10:55:40 +01:00
|
|
|
&__img {
|
2019-02-15 13:19:17 +00:00
|
|
|
margin-top: 50px;
|
2019-07-10 10:55:40 +01:00
|
|
|
}
|
2018-11-28 16:20:23 +00:00
|
|
|
|
|
|
|
h1 {
|
2019-03-26 16:38:35 +00:00
|
|
|
font-family: 'font_bold';
|
2018-11-28 16:20:23 +00:00
|
|
|
font-size: 32px;
|
|
|
|
line-height: 35px;
|
2019-04-08 23:34:28 +01:00
|
|
|
margin-bottom: 15px;
|
2019-02-15 13:19:17 +00:00
|
|
|
min-width: 900px;
|
2019-04-11 02:27:55 +01:00
|
|
|
color: #354049;
|
2018-11-28 16:20:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
p {
|
2019-03-26 16:38:35 +00:00
|
|
|
font-family: 'font_regular';
|
2018-11-28 16:20:23 +00:00
|
|
|
font-size: 16px;
|
|
|
|
line-height: 21px;
|
|
|
|
}
|
|
|
|
|
|
|
|
img {
|
|
|
|
margin-top: 42px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-01-02 13:20:51 +00:00
|
|
|
@media screen and (max-width: 1440px) {
|
2018-11-28 16:20:23 +00:00
|
|
|
.empty-state {
|
|
|
|
margin-top: 60px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media screen and (max-width: 1280px) {
|
|
|
|
.empty-state {
|
|
|
|
margin-top: 20px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|