Ajout d'une page d'accueil
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
body {
|
body {
|
||||||
margin: 10px;
|
margin: 10px;
|
||||||
color: #424242;
|
color: #424242;
|
||||||
height: 600px;
|
height: 650px;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -28,7 +28,7 @@ body {
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
z-index: 50;
|
z-index: 50;
|
||||||
background-color: grey;
|
background-color: grey;
|
||||||
height: 600px;
|
height: 650px;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
left: -220px;
|
left: -220px;
|
||||||
transition: 0.5s linear left;
|
transition: 0.5s linear left;
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ import { ServiceComm } from '../services/service-comm.service';
|
|||||||
export class AppComponent implements OnInit {
|
export class AppComponent implements OnInit {
|
||||||
title = 'app';
|
title = 'app';
|
||||||
showMenu = false;
|
showMenu = false;
|
||||||
// showMenu = true;
|
|
||||||
|
|
||||||
constructor(private serviceComm: ServiceComm) { }
|
constructor(private serviceComm: ServiceComm) { }
|
||||||
|
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ import { NewAircraftComponent } from './new-aircraft/new-aircraft.component';
|
|||||||
import { NewGearComponent } from './new-gear/new-gear.component';
|
import { NewGearComponent } from './new-gear/new-gear.component';
|
||||||
import { NewDropZoneComponent } from './new-drop-zone/new-drop-zone.component';
|
import { NewDropZoneComponent } from './new-drop-zone/new-drop-zone.component';
|
||||||
import { NewJumpTypeComponent } from './new-jump-type/new-jump-type.component';
|
import { NewJumpTypeComponent } from './new-jump-type/new-jump-type.component';
|
||||||
|
import { DefaultComponent } from './default/default.component';
|
||||||
|
|
||||||
import { DateService } from '../services/date.service';
|
import { DateService } from '../services/date.service';
|
||||||
import { ServiceApiPut } from '../services/service-api-put.service';
|
import { ServiceApiPut } from '../services/service-api-put.service';
|
||||||
@@ -49,7 +50,8 @@ const appRoutes: Routes = [
|
|||||||
{ path: 'newjump', component: NewJumpComponent },
|
{ path: 'newjump', component: NewJumpComponent },
|
||||||
{ path: 'aircrafts', component: ListOfAircraftsComponent },
|
{ path: 'aircrafts', component: ListOfAircraftsComponent },
|
||||||
{ path: 'jumpTypes', component: ListOfJumpTypesComponent },
|
{ path: 'jumpTypes', component: ListOfJumpTypesComponent },
|
||||||
{ path: 'gears', component: ListOfGearsComponent }
|
{ path: 'gears', component: ListOfGearsComponent },
|
||||||
|
{ path: '**', component: DefaultComponent }
|
||||||
];
|
];
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
@@ -65,7 +67,8 @@ const appRoutes: Routes = [
|
|||||||
NewAircraftComponent,
|
NewAircraftComponent,
|
||||||
NewGearComponent,
|
NewGearComponent,
|
||||||
NewDropZoneComponent,
|
NewDropZoneComponent,
|
||||||
NewJumpTypeComponent
|
NewJumpTypeComponent,
|
||||||
|
DefaultComponent
|
||||||
],
|
],
|
||||||
imports: [
|
imports: [
|
||||||
RouterModule.forRoot(
|
RouterModule.forRoot(
|
||||||
|
|||||||
10
Front/skydivelogs-app/src/app/default/default.component.html
Normal file
10
Front/skydivelogs-app/src/app/default/default.component.html
Normal 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>
|
||||||
@@ -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();
|
||||||
|
});
|
||||||
|
});
|
||||||
15
Front/skydivelogs-app/src/app/default/default.component.ts
Normal file
15
Front/skydivelogs-app/src/app/default/default.component.ts
Normal 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() {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -4,7 +4,7 @@ table {
|
|||||||
|
|
||||||
.table-container {
|
.table-container {
|
||||||
position: relative;
|
position: relative;
|
||||||
height: 600px;
|
height: 650px;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ table {
|
|||||||
|
|
||||||
.table-container {
|
.table-container {
|
||||||
position: relative;
|
position: relative;
|
||||||
height: 600px;
|
height: 650px;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ table {
|
|||||||
|
|
||||||
.table-container {
|
.table-container {
|
||||||
position: relative;
|
position: relative;
|
||||||
height: 600px;
|
height: 650px;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ table {
|
|||||||
|
|
||||||
.table-container {
|
.table-container {
|
||||||
position: relative;
|
position: relative;
|
||||||
height: 600px;
|
height: 650px;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ table {
|
|||||||
|
|
||||||
.table-container {
|
.table-container {
|
||||||
position: relative;
|
position: relative;
|
||||||
height: 600px;
|
height: 650px;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
BIN
Front/skydivelogs-app/src/assets/img/addJump.png
Normal file
BIN
Front/skydivelogs-app/src/assets/img/addJump.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.0 KiB |
BIN
Front/skydivelogs-app/src/assets/img/summary.png
Normal file
BIN
Front/skydivelogs-app/src/assets/img/summary.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.6 KiB |
Reference in New Issue
Block a user