diff --git a/src/app/app.component.html b/src/app/app.component.html index 9ed91c3..cc2f543 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -1,4 +1,4 @@ - - + + - + diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 1768ea4..e8da6fd 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -1,4 +1,5 @@ import { Component } from '@angular/core'; +import { NavigationEnd, Router } from '@angular/router'; @Component({ selector: 'app-root', @@ -7,4 +8,19 @@ import { Component } from '@angular/core'; }) export class AppComponent { title = 'simpleat'; + dontShow: boolean = false; + + constructor(private router:Router){ + this.router.events.subscribe(e=>{ + //console.log(e); + if(e instanceof NavigationEnd){ + console.log(e.url) + if (e.url == "/signin") { + this.dontShow = false; + } else { + this.dontShow = true; + } + } + }) + } } diff --git a/src/app/card-resto/card-resto.component.html b/src/app/card-resto/card-resto.component.html index 7ade5b9..c4d50c4 100644 --- a/src/app/card-resto/card-resto.component.html +++ b/src/app/card-resto/card-resto.component.html @@ -2,14 +2,14 @@ style="width: 22rem;"> Card image cap
-

{{restaurant.nom }}

- +

\ No newline at end of file +
diff --git a/src/app/footer/footer.component.html b/src/app/footer/footer.component.html index dd586aa..c0ed86d 100644 --- a/src/app/footer/footer.component.html +++ b/src/app/footer/footer.component.html @@ -1,14 +1,14 @@ + diff --git a/src/app/pages/signin/signin.component.html b/src/app/pages/signin/signin.component.html index ab233b4..0a30940 100644 --- a/src/app/pages/signin/signin.component.html +++ b/src/app/pages/signin/signin.component.html @@ -1,5 +1,5 @@
-
+
Merci de vous connecter

@@ -32,12 +32,12 @@ -

+

diff --git a/src/app/pages/signin/signin.component.scss b/src/app/pages/signin/signin.component.scss index 990fcc1..89f8317 100644 --- a/src/app/pages/signin/signin.component.scss +++ b/src/app/pages/signin/signin.component.scss @@ -1,19 +1,18 @@ .signin-form { height: 100vh; padding-top: 40px; - background-image: url(../../../assets/fond_signin.png); + background-image: url(../../../assets/fond-signin.png); background-position: center; } .form-signin { - width: 500px; - //max-width: 330px; + max-width: 500px; padding: 15px; margin: auto; + margin-top: 20vh; background-color: #f0f0f0; border-radius: 15px; box-shadow: 10px 10px 10px grey; - margin-top: 25vh; } .form-floating:focus-within { diff --git a/src/assets/fond-signin.png b/src/assets/fond-signin.png new file mode 100644 index 0000000..c1a968f Binary files /dev/null and b/src/assets/fond-signin.png differ