Skip to content

Commit 3723057

Browse files
committed
Adicionado footer
1 parent b3823d3 commit 3723057

8 files changed

+77
-3
lines changed

src/app/app.component.html

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
<app-navbar></app-navbar>
2+
<app-footer></app-footer>

src/app/core/core.module.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,19 @@ import { NgModule } from '@angular/core';
22
import { CommonModule } from '@angular/common';
33

44
import { NavbarComponent } from './navbar/navbar.component';
5+
import { FooterComponent } from './footer/footer.component';
56

67
@NgModule({
78
imports: [
89
CommonModule
910
],
1011
declarations: [
11-
NavbarComponent
12+
NavbarComponent,
13+
FooterComponent
1214
],
1315
exports: [
14-
NavbarComponent
16+
NavbarComponent,
17+
FooterComponent
1518
],
1619
providers: [
1720

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
.copy{
2+
text-align: center;
3+
font: 12px "helvetica neue", Helvetica, Arial, sans-serif;
4+
letter-spacing: 0.05em;
5+
color: #485059;
6+
border-top: 1px solid #485059;
7+
padding-top: 1.5em;
8+
display: block;
9+
}
10+
11+
.copy a{
12+
color: #485059;
13+
margin-left: .5em;
14+
}
15+
16+
.copy a:hover{
17+
color: #4ECCA3;
18+
}
19+
20+
.page-footer{
21+
margin-top: 20px;
22+
margin-bottom: 20px;
23+
padding-top: 20px;
24+
bottom: 0;
25+
width: 100%;
26+
}
27+
28+
/*
29+
@media (min-width: 768px) {
30+
.page-footer{
31+
position: absolute;
32+
}
33+
}
34+
*/
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<footer class="page-footer">
2+
<div class="footer-copyright">
3+
<div class="container copy">
4+
Designed and build by Carlos Kotacho with Spring, Angular
5+
<a href="https://github.com/carloskotacho/message-ui">@github</a>
6+
<a href="https://github.com/carloskotacho/message-api">@api</a>
7+
</div>
8+
</div>
9+
</footer>
10+
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { Component, OnInit } from '@angular/core';
2+
3+
@Component({
4+
selector: 'app-footer',
5+
templateUrl: './footer.component.html',
6+
styleUrls: ['./footer.component.css']
7+
})
8+
export class FooterComponent implements OnInit {
9+
10+
constructor() { }
11+
12+
ngOnInit() {
13+
}
14+
15+
}

src/app/core/navbar/navbar.component.css

+10
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@
77
color: #5E6C84;
88
}
99

10+
.navbar-member{
11+
float: right;
12+
text-decoration: none;
13+
color: #5E6C84;
14+
}
15+
16+
.navbar-member:hover{
17+
color: #4ECCA3;
18+
}
19+
1020
.navbar-menu{
1121
position: fixed;
1222
top: 0;

src/app/core/navbar/navbar.component.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<div class="ui-g">
44
<div class="ui-g-12">
55
<a href="javascript:;" class="navbar-toggle" (click)="showMenu = !showMenu"><i class="pi pi-bars"></i></a>
6+
<a href="javascript:;" class="navbar-member">Sou membro</a>
67
</div>
78
</div>
89
</div>

src/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8">
5-
<title>MessageUi</title>
5+
<title>Message - UI</title>
66
<base href="/">
77
<meta name="viewport" content="width=device-width, initial-scale=1">
88
<link rel="icon" type="image/x-icon" href="favicon.ico">

0 commit comments

Comments
 (0)