File size: 1,377 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import { Card, Gridicon } from '@automattic/components';
import { Button } from '@wordpress/components';
import { useTranslate } from 'i18n-calypso';
import { FunctionComponent } from 'react';

interface Props {
	handleButtonClick: () => void;
}

const MarketingToolsHeader: FunctionComponent< Props > = ( { handleButtonClick } ) => {
	const translate = useTranslate();

	return (
		<Card className="tools__header-body">
			<div className="tools__header-info">
				<h1 className="tools__header-title">{ translate( 'Explore our premium plugins' ) }</h1>

				<h2 className="tools__header-description">
					{ translate(
						"We've added premium plugins to boost your site's capabilities. From bookings and subscriptions to email marketing and SEO tools, we have you covered."
					) }
				</h2>

				<div className="tools__header-button-row">
					<Button
						className="tools__header-button-row-button"
						onClick={ handleButtonClick }
						variant="link"
					>
						{ translate( 'Explore now' ) }
						<Gridicon icon="chevron-right" size={ 16 } />
					</Button>
				</div>
			</div>
			<div className="tools__header-image-wrapper">
				<img
					className="tools__header-image"
					src="/calypso/images/marketing-tools/plugin-cards.png"
					alt={ String( translate( 'Marketing Tools' ) ) }
				/>
			</div>
		</Card>
	);
};

export default MarketingToolsHeader;