diff --git a/libs/blocks/src/lib/cta/cta.stories.tsx b/libs/blocks/src/lib/cta/cta.stories.tsx index 7dd9b37c..c9183ce9 100644 --- a/libs/blocks/src/lib/cta/cta.stories.tsx +++ b/libs/blocks/src/lib/cta/cta.stories.tsx @@ -1,6 +1,6 @@ import type { Meta, StoryObj } from '@storybook/react'; import CTABlock from '.'; -import { Button, Text } from '@deriv/quill-design'; +import { Text } from '@deriv/quill-design'; const meta = { title: 'Blocks/CTABlock', @@ -11,37 +11,21 @@ const meta = { export default meta; type Story = StoryObj; -export const Default: Story = { - args: { - title: 'Title goes here', - description: - 'Description goes here Description goes here Description goes here Description goes here Description goes here Description goes here', - children: This is the children, - content: ( - Placeholder - ), - }, -}; export const CTAContentLeft: Story = { args: { - title: 'Title goes here', - + title: 'Join over 2.5 million online traders worldwide', description: 'Description goes here Description goes here Description goes here Description goes here Description goes here Description goes here', children: This is the children, content: ( <> Placeholder Placeholder @@ -52,19 +36,19 @@ export const CTAContentLeft: Story = { export const CTAContentRight: Story = { args: { variant: 'content-right', - title: 'Title goes here', + title: 'Join over 2.5 million online traders worldwide', description: 'Description goes here Description goes here Description goes here Description goes here Description goes here Description goes here', children: This is the children, content: ( <> Placeholder Placeholder diff --git a/libs/blocks/src/lib/cta/index.tsx b/libs/blocks/src/lib/cta/index.tsx index cd1ea9f2..8f120852 100644 --- a/libs/blocks/src/lib/cta/index.tsx +++ b/libs/blocks/src/lib/cta/index.tsx @@ -25,9 +25,12 @@ export const CTABlock = ({ )} > {content && ( -
- {content} -
+ <> +
+
+ {content} +
+ )}
-
+
{title && ( - - {title} - + <> + {title} + + {title} + + )} + {description && {description}}
{children && children} diff --git a/tailwind.config.js b/tailwind.config.js index e83d03b6..985c0b99 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -24,7 +24,9 @@ module.exports = { backgroundImage: (theme) => ({ 'gradient-hero': `linear-gradient(84deg, rgba(0, 0, 0, 0.80) 6.97%, rgba(0, 0, 0, 0.00) 107.22%)`, 'gradient-hero-mobile': `linear-gradient(180deg, rgba(0, 0, 0, 0.00) 1.45%, rgba(0, 0, 0, 0.00) 34.13%, rgba(15, 10, 10, 0.80) 86.38%)`, + 'cta-gradient': `linear-gradient(180deg, rgba(24, 28, 37, 0.00) 1.45%, rgba(24, 28, 37, 0.40) 46.38%)`, }), + }, }, presets: [require('@deriv/quill-design/quill-tailwind/tailwind.config.cjs')],