|
| 1 | +import React from 'react'; |
| 2 | + |
| 3 | +import Card, { CardSizes } from 'src/Card'; |
| 4 | +import CardContainer, { CardContainerAlignItemsOptions } from 'src/CardContainer'; |
| 5 | +import { withKnobs, select } from '@storybook/addon-knobs'; |
| 6 | +import mdx from './CardContainer.mdx'; |
| 7 | + |
| 8 | +export default { |
| 9 | + title: 'Components/CardContainer', |
| 10 | + decorators: [withKnobs], |
| 11 | + component: CardContainer, |
| 12 | + parameters: { |
| 13 | + docs: { |
| 14 | + page: mdx, |
| 15 | + }, |
| 16 | + }, |
| 17 | +}; |
| 18 | + |
| 19 | +export const Default = () => ( |
| 20 | + <CardContainer alignItems={select('alignItems', CardContainerAlignItemsOptions, 'center')}> |
| 21 | + <Card |
| 22 | + size={select('Card Size', Object.values(CardSizes), CardSizes.SMALL)} |
| 23 | + subTitle="The fastest way to recruit research participants. |
| 24 | + Source from a pool of more than 850,000 participants to reach nearly any target audience." |
| 25 | + title="Card 1" |
| 26 | + > |
| 27 | + <ul> |
| 28 | + <li>500,000+ sessions completed</li> |
| 29 | + <li>$19 million+ incentives distributed</li> |
| 30 | + <li>3 hours median time to 1st matched participant</li> |
| 31 | + </ul> |
| 32 | + </Card> |
| 33 | + <Card |
| 34 | + size={select('Card Size', Object.values(CardSizes), CardSizes.SMALL)} |
| 35 | + subTitle="The fastest way to recruit research participants. |
| 36 | + Source from a pool of more than 850,000 participants to reach nearly any target audience." |
| 37 | + title="Card 2" |
| 38 | + > |
| 39 | + <ul> |
| 40 | + <li>500,000+ sessions completed</li> |
| 41 | + <li>$19 million+ incentives distributed</li> |
| 42 | + <li>3 hours median time to 1st matched participant</li> |
| 43 | + </ul> |
| 44 | + </Card> |
| 45 | + <Card |
| 46 | + size={select('Card Size', Object.values(CardSizes), CardSizes.SMALL)} |
| 47 | + subTitle="The fastest way to recruit research participants. |
| 48 | + Source from a pool of more than 850,000 participants to reach nearly any target audience." |
| 49 | + title="Card 3" |
| 50 | + > |
| 51 | + <ul> |
| 52 | + <li>500,000+ sessions completed</li> |
| 53 | + <li>$19 million+ incentives distributed</li> |
| 54 | + <li>3 hours median time to 1st matched participant</li> |
| 55 | + </ul> |
| 56 | + </Card> |
| 57 | + </CardContainer> |
| 58 | +); |
0 commit comments