-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
connorwalsh
committed
Nov 30, 2018
1 parent
5d69ce2
commit 0764218
Showing
4 changed files
with
168 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import React from 'react'; | ||
import {get, map, range} from 'lodash' | ||
import {Animation} from './animate' | ||
|
||
|
||
export const Chip = (props) => { | ||
const TALKING = 'talking' | ||
|
||
const defaults = { | ||
action: TALKING | ||
} | ||
|
||
const config = { | ||
...defaults, | ||
...props, | ||
} | ||
|
||
const actionFrames = { | ||
[TALKING]: getTalkingFrames(), | ||
} | ||
|
||
return ( | ||
<Animation | ||
frames={get(actionFrames, config.action)} | ||
size={'x-large'} | ||
speed={1} | ||
{...config} | ||
/> | ||
) | ||
} | ||
|
||
const getTalkingFrames = () => | ||
([String.raw` | ||
_______ | ||
╼‖ |╾ | ||
╼‖ |╾ | ||
╼‖ ◒ ◡ ◒ |╾ | ||
╼‖ |╾ | ||
╼‖_______|╾`, | ||
String.raw` | ||
_______ | ||
╼‖ |╾ | ||
╼‖ |╾ | ||
╼‖ ◒ ▾ ◒ |╾ | ||
╼‖ |╾ | ||
╼‖_______|╾`, | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
import React from 'react'; | ||
import {get, map, range} from 'lodash' | ||
import {Animation} from './animate' | ||
|
||
|
||
export const Floppy = (props) => { | ||
const TALKING = 'talking' | ||
|
||
const defaults = { | ||
action: TALKING | ||
} | ||
|
||
const config = { | ||
...defaults, | ||
...props, | ||
} | ||
|
||
const actionFrames = { | ||
[TALKING]: getTalkingFrames(), | ||
} | ||
|
||
return ( | ||
<Animation | ||
frames={get(actionFrames, config.action)} | ||
size={'x-large'} | ||
speed={1} | ||
{...config} | ||
/> | ||
) | ||
} | ||
|
||
const getTalkingFrames = () => | ||
([String.raw` | ||
_____________ | ||
/ ___________ | | ||
/ /# #########|| | ||
||## #########|| | ||
| ============ | | ||
|| || | ||
|| >◠ ◠< || | ||
|| ▼ || | ||
|| || | ||
-============-`, | ||
String.raw` | ||
_____________ | ||
/ ___________ | | ||
/ /# #########|| | ||
||## #########|| | ||
| ============ | | ||
|| || | ||
|| >◠ ◠< || | ||
|| - || | ||
|| || | ||
-============-`, | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
import React from 'react'; | ||
import {get, map, range} from 'lodash' | ||
import {Animation} from './animate' | ||
|
||
|
||
export const Phone = (props) => { | ||
const TALKING = 'talking' | ||
|
||
const defaults = { | ||
action: TALKING | ||
} | ||
|
||
const config = { | ||
...defaults, | ||
...props, | ||
} | ||
|
||
const actionFrames = { | ||
[TALKING]: getTalkingFrames(), | ||
} | ||
|
||
return ( | ||
<Animation | ||
frames={get(actionFrames, config.action)} | ||
size={'x-large'} | ||
speed={1} | ||
{...config} | ||
/> | ||
) | ||
} | ||
|
||
const getTalkingFrames = () => | ||
([String.raw` | ||
_________ | ||
/####-####\\ | ||
| || | ||
| || | ||
| || | ||
| ● ‿ ● || | ||
| || | ||
| || | ||
| || | ||
| || | ||
\####◯####// | ||
▔▔▔▔▔▔▔▔▔`, | ||
String.raw` | ||
_________ | ||
/####-####\\ | ||
| || | ||
| || | ||
| || | ||
| ^ ‿ ^ || | ||
| || | ||
| || | ||
| || | ||
| || | ||
\####◯####// | ||
▔▔▔▔▔▔▔▔▔`, | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters