Skip to content

Commit

Permalink
adding an overview page for cards
Browse files Browse the repository at this point in the history
  • Loading branch information
stephiescastle committed Aug 1, 2024
1 parent 8beffb5 commit abbc2f2
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/vue-storybook/.percy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ storybook:
'Components/Base/BaseModal: Nested',
'Components/Base/BaseSwimlane: Base Story',
'Components/Base/BaseVideo: Base Story',
'Components/Blocks/BlockCircleImageCard: Base Story',
'Components/Cards/BlockCircleImageCard: Base Story',
'Components/Blocks/BlockCta: Base Story',
'Components/Blocks/BlockIframeEmbed: Lazy Load',
'Components/Blocks/BlockImageCarousel/BlockImageCarouselItem: BlockImageCarouselItem',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default {
export const BlockLinkTileData = {
card: {
url: '/topics/placeholder-slug-1',
title: 'How engineers at NASA-JPL persevered to develop a ventilator',
title: 'Lorem ipsum dolor',
label: 'Solar System',
thumbnailImage: {
src: {
Expand Down
81 changes: 81 additions & 0 deletions packages/vue/src/docs/overviews/cards.docs.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
import { Meta } from '@storybook/blocks'
import { ComponentList } from './../utils/ComponentList'
import * as BlockCardGridItemStories from './../../components/BlockCardGridItem/BlockCardGridItem.stories'
import * as BlockCircleImageCardStories from './../../components/BlockCircleImageCard/BlockCircleImageCard.stories'
import * as BlockLinkCardStories from './../../components/BlockLinkCard/BlockLinkCard.stories'
import * as BlockLinkTileStories from './../../components/BlockLinkTile/BlockLinkTile.stories'

<Meta title="Components/Cards/Overview" />

# Card Components

- [Carousel Cards](#carousel)
- [Grid Cards](#grid)
- [Reserved-use Cards](#reserved)

<br />

<br />

<span id="carousel"></span>

## Carousel Cards

These cards are interchangeable within `MixinCarousel`.

<br />

<ComponentList
components={[
{
heading: 'BlockLinkCard',
meta: BlockLinkCardStories,
path: '/story/components-cards-blocklinkcard--base-story',
fullWidth: true
},
{
heading: 'BlockLinkTile',
meta: BlockLinkTileStories,
path: '/story/components-cards-blocklinktile--base-story',
fullWidth: true
}
]}
/>

<span id="carousel"></span>

## Grid Cards

These cards can be used to create a grid of cards.

<br />

<ComponentList
components={[
{
heading: 'BlockCardGridItem',
meta: BlockCardGridItemStories,
customDescription: 'The link is optional',
path: '/story/components-cards-blockcardgriditem--base-story',
fullWidth: true
}
]}
/>

## Reserved-use Cards

These cards were built for specific use-cases, but that does not exclude them from being re-used for other purposes.

<br />

<ComponentList
components={[
{
heading: 'BlockCircleImageCard',
meta: BlockCircleImageCardStories,
path: '/story/components-cards-blockcircleimagecard--base-story',
fullWidth: true,
customDescription: 'Used in the Timeline'
}
]}
/>

0 comments on commit abbc2f2

Please sign in to comment.