File tree Expand file tree Collapse file tree 7 files changed +47
-25
lines changed Expand file tree Collapse file tree 7 files changed +47
-25
lines changed Original file line number Diff line number Diff line change 1
- < div class ="container ">
1
+ < div class ="container main-container ">
2
2
< toh-nav [title] ="'tourOfHeroes' | translate "> </ toh-nav >
3
3
< router-outlet > </ router-outlet >
4
4
</ div >
5
- < footer class ="footer ">
6
- < div class ="container ">
7
- < span class ="text-muted "> {{ 'tourOfHeroes' | translate }} @2016.</ span >
8
- </ div >
9
- </ footer >
5
+ < toh-footer > </ toh-footer >
Original file line number Diff line number Diff line change @@ -11,7 +11,8 @@ import {LoggerService} from './logger.service';
11
11
import { HeroesModule } from '../heroes/heroes.module' ;
12
12
import { HeroRoutingModule } from '../heroes/heroes-routing.module' ;
13
13
14
- import { NavComponent } from './nav/nav.component' ;
14
+ import { NavComponent } from './nav/nav.component' ;
15
+ import { FooterComponent } from "./footer/footer.component" ;
15
16
16
17
17
18
@NgModule ( {
@@ -27,10 +28,12 @@ import {NavComponent} from './nav/nav.component';
27
28
} ) ,
28
29
] ,
29
30
exports : [
30
- NavComponent
31
+ NavComponent ,
32
+ FooterComponent
31
33
] ,
32
34
declarations : [
33
- NavComponent
35
+ NavComponent ,
36
+ FooterComponent
34
37
] ,
35
38
providers : [
36
39
LoggerService
Original file line number Diff line number Diff line change
1
+ < footer >
2
+ < div class ="container center ">
3
+ < span class ="text-muted "> {{ 'tourOfHeroes' | translate }} @2016.</ span >
4
+ </ div >
5
+ </ footer >
Original file line number Diff line number Diff line change
1
+ :host (toh-footer) {
2
+ position : absolute ;
3
+ bottom : 0 ;
4
+ width : 100% ;
5
+ height : 60px ;
6
+ line-height : 60px ;
7
+ background-color : #f5f5f5 ;
8
+ padding : 0 6em 0 6em ;
9
+
10
+ .container {
11
+ padding : 0 ;
12
+ }
13
+ }
Original file line number Diff line number Diff line change
1
+ import { Component } from '@angular/core' ;
2
+
3
+ @Component ( {
4
+ selector : 'toh-footer' ,
5
+ templateUrl : './footer.component.html' ,
6
+ styleUrls : [ './footer.component.scss' ]
7
+ } )
8
+
9
+ export class FooterComponent {
10
+ }
Original file line number Diff line number Diff line change 10
10
</ ul >
11
11
</ div >
12
12
< div class ="dropdown ">
13
- < a class ="btn btn-secondary dropdown-toggle " id ="dropdownMenuLink " data-toggle ="dropdown "
13
+ < a class ="btn btn-secondary dropdown-toggle " id ="languagesDropdown " data-toggle ="dropdown "
14
14
aria-haspopup ="true " aria-expanded ="false ">
15
15
< i class ="fa fa-globe " aria-hidden ="true "> </ i > {{ 'language' | translate }}
16
16
</ a >
17
- < div class ="dropdown-menu " aria-labelledby ="dropdownMenuLink ">
17
+ < div class ="dropdown-menu " aria-labelledby ="languagesDropdown ">
18
18
< a class ="dropdown-item " (click) ="changeLanguage('en') "> {{ 'english' | translate }}</ a >
19
19
< a class ="dropdown-item " (click) ="changeLanguage('es') "> {{ 'spanish' | translate }}</ a >
20
20
</ div >
Original file line number Diff line number Diff line change @@ -18,13 +18,22 @@ body {
18
18
padding : 0 ;
19
19
width : 100% ;
20
20
margin : 0 ;
21
+ overflow : hidden;
21
22
}
22
23
23
24
.container .container {
24
25
width : 80% ;
25
26
margin : 0 auto;
26
27
}
27
28
29
+ .main-container {
30
+ margin-bottom : 5em ;
31
+ }
32
+
33
+ .center {
34
+ text-align : center;
35
+ }
36
+
28
37
h2 {
29
38
color : # 444 ;
30
39
font-weight : lighter;
37
46
button {
38
47
cursor : pointer !important ;
39
48
}
40
-
41
- .footer {
42
- position : absolute;
43
- bottom : 0 ;
44
- width : 100% ;
45
- height : 60px ;
46
- line-height : 60px ;
47
- background-color : # f5f5f5 ;
48
- padding : 0 6em 0 6em ;
49
- }
50
-
51
- .footer > .container {
52
- padding : 0 ;
53
- }
You can’t perform that action at this time.
0 commit comments