Ajout d'une page d'accueil

This commit is contained in:
Sébastien André
2020-01-20 11:35:10 +01:00
parent 42c76141e6
commit 45aa3381c4
14 changed files with 62 additions and 10 deletions

View File

@@ -1,7 +1,7 @@
body {
margin: 10px;
color: #424242;
height: 600px;
height: 650px;
overflow: auto;
}
@@ -28,7 +28,7 @@ body {
overflow: hidden;
z-index: 50;
background-color: grey;
height: 600px;
height: 650px;
padding: 5px;
left: -220px;
transition: 0.5s linear left;

View File

@@ -9,7 +9,6 @@ import { ServiceComm } from '../services/service-comm.service';
export class AppComponent implements OnInit {
title = 'app';
showMenu = false;
// showMenu = true;
constructor(private serviceComm: ServiceComm) { }

View File

@@ -16,6 +16,7 @@ import { NewAircraftComponent } from './new-aircraft/new-aircraft.component';
import { NewGearComponent } from './new-gear/new-gear.component';
import { NewDropZoneComponent } from './new-drop-zone/new-drop-zone.component';
import { NewJumpTypeComponent } from './new-jump-type/new-jump-type.component';
import { DefaultComponent } from './default/default.component';
import { DateService } from '../services/date.service';
import { ServiceApiPut } from '../services/service-api-put.service';
@@ -49,7 +50,8 @@ const appRoutes: Routes = [
{ path: 'newjump', component: NewJumpComponent },
{ path: 'aircrafts', component: ListOfAircraftsComponent },
{ path: 'jumpTypes', component: ListOfJumpTypesComponent },
{ path: 'gears', component: ListOfGearsComponent }
{ path: 'gears', component: ListOfGearsComponent },
{ path: '**', component: DefaultComponent }
];
@NgModule({
@@ -65,7 +67,8 @@ const appRoutes: Routes = [
NewAircraftComponent,
NewGearComponent,
NewDropZoneComponent,
NewJumpTypeComponent
NewJumpTypeComponent,
DefaultComponent
],
imports: [
RouterModule.forRoot(

View File

@@ -0,0 +1,10 @@
<p>
<a routerLink="/summary" routerLinkActive="active" skipLocationChange>
<img src="../../assets//img/summary.png" alt="Summary of jumps">
</a>
</p>
<p>
<a routerLink="/newjump" routerLinkActive="active" skipLocationChange>
<img src="../../assets//img/addJump.png" alt="Add new jumps">
</a>
</p>

View File

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

View File

@@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-default',
templateUrl: './default.component.html',
styleUrls: ['./default.component.css']
})
export class DefaultComponent implements OnInit {
constructor() { }
ngOnInit() {
}
}

View File

@@ -4,7 +4,7 @@ table {
.table-container {
position: relative;
height: 600px;
height: 650px;
overflow: auto;
}

View File

@@ -4,7 +4,7 @@ table {
.table-container {
position: relative;
height: 600px;
height: 650px;
overflow: auto;
}

View File

@@ -4,7 +4,7 @@ table {
.table-container {
position: relative;
height: 600px;
height: 650px;
overflow: auto;
}

View File

@@ -4,7 +4,7 @@ table {
.table-container {
position: relative;
height: 600px;
height: 650px;
overflow: auto;
}

View File

@@ -4,7 +4,7 @@ table {
.table-container {
position: relative;
height: 600px;
height: 650px;
overflow: auto;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB