Skip to content

Commit

Permalink
Change style home page
Browse files Browse the repository at this point in the history
  • Loading branch information
maximegris committed May 23, 2017
1 parent c9baed3 commit 93dcc52
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 7 deletions.
8 changes: 5 additions & 3 deletions src/app/components/home/home.component.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<h1 class="title">
{{title}}
</h1>
<div class="container">
<h1 class="title">
{{title}}
</h1>
</div>
17 changes: 13 additions & 4 deletions src/app/components/home/home.component.scss
Original file line number Diff line number Diff line change
@@ -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;
}

}
6 changes: 6 additions & 0 deletions src/styles.scss
Original file line number Diff line number Diff line change
@@ -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%;
}

0 comments on commit 93dcc52

Please sign in to comment.