Skip to content

Commit

Permalink
finalizacao
Browse files Browse the repository at this point in the history
  • Loading branch information
HipolitoDeveloper committed May 21, 2021
1 parent 2a647c7 commit 828f72e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
18 changes: 12 additions & 6 deletions src/app/screen/home/home.component.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
height: 100vh;
display: flex;
flex-direction: column;
font-family: Arial;

}

Expand All @@ -14,6 +15,17 @@
width: 100%;
}

.header{
display: flex;
flex-direction: row;
}

.user-informaton{
font-size: 16px;
color: #D44561;
margin-top: 15px;
}

.empty-message {
font-size: 16px;
font-weight: bold;
Expand Down Expand Up @@ -43,7 +55,6 @@
border-bottom-left-radius: 100px;
border-bottom-right-radius: 100px;
font-weight: bold;
font-family: Arial;
font-size: 16px;
}

Expand Down Expand Up @@ -93,12 +104,10 @@

.model-text {
color: #D44561;
font-family: Arial;
font-size: 25px;
margin-bottom: 5px;
}
.information-text {
font-family: Arial;
color: #D44561;
font-weight: bold;
font-size: 16px;
Expand Down Expand Up @@ -191,22 +200,19 @@ button {

.rented-date{
color: white;
font-family: Arial;
font-size: 12px;
margin-bottom: 5px;
}

.rented-model-text{
color:white;
font-family: Arial;
font-size: 25px;
margin-bottom: 5px;
font-weight: bold;
}

.rented-information-text{
color: white;
font-family: Arial;
font-size: 16px;
margin-bottom: 5px;
}
Expand Down
4 changes: 4 additions & 0 deletions src/app/screen/home/home.component.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
<div class="container">
<div class="header">
<button type="button" class="logout-button" (click)="logout()">
<i class="material-icons">logout</i>
</button>
<span class="user-informaton">Seja bem-vindo <b>{{userName}}</b></span>
</div>

<div class="list-vehicles">
<div class="list-options">

Expand Down
3 changes: 3 additions & 0 deletions src/app/screen/home/home.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export class HomeComponent implements OnInit {
isShowingRentedList: any
warningMessage: any;
emptyMessage: any;
userName: any;

constructor(
private vehicleSvc: VehicleService,
Expand All @@ -38,6 +39,8 @@ export class HomeComponent implements OnInit {
await this.router.navigateByUrl('/login')
} else {
this.userId = localStorage.getItem("userId");
this.userName = localStorage.getItem("username");
this.userName = this.userName[0].toUpperCase() + this.userName.substr(1);
isLogged = true;
}

Expand Down

0 comments on commit 828f72e

Please sign in to comment.