Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

Commit 1910483

Browse files
amitafrjelbourn
authored andcommitted
add logo and link to angular.io in footer (#79)
1 parent 0ab6cf6 commit 1910483

File tree

4 files changed

+73
-4
lines changed

4 files changed

+73
-4
lines changed

src/_app-theme.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
@import './styles/typography-theme';
99
@import './app/shared/navbar/navbar-theme';
1010
@import './app/shared/example-viewer/example-viewer-theme';
11+
@import './app/shared/footer/footer-theme';
12+
1113

1214
// Styles for the docs app that are based on the current theme.
1315
@mixin material-docs-app-theme($theme) {
@@ -43,4 +45,5 @@
4345
@include component-category-list-theme($theme);
4446
@include nav-bar-theme($theme);
4547
@include example-viewer-theme($theme);
48+
@include footer-theme($theme);
4649
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
@mixin footer-theme($theme) {
2+
$primary: map-get($theme, primary);
3+
$accent: map-get($theme, accent);
4+
$warn: map-get($theme, warn);
5+
$background: map-get($theme, background);
6+
$foreground: map-get($theme, foreground);
7+
8+
app-footer {
9+
.docs-footer-links a {
10+
color: md-color($primary, default-contrast);
11+
}
12+
}
13+
}

src/app/shared/footer/footer.html

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
<footer class="docs-footer">
2-
Powered by Google ©2010-2016. Code licensed under an MIT-style License.
3-
Documentation licensed under CC BY 4.0.
2+
<div class="docs-footer-list">
3+
<div class="footer-logo">
4+
<img class="docs-footer-angular-logo"
5+
src="../../../assets/img/homepage/angular-white-transparent.svg"
6+
alt="Angular">
7+
</div>
8+
9+
<div class="docs-footer-links">
10+
<ul>
11+
<li> <a class="" href="https://wwww.angular.io">Learn Angular</a> </li>
12+
</ul>
13+
</div>
14+
15+
<div class="docs-footer-copyright">
16+
<p>Powered by Google ©2010-2016. Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.</p>
17+
</div>
18+
</div>
419
</footer>

src/app/shared/footer/footer.scss

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,44 @@
11
.docs-footer {
22
margin-top: 40px;
3-
padding: 15px;
4-
text-align: center;
3+
padding: 12px;
54
font-size: 12px;
65
}
6+
7+
.docs-footer-list {
8+
align-items: center;
9+
display: flex;
10+
flex-flow: row wrap;
11+
padding: 8px;
12+
}
13+
14+
.docs-footer-angular-logo {
15+
height: 50px;
16+
}
17+
18+
.docs-footer-copyright {
19+
display: flex;
20+
flex: 1;
21+
justify-content: flex-end;
22+
}
23+
24+
.docs-footer-links ul {
25+
list-style: none;
26+
margin: 0 40px;
27+
padding: 0;
28+
29+
a {
30+
font-size: 16px;
31+
padding: 0;
32+
text-decoration: none;
33+
34+
&:hover {
35+
text-decoration: underline;
36+
}
37+
}
38+
}
39+
40+
@media screen and (max-width: 884px){
41+
.docs-footer-list {
42+
flex-direction: column;
43+
}
44+
}

0 commit comments

Comments
 (0)