diff --git a/src/main/ts/src/app/app.component.html b/src/main/ts/src/app/app.component.html index 3de4523..1e9fd64 100644 --- a/src/main/ts/src/app/app.component.html +++ b/src/main/ts/src/app/app.component.html @@ -1,13 +1,12 @@ -
- -
-
-

Vous n'êtes pas connecté au serveur.

- Veuillez contacter votre administrateur ou réessayer plus tard. -
-
-

Chargement...

-
- - +
+ APP Version : {{appVersion}} - API Version : {{apiVersion}} +
+
+ +
+

Vous n'êtes pas connecté au serveur.

+ Veuillez contacter votre administrateur ou réessayer plus tard. +
+

Chargement...

+
\ No newline at end of file diff --git a/src/main/ts/src/app/app.component.scss b/src/main/ts/src/app/app.component.scss index 13dbfd3..05393c0 100644 --- a/src/main/ts/src/app/app.component.scss +++ b/src/main/ts/src/app/app.component.scss @@ -1,4 +1,14 @@ main { - margin-top: 84px; - padding-top: 25px; + padding-top: 15px; + flex:1 0 auto; +} + +#versionDiv { + background-color: #388e3c; + color: white; + padding: 2px 10px; + margin-top: -6px; + font-size: 12px; + font-style: italic; + box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12); } \ No newline at end of file diff --git a/src/main/ts/src/app/app.component.ts b/src/main/ts/src/app/app.component.ts index 948fd0b..33ee837 100644 --- a/src/main/ts/src/app/app.component.ts +++ b/src/main/ts/src/app/app.component.ts @@ -10,6 +10,7 @@ import { environment } from '../environments/environment'; export class AppComponent implements OnInit { title = 'app'; loading = true; + appVersion = environment.appVersion; apiVersion; connectedToApi = false; diff --git a/src/main/ts/src/app/header/header.component.html b/src/main/ts/src/app/header/header.component.html index dad40af..29824e4 100644 --- a/src/main/ts/src/app/header/header.component.html +++ b/src/main/ts/src/app/header/header.component.html @@ -24,4 +24,5 @@ +
Test
\ No newline at end of file diff --git a/src/main/ts/src/styles.scss b/src/main/ts/src/styles.scss index 2ceab3b..dffdefe 100644 --- a/src/main/ts/src/styles.scss +++ b/src/main/ts/src/styles.scss @@ -1,4 +1,19 @@ /* You can add global styles to this file, and also import other style files */ +html { + height: 100%; +} + +body { + // 64px for the header and 15px for a litle margin. + padding-top: 90px; + padding-bottom: 30px; + display: flex; + position: relative; + flex-direction: column; + justify-content:space-between; + min-height: 100%; +} + .btn-rounded { border-radius: 10em; } \ No newline at end of file