Skip to content

Commit 3b9f20b

Browse files
breyellthekaveman
authored andcommitted
Social icons (#23)
* Fix GitHub icon and make other icon sizes consistent. * Add medium icon to header and footer. Slightly reorganized footer icons to match header. Closes #21 Closes #22
1 parent 438da17 commit 3b9f20b

File tree

8 files changed

+2522
-4912
lines changed

8 files changed

+2522
-4912
lines changed

assets/images/icon-facebook.svg

Lines changed: 3 additions & 9 deletions
Loading

assets/images/icon-github.svg

Lines changed: 3 additions & 14 deletions
Loading

assets/images/icon-medium.svg

Lines changed: 4 additions & 0 deletions
Loading

assets/images/icon-slack.svg

Lines changed: 3 additions & 26 deletions
Loading

assets/images/icon-twitter.svg

Lines changed: 3 additions & 12 deletions
Loading
Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
.social-links {
2-
.icon {
3-
@include size(24px);
4-
}
1+
.js-social-link {
2+
display: inline-block;
3+
@include size(24px);
54

6-
.icon-meetup {
5+
&.js-social-link-meetup {
76
@include size(89px, 32px);
87
}
8+
.icon {
9+
@include size(100%);
10+
}
911
}

layouts/default.vue

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<template lang='pug'>
1+
<template lang="pug">
22
div#app.app
33
a#skip-link.sr-only-focusable(href='#content') Skip to main content.
44
header.main-header
@@ -29,7 +29,7 @@
2929
.social-links
3030
ul.inline-list.social-list
3131
li(v-for='item in headerSocial')
32-
a(:href='item.link', target='_blank').js-social-link
32+
a(:href='item.link', target='_blank', :class='`js-social-link js-social-link-${item.name.toLowerCase()}`')
3333
component(:is='item.icon', :class='`icon-${item.name.toLowerCase()}`').icon
3434
span.sr-only {{ item.name }}
3535
main
@@ -42,7 +42,7 @@
4242
h2.social-header Follow us&mdash;
4343
ul.inline-list.social-list
4444
li(v-for='item in social')
45-
a(:href='item.link', target='_blank').js-social-link
45+
a(:href='item.link', target='_blank', :class='`js-social-link js-social-link-${item.name.toLowerCase()}`')
4646
component(:is='item.icon', :class='`icon-${item.name.toLowerCase()}`').icon
4747
span.sr-only {{ item.name }}
4848
script(src='https://identity.netlify.com/v1/netlify-identity-widget.js')
@@ -76,6 +76,7 @@ import LogoGithub from '~/assets/images/icon-github.svg';
7676
import LogoMeetup from '~/assets/images/icon-meetup.svg';
7777
import LogoSlack from '~/assets/images/icon-slack.svg';
7878
import LogoTwitter from '~/assets/images/icon-twitter.svg';
79+
import LogoMedium from '~/assets/images/icon-medium.svg';
7980
8081
export default {
8182
components: {
@@ -102,6 +103,11 @@ export default {
102103
name: 'Facebook',
103104
link: 'https://hackforla-slack.herokuapp.com/',
104105
icon: LogoFacebook
106+
},
107+
{
108+
name: 'Medium',
109+
link: 'https://medium.com/hack-for-la',
110+
icon: LogoMedium
105111
}
106112
],
107113
social: [
@@ -110,21 +116,26 @@ export default {
110116
link: 'https://www.meetup.com/hackforla/',
111117
icon: LogoMeetup
112118
},
113-
{
114-
name: 'Slack',
115-
link: 'https://hackforla-slack.herokuapp.com/',
116-
icon: LogoSlack
117-
},
118119
{
119120
name: 'Github',
120121
link: 'https://github.com/hackforla',
121122
icon: LogoGithub
122123
},
124+
{
125+
name: 'Slack',
126+
link: 'https://hackforla-slack.herokuapp.com/',
127+
icon: LogoSlack
128+
},
123129
{
124130
name: 'Facebook',
125131
link: 'https://www.facebook.com/hackforla',
126132
icon: LogoFacebook
127133
},
134+
{
135+
name: 'Medium',
136+
link: 'https://medium.com/hack-for-la',
137+
icon: LogoMedium
138+
},
128139
{
129140
name: 'Twitter',
130141
link: 'https://twitter.com/HackForLA',
@@ -136,5 +147,4 @@ export default {
136147
};
137148
</script>
138149

139-
<style>
140-
</style>
150+
<style></style>

0 commit comments

Comments
 (0)