9 changed files with 123 additions and 4 deletions
@ -0,0 +1,22 @@ |
|||||
|
<div class="container"> |
||||
|
<div class="column side"> |
||||
|
<mat-card> |
||||
|
<mat-card-header> |
||||
|
<mat-card-title>{{usersService.getUserName()}}</mat-card-title> |
||||
|
</mat-card-header> |
||||
|
<img mat-card-image src={{usersService.getUserPicture()}}> |
||||
|
<mat-card-content> |
||||
|
<p>Real Name:</p><p>{{usersService.getUserRealName()}}</p> |
||||
|
<p>Email:</p><p>{{usersService.getUserEmail()}}</p> |
||||
|
</mat-card-content> |
||||
|
<mat-card-actions> |
||||
|
<button mat-button>Edit</button> |
||||
|
</mat-card-actions> |
||||
|
</mat-card> |
||||
|
</div> |
||||
|
|
||||
|
<div class="column middle"> |
||||
|
<h1 style="text-align: center;">Tournament History</h1> |
||||
|
<p>Not much going on yet...</p> |
||||
|
</div> |
||||
|
</div> |
||||
@ -0,0 +1,21 @@ |
|||||
|
.container { |
||||
|
margin: 1rem auto; |
||||
|
width: 80%; |
||||
|
} |
||||
|
|
||||
|
.column { |
||||
|
float: left; |
||||
|
} |
||||
|
|
||||
|
.column.side { |
||||
|
width: 30% |
||||
|
} |
||||
|
|
||||
|
.column.middle { |
||||
|
width: 68%; |
||||
|
margin-left: 1rem; |
||||
|
} |
||||
|
|
||||
|
.user-image { |
||||
|
width: 200px; |
||||
|
} |
||||
@ -0,0 +1,23 @@ |
|||||
|
import { ComponentFixture, TestBed } from '@angular/core/testing'; |
||||
|
|
||||
|
import { UserComponent } from './user.component'; |
||||
|
|
||||
|
describe('UserComponent', () => { |
||||
|
let component: UserComponent; |
||||
|
let fixture: ComponentFixture<UserComponent>; |
||||
|
|
||||
|
beforeEach(async () => { |
||||
|
await TestBed.configureTestingModule({ |
||||
|
imports: [UserComponent] |
||||
|
}) |
||||
|
.compileComponents(); |
||||
|
|
||||
|
fixture = TestBed.createComponent(UserComponent); |
||||
|
component = fixture.componentInstance; |
||||
|
fixture.detectChanges(); |
||||
|
}); |
||||
|
|
||||
|
it('should create', () => { |
||||
|
expect(component).toBeTruthy(); |
||||
|
}); |
||||
|
}); |
||||
@ -0,0 +1,26 @@ |
|||||
|
import { Component } from '@angular/core'; |
||||
|
import { CommonModule } from '@angular/common'; |
||||
|
|
||||
|
import { MatCardModule } from '@angular/material/card'; |
||||
|
import { MatIconModule } from '@angular/material/icon'; |
||||
|
import { MatButtonModule } from '@angular/material/button'; |
||||
|
|
||||
|
import { UsersService } from '../../services/users.service'; |
||||
|
|
||||
|
@Component({ |
||||
|
selector: 'app-user', |
||||
|
standalone: true, |
||||
|
imports: [ |
||||
|
CommonModule, |
||||
|
MatCardModule, |
||||
|
MatIconModule, |
||||
|
MatButtonModule |
||||
|
], |
||||
|
templateUrl: './user.component.html', |
||||
|
styleUrl: './user.component.scss' |
||||
|
}) |
||||
|
export class UserComponent { |
||||
|
constructor( |
||||
|
public usersService: UsersService, |
||||
|
) {} |
||||
|
} |
||||
Loading…
Reference in new issue