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

Commit ee918bc

Browse files
committed
add logo and link to angular in footer
1 parent 0ab6cf6 commit ee918bc

File tree

4 files changed

+80
-3
lines changed

4 files changed

+80
-3
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: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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+
footer ul {
10+
a {
11+
color: md-color($primary, default-contrast);
12+
}
13+
}
14+
}
15+
}

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="footer-list">
3+
<div class="footer-logo">
4+
<img class="docs-angular-logo"
5+
src="../../../assets/img/homepage/angular-white-transparent.svg"
6+
alt="Angular">
7+
</div>
8+
9+
<div class="footer-links">
10+
<ul class="footer-links">
11+
<li> <a class="" href="https://wwww.angular.io">Learn Angular</a> </li>
12+
</ul>
13+
</div>
14+
15+
<div class="footer-cc">
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: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,50 @@
11
.docs-footer {
22
margin-top: 40px;
33
padding: 15px;
4-
text-align: center;
54
font-size: 12px;
65
}
6+
7+
.footer-list {
8+
align-items: center;
9+
display: flex;
10+
flex-flow: row wrap;
11+
padding: 8px;
12+
}
13+
14+
.docs-angular-logo {
15+
height: 50px;
16+
}
17+
18+
.footer-logo {
19+
width: 8.33%;
20+
}
21+
22+
.footer-cc {
23+
display: flex;
24+
flex: 1;
25+
justify-content: flex-end;
26+
}
27+
28+
footer ul {
29+
list-style: none;
30+
padding: 0;
31+
32+
a {
33+
font-size: 16px;
34+
padding: 0;
35+
text-decoration: none;
36+
37+
&:hover {
38+
text-decoration: underline;
39+
}
40+
}
41+
}
42+
43+
@media screen and (max-width: 884px){
44+
.footer-list {
45+
flex-direction: column;
46+
}
47+
.footer-logo {
48+
width: 0;
49+
}
50+
}

0 commit comments

Comments
 (0)