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="account-area-container">
|
2018-11-14 14:00:01 +00:00
|
|
|
<!-- TODO: Get info for this area placeholders from store -->
|
|
|
|
<!-- TODO: change isDisabled for save buttons for each area when data imputed -->
|
|
|
|
<!--start of Account settings area -->
|
2018-11-19 15:32:50 +00:00
|
|
|
<div class="account-area-settings-container">
|
2018-11-14 14:00:01 +00:00
|
|
|
<h1>Account Settings</h1>
|
|
|
|
<h2>This information will be visible to all users</h2>
|
2018-11-19 15:32:50 +00:00
|
|
|
<div class="account-area-row-container">
|
2018-11-14 14:00:01 +00:00
|
|
|
<HeaderedInput
|
|
|
|
label="First name"
|
|
|
|
placeholder ="Enter First Name"
|
2018-11-23 15:48:11 +00:00
|
|
|
width="100%"
|
2018-11-14 14:00:01 +00:00
|
|
|
:error="inputError"
|
|
|
|
@setData="setInputValue" />
|
|
|
|
<HeaderedInput
|
|
|
|
label="Last Name"
|
2018-11-23 15:48:11 +00:00
|
|
|
width="100%"
|
2018-11-14 14:00:01 +00:00
|
|
|
placeholder ="Enter Last Name"
|
|
|
|
:error="inputError"
|
|
|
|
@setData="setInputValue" />
|
|
|
|
</div>
|
2018-11-19 15:32:50 +00:00
|
|
|
<div class="account-area-row-container">
|
2018-11-23 15:48:11 +00:00
|
|
|
<HeaderedInput
|
|
|
|
class="full-input"
|
|
|
|
label="Email"
|
2018-11-14 14:00:01 +00:00
|
|
|
placeholder ="Enter Email"
|
2018-11-23 15:48:11 +00:00
|
|
|
width="100%"
|
2018-11-14 14:00:01 +00:00
|
|
|
:error="inputError"
|
|
|
|
@setData="setInputValue" />
|
|
|
|
</div>
|
2018-11-19 15:32:50 +00:00
|
|
|
<div class="account-area-save-button-area">
|
|
|
|
<!-- v-if we are editing this area -->
|
|
|
|
<div class="account-area-save-button-area__terms-area">
|
|
|
|
<Checkbox class="checkbox" @setData="setTermsAccepted"/>
|
2018-11-14 14:00:01 +00:00
|
|
|
<h2>I agree to the Storj Bridge Hosting <a>Terms & Conditions</a></h2>
|
|
|
|
</div>
|
2018-11-23 15:48:11 +00:00
|
|
|
<!-- v-if are editing this area -->
|
|
|
|
<div class="account-area-save-button-area__btn">
|
|
|
|
<Button class="account-area-save-button-area__cancel-button" label="Cancel" width="140px" height="50px" :onPress="onCancel" isWhite/>
|
|
|
|
<Button class="account-area-save-button-area__save-button" label="Save" width="140px" height="50px" :onPress="onSave" isDisabled/>
|
|
|
|
</div>
|
2018-11-14 14:00:01 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!--end of Account settings area -->
|
|
|
|
<!--start of Company area -->
|
2018-11-19 15:32:50 +00:00
|
|
|
<div class="account-area-company-container">
|
2018-11-14 14:00:01 +00:00
|
|
|
<h1>Company</h1>
|
|
|
|
<h2>Optional</h2>
|
2018-11-19 15:32:50 +00:00
|
|
|
<div class="account-area-row-container">
|
2018-11-23 15:48:11 +00:00
|
|
|
<HeaderedInput
|
|
|
|
class="full-input"
|
2018-11-14 14:00:01 +00:00
|
|
|
label="Company Name"
|
|
|
|
placeholder ="Enter Company Name"
|
2018-11-23 15:48:11 +00:00
|
|
|
width="100%"
|
2018-11-14 14:00:01 +00:00
|
|
|
:error="inputError"
|
|
|
|
@setData="setInputValue" />
|
|
|
|
</div>
|
2018-11-19 15:32:50 +00:00
|
|
|
<div class="account-area-row-container">
|
2018-11-23 15:48:11 +00:00
|
|
|
<HeaderedInput
|
|
|
|
class="full-input"
|
2018-11-14 14:00:01 +00:00
|
|
|
label="Company Address"
|
|
|
|
placeholder ="Enter Company Address"
|
2018-11-23 15:48:11 +00:00
|
|
|
width="100%"
|
2018-11-14 14:00:01 +00:00
|
|
|
:error="inputError"
|
|
|
|
@setData="setInputValue" />
|
|
|
|
</div>
|
2018-11-19 15:32:50 +00:00
|
|
|
<div class="account-area-row-container">
|
2018-11-14 14:00:01 +00:00
|
|
|
<HeaderedInput
|
|
|
|
label="Country"
|
|
|
|
placeholder ="Enter Country"
|
2018-11-23 15:48:11 +00:00
|
|
|
width="100%"
|
2018-11-14 14:00:01 +00:00
|
|
|
:error="inputError"
|
|
|
|
@setData="setInputValue" />
|
|
|
|
<HeaderedInput
|
|
|
|
label="City"
|
|
|
|
placeholder ="Enter City"
|
2018-11-23 15:48:11 +00:00
|
|
|
width="100%"
|
2018-11-14 14:00:01 +00:00
|
|
|
:error="inputError"
|
|
|
|
@setData="setInputValue" />
|
|
|
|
</div>
|
2018-11-19 15:32:50 +00:00
|
|
|
<div class="account-area-row-container">
|
2018-11-14 14:00:01 +00:00
|
|
|
<HeaderedInput
|
|
|
|
label="State"
|
|
|
|
placeholder ="Enter State"
|
2018-11-23 15:48:11 +00:00
|
|
|
width="100%"
|
2018-11-14 14:00:01 +00:00
|
|
|
:error="inputError"
|
|
|
|
@setData="setInputValue" />
|
|
|
|
<HeaderedInput
|
|
|
|
label="Postal Code"
|
|
|
|
placeholder ="Enter Postal Code"
|
2018-11-23 15:48:11 +00:00
|
|
|
width="100%"
|
2018-11-14 14:00:01 +00:00
|
|
|
:error="inputError"
|
|
|
|
@setData="setInputValue" />
|
|
|
|
</div>
|
2018-11-28 16:20:23 +00:00
|
|
|
<div class="account-area-save-button-area">
|
|
|
|
<div class="account-area-save-button-area__btn">
|
|
|
|
<!-- v-if we are editing this area -->
|
|
|
|
<Button class="account-area-save-button-area__cancel-button" label="Cancel" width="140px" height="50px" :onPress="onCancel" isWhite/>
|
|
|
|
<Button label="Save" width="140px" height="50px" :onPress="onSave" isWhite isDisabled/>
|
|
|
|
</div>
|
2018-11-14 14:00:01 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!--end of Company area -->
|
|
|
|
<!--start of Password area -->
|
2018-11-19 15:32:50 +00:00
|
|
|
<div class="account-area-password-container">
|
2018-11-14 14:00:01 +00:00
|
|
|
<h1>Change Password</h1>
|
|
|
|
<h2>Please choose a password which is longer than 6 characters.</h2>
|
2018-11-19 15:32:50 +00:00
|
|
|
<div class="account-area-row-container">
|
2018-11-14 14:00:01 +00:00
|
|
|
<HeaderedInput
|
|
|
|
label="Old Password"
|
|
|
|
placeholder ="Enter Old Password"
|
2018-11-23 15:48:11 +00:00
|
|
|
width="100%"
|
2018-11-14 14:00:01 +00:00
|
|
|
isPassword
|
|
|
|
:error="inputError"
|
|
|
|
@setData="setInputValue" />
|
|
|
|
<HeaderedInput
|
|
|
|
label="New Password"
|
|
|
|
placeholder ="Enter New Password"
|
2018-11-23 15:48:11 +00:00
|
|
|
width="100%"
|
2018-11-14 14:00:01 +00:00
|
|
|
isPassword
|
|
|
|
:error="inputError"
|
|
|
|
@setData="setInputValue" />
|
|
|
|
</div>
|
2018-11-19 15:32:50 +00:00
|
|
|
<div class="account-area-row-container">
|
2018-11-14 14:00:01 +00:00
|
|
|
<HeaderedInput
|
2018-11-23 15:48:11 +00:00
|
|
|
class="full-input"
|
2018-11-14 14:00:01 +00:00
|
|
|
label="Confirm password"
|
|
|
|
placeholder ="Confirm password"
|
2018-11-23 15:48:11 +00:00
|
|
|
width="100%"
|
2018-11-14 14:00:01 +00:00
|
|
|
isPassword
|
|
|
|
:error="inputError"
|
|
|
|
@setData="setInputValue" />
|
|
|
|
</div>
|
2018-11-28 16:20:23 +00:00
|
|
|
<div class="account-area-save-button-area">
|
|
|
|
<div class="account-area-save-button-area__btn">
|
|
|
|
<!-- v-if we are editing this area -->
|
|
|
|
<Button class="account-area-save-button-area__cancel-button" label="Cancel" width="140px" height="50px" :onPress="onCancel" isWhite/>
|
|
|
|
<Button label="Save" width="140px" height="50px" :onPress="onSave" isWhite isDisabled/>
|
|
|
|
</div>
|
2018-11-14 14:00:01 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!--end of Password area -->
|
2018-11-19 15:32:50 +00:00
|
|
|
<div class="account-area-button-area">
|
2018-11-23 15:48:11 +00:00
|
|
|
<Button label="Delete account" width="140px" height="50px" :onPress="onDeleteAccountClick" isWhite/>
|
2018-11-14 14:00:01 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import { Component, Vue } from 'vue-property-decorator';
|
|
|
|
import Button from '@/components/common/Button.vue';
|
|
|
|
import HeaderedInput from '@/components/common/HeaderedInput.vue';
|
|
|
|
import Checkbox from '@/components/common/Checkbox.vue';
|
|
|
|
|
|
|
|
@Component(
|
|
|
|
{
|
|
|
|
data: function() {
|
|
|
|
return {
|
|
|
|
|
|
|
|
}
|
|
|
|
},
|
|
|
|
components: {
|
|
|
|
Button,
|
|
|
|
HeaderedInput,
|
|
|
|
Checkbox
|
|
|
|
}
|
|
|
|
}
|
|
|
|
)
|
|
|
|
|
|
|
|
export default class AccountArea extends Vue {}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
2018-11-19 15:32:50 +00:00
|
|
|
.account-area-container {
|
2018-11-14 14:00:01 +00:00
|
|
|
padding: 55px 55px 55px 55px;
|
|
|
|
position: relative;
|
|
|
|
overflow-y: auto;
|
|
|
|
overflow-x: hidden;
|
|
|
|
height: 80vh;
|
|
|
|
h1 {
|
|
|
|
font-family: 'montserrat_bold';
|
|
|
|
font-size: 18px;
|
|
|
|
line-height: 27px;
|
|
|
|
color: #354049;
|
|
|
|
}
|
|
|
|
h2 {
|
|
|
|
font-family: 'montserrat_regular';
|
|
|
|
font-size: 16px;
|
|
|
|
line-height: 21px;
|
|
|
|
color: rgba(56, 75, 101, 0.4);
|
|
|
|
}
|
|
|
|
}
|
2018-11-19 15:32:50 +00:00
|
|
|
.account-area-settings-container {
|
2018-11-14 14:00:01 +00:00
|
|
|
height: 50vh;
|
|
|
|
border-radius: 6px;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: flex-start;
|
2018-11-23 15:48:11 +00:00
|
|
|
padding: 32px;
|
2018-11-14 14:00:01 +00:00
|
|
|
background-color: #fff;
|
|
|
|
}
|
2018-11-19 15:32:50 +00:00
|
|
|
.account-area-company-container {
|
|
|
|
@extend .account-area-settings-container;
|
2018-11-23 15:48:11 +00:00
|
|
|
margin-top: 40px;
|
2018-11-14 14:00:01 +00:00
|
|
|
height: 75vh;
|
|
|
|
}
|
2018-11-19 15:32:50 +00:00
|
|
|
.account-area-password-container {
|
|
|
|
@extend .account-area-company-container;
|
2018-11-14 14:00:01 +00:00
|
|
|
height: 50vh;
|
|
|
|
}
|
2018-11-19 15:32:50 +00:00
|
|
|
.account-area-button-area {
|
2018-11-23 15:48:11 +00:00
|
|
|
margin-top: 40px;
|
|
|
|
height: 130px;
|
2018-11-14 14:00:01 +00:00
|
|
|
}
|
2018-11-19 15:32:50 +00:00
|
|
|
.account-area-row-container {
|
2018-11-14 14:00:01 +00:00
|
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
2018-11-23 15:48:11 +00:00
|
|
|
align-content: center;
|
2018-11-14 14:00:01 +00:00
|
|
|
justify-content: space-between;
|
|
|
|
}
|
2018-11-19 15:32:50 +00:00
|
|
|
.account-area-save-button-area {
|
2018-11-23 15:48:11 +00:00
|
|
|
margin-top: 40px;
|
2018-11-14 14:00:01 +00:00
|
|
|
width: 100%;
|
|
|
|
align-self: flex-end;
|
2018-11-23 15:48:11 +00:00
|
|
|
align-items: center;
|
2018-11-14 14:00:01 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: flex-end;
|
2018-11-19 15:32:50 +00:00
|
|
|
|
2018-11-14 14:00:01 +00:00
|
|
|
Button {
|
|
|
|
align-self: center;
|
|
|
|
}
|
2018-11-19 15:32:50 +00:00
|
|
|
|
2018-11-23 15:48:11 +00:00
|
|
|
&__btn {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
2018-11-19 15:32:50 +00:00
|
|
|
&__terms-area {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
2018-11-23 15:48:11 +00:00
|
|
|
justify-content: flex-start;
|
2018-11-19 15:32:50 +00:00
|
|
|
align-items: center;
|
2018-11-23 15:48:11 +00:00
|
|
|
width: 100%;
|
|
|
|
|
2018-11-19 15:32:50 +00:00
|
|
|
.checkbox {
|
|
|
|
align-self: center;
|
|
|
|
};
|
|
|
|
h2 {
|
|
|
|
font-family: 'montserrat_regular';
|
|
|
|
font-size: 14px;
|
|
|
|
line-height: 20px;
|
|
|
|
margin-left: 10px;
|
2018-11-23 15:48:11 +00:00
|
|
|
margin-top: 30px;
|
2018-11-19 15:32:50 +00:00
|
|
|
};
|
2018-11-23 15:48:11 +00:00
|
|
|
|
2018-11-19 15:32:50 +00:00
|
|
|
a {
|
|
|
|
color: #2683FF;
|
|
|
|
font-family: 'montserrat_bold';
|
2018-11-23 15:48:11 +00:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
2018-11-19 15:32:50 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__cancel-button {
|
2018-11-23 15:48:11 +00:00
|
|
|
margin-right: 20px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.input-container.full-input {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media screen and (max-width: 1020px) {
|
|
|
|
.account-area-save-button-area {
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
&__btn{
|
|
|
|
width: 100%;
|
|
|
|
justify-content: center;
|
|
|
|
margin-top: 40px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__terms-area{
|
|
|
|
justify-content: center;
|
|
|
|
margin-bottom: 20px;
|
|
|
|
}
|
2018-11-19 15:32:50 +00:00
|
|
|
}
|
2018-11-14 14:00:01 +00:00
|
|
|
}
|
|
|
|
</style>
|