File size: 3,017 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 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 |
import { Gridicon } from '@automattic/components';
import { useDesktopBreakpoint } from '@automattic/viewport-react';
import { Button } from '@wordpress/components';
import { useTranslate } from 'i18n-calypso';
import MigrationBannerImg from 'calypso/assets/images/performance-profiler/migration-banner-img.png';
import { LogoBar } from '../logo-bar';
import './style.scss';
export const MigrationBanner = ( props: { url: string; onClick: () => void } ) => {
const translate = useTranslate();
const isDesktop = useDesktopBreakpoint();
return (
<div className="performance-profiler-migration-banner">
<div className="l-block-wrapper">
<div className="content-area">
<div className="content">
<div className="content-text">
<div className="section-name">{ translate( 'WordPress.com Hosting' ) }</div>
<div className="title">
{ translate( 'Scale without Limits, Perform without Compromise' ) }
</div>
<div className="subtitles">
<div className="subtitle">
{ translate(
'Managed WordPress hosting designed for scalable, lightning-fast speed anywhere in the world, whatever you throw at it.'
) }
</div>
<div className="subtitle">
{ translate(
'Get {{span}}50% off our Business plan{{/span}} for an entire year when you migrate your site.',
{ components: { span: <span className="highlight" /> } }
) }
</div>
</div>
</div>
<div className="features">
<div className="feature">
<Gridicon className="icon" icon="checkmark" size={ 12 } />
{ translate( 'Unlimited bandwidth, visitors, and traffic' ) }
</div>
<div className="feature">
<Gridicon className="icon" icon="checkmark" size={ 12 } />
{ translate( '14-day money-back guarantee' ) }
</div>
<div className="feature">
<Gridicon className="icon" icon="checkmark" size={ 12 } />
{ translate( 'Free migrations' ) }
</div>
</div>
<div className="buttons">
<Button
variant="primary"
href={ `https://wordpress.com/setup/site-migration?from=${ props.url }&ref=performance-profiler-dashboard` }
onClick={ props.onClick }
>
{ translate( 'Migrate your site' ) }
</Button>
<Button
variant="secondary"
className="outlined-button"
href="https://wordpress.com/move/?ref=performance-profiler-lp"
target="_blank"
>
{ translate( 'Learn More' ) }
</Button>
</div>
</div>
{ isDesktop && (
<div className="illustration">
<img
src={ MigrationBannerImg }
width={ 514 }
alt={ translate(
'Image showing WordPress.com connecting sections of the web world'
) }
/>
</div>
) }
</div>
<p className="trusted-by">{ translate( 'Trusted by 160 million worldwide' ) }</p>
</div>
<LogoBar />
</div>
);
};
|