Skip to content

Commit c93371a

Browse files
authored
Merge pull request #242 from kzviagina/master
Footer > add Linkedin to social links list
2 parents 2a97abb + 77e4f78 commit c93371a

File tree

4 files changed

+55
-50
lines changed

4 files changed

+55
-50
lines changed

src/app/components/layout/footer/footer.component.html

Lines changed: 3 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -14,54 +14,9 @@
1414
</div>
1515
</div>
1616
<div class="footer-second-row">
17-
<div class="social-link">
18-
<a href="/">
19-
<img alt="" src="/assets/img/social/medium.svg">
20-
</a>
21-
</div>
22-
<div class="social-link">
23-
<a href="https://twitter.com/skycoinproject">
24-
<img alt="" src="/assets/img/social/twitter.svg">
25-
</a>
26-
</div>
27-
<div class="social-link">
28-
<a href="https://www.facebook.com/SkycoinOfficial">
29-
<img alt="" src="/assets/img/social/facebook.svg">
30-
</a>
31-
</div>
32-
<div class="social-link">
33-
<a href="https://www.instagram.com/skycoinproject/">
34-
<img alt="" src="/assets/img/social/instagram.svg">
35-
</a>
36-
</div>
37-
<div class="social-link">
38-
<a href="https://github.com/skycoin/skycoin">
39-
<img alt="" src="/assets/img/social/github.svg">
40-
</a>
41-
</div>
42-
<div class="social-link">
43-
<a href="https://www.youtube.com/c/Skycoin">
44-
<img alt="" src="/assets/img/social/youtube.svg">
45-
</a>
46-
</div>
47-
<div class="social-link">
48-
<a href="https://www.reddit.com/r/skycoin">
49-
<img alt="" src="/assets/img/social/reddit.svg">
50-
</a>
51-
</div>
52-
<div class="social-link">
53-
<a href="https://itunes.apple.com/nl/podcast/skycoin/id1348472259?l=en">
54-
<img alt="" src="/assets/img/social/apple.svg">
55-
</a>
56-
</div>
57-
<div class="social-link">
58-
<a href="https://discord.gg/EgBenrW">
59-
<img alt="" src="/assets/img/social/discord.svg">
60-
</a>
61-
</div>
62-
<div class="social-link">
63-
<a href="https://t.me/Skycoin">
64-
<img alt="" src="/assets/img/social/telegram.svg">
17+
<div class="social-link" *ngFor="let link of links">
18+
<a href={{link.href}} target="_blank" rel="noopener">
19+
<img alt="" src="/assets/img/social/{{link.img}}">
6520
</a>
6621
</div>
6722
</div>

src/app/components/layout/footer/footer.component.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,12 @@ footer {
7676

7777
.social-link {
7878
padding: 8px 0;
79-
width: 20%;
79+
width: 16.6666%;
8080
text-align: center;
8181
font-size: 0;
8282

8383
@media screen and (min-width: 40em) {
84-
width: 10%;
84+
width: 9.0909%;
8585
padding: 16px 0;
8686
}
8787

src/app/components/layout/footer/footer.component.ts

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,53 @@ import { Component, OnInit } from '@angular/core';
77
})
88
export class FooterComponent implements OnInit {
99

10+
links = [
11+
{
12+
href: 'https://medium.com/@Skycoinproject',
13+
img: 'medium.svg',
14+
},
15+
{
16+
href: 'https://twitter.com/skycoinproject',
17+
img: 'twitter.svg',
18+
},
19+
{
20+
href: 'https://www.facebook.com/SkycoinOfficial',
21+
img: 'facebook.svg',
22+
},
23+
{
24+
href: 'https://www.instagram.com/skycoinproject/',
25+
img: 'instagram.svg',
26+
},
27+
{
28+
href: 'https://github.com/skycoin/skycoin',
29+
img: 'github.svg',
30+
},
31+
{
32+
href: 'https://www.youtube.com/c/Skycoin',
33+
img: 'youtube.svg',
34+
},
35+
{
36+
href: 'https://www.reddit.com/r/skycoin',
37+
img: 'reddit.svg',
38+
},
39+
{
40+
href: 'https://itunes.apple.com/nl/podcast/skycoin/id1348472259?l=en',
41+
img: 'apple.svg',
42+
},
43+
{
44+
href: 'https://discord.gg/EgBenrW',
45+
img: 'discord.svg',
46+
},
47+
{
48+
href: 'https://t.me/Skycoin',
49+
img: 'telegram.svg',
50+
},
51+
{
52+
href: 'https://www.linkedin.com/company/skycoin/',
53+
img: 'linkedin.svg',
54+
}
55+
];
56+
1057
constructor() { }
1158

1259
ngOnInit() {

src/assets/img/social/linkedin.svg

Lines changed: 3 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)