Skip to content

Commit

Permalink
feat(icons): add whatsapp icon (#122)
Browse files Browse the repository at this point in the history
* feat(icons): added whatsapp icon

* docs(icons): added whatsapp to storybook
  • Loading branch information
guastallaigor authored and abdallahalsamman committed Dec 9, 2018
1 parent f765692 commit 629a204
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/icons.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ stories.add('icon', () => {
'icon github': 'icon github',
'icon google': 'icon google',
'icon youtube': 'icon youtube',
'icon whatsapp': 'icon whatsapp',
'icon close': 'icon close',
pokeball: 'pokeball',
smartphone: 'smartphone',
Expand Down
4 changes: 4 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,10 @@ <h3 class="title">SNS</h3>
<i class="icon reddit"></i>
<i class="icon reddit is-medium"></i>
<i class="icon reddit is-large"></i>

<i class="icon whatsapp"></i>
<i class="icon whatsapp is-medium"></i>
<i class="icon whatsapp is-large"></i>
</div>
</section>

Expand Down
5 changes: 5 additions & 0 deletions scss/icons/icons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
@import "medium.scss";
@import "twitch.scss";
@import "reddit.scss";
@import "whatsapp.scss";

// others
@import "close.scss";
Expand Down Expand Up @@ -101,6 +102,10 @@
&.reddit::before {
@include pixelize($icon-reddit, $icon-reddit-colors, $px);
}

&.whatsapp::before {
@include pixelize($icon-whatsapp, $icon-whatsapp-colors, $px);
}
}

// default
Expand Down
19 changes: 19 additions & 0 deletions scss/icons/whatsapp.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
$icon-whatsapp-colors: (#00ba37, #fff);
// prettier-ignore
$icon-whatsapp: (
( 0,0,0,1,1,1,1,1,1,1,1,1,1,1,0,0 ),
( 0,0,1,1,1,2,2,2,2,2,2,2,1,1,1,0 ),
( 0,1,1,1,2,1,1,1,1,1,1,1,2,1,1,1 ),
( 0,1,1,2,1,1,1,1,1,1,1,1,1,2,1,1 ),
( 0,1,1,2,1,2,2,1,1,1,1,1,1,2,1,1 ),
( 0,1,2,1,1,2,2,1,1,1,1,1,1,1,2,1 ),
( 0,1,2,1,1,2,1,1,1,1,1,1,1,1,2,1 ),
( 0,1,2,1,1,1,2,2,1,1,1,1,1,1,2,1 ),
( 0,1,2,1,1,1,1,2,2,1,1,1,1,1,2,1 ),
( 0,1,2,1,1,1,1,1,2,1,2,2,1,1,2,1 ),
( 0,1,1,2,1,1,1,1,1,2,2,2,1,2,1,1 ),
( 0,1,1,2,1,1,1,1,1,1,1,1,1,2,1,1 ),
( 0,1,2,1,2,1,1,1,1,1,1,1,2,1,1,1 ),
( 0,1,2,2,1,2,2,2,2,2,2,2,1,1,1,0 ),
( 0,0,1,1,1,1,1,1,1,1,1,1,1,1,0,0 )
);

0 comments on commit 629a204

Please sign in to comment.