add login with dummy Data

add login page
add subcomponents
This commit is contained in:
Felix
2021-01-03 18:55:26 +01:00
parent 41d5f95810
commit 976e3aa797
18 changed files with 329 additions and 6 deletions

View File

@@ -0,0 +1,10 @@
.header {
position: fixed;
top: 1rem;
left: 5vw;
width: 90vw;
margin: 0 auto;
background-color: #27293D;
z-index: 999;
border-radius: 8px;
}

View File

@@ -0,0 +1,3 @@
<div class="header" *ngIf="this.dashboard.user != undefined">
<p>HEADER</p>
</div>

View File

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

View File

@@ -0,0 +1,20 @@
import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { DashboardService } from 'src/app/dashboard.service';
@Component({
selector: 'dashboard-header',
templateUrl: './header.component.html',
styleUrls: ['./header.component.css']
})
export class DashboardHeaderComponent implements OnInit {
constructor(
public dashboard: DashboardService,
public router: Router
) { }
ngOnInit(): void {
}
}