From 93dcc52ac960406c22bec9bf4cb7d358ff26923c Mon Sep 17 00:00:00 2001 From: Maxime GRIS Date: Tue, 23 May 2017 21:55:43 +0200 Subject: [PATCH] Change style home page --- src/app/components/home/home.component.html | 8 +++++--- src/app/components/home/home.component.scss | 17 +++++++++++++---- src/styles.scss | 6 ++++++ 3 files changed, 24 insertions(+), 7 deletions(-) diff --git a/src/app/components/home/home.component.html b/src/app/components/home/home.component.html index 4b0fa09..4bef000 100644 --- a/src/app/components/home/home.component.html +++ b/src/app/components/home/home.component.html @@ -1,3 +1,5 @@ -

- {{title}} -

+
+

+ {{title}} +

+
diff --git a/src/app/components/home/home.component.scss b/src/app/components/home/home.component.scss index b67492c..cdbd6d3 100644 --- a/src/app/components/home/home.component.scss +++ b/src/app/components/home/home.component.scss @@ -1,8 +1,17 @@ -.title { - color: black; - margin:0; - padding:50px 20px; +.container { + height: 100%; + display: flex; + align-items: center; + justify-content: center; + background: url(../../../assets/background.jpg) no-repeat center fixed; -webkit-background-size: cover; /* pour anciens Chrome et Safari */ background-size: cover; /* version standardisée */ + + .title { + color: white; + margin:0; + padding:50px 20px; + } + } diff --git a/src/styles.scss b/src/styles.scss index 90d4ee0..5472c80 100644 --- a/src/styles.scss +++ b/src/styles.scss @@ -1 +1,7 @@ /* You can add global styles to this file, and also import other style files */ +html, body { + margin: 0; + padding: 0; + + height: 100%; +}