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

Commit 194096e

Browse files
committed
Update footer links and move links data to file
1 parent 651d051 commit 194096e

File tree

2 files changed

+34
-32
lines changed

2 files changed

+34
-32
lines changed

src/components/shared/AppFooter.vue

Lines changed: 2 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,13 @@
11
<script>
22
import feather from 'feather-icons';
33
import FooterCopyright from './FooterCopyright.vue';
4+
import { socialLinks } from '../../data/socialLinks';
45
56
export default {
67
components: { FooterCopyright },
78
data() {
89
return {
9-
socials: [
10-
{
11-
id: 1,
12-
name: 'Website',
13-
icon: 'globe',
14-
url: 'https://www.stoman.me/',
15-
},
16-
{
17-
id: 2,
18-
name: 'GitHub',
19-
icon: 'github',
20-
url: 'https://github.com/realstoman',
21-
},
22-
{
23-
id: 3,
24-
name: 'Twitter',
25-
icon: 'twitter',
26-
url: 'https://twitter.com/realstoman',
27-
},
28-
{
29-
id: 4,
30-
name: 'LinkedIn',
31-
icon: 'linkedin',
32-
url: 'https://www.linkedin.com/in/realstoman',
33-
},
34-
{
35-
id: 5,
36-
name: 'YouTube',
37-
icon: 'youtube',
38-
url: 'https://www.youtube.com/c/realstoman',
39-
},
40-
],
10+
socials: socialLinks,
4111
};
4212
},
4313
mounted() {

src/data/socialLinks.js

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
export const socialLinks = [
2+
{
3+
id: 1,
4+
name: 'Website',
5+
icon: 'globe',
6+
url: 'https://www.stoman.me/',
7+
},
8+
{
9+
id: 2,
10+
name: 'GitHub',
11+
icon: 'github',
12+
url: 'https://github.com/realstoman',
13+
},
14+
{
15+
id: 3,
16+
name: 'Twitter',
17+
icon: 'twitter',
18+
url: 'https://twitter.com/realstoman',
19+
},
20+
{
21+
id: 4,
22+
name: 'LinkedIn',
23+
icon: 'linkedin',
24+
url: 'https://www.linkedin.com/in/realstoman',
25+
},
26+
{
27+
id: 5,
28+
name: 'YouTube',
29+
icon: 'youtube',
30+
url: 'https://www.youtube.com/c/realstoman',
31+
},
32+
];

0 commit comments

Comments
 (0)