feat: add employee detail component and update navigation bar

This commit is contained in:
Jan Gleytenhoover 2024-12-18 10:43:14 +01:00
parent 4b83970a8c
commit ac48357e7a
Signed by: jank
GPG key ID: B267751B8AE29EFE
8 changed files with 44 additions and 3 deletions

View file

@ -2,5 +2,4 @@
:host {
display: block;
height: 100vh;
width: 100vw;
}

View file

@ -1 +1 @@
<app-navigation-bar></app-navigation-bar>
<app-employee-detail></app-employee-detail>

View file

@ -1,11 +1,12 @@
import { Component } from '@angular/core';
import { RouterOutlet } from '@angular/router';
import { NavigationBarComponent } from './components/navigation-bar/navigation-bar.component';
import { EmployeeDetailComponent } from './components/employee-detail/employee-detail.component';
@Component({
selector: 'app-root',
standalone: true,
imports: [RouterOutlet, NavigationBarComponent],
imports: [RouterOutlet, NavigationBarComponent, EmployeeDetailComponent],
templateUrl: './app.component.html',
styleUrl: './app.component.css'
})

View file

@ -0,0 +1,4 @@
<div class="d-flex flex-col" style="height: 100%;">
<app-navigation-bar></app-navigation-bar>
test
</div>

View file

@ -0,0 +1,23 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { EmployeeDetailComponent } from './employee-detail.component';
describe('EmployeeDetailComponent', () => {
let component: EmployeeDetailComponent;
let fixture: ComponentFixture<EmployeeDetailComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [EmployeeDetailComponent]
})
.compileComponents();
fixture = TestBed.createComponent(EmployeeDetailComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View file

@ -0,0 +1,13 @@
import { Component } from '@angular/core';
import { NavigationBarComponent } from '../navigation-bar/navigation-bar.component';
@Component({
selector: 'app-employee-detail',
standalone: true,
imports: [NavigationBarComponent],
templateUrl: './employee-detail.component.html',
styleUrl: './employee-detail.component.css'
})
export class EmployeeDetailComponent {
}

View file

@ -1,4 +1,5 @@
:host {
display: block;
height: 100%;
width: 300px;
}