Ajout d'une page d'accueil
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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) { }
|
||||
|
||||
|
||||
@@ -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(
|
||||
|
||||
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 {
|
||||
position: relative;
|
||||
height: 600px;
|
||||
height: 650px;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ table {
|
||||
|
||||
.table-container {
|
||||
position: relative;
|
||||
height: 600px;
|
||||
height: 650px;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ table {
|
||||
|
||||
.table-container {
|
||||
position: relative;
|
||||
height: 600px;
|
||||
height: 650px;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ table {
|
||||
|
||||
.table-container {
|
||||
position: relative;
|
||||
height: 600px;
|
||||
height: 650px;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ table {
|
||||
|
||||
.table-container {
|
||||
position: relative;
|
||||
height: 600px;
|
||||
height: 650px;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user