2018-11-28 16:20:23 +00:00
|
|
|
// Copyright (C) 2018 Storj Labs, Inc.
|
|
|
|
// 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>
|
|
|
|
<p>{{additionalText}}</p>
|
2018-12-18 14:43:23 +00:00
|
|
|
<Button
|
|
|
|
v-if="isButtonShown"
|
2018-12-05 16:39:03 +00:00
|
|
|
@onPress="onButtonClick"
|
|
|
|
:label="buttonLabel"
|
|
|
|
width="170px" />
|
|
|
|
<div class="empty-state__wrap__img" v-html="imageSource"></div>
|
2018-11-28 16:20:23 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
2018-12-18 14:43:23 +00:00
|
|
|
import { Component, Vue } from 'vue-property-decorator';
|
|
|
|
import Button from '@/components/common/Button.vue';
|
2018-11-28 16:20:23 +00:00
|
|
|
|
2018-12-18 14:43:23 +00:00
|
|
|
@Component({
|
|
|
|
props: {
|
|
|
|
mainTitle: String,
|
|
|
|
additionalText: String,
|
|
|
|
imageSource: String,
|
|
|
|
isButtonShown: {
|
|
|
|
type: Boolean,
|
|
|
|
default: false
|
2018-12-05 16:39:03 +00:00
|
|
|
},
|
2018-12-18 14:43:23 +00:00
|
|
|
onButtonClick: Function,
|
|
|
|
buttonLabel: String
|
|
|
|
},
|
|
|
|
components: {
|
|
|
|
Button
|
|
|
|
}
|
|
|
|
})
|
2018-11-28 16:20:23 +00:00
|
|
|
|
2018-12-18 14:43:23 +00:00
|
|
|
export default class EmptyStateProjectArea extends Vue {
|
|
|
|
}
|
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;
|
|
|
|
|
|
|
|
&__wrap {
|
|
|
|
text-align: center;
|
2018-12-05 16:39:03 +00:00
|
|
|
margin-top: 30px;
|
|
|
|
|
|
|
|
&__img {
|
|
|
|
margin-top: 90px;
|
|
|
|
}
|
2018-11-28 16:20:23 +00:00
|
|
|
|
|
|
|
h1 {
|
|
|
|
font-family: 'montserrat_bold';
|
|
|
|
font-size: 32px;
|
|
|
|
line-height: 35px;
|
|
|
|
margin-bottom: 30px;
|
|
|
|
}
|
|
|
|
|
|
|
|
p {
|
|
|
|
font-family: 'montserrat_regular';
|
|
|
|
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>
|