-
-
Notifications
You must be signed in to change notification settings - Fork 414
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
164 additions
and
200 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 0 additions & 12 deletions
12
packages/components/src/CelebrationHero/CelebrationHere.stories.tsx
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,16 @@ | ||
import { HeroBanner } from './HeroBanner' | ||
|
||
import type { Meta, StoryFn } from '@storybook/react' | ||
|
||
export default { | ||
title: 'Components/HeroBanner', | ||
component: HeroBanner, | ||
} as Meta<typeof HeroBanner> | ||
|
||
export const Celebration: StoryFn<typeof HeroBanner> = () => ( | ||
<HeroBanner type="celebration" /> | ||
) | ||
|
||
export const Email: StoryFn<typeof HeroBanner> = () => ( | ||
<HeroBanner type="email" /> | ||
) |
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,17 @@ | ||
import { Image } from 'theme-ui' | ||
|
||
import Celebration from '../../assets/images/celebration.svg' | ||
import Email from '../../assets/images/email.svg' | ||
|
||
export interface IProps { | ||
type: 'celebration' | 'email' | ||
} | ||
|
||
export const HeroBanner = ({ type }: IProps) => { | ||
const src = { | ||
celebration: Celebration, | ||
email: Email, | ||
} | ||
|
||
return <Image loading="lazy" src={src[type]} /> | ||
} |
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
Oops, something went wrong.