Made station sidebar similar to train, fixed visual alignment issues elsewhere
This commit is contained in:
@ -6,32 +6,30 @@
|
||||
<p style="text-align:center" v-if="this.user">Your email: <b>{{ this.user.email }}</b><br><span id="passReset" @click="resetPasswordEmail()">Send password reset email</span></p>
|
||||
|
||||
<h3>Enter your current password to edit the below settings</h3>
|
||||
<div id="imgDiv1">
|
||||
<img v-if="!showCurrentPassword" id="eyeImg" src="../assets/314858_hidden_eye_icon.png" @click="this.showCurrentPassword = !this.showCurrentPassword" alt="show">
|
||||
<div id="currentPassword">
|
||||
<img v-if="showCurrentPassword" id="eyeImg" src="../assets/314858_hidden_eye_icon.png" @click="this.showCurrentPassword = !this.showCurrentPassword" alt="show">
|
||||
<img v-else id = "eyeImg" src="../assets/315220_eye_icon.png" @click="this.showCurrentPassword = !this.showCurrentPassword">
|
||||
<input v-if="showCurrentPassword" type="text" v-model="currentPassword" placeholder="Enter existing password">
|
||||
<input v-else type="password" v-model="currentPassword" placeholder="Enter existing password">
|
||||
</div>
|
||||
|
||||
<input v-if="!showCurrentPassword" type="text" v-model="currentPassword" placeholder="Enter existing password">
|
||||
<input v-else type="password" v-model="currentPassword" placeholder="Enter existing password">
|
||||
|
||||
<h3>Change email</h3>
|
||||
<input type="email" v-model="newEmail" aria-describedby="emailHelp" placeholder="Enter new email">
|
||||
<button @click="updateUserEmail()" id="emailUpdate" type="button" class="btn btn-primary" value="Update Email">Update email</button>
|
||||
|
||||
|
||||
<h3>Change password</h3>
|
||||
<div id="imgDiv2">
|
||||
<img v-if="!showNewPassword" id="eyeImg" src="../assets/314858_hidden_eye_icon.png" @click="this.showNewPassword = !this.showNewPassword" alt="show">
|
||||
<div id="newPassword">
|
||||
<img v-if="showNewPassword" id="eyeImg" src="../assets/314858_hidden_eye_icon.png" @click="this.showNewPassword = !this.showNewPassword" alt="show">
|
||||
<img v-else id = "eyeImg" src="../assets/315220_eye_icon.png" @click="this.showNewPassword = !this.showNewPassword">
|
||||
<input v-if="showNewPassword" id="newPass" type="text" v-model="newPassword" placeholder="Enter existing password">
|
||||
<input v-else type="password" id="newPass" v-model="newPassword" placeholder="Enter existing password">
|
||||
<button @click="updateUserPassword()" id="passUpdate" type="button" class="btn btn-primary">Update Password</button>
|
||||
</div>
|
||||
|
||||
<input v-if="!showNewPassword" type="text" v-model="newPassword" placeholder="Enter existing password">
|
||||
<input v-else type="password" v-model="newPassword" placeholder="Enter existing password">
|
||||
|
||||
<button @click="updateUserPassword()" id="passUpdate" type="button" class="btn btn-primary">Update Password</button>
|
||||
|
||||
|
||||
<button @click="deleteUserPreferences()" id="delPref" type="button" class="btn btn-danger">Delete Map Preferences</button>
|
||||
<button @click="deleteUserAccount()" id="delAcc" type="button" class="btn btn-danger" value="Delete Account">Delete Account</button>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@ -211,18 +209,15 @@ h1 {
|
||||
color:black;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 18px;
|
||||
padding-top: 20px;
|
||||
}
|
||||
|
||||
#passReset {
|
||||
font-size: 17px;
|
||||
text-decoration: underline;
|
||||
color: #39d3fa;
|
||||
}
|
||||
|
||||
#passReset:hover {
|
||||
color: #3993fa;
|
||||
cursor: pointer;
|
||||
@ -238,7 +233,6 @@ h3 {
|
||||
align-items: flex-start;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
#mainDiv{
|
||||
position: inherit;
|
||||
padding: 15px;
|
||||
@ -248,12 +242,13 @@ h3 {
|
||||
top: 14%;
|
||||
text-align: left;
|
||||
box-shadow: 0 0 4px 4px #b6b6b6;
|
||||
font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
|
||||
}
|
||||
|
||||
#emailUpdate, #passUpdate {
|
||||
position: relative;
|
||||
left:40px;
|
||||
position: absolute;
|
||||
right: 20%;
|
||||
width: 26%;
|
||||
order: 3;
|
||||
}
|
||||
|
||||
input {
|
||||
@ -261,6 +256,7 @@ input {
|
||||
border-bottom: 1px solid #000000;
|
||||
background: transparent;
|
||||
outline: none;
|
||||
width: 40%;
|
||||
}
|
||||
|
||||
#delAcc {
|
||||
@ -275,20 +271,9 @@ input {
|
||||
left:160px;
|
||||
}
|
||||
|
||||
#imgDiv1{
|
||||
position: absolute;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
top:180px;
|
||||
left: 195px;
|
||||
}
|
||||
|
||||
#imgDiv2{
|
||||
position: absolute;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
bottom:165px;
|
||||
left: 195px;
|
||||
#newPassword, #currentPassword{
|
||||
display:flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
#imgDiv1:hover, #imgDiv2:hover{
|
||||
@ -296,11 +281,19 @@ input {
|
||||
}
|
||||
|
||||
#eyeImg{
|
||||
width: 100%;
|
||||
width: 6%;
|
||||
height: 10%;
|
||||
order: 2;
|
||||
}
|
||||
|
||||
|
||||
::placeholder{
|
||||
font-size: 14px;;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 786px) {
|
||||
|
||||
|
||||
#mainDiv{
|
||||
position: inherit;
|
||||
padding: 15px;
|
||||
@ -327,32 +320,9 @@ input {
|
||||
}
|
||||
|
||||
button{
|
||||
font-size: 12px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
#imgDiv1{
|
||||
position: absolute;
|
||||
width: 60px;
|
||||
height: 40px;
|
||||
top:175px;
|
||||
left: 195px;
|
||||
}
|
||||
|
||||
#imgDiv2{
|
||||
position: absolute;
|
||||
width: 60px;
|
||||
height: 40px;
|
||||
bottom:194px;
|
||||
left: 195px;
|
||||
}
|
||||
|
||||
#eyeImg{
|
||||
width:60%;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 786px) {
|
||||
|
||||
|
||||
}
|
||||
</style>
|
||||
|
Reference in New Issue
Block a user