Skip to content

Commit

Permalink
Social icons (#23)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
breyell authored and thekaveman committed Dec 13, 2018
1 parent 438da17 commit 3b9f20b
Show file tree
Hide file tree
Showing 8 changed files with 2,522 additions and 4,912 deletions.
12 changes: 3 additions & 9 deletions assets/images/icon-facebook.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 3 additions & 14 deletions assets/images/icon-github.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions assets/images/icon-medium.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 3 additions & 26 deletions assets/images/icon-slack.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 3 additions & 12 deletions assets/images/icon-twitter.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 7 additions & 5 deletions assets/styles/components/_social-links.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
.social-links {
.icon {
@include size(24px);
}
.js-social-link {
display: inline-block;
@include size(24px);

.icon-meetup {
&.js-social-link-meetup {
@include size(89px, 32px);
}
.icon {
@include size(100%);
}
}
30 changes: 20 additions & 10 deletions layouts/default.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<template lang='pug'>
<template lang="pug">
div#app.app
a#skip-link.sr-only-focusable(href='#content') Skip to main content.
header.main-header
Expand Down Expand Up @@ -29,7 +29,7 @@
.social-links
ul.inline-list.social-list
li(v-for='item in headerSocial')
a(:href='item.link', target='_blank').js-social-link
a(:href='item.link', target='_blank', :class='`js-social-link js-social-link-${item.name.toLowerCase()}`')
component(:is='item.icon', :class='`icon-${item.name.toLowerCase()}`').icon
span.sr-only {{ item.name }}
main
Expand All @@ -42,7 +42,7 @@
h2.social-header Follow us&mdash;
ul.inline-list.social-list
li(v-for='item in social')
a(:href='item.link', target='_blank').js-social-link
a(:href='item.link', target='_blank', :class='`js-social-link js-social-link-${item.name.toLowerCase()}`')
component(:is='item.icon', :class='`icon-${item.name.toLowerCase()}`').icon
span.sr-only {{ item.name }}
script(src='https://identity.netlify.com/v1/netlify-identity-widget.js')
Expand Down Expand Up @@ -76,6 +76,7 @@ import LogoGithub from '~/assets/images/icon-github.svg';
import LogoMeetup from '~/assets/images/icon-meetup.svg';
import LogoSlack from '~/assets/images/icon-slack.svg';
import LogoTwitter from '~/assets/images/icon-twitter.svg';
import LogoMedium from '~/assets/images/icon-medium.svg';
export default {
components: {
Expand All @@ -102,6 +103,11 @@ export default {
name: 'Facebook',
link: 'https://hackforla-slack.herokuapp.com/',
icon: LogoFacebook
},
{
name: 'Medium',
link: 'https://medium.com/hack-for-la',
icon: LogoMedium
}
],
social: [
Expand All @@ -110,21 +116,26 @@ export default {
link: 'https://www.meetup.com/hackforla/',
icon: LogoMeetup
},
{
name: 'Slack',
link: 'https://hackforla-slack.herokuapp.com/',
icon: LogoSlack
},
{
name: 'Github',
link: 'https://github.com/hackforla',
icon: LogoGithub
},
{
name: 'Slack',
link: 'https://hackforla-slack.herokuapp.com/',
icon: LogoSlack
},
{
name: 'Facebook',
link: 'https://www.facebook.com/hackforla',
icon: LogoFacebook
},
{
name: 'Medium',
link: 'https://medium.com/hack-for-la',
icon: LogoMedium
},
{
name: 'Twitter',
link: 'https://twitter.com/HackForLA',
Expand All @@ -136,5 +147,4 @@ export default {
};
</script>

<style>
</style>
<style></style>
Loading

0 comments on commit 3b9f20b

Please sign in to comment.