2022-12-26 18:05:58 +00:00
|
|
|
/**
|
|
|
|
* External dependencies
|
|
|
|
*/
|
|
|
|
import { __ } from '@wordpress/i18n';
|
2022-12-27 12:47:14 +00:00
|
|
|
import { Card, Flex, FlexItem, FlexBlock, Button } from '@wordpress/components';
|
|
|
|
import {
|
|
|
|
Icon,
|
|
|
|
trendingUp,
|
|
|
|
megaphone,
|
|
|
|
closeSmall,
|
|
|
|
close,
|
|
|
|
} from '@wordpress/icons';
|
2022-12-26 18:05:58 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Internal dependencies
|
|
|
|
*/
|
|
|
|
import './IntroductionBanner.scss';
|
|
|
|
import wooIconUrl from './woo.svg';
|
|
|
|
import illustrationUrl from './illustration.svg';
|
|
|
|
|
|
|
|
export const IntroductionBanner = () => {
|
|
|
|
return (
|
|
|
|
<Card className="woocommerce-marketing-introduction-banner">
|
|
|
|
<div className="woocommerce-marketing-introduction-banner-content">
|
|
|
|
<div className="woocommerce-marketing-introduction-banner-title">
|
|
|
|
{ __(
|
|
|
|
'Reach new customers and increase sales without leaving WooCommerce',
|
|
|
|
'woocommerce'
|
|
|
|
) }
|
|
|
|
</div>
|
|
|
|
<Flex
|
|
|
|
className="woocommerce-marketing-introduction-banner-features"
|
|
|
|
direction="column"
|
|
|
|
gap={ 1 }
|
|
|
|
expanded={ false }
|
|
|
|
>
|
|
|
|
<FlexItem>
|
|
|
|
<Flex>
|
|
|
|
<Icon icon={ trendingUp } />
|
|
|
|
<FlexBlock>
|
|
|
|
{ __(
|
|
|
|
'Reach customers on other sales channels',
|
|
|
|
'woocommerce'
|
|
|
|
) }
|
|
|
|
</FlexBlock>
|
|
|
|
</Flex>
|
|
|
|
</FlexItem>
|
|
|
|
<FlexItem>
|
|
|
|
<Flex>
|
|
|
|
<Icon icon={ megaphone } />
|
|
|
|
<FlexBlock>
|
|
|
|
{ __(
|
|
|
|
'Advertise with marketing campaigns',
|
|
|
|
'woocommerce'
|
|
|
|
) }
|
|
|
|
</FlexBlock>
|
|
|
|
</Flex>
|
|
|
|
</FlexItem>
|
|
|
|
<FlexItem>
|
|
|
|
<Flex>
|
|
|
|
<Icon
|
|
|
|
icon={
|
|
|
|
<img
|
|
|
|
src={ wooIconUrl }
|
|
|
|
alt={ __(
|
|
|
|
'WooCommerce logo',
|
|
|
|
'woocommerce'
|
|
|
|
) }
|
|
|
|
width="24"
|
|
|
|
height="24"
|
|
|
|
/>
|
|
|
|
}
|
|
|
|
/>
|
|
|
|
<FlexBlock>
|
|
|
|
{ __( 'Built by WooCommerce', 'woocommerce' ) }
|
|
|
|
</FlexBlock>
|
|
|
|
</Flex>
|
|
|
|
</FlexItem>
|
|
|
|
</Flex>
|
|
|
|
</div>
|
|
|
|
<div className="woocommerce-marketing-introduction-banner-illustration">
|
2022-12-27 12:47:14 +00:00
|
|
|
<Button
|
|
|
|
isSmall
|
|
|
|
className="woocommerce-marketing-introduction-banner-close-button"
|
|
|
|
onClick={ () => {
|
|
|
|
// TODO: dismiss this banner and save it into wp_options.
|
|
|
|
} }
|
|
|
|
>
|
|
|
|
<Icon icon={ closeSmall } />
|
|
|
|
</Button>
|
2022-12-26 18:05:58 +00:00
|
|
|
<img
|
|
|
|
src={ illustrationUrl }
|
|
|
|
alt={ __(
|
|
|
|
'WooCommerce Marketing introduction banner illustration',
|
|
|
|
'woocommerce'
|
|
|
|
) }
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</Card>
|
|
|
|
);
|
|
|
|
};
|