woocommerce/plugins/woocommerce-admin/client/two-column-tasks/headers/appearance.js

51 lines
1.2 KiB
JavaScript

/**
* External dependencies
*/
import { Button } from '@wordpress/components';
import { __ } from '@wordpress/i18n';
/**
* Internal dependencies
*/
import TimerImage from './timer.svg';
import { WC_ASSET_URL } from '../../utils/admin-settings';
const AppearanceHeader = ( { task, goToTask } ) => {
return (
<div className="woocommerce-task-header__contents-container">
<img
alt={ __( 'Appearance illustration', 'woocommerce' ) }
src={
WC_ASSET_URL +
'images/task_list/expand-section-illustration.png'
}
className="svg-background"
/>
<div className="woocommerce-task-header__contents">
<h1>{ __( 'Make your store stand out', 'woocommerce' ) }</h1>
<p>
{ __(
'Add your logo, create a homepage, and start designing your store.',
'woocommerce'
) }
</p>
<Button
isSecondary={ task.isComplete }
isPrimary={ ! task.isComplete }
onClick={ goToTask }
>
{ task.isComplete
? __( 'Modify choices', 'woocommerce' )
: __( 'Personalize', 'woocommerce' ) }
</Button>
<p className="woocommerce-task-header__timer">
<img src={ TimerImage } alt="Timer" />{ ' ' }
<span>{ task.time }</span>
</p>
</div>
</div>
);
};
export default AppearanceHeader;