diff --git a/package.json b/package.json index 0a9acc7..84ff269 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "@angular/platform-browser": "^6.0.3", "@angular/platform-browser-dynamic": "^6.0.3", "@angular/router": "^6.0.3", + "@material/card": "^0.41.0", "bootstrap": "^4.1.3", "core-js": "^2.5.4", "font-awesome": "^4.7.0", diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 23ee44b..00ecc9f 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -3,7 +3,9 @@ import { NgModule } from '@angular/core'; import { FormsModule } from '@angular/forms'; import { HttpModule } from '@angular/http'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; -import { MatButtonModule, MatCheckboxModule, MatCardModule } from '@angular/material'; +import { MatButtonModule, MatCheckboxModule } from '@angular/material'; +import { MatCardModule } from '@angular/material/card'; +import { MatDividerModule } from '@angular/material/divider'; import { AppRoutingModule } from './app-routing/app-routing.module'; @@ -63,7 +65,8 @@ import { HomeComponent } from './content/image-container/home/home.component'; BrowserAnimationsModule, MatButtonModule, MatCheckboxModule, - MatCardModule + MatCardModule, + MatDividerModule ], providers: [], bootstrap: [AppComponent] diff --git a/src/app/content/header/tools/tools.component.scss b/src/app/content/header/tools/tools.component.scss index 6ec0b43..327c2d3 100644 --- a/src/app/content/header/tools/tools.component.scss +++ b/src/app/content/header/tools/tools.component.scss @@ -34,4 +34,7 @@ div.navbar-collapse li { //OVERWRITES .nav-link { padding: .7rem 0.5rem; -} \ No newline at end of file +} + +ul.nav { display: flex;} +ul.nav li { margin: auto; } \ No newline at end of file diff --git a/src/app/content/image-container/image-container.component.html b/src/app/content/image-container/image-container.component.html index 2469bd9..317ae41 100644 --- a/src/app/content/image-container/image-container.component.html +++ b/src/app/content/image-container/image-container.component.html @@ -1,7 +1,9 @@ -
- - +
+
+ + +
\ No newline at end of file diff --git a/src/app/content/image-container/image-container.component.scss b/src/app/content/image-container/image-container.component.scss index 90c6456..494b3a4 100644 --- a/src/app/content/image-container/image-container.component.scss +++ b/src/app/content/image-container/image-container.component.scss @@ -3,7 +3,9 @@ p { } .row { - display: flex; flex-flow: row wrap; + display: flex; + flex-flow: row wrap; + justify-content: space-between; } .row:after { content: ''; width: 100%; @@ -13,4 +15,8 @@ p { } .box:nth-of-type(n + 4) { order: 1; +} + +:host { + margin: auto; } \ No newline at end of file diff --git a/src/app/content/image-container/image/image.component.html b/src/app/content/image-container/image/image.component.html index 37fe413..91a8a33 100644 --- a/src/app/content/image-container/image/image.component.html +++ b/src/app/content/image-container/image/image.component.html @@ -1,17 +1,33 @@ - + + + -
- {{ image.imageTitle }} - {{ image.imageCateogry }} +
+ {{image.imageTitle}} + Nature
- Photo of a Shiba Inu + Photo of a Shiba Inu -

- {{ image.imageDescription }} -

+

{{image.imageDescription}}

-
\ No newline at end of file +
+ diff --git a/src/app/content/image-container/image/image.component.scss b/src/app/content/image-container/image/image.component.scss index ea6e3a4..f9738da 100644 --- a/src/app/content/image-container/image/image.component.scss +++ b/src/app/content/image-container/image/image.component.scss @@ -1,9 +1,14 @@ //OVERWRITES :host { - margin: 0 20px; + margin: 0 1em; overflow: auto; - } +// .card { +// width: 20rem; +// margin: 20px auto; +// overflow: auto +// } + .card { width: 20rem; margin: 20px auto; @@ -17,4 +22,14 @@ .image { background-image: url('https://material.angular.io/assets/img/examples/shiba1.jpg'); background-size: cover; + max-width: 400px; +} + +.header-image { + background-image: url('https://material.angular.io/assets/img/examples/shiba1.jpg'); + background-size: cover; +} + +mat-divider { + margin: 1em 0; } \ No newline at end of file