diff --git a/webapp/assets/_new/styles/resets.scss b/webapp/assets/_new/styles/resets.scss index 2784add5f..144f22d10 100644 --- a/webapp/assets/_new/styles/resets.scss +++ b/webapp/assets/_new/styles/resets.scss @@ -9,3 +9,13 @@ button { font-family: inherit; font-size: inherit; } + +h1, +h2, +h3, +h4, +h5, +h6, +p { + margin: 0; +} diff --git a/webapp/components/_new/generic/BaseCard/BaseCard.story.js b/webapp/components/_new/generic/BaseCard/BaseCard.story.js new file mode 100644 index 000000000..3462df4d1 --- /dev/null +++ b/webapp/components/_new/generic/BaseCard/BaseCard.story.js @@ -0,0 +1,27 @@ +import { storiesOf } from '@storybook/vue' +import helpers from '~/storybook/helpers' +import BaseCard from './BaseCard.vue' + +storiesOf('Generic/BaseCard', module) + .addDecorator(helpers.layout) + + .add('default', () => ({ + components: { BaseCard }, + template: ` + +

I am a card heading

+

And I am a paragraph.

+
+ `, + })) + + .add('with image', () => ({ + components: { BaseCard }, + template: ` + + +

I am a card heading

+

And I am a paragraph.

+
+ `, + })) diff --git a/webapp/components/_new/generic/BaseCard/BaseCard.vue b/webapp/components/_new/generic/BaseCard/BaseCard.vue new file mode 100644 index 000000000..b76af1c78 --- /dev/null +++ b/webapp/components/_new/generic/BaseCard/BaseCard.vue @@ -0,0 +1,32 @@ + + + + +