8a79d184aa
* [V3-965] Satellite account. Fixed Vue lint errors
79 lines
1.8 KiB
Vue
79 lines
1.8 KiB
Vue
// Copyright (C) 2018 Storj Labs, Inc.
|
|
// See LICENSE for copying information.
|
|
|
|
<template>
|
|
<div class="new-project-container">
|
|
<div class="new-project-button-container" v-on:click="toggleSelection">
|
|
<h1>New Project +</h1>
|
|
</div>
|
|
<NewProjectPopup v-if="isPopupShown" @onClose="toggleSelection"/>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import { Component, Vue } from 'vue-property-decorator';
|
|
import NewProjectPopup from './NewProjectPopup.vue';
|
|
|
|
// Button and popup for adding new Project
|
|
@Component(
|
|
{
|
|
data: function () {
|
|
return {
|
|
isPopupShown: false
|
|
};
|
|
},
|
|
methods: {
|
|
toggleSelection: function () {
|
|
this.$data.isPopupShown = !this.$data.isPopupShown;
|
|
}
|
|
},
|
|
components: {
|
|
NewProjectPopup
|
|
}
|
|
}
|
|
)
|
|
|
|
export default class NewProjectArea extends Vue {
|
|
}
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
.new-project-container {
|
|
padding-left: 10px;
|
|
padding-right: 10px;
|
|
background-color: #FFFFFF;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.new-project-button-container {
|
|
margin-right: 50px;
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 170px;
|
|
height: 50px;
|
|
border-radius: 6px;
|
|
border: 1px solid #AFB7C1;
|
|
background-color: white;
|
|
|
|
|
|
h1 {
|
|
font-family: 'montserrat_medium';
|
|
font-size: 16px;
|
|
line-height: 23px;
|
|
color: #354049;
|
|
}
|
|
|
|
&:hover {
|
|
background-color: #2683FF;
|
|
border: 1px solid #2683FF;
|
|
box-shadow: 0px 4px 20px rgba(35, 121, 236, 0.4);
|
|
|
|
h1 {
|
|
color: white;
|
|
}
|
|
}
|
|
}
|
|
</style>
|