-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b6e0995
commit bb33dd6
Showing
9 changed files
with
152 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
* { | ||
box-sizing: border-box; | ||
} | ||
|
||
.site-footer { | ||
max-width: 1200px; | ||
display: flex; | ||
flex-direction: column; | ||
overflow: auto; | ||
margin: 0 auto; | ||
padding: 24px 10px 10px; | ||
margin-top: 70px; | ||
border-top: 1px solid #e2e2e2; | ||
} | ||
|
||
ul, | ||
li, | ||
.site-title { | ||
display: inline-block; | ||
padding: 0; | ||
margin: 0; | ||
line-height: 28px; | ||
font-size: 14px; | ||
text-align: center; | ||
} | ||
|
||
.site-title { | ||
text-align: center; | ||
} | ||
|
||
li { | ||
line-height: 16px; | ||
box-sizing: border-box; | ||
} | ||
|
||
.copy { | ||
width: 100%; | ||
} | ||
|
||
.links { | ||
flex: 1; | ||
} | ||
|
||
a { | ||
color: #0366d6; | ||
text-decoration: none; | ||
} | ||
|
||
a:hover { | ||
text-decoration: underline; | ||
} | ||
|
||
@media (min-width: 601px) { | ||
.site-footer { | ||
flex-direction: row; | ||
} | ||
|
||
.copy { | ||
width: initial; | ||
} | ||
|
||
ul, | ||
li, | ||
.site-title { | ||
line-height: 16px; | ||
font-size: 12px; | ||
text-align: left; | ||
} | ||
|
||
.right { | ||
text-align: right; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<div class="site-footer container"> | ||
<ul class="links"> | ||
<li class="copy">© 2017 <span>Online Board</span>, All right reserved.</li> | ||
<li><a href="{{pages.mit}}">MIT license</a></li> | ||
<li><a href="{{pages.git}}">GitHub repository</a></li> | ||
<li><a href="{{pages.releases}}">Releases</a></li> | ||
</ul> | ||
|
||
<a href="{{pages.home}}" | ||
aria-label="Online Board" | ||
class="site-title" | ||
title="Online Board"> | ||
Online Board v.{{version}} | ||
</a> | ||
|
||
<ul class="links right"> | ||
<li><a href="{{pages.bugs}}">Report a bug</a></li> | ||
<li><a href="{{pages.about}}">About</a></li> | ||
</ul> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { Component, OnInit, Input } from '@angular/core'; | ||
|
||
interface IPages { | ||
home: string; | ||
about: string; | ||
mit: string; | ||
git: string; | ||
releases: string; | ||
bugs: string; | ||
} | ||
|
||
@Component({ | ||
selector: 'app-footer', | ||
templateUrl: './footer.component.html', | ||
styleUrls: ['./footer.component.css'], | ||
}) | ||
export class FooterComponent implements OnInit { | ||
@Input('version') version: string; | ||
@Input('homepage') homepage: string; | ||
|
||
public pages: IPages; | ||
|
||
constructor() { | ||
this.pages = { | ||
home: this.homepage, | ||
about: 'https://github.com/andreasonny83/online-board/blob/master/README.md', | ||
mit: 'https://github.com/andreasonny83/online-board/blob/master/LICENSE', | ||
git: 'https://github.com/andreasonny83/online-board.git', | ||
releases: 'https://github.com/andreasonny83/online-board/releases', | ||
bugs: 'https://github.com/andreasonny83/online-board/issues/new', | ||
} | ||
} | ||
|
||
ngOnInit() { } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
export const environment = { | ||
production: true, | ||
version: require('../../package.json').version, | ||
homepage: require('../../package.json').homepage, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters