mirror of
https://github.com/primer/css.git
synced 2024-11-30 01:04:04 +03:00
d71a92d41d
This is for file consistency. RE: https://github.com/primer/primer/pull/506#issuecomment-398898842
118 lines
7.6 KiB
JavaScript
118 lines
7.6 KiB
JavaScript
import React from 'react'
|
|
import { storiesOf } from '@storybook/react'
|
|
|
|
storiesOf('Avatars', module)
|
|
.add('avatar', () => (
|
|
<img className='avatar' alt='Uncle Cat' width='72' height='72' src='https://user-images.githubusercontent.com/334891/29999089-2837c968-9009-11e7-92c1-6a7540a594d5.png'/>
|
|
))
|
|
.add('avatar-small', () => (
|
|
<img className='avatar avatar-small' width='32' height='32' src='https://user-images.githubusercontent.com/334891/29999089-2837c968-9009-11e7-92c1-6a7540a594d5.png'/>
|
|
))
|
|
.add('avatar-parent-child', () => (
|
|
<div>
|
|
<div className='avatar-parent-child float-left'>
|
|
<img className='avatar'width='48' height='48' src='https://user-images.githubusercontent.com/334891/29999089-2837c968-9009-11e7-92c1-6a7540a594d5.png'/>
|
|
<img className='avatar avatar-child' alt='Child cat' width='20' height='20' src='https://user-images.githubusercontent.com/334891/29999089-2837c968-9009-11e7-92c1-6a7540a594d5.png'/>
|
|
</div>
|
|
</div>
|
|
))
|
|
.add('avatar-stack', () => (
|
|
<div>
|
|
<div className='avatar-stack'>
|
|
<img className='avatar' alt='Uncle Cat' width='39' height='39' src='https://user-images.githubusercontent.com/334891/29999089-2837c968-9009-11e7-92c1-6a7540a594d5.png'/>
|
|
<img className='avatar' alt='Uncle Cat' width='39' height='39' src='https://user-images.githubusercontent.com/334891/29999089-2837c968-9009-11e7-92c1-6a7540a594d5.png'/>
|
|
<img className='avatar' alt='Uncle Cat' width='39' height='39' src='https://user-images.githubusercontent.com/334891/29999089-2837c968-9009-11e7-92c1-6a7540a594d5.png'/>
|
|
</div>
|
|
</div>
|
|
|
|
))
|
|
.add('AvatarStack', () => (
|
|
<div>
|
|
<div className='AvatarStack AvatarStack-three-plus mb-2'>
|
|
<div className='AvatarStack-body tooltipped tooltipped-se tooltipped-align-left-1' aria-label='five avatars'>
|
|
<img className='avatar' alt='Uncle Cat' width='20' height='20' src='https://user-images.githubusercontent.com/334891/29999089-2837c968-9009-11e7-92c1-6a7540a594d5.png'/>
|
|
<img className='avatar' alt='Uncle Cat' width='20' height='20' src='https://user-images.githubusercontent.com/334891/29999089-2837c968-9009-11e7-92c1-6a7540a594d5.png'/>
|
|
<div className='avatar-more avatar'></div>
|
|
<img className='avatar' alt='Uncle Cat' width='20' height='20' src='https://user-images.githubusercontent.com/334891/29999089-2837c968-9009-11e7-92c1-6a7540a594d5.png'/>
|
|
<img className='avatar' alt='Uncle Cat' width='20' height='20' src='https://user-images.githubusercontent.com/334891/29999089-2837c968-9009-11e7-92c1-6a7540a594d5.png'/>
|
|
<img className='avatar' alt='Uncle Cat' width='20' height='20' src='https://user-images.githubusercontent.com/334891/29999089-2837c968-9009-11e7-92c1-6a7540a594d5.png'/>
|
|
</div>
|
|
</div>
|
|
<div className='AvatarStack AvatarStack-two mb-2'>
|
|
<div className='AvatarStack-body tooltipped tooltipped-se tooltipped-align-left-1' aria-label='two avatars'>
|
|
<img className='avatar' alt='Uncle Cat' width='20' height='20' src='https://user-images.githubusercontent.com/334891/29999089-2837c968-9009-11e7-92c1-6a7540a594d5.png'/>
|
|
<img className='avatar' alt='Uncle Cat' width='20' height='20' src='https://user-images.githubusercontent.com/334891/29999089-2837c968-9009-11e7-92c1-6a7540a594d5.png'/>
|
|
</div>
|
|
</div>
|
|
<div className='AvatarStack AvatarStack-three-plus AvatarStack--right mb-2'>
|
|
<div className='AvatarStack-body tooltipped tooltipped-sw tooltipped-align-right-1' aria-label='five avatars'>
|
|
<img className='avatar' alt='Uncle Cat' width='20' height='20' src='https://user-images.githubusercontent.com/334891/29999089-2837c968-9009-11e7-92c1-6a7540a594d5.png'/>
|
|
<img className='avatar' alt='Uncle Cat' width='20' height='20' src='https://user-images.githubusercontent.com/334891/29999089-2837c968-9009-11e7-92c1-6a7540a594d5.png'/>
|
|
<div className='avatar-more avatar'></div>
|
|
<img className='avatar' alt='Uncle Cat' width='20' height='20' src='https://user-images.githubusercontent.com/334891/29999089-2837c968-9009-11e7-92c1-6a7540a594d5.png'/>
|
|
<img className='avatar' alt='Uncle Cat' width='20' height='20' src='https://user-images.githubusercontent.com/334891/29999089-2837c968-9009-11e7-92c1-6a7540a594d5.png'/>
|
|
<img className='avatar' alt='Uncle Cat' width='20' height='20' src='https://user-images.githubusercontent.com/334891/29999089-2837c968-9009-11e7-92c1-6a7540a594d5.png'/>
|
|
</div>
|
|
</div>
|
|
<div className='AvatarStack AvatarStack-two AvatarStack--right mb-2'>
|
|
<div className='AvatarStack-body tooltipped tooltipped-sw tooltipped-align-right-1' aria-label='two avatars'>
|
|
<img className='avatar' alt='Uncle Cat' width='20' height='20' src='https://user-images.githubusercontent.com/334891/29999089-2837c968-9009-11e7-92c1-6a7540a594d5.png'/>
|
|
<img className='avatar' alt='Uncle Cat' width='20' height='20' src='https://user-images.githubusercontent.com/334891/29999089-2837c968-9009-11e7-92c1-6a7540a594d5.png'/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
))
|
|
.add('AvatarStack on blue background', () => (
|
|
<div className='border bg-blue-light p-4'>
|
|
<div className='AvatarStack flex-self-start'>
|
|
<div className='AvatarStack-body' aria-label='chesterbr'>
|
|
<a className='avatar' aria-describedby='hovercard-aria-description'>
|
|
<img height='20' width='20' alt='@github' src='https://avatars0.githubusercontent.com/github?s=60&v=4' />
|
|
</a>
|
|
</div>
|
|
</div>
|
|
<div className='AvatarStack AvatarStack-two mt-2'>
|
|
<div className='AvatarStack-body tooltipped tooltipped-sw tooltipped-align-right-1' aria-label='two avatars'>
|
|
<img className='avatar' alt='Uncle Cat' width='20' height='20' src='https://user-images.githubusercontent.com/334891/29999089-2837c968-9009-11e7-92c1-6a7540a594d5.png'/>
|
|
<img className='avatar' alt='Uncle Cat' width='20' height='20' src='https://user-images.githubusercontent.com/334891/29999089-2837c968-9009-11e7-92c1-6a7540a594d5.png'/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
))
|
|
.add('CircleBadge--small', () => (
|
|
<div>
|
|
<a className='CircleBadge CircleBadge--small' href='#url' title='Travis CI'>
|
|
<img src='https://user-images.githubusercontent.com/334891/30004619-adc8ca86-90a0-11e7-8ccc-2322261d2ab1.png' className='CircleBadge-icon'/>
|
|
</a>
|
|
</div>
|
|
))
|
|
.add('CircleBadge--medium', () => (
|
|
<div>
|
|
<a className='CircleBadge CircleBadge--medium' href='#url' title='Travis CI'>
|
|
<img src='https://user-images.githubusercontent.com/334891/30004619-adc8ca86-90a0-11e7-8ccc-2322261d2ab1.png' className='CircleBadge-icon'/>
|
|
</a>
|
|
</div>
|
|
))
|
|
.add('CircleBadge--large', () => (
|
|
<div>
|
|
<a className='CircleBadge CircleBadge--large' href='#url' title='Travis CI'>
|
|
<img src='https://user-images.githubusercontent.com/334891/30004619-adc8ca86-90a0-11e7-8ccc-2322261d2ab1.png' className='CircleBadge-icon'/>
|
|
</a>
|
|
</div>
|
|
))
|
|
.add('DashedConnection', () => (
|
|
<div className='DashedConnection'>
|
|
<ul className='d-flex list-style-none flex-justify-between' aria-label='A sample GitHub workflow'>
|
|
<li className='CircleBadge CircleBadge--small' aria-label='GitHub'>
|
|
<img width='32' src='https://user-images.githubusercontent.com/334891/30004619-adc8ca86-90a0-11e7-8ccc-2322261d2ab1.png'/>
|
|
</li>
|
|
<li className='CircleBadge CircleBadge--small' aria-label='Slack'>
|
|
<img width='32' src='https://user-images.githubusercontent.com/334891/30004619-adc8ca86-90a0-11e7-8ccc-2322261d2ab1.png'/>
|
|
</li>
|
|
<li className='CircleBadge CircleBadge--small' aria-label='Travis CI'>
|
|
<img width='32' src='https://user-images.githubusercontent.com/334891/30004619-adc8ca86-90a0-11e7-8ccc-2322261d2ab1.png'/>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
))
|