2018-11-27 10:51:33 +00:00
|
|
|
// Copyright (C) 2018 Storj Labs, Inc.
|
|
|
|
// See LICENSE for copying information.
|
|
|
|
|
2018-11-14 14:00:01 +00:00
|
|
|
<template>
|
2018-11-19 15:32:50 +00:00
|
|
|
<div class="new-project-container">
|
|
|
|
<div class="new-project-button-container" v-on:click="toggleSelection">
|
2018-11-14 14:00:01 +00:00
|
|
|
<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">
|
2018-11-19 15:32:50 +00:00
|
|
|
.new-project-container {
|
2018-11-14 14:00:01 +00:00
|
|
|
padding-left: 10px;
|
|
|
|
padding-right: 10px;
|
|
|
|
background-color: #FFFFFF;
|
2018-11-16 14:28:02 +00:00
|
|
|
cursor: pointer;
|
2018-11-14 14:00:01 +00:00
|
|
|
}
|
2018-11-19 15:32:50 +00:00
|
|
|
.new-project-button-container {
|
2018-11-23 15:48:11 +00:00
|
|
|
margin-right: 50px;
|
2018-11-14 14:00:01 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2018-11-23 15:48:11 +00:00
|
|
|
width: 170px;
|
|
|
|
height: 50px;
|
2018-11-14 14:00:01 +00:00
|
|
|
border-radius: 6px;
|
|
|
|
border: 1px solid #AFB7C1;
|
2018-11-23 15:48:11 +00:00
|
|
|
background-color: white;
|
|
|
|
|
|
|
|
|
2018-11-14 14:00:01 +00:00
|
|
|
h1 {
|
|
|
|
font-family: 'montserrat_medium';
|
|
|
|
font-size: 16px;
|
|
|
|
line-height: 23px;
|
|
|
|
color: #354049;
|
|
|
|
}
|
2018-11-23 15:48:11 +00:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: #2683FF;
|
|
|
|
border: 1px solid #2683FF;
|
|
|
|
box-shadow: 0px 4px 20px rgba(35, 121, 236, 0.4);
|
|
|
|
|
|
|
|
h1 {
|
|
|
|
color: white;
|
|
|
|
}
|
|
|
|
}
|
2018-11-14 14:00:01 +00:00
|
|
|
}
|
|
|
|
</style>
|