storj/web/satellite/src/components/common/EmptyStateArea.vue
Yaroslav Vorobiov ba07f337c0
Satellite api keys frontend (#1039)
* api keys frontend

* fix linter

* fixes, copy to clipboard, disable account activation

* activation is removed in https://github.com/storj/storj/pull/1143
2019-02-01 18:19:30 +02:00

107 lines
2.5 KiB
Vue

// Copyright (C) 2019 Storj Labs, Inc.
// See LICENSE for copying information.
<template>
<div class="empty-state">
<div class="empty-state__wrap">
<h1>{{mainTitle}}</h1>
<div class="empty-state__wrap__additional-text" v-html="additionalText"/>
<div id="addApiKeysPopupEmptyButton">
<Button
v-if="isButtonShown"
:onPress="onButtonClick"
:label="buttonLabel"
width="170px" />
</div>
<div class="empty-state__wrap__img" v-html="imageSource"></div>
</div>
</div>
</template>
<script lang="ts">
import { Component, Vue } from 'vue-property-decorator';
import Button from '@/components/common/Button.vue';
@Component({
props: {
mainTitle: String,
additionalText: String,
imageSource: String,
isButtonShown: {
type: Boolean,
default: false
},
onButtonClick: Function,
buttonLabel: String
},
components: {
Button
}
})
export default class EmptyStateProjectArea extends Vue {
}
</script>
<style scoped lang="scss">
.empty-state {
width: 100%;
display: flex;
justify-content: center;
margin-top: 120px;
&__wrap {
text-align: center;
margin-top: 30px;
display: flex;
flex-direction: column;
align-items: center;
&__additional-text {
font-family: 'montserrat_regular';
font-size: 16px;
width: 50%;
margin-bottom: 10px;
b {
font-family: 'montserrat_bold' !important;
font-size: 16px;
}
}
&__img {
margin-top: 90px;
}
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;
}
}
}
@media screen and (max-width: 1440px) {
.empty-state {
margin-top: 60px;
}
}
@media screen and (max-width: 1280px) {
.empty-state {
margin-top: 20px;
}
}
</style>