-
-
Home Front
-
v{{environment.version}}
+
+
+
+
Home Front
+
+
+
+
+
+
+
diff --git a/src/app/login/login.component.ts b/src/app/login/login.component.ts
index 1025a85..29cbdbc 100644
--- a/src/app/login/login.component.ts
+++ b/src/app/login/login.component.ts
@@ -3,12 +3,15 @@ import {environment} from '../../environments/environment';
import {firebaseApp} from '../app.module';
import {Router} from '@angular/router';
import * as firebase from 'firebase';
+import {expandDown} from '../animations';
@Component({
selector: 'app-login',
- templateUrl: './login.component.html'
+ templateUrl: './login.component.html',
+ animations: [expandDown]
})
export class LoginComponent implements OnInit {
+ animate = false;
environment = environment;
constructor(private router: Router, private ngZone: NgZone) { }
@@ -16,12 +19,16 @@ export class LoginComponent implements OnInit {
ngOnInit() {
firebaseApp.auth().onAuthStateChanged(user => {
if(!!user) this.ngZone.run(() => this.router.navigate(['/dashboard']));
- })
+ });
+
+ setTimeout(this.ngZone.run(() => this.animate = true), 1000);
}
async login() {
await firebase.auth().setPersistence(firebase.auth.Auth.Persistence.LOCAL);
await firebaseApp.auth().signInWithRedirect(new firebase.auth.GoogleAuthProvider());
- return this.router.navigate(['/dashboard']);
+ this.ngZone.run(() => {
+ return this.router.navigate(['/dashboard']);
+ });
}
}
diff --git a/src/app/weather/weather.component.html b/src/app/weather/weather.component.html
index ac42055..7c4bc9b 100644
--- a/src/app/weather/weather.component.html
+++ b/src/app/weather/weather.component.html
@@ -1,5 +1,5 @@
-
+
{{weatherService.temp}} °C
@@ -7,19 +7,19 @@
-
+
{{weatherService.humidity}} %
-
+
{{weatherService.cloudCover}} %
-
+
{{weatherService.wind[1]}} KM/H
-
+
{{w.day}}
{{w.temp}} °C
diff --git a/src/index.html b/src/index.html
index fd481f8..9cd3737 100644
--- a/src/index.html
+++ b/src/index.html
@@ -13,7 +13,16 @@
-
-
+
+
+
+
Home Front
+
+
+
+
+
+
+