-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #248 from AmazeeLabs/SLB-287-background-image-cards
SLB-287: Background image cards - DEV
- Loading branch information
Showing
12 changed files
with
300 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
packages/ui/src/components/Organisms/PageContent/BlockImageTeasers.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import { Url } from '@custom/schema'; | ||
import Landscape from '@stories/landscape.jpg?as=metadata'; | ||
import Portrait from '@stories/portrait.jpg?as=metadata'; | ||
import { Meta, StoryObj } from '@storybook/react'; | ||
|
||
import { image } from '../../../helpers/image'; | ||
import { BlockImageTeasers } from './BlockImageTeasers'; | ||
|
||
export default { | ||
component: BlockImageTeasers, | ||
} satisfies Meta<typeof BlockImageTeasers>; | ||
|
||
export const Default = { | ||
args: { | ||
teasers: [ | ||
{ | ||
title: 'Title', | ||
ctaText: 'Call to action', | ||
ctaUrl: '/test' as Url, | ||
image: { | ||
source: image(Landscape), | ||
alt: 'Alt text', | ||
}, | ||
}, | ||
{ | ||
title: 'Title', | ||
ctaText: 'Call to action', | ||
ctaUrl: '/test' as Url, | ||
image: { | ||
source: image(Portrait), | ||
alt: 'Alt text', | ||
}, | ||
}, | ||
], | ||
}, | ||
} satisfies StoryObj<typeof BlockImageTeasers>; |
Oops, something went wrong.