feat(lab): Draft view pretty ok now
This commit is contained in:
parent
73163f5676
commit
929822b249
15 changed files with 327 additions and 29 deletions
29
packages/freesewing.shared/components/robot/index.js
Normal file
29
packages/freesewing.shared/components/robot/index.js
Normal file
|
@ -0,0 +1,29 @@
|
|||
import poses from './poses'
|
||||
|
||||
// pose is one of:
|
||||
// fail,
|
||||
// ohno,
|
||||
// shrug,
|
||||
// shrug2,
|
||||
// yay
|
||||
|
||||
const Robot = ({
|
||||
size = 124,
|
||||
viewBox = '0 0 500 500',
|
||||
className = '',
|
||||
pose = 'yay',
|
||||
color = false,
|
||||
embed = false
|
||||
}) => (
|
||||
<svg
|
||||
className={className || ''}
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width={embed ? '' : size || 124}
|
||||
height={embed ? '' : size || 124}
|
||||
viewBox={viewBox || '0 0 500 500'}
|
||||
>
|
||||
<path stroke="none" fill={color ? color : 'currentColor'} d={poses[pose]} />
|
||||
</svg>
|
||||
)
|
||||
|
||||
export default Robot
|
Loading…
Add table
Add a link
Reference in a new issue