Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Banner): new banner design #2761

Merged
merged 3 commits into from
Jul 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/rich-hairs-nail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ultraviolet/ui': minor
---

Design update on Banner to include pattern and gradient colors
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import type { StoryFn } from '@storybook/react'
import { Banner } from '..'
import image from './Image.png'

export const Directions: StoryFn = () => (
<>
<Banner
title="Apply to Scaleway Startup programs"
image={<img src={image} alt="" />}
buttonText="Apply now"
linkText="Learn more"
direction="row"
Expand All @@ -17,7 +15,6 @@ export const Directions: StoryFn = () => (
</Banner>
<Banner
title="Apply to Scaleway Startup programs"
image={<img src={image} alt="" />}
buttonText="Apply now"
linkText="Learn more"
direction="column"
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import image from './Image.png'
import { Template } from './Template'

export const Playground = Template.bind({})
Expand All @@ -7,8 +6,7 @@ Playground.args = {
title: 'Apply to Scaleway Startup programs',
buttonText: 'Apply now',
linkText: 'Learn more',
image: <img src={image} alt="" />,
children: [
'The Scaleway Startup programs offer the perfect combination of cloud credits, infrastructure advisors and startup experts to develop your business and limit your expenses.',
'The Scaleway Startup programs offer the perfect combination of cloud credits, advisors and startup experts to develop your business and limit your expenses.',
],
}
35 changes: 28 additions & 7 deletions packages/ui/src/components/Banner/__stories__/Sizes.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,30 +1,51 @@
import type { StoryFn } from '@storybook/react'
import { Banner } from '..'
import image from './Image.png'

export const Sizes: StoryFn = () => (
<>
<Banner
title="Apply to Scaleway Startup programs"
image={<img src={image} alt="" />}
buttonText="Apply now"
linkText="Learn more"
size="medium"
>
The Scaleway Startup programs offer the perfect combination of cloud
credits, infrastructure advisors and startup experts to develop your
business and limit your expenses.
credits, advisors and startup experts to develop your business and limit
your expenses.
</Banner>
<Banner
title="Apply to Scaleway Startup programs"
image={<img src={image} alt="" />}
buttonText="Apply now"
linkText="Learn more"
size="small"
direction="row"
>
The Scaleway Startup programs offer the perfect combination of cloud
credits, infrastructure advisors and startup experts to develop your
business and limit your expenses.
credits, advisors and startup experts to develop your business and limit
your expenses.
</Banner>
<Banner
title="Apply to Scaleway Startup programs"
buttonText="Apply now"
linkText="Learn more"
size="medium"
variant="promotional"
>
The Scaleway Startup programs offer the perfect combination of cloud
credits, advisors and startup experts to develop your business and limit
your expenses.
</Banner>
<Banner
title="Apply to Scaleway Startup programs"
buttonText="Apply now"
linkText="Learn more"
size="small"
variant="promotional"
direction="row"
>
The Scaleway Startup programs offer the perfect combination of cloud
credits, advisors and startup experts to develop your business and limit
your expenses.
</Banner>
</>
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import type { StoryFn } from '@storybook/react'
import { Banner } from '..'
import image from './Image.png'

export const Variants: StoryFn = () => (
<>
<Banner
title="Apply to Scaleway Startup programs"
image={<img src={image} alt="" />}
buttonText="Apply now"
linkText="Learn more"
variant="intro"
Expand All @@ -17,7 +15,6 @@ export const Variants: StoryFn = () => (
</Banner>
<Banner
title="Apply to Scaleway Startup programs"
image={<img src={image} alt="" />}
buttonText="Apply now"
linkText="Learn more"
variant="promotional"
Expand Down
Loading
Loading