Changement général pour avoir une bonne

hauteur et largeur sur toutes les pages
This commit is contained in:
Sébastien André
2020-04-29 16:47:24 +02:00
parent e60ad1d3fa
commit 5f89b51db1
33 changed files with 629 additions and 521 deletions

View File

@@ -1,6 +1,5 @@
.hamburger__icon { .hamburger__icon {
position: relative; position: relative;
/* z-index: 101; */
height: 1rem; height: 1rem;
margin-right: 1rem; margin-right: 1rem;
cursor: pointer; cursor: pointer;
@@ -18,9 +17,7 @@
.navigation { .navigation {
position: absolute; position: absolute;
width: 200px; width: 200px;
/* height: 650px; /* height: 100%; */
overflow: hidden; */
height: 100%;
z-index: 101; z-index: 101;
background-color: grey; background-color: grey;
padding: 5px; padding: 5px;

View File

@@ -0,0 +1,7 @@
.content {
height: 90vh;
display: flex;
justify-content: left;
flex-direction: column;
align-items: initial;
}

View File

@@ -1,3 +1,4 @@
<div class="content">
<p> <p>
<a routerLink="/summary" routerLinkActive="active" skipLocationChange> <a routerLink="/summary" routerLinkActive="active" skipLocationChange>
<img src="../../assets/img/summary.png" alt="Summary of jumps"> <img src="../../assets/img/summary.png" alt="Summary of jumps">
@@ -8,3 +9,4 @@
<img src="../../assets/img/addJump.png" alt="Add new jumps"> <img src="../../assets/img/addJump.png" alt="Add new jumps">
</a> </a>
</p> </p>
</div>

View File

@@ -11,3 +11,11 @@ table {
min-width: 200px; min-width: 200px;
word-wrap: break-word; word-wrap: break-word;
} }
.content {
height: 90vh;
display: flex;
justify-content: left;
flex-direction: column;
align-items: initial;
}

View File

@@ -1,4 +1,4 @@
<div *ngIf="dataSourceTable != null else loading" class="table-container"> <div *ngIf="dataSourceTable != null else loading">
<button mat-raised-button color="accent" (click)="openDialogToAdd()">Add a aircraft</button> <button mat-raised-button color="accent" (click)="openDialogToAdd()">Add a aircraft</button>
<table mat-table [dataSource]="dataSourceTable"> <table mat-table [dataSource]="dataSourceTable">

View File

@@ -11,3 +11,11 @@ table {
min-width: 200px; min-width: 200px;
word-wrap: break-word; word-wrap: break-word;
} }
.content {
height: 90vh;
display: flex;
justify-content: left;
flex-direction: column;
align-items: initial;
}

View File

@@ -1,4 +1,5 @@
<div *ngIf="dataSourceTable != null else loading" class="table-container"> <div class="content">
<div *ngIf="dataSourceTable != null else loading">
<button mat-raised-button color="accent" (click)="openDialogToAdd()">Add a drop zone</button> <button mat-raised-button color="accent" (click)="openDialogToAdd()">Add a drop zone</button>
<table mat-table [dataSource]="dataSourceTable"> <table mat-table [dataSource]="dataSourceTable">
@@ -58,3 +59,4 @@
<ng-template #loading> <ng-template #loading>
<mat-progress-spinner [mode]="'indeterminate'"></mat-progress-spinner> <mat-progress-spinner [mode]="'indeterminate'"></mat-progress-spinner>
</ng-template> </ng-template>
</div>

View File

@@ -11,3 +11,11 @@ table {
min-width: 200px; min-width: 200px;
word-wrap: break-word; word-wrap: break-word;
} }
.content {
height: 90vh;
display: flex;
justify-content: left;
flex-direction: column;
align-items: initial;
}

View File

@@ -1,4 +1,5 @@
<div *ngIf="dataSourceTable != null else loading" class="table-container"> <div class="content">
<div *ngIf="dataSourceTable != null else loading">
<button mat-raised-button color="accent" (click)="openDialogToAdd()">Add a gear</button> <button mat-raised-button color="accent" (click)="openDialogToAdd()">Add a gear</button>
<table mat-table [dataSource]="dataSourceTable"> <table mat-table [dataSource]="dataSourceTable">
@@ -46,3 +47,4 @@
<ng-template #loading> <ng-template #loading>
<mat-progress-spinner [mode]="'indeterminate'"></mat-progress-spinner> <mat-progress-spinner [mode]="'indeterminate'"></mat-progress-spinner>
</ng-template> </ng-template>
</div>

View File

@@ -11,3 +11,11 @@ table {
min-width: 200px; min-width: 200px;
word-wrap: break-word; word-wrap: break-word;
} }
.content {
height: 90vh;
display: flex;
justify-content: left;
flex-direction: column;
align-items: initial;
}

View File

@@ -1,4 +1,4 @@
<div *ngIf="dataSourceTable != null else loading" class="table-container"> <div *ngIf="dataSourceTable != null else loading">
<button mat-raised-button color="accent" (click)="openDialogToAdd()">Add a jump type</button> <button mat-raised-button color="accent" (click)="openDialogToAdd()">Add a jump type</button>
<table mat-table [dataSource]="dataSourceTable"> <table mat-table [dataSource]="dataSourceTable">

View File

@@ -17,3 +17,11 @@ table {
min-width: 50px; min-width: 50px;
word-wrap: break-word; word-wrap: break-word;
} }
.content {
height: 90vh;
display: flex;
justify-content: left;
flex-direction: column;
align-items: initial;
}

View File

@@ -1,4 +1,5 @@
<div *ngIf="dataSourceTable != null else loading" class="table-container"> <div class="content">
<div *ngIf="dataSourceTable != null else loading">
<table mat-table [dataSource]="dataSourceTable"> <table mat-table [dataSource]="dataSourceTable">
<ng-container matColumnDef="id"> <ng-container matColumnDef="id">
<th mat-header-cell *matHeaderCellDef>ID</th> <th mat-header-cell *matHeaderCellDef>ID</th>
@@ -47,3 +48,4 @@
<ng-template #loading> <ng-template #loading>
<mat-progress-spinner [mode]="'indeterminate'"></mat-progress-spinner> <mat-progress-spinner [mode]="'indeterminate'"></mat-progress-spinner>
</ng-template> </ng-template>
</div>

View File

@@ -1,5 +1,5 @@
.main-div { .content {
height: 100vh; height: 90vh;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;

View File

@@ -1,4 +1,4 @@
<div class="main-div"> <div class="content">
<mat-card style="max-width: 500px;" flex="50"> <mat-card style="max-width: 500px;" flex="50">
<mat-card-header style="padding:10px; background-color: rgba(0,0,0,.03);"> <mat-card-header style="padding:10px; background-color: rgba(0,0,0,.03);">
<mat-card-title>Login to the Skydive log</mat-card-title> <mat-card-title>Login to the Skydive log</mat-card-title>

View File

@@ -1 +1,7 @@
.content {
height: 90vh;
display: flex;
justify-content: left;
flex-direction: column;
align-items: initial;
}

View File

@@ -1,3 +1,4 @@
<div class="content">
<form [formGroup]="addForm" (ngSubmit)="onSubmit(addForm.value)"> <form [formGroup]="addForm" (ngSubmit)="onSubmit(addForm.value)">
<p> <p>
<mat-form-field> <mat-form-field>
@@ -8,3 +9,4 @@
<button type="submit" mat-raised-button color="accent">Add</button> <button type="submit" mat-raised-button color="accent">Add</button>
</form> </form>
</div>

View File

@@ -1 +1,7 @@
.content {
height: 90vh;
display: flex;
justify-content: left;
flex-direction: column;
align-items: initial;
}

View File

@@ -1,3 +1,4 @@
<div class="content">
<form [formGroup]="addForm" (ngSubmit)="onSubmit(addForm.value)"> <form [formGroup]="addForm" (ngSubmit)="onSubmit(addForm.value)">
<p> <p>
<mat-form-field> <mat-form-field>
@@ -38,3 +39,4 @@
<button type="submit" mat-raised-button color="accent">Add</button> <button type="submit" mat-raised-button color="accent">Add</button>
</form> </form>
</div>

View File

@@ -1 +1,7 @@
.content {
height: 90vh;
display: flex;
justify-content: left;
flex-direction: column;
align-items: initial;
}

View File

@@ -1,3 +1,4 @@
<div class="content">
<form [formGroup]="addForm" (ngSubmit)="onSubmit(addForm.value)"> <form [formGroup]="addForm" (ngSubmit)="onSubmit(addForm.value)">
<p> <p>
<mat-form-field> <mat-form-field>
@@ -44,3 +45,4 @@
<button mat-raised-button color="accent" type="submit">Add</button> <button mat-raised-button color="accent" type="submit">Add</button>
</form> </form>
</div>

View File

@@ -1 +1,7 @@
.content {
height: 90vh;
display: flex;
justify-content: left;
flex-direction: column;
align-items: initial;
}

View File

@@ -1,3 +1,4 @@
<div class="content">
<form [formGroup]="addForm" (ngSubmit)="onSubmit(addForm.value)"> <form [formGroup]="addForm" (ngSubmit)="onSubmit(addForm.value)">
<p> <p>
<mat-form-field> <mat-form-field>
@@ -8,3 +9,4 @@
<button type="submit" mat-raised-button color="accent">Add</button> <button type="submit" mat-raised-button color="accent">Add</button>
</form> </form>
</div>

View File

@@ -12,3 +12,11 @@
.formNewJumps>* { .formNewJumps>* {
width: 100%; width: 100%;
} }
.content {
height: 90vh;
display: flex;
justify-content: left;
flex-direction: column;
align-items: initial;
}

View File

@@ -1,7 +1,9 @@
<div class="content">
<form class="formNewJumps" (ngSubmit)="onFormSubmit()" *ngIf="allDatasLoaded() else loading"> <form class="formNewJumps" (ngSubmit)="onFormSubmit()" *ngIf="allDatasLoaded() else loading">
<mat-form-field> <mat-form-field>
<mat-label>Choose the jump type</mat-label> <mat-label>Choose the jump type</mat-label>
<input type="text" matInput [matAutocomplete]="autoJumpType" [(ngModel)]="selectedJumpType" name="selectedJumpType"> <input type="text" matInput [matAutocomplete]="autoJumpType" [(ngModel)]="selectedJumpType"
name="selectedJumpType">
<mat-autocomplete #autoJumpType="matAutocomplete" [displayWith]="displayFn"> <mat-autocomplete #autoJumpType="matAutocomplete" [displayWith]="displayFn">
<mat-option *ngFor="let jumpType of listOfJumpType" [value]="jumpType"> <mat-option *ngFor="let jumpType of listOfJumpType" [value]="jumpType">
{{jumpType.name}} {{jumpType.name}}
@@ -15,7 +17,8 @@
<mat-form-field> <mat-form-field>
<mat-label>Choose the aircraft</mat-label> <mat-label>Choose the aircraft</mat-label>
<input type="text" matInput [matAutocomplete]="autoAircraft" [(ngModel)]="selectedAircraft" name="selectedAircraft"> <input type="text" matInput [matAutocomplete]="autoAircraft" [(ngModel)]="selectedAircraft"
name="selectedAircraft">
<mat-autocomplete #autoAircraft="matAutocomplete" [displayWith]="displayFn"> <mat-autocomplete #autoAircraft="matAutocomplete" [displayWith]="displayFn">
<mat-option *ngFor="let aircraft of listOfAircraft" [value]="aircraft"> <mat-option *ngFor="let aircraft of listOfAircraft" [value]="aircraft">
{{aircraft.name}} {{aircraft.name}}
@@ -101,3 +104,4 @@
<ng-template #loading> <ng-template #loading>
<mat-progress-spinner [mode]="'indeterminate'"></mat-progress-spinner> <mat-progress-spinner [mode]="'indeterminate'"></mat-progress-spinner>
</ng-template> </ng-template>
</div>

View File

@@ -13,3 +13,11 @@
.labelTab.selected { .labelTab.selected {
background-color: gray !important; background-color: gray !important;
} }
.content {
height: 90vh;
display: flex;
justify-content: left;
flex-direction: column;
align-items: initial;
}

View File

@@ -1,3 +1,4 @@
<div class="content">
<div> <div>
<label style="float: left; width: 130px;">Total jumps</label> <label style="float: left; width: 130px;">Total jumps</label>
<span>: {{ totalJumps }}</span> <span>: {{ totalJumps }}</span>
@@ -116,3 +117,4 @@
</table> </table>
</mat-tab> </mat-tab>
</mat-tab-group> </mat-tab-group>
</div>

View File

@@ -0,0 +1,7 @@
.content {
height: 90vh;
display: flex;
justify-content: left;
flex-direction: column;
align-items: initial;
}

View File

@@ -1,3 +1,4 @@
<div class="content">
<form [formGroup]="userForm" (ngSubmit)="onSubmit(userForm.value)"> <form [formGroup]="userForm" (ngSubmit)="onSubmit(userForm.value)">
<p> <p>
<mat-form-field> <mat-form-field>
@@ -39,3 +40,4 @@
<button type="submit" mat-raised-button color="accent">Update my profile</button> <button type="submit" mat-raised-button color="accent">Update my profile</button>
</form> </form>
</div>

File diff suppressed because one or more lines are too long

View File

@@ -2,15 +2,15 @@
html, html,
body { body {
height: 100%; /* height: 100%; */
height: 100vh;
width: 100vw;
box-sizing: border-box;
} }
body { body {
font-family: Roboto, "Helvetica Neue", sans-serif; font-family: Roboto, "Helvetica Neue", sans-serif;
color: #424242; color: #424242;
/* min-height: 665px;
margin: 10px;
overflow: auto; */
margin: 0; margin: 0;
padding: 10px; padding: 10px;
} }

View File

@@ -2,5 +2,5 @@ export const environment = {
production: true, production: true,
apiUrl: "https://divelog.sebastienandre.com", apiUrl: "https://divelog.sebastienandre.com",
debugMode: false, debugMode: false,
version: "0.5.0" version: "0.6.0",
}; };

View File

@@ -7,5 +7,5 @@ export const environment = {
production: false, production: false,
apiUrl: "http://localhost:5000", apiUrl: "http://localhost:5000",
debugMode: false, debugMode: false,
version: "0.5.0" version: "0.6.0",
}; };