2020-11-13 16:06:34 +00:00
|
|
|
// Copyright (C) 2020 Storj Labs, Inc.
|
|
|
|
// See LICENSE for copying information.
|
|
|
|
|
|
|
|
<template>
|
2020-11-16 17:35:07 +00:00
|
|
|
<div class="empty-state">
|
|
|
|
<div class="empty-state__modal">
|
|
|
|
<Key />
|
|
|
|
<h4 class="empty-state__modal__heading">Create Your First Access Grant</h4>
|
|
|
|
<p class="empty-state__modal__subheading">Get started by creating an Access to interact with your Buckets</p>
|
|
|
|
<VButton
|
|
|
|
label="Create Access Grant +"
|
|
|
|
width="199px"
|
|
|
|
height="44px"
|
|
|
|
class="empty-state__modal__cta"
|
2020-11-18 15:20:29 +00:00
|
|
|
:on-press="onCreateClick"
|
2020-11-16 17:35:07 +00:00
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-11-13 16:06:34 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import { Component, Vue } from 'vue-property-decorator';
|
|
|
|
|
|
|
|
import VButton from '@/components/common/VButton.vue';
|
|
|
|
|
|
|
|
import Key from '@/../static/images/accessGrants/key.svg';
|
|
|
|
|
2020-11-18 15:20:29 +00:00
|
|
|
import { RouteConfig } from '@/router';
|
|
|
|
|
2020-11-13 16:06:34 +00:00
|
|
|
@Component({
|
|
|
|
components: {
|
|
|
|
Key,
|
|
|
|
VButton,
|
|
|
|
},
|
|
|
|
})
|
2020-11-18 15:20:29 +00:00
|
|
|
export default class EmptyState extends Vue {
|
|
|
|
/**
|
|
|
|
* Starts create access grant flow.
|
|
|
|
*/
|
|
|
|
public onCreateClick(): void {
|
|
|
|
this.$router.push(RouteConfig.AccessGrants.with(RouteConfig.CreateAccessGrant).with(RouteConfig.NameStep).path);
|
|
|
|
}
|
|
|
|
}
|
2020-11-13 16:06:34 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
2020-11-16 17:35:07 +00:00
|
|
|
.empty-state {
|
|
|
|
background-image: url('../../../static/images/accessGrants/access-grants-bg.png');
|
|
|
|
background-size: contain;
|
|
|
|
margin-top: 40px;
|
2020-11-13 16:06:34 +00:00
|
|
|
|
2020-11-16 17:35:07 +00:00
|
|
|
&__modal {
|
|
|
|
display: block;
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
width: 660px;
|
|
|
|
text-align: center;
|
|
|
|
background: #fff;
|
|
|
|
padding: 100px 30px;
|
|
|
|
position: relative;
|
|
|
|
top: 110px;
|
2020-11-13 16:06:34 +00:00
|
|
|
|
2020-11-16 17:35:07 +00:00
|
|
|
&__heading {
|
|
|
|
font-family: 'font_bold', sans-serif;
|
|
|
|
font-size: 28px;
|
|
|
|
font-weight: 700;
|
|
|
|
line-height: 16px;
|
|
|
|
margin-bottom: 30px;
|
|
|
|
}
|
2020-11-13 16:06:34 +00:00
|
|
|
|
2020-11-16 17:35:07 +00:00
|
|
|
&__subheading {
|
|
|
|
font-family: 'font_regular', sans-serif;
|
|
|
|
font-size: 16px;
|
|
|
|
font-weight: 400;
|
|
|
|
line-height: 21px;
|
|
|
|
}
|
2020-11-13 16:06:34 +00:00
|
|
|
|
2020-11-16 17:35:07 +00:00
|
|
|
&__cta {
|
|
|
|
margin: 25px auto 0;
|
|
|
|
}
|
2020-11-13 16:06:34 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|