2021-10-26 08:40:35 +00:00
|
|
|
/**
|
|
|
|
* External dependencies
|
|
|
|
*/
|
|
|
|
import { Button } from '@wordpress/components';
|
|
|
|
import { __ } from '@wordpress/i18n';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Internal dependencies
|
|
|
|
*/
|
|
|
|
import TimerImage from './timer.svg';
|
2022-04-27 14:36:39 +00:00
|
|
|
import { WC_ASSET_URL } from '../../utils/admin-settings';
|
2021-10-26 08:40:35 +00:00
|
|
|
|
|
|
|
const AppearanceHeader = ( { task, goToTask } ) => {
|
|
|
|
return (
|
|
|
|
<div className="woocommerce-task-header__contents-container">
|
2022-04-27 14:36:39 +00:00
|
|
|
<img
|
|
|
|
alt={ __( 'Appearance illustration', 'woocommerce' ) }
|
|
|
|
src={
|
|
|
|
WC_ASSET_URL +
|
|
|
|
'images/task_list/expand-section-illustration.png'
|
|
|
|
}
|
|
|
|
className="svg-background"
|
|
|
|
/>
|
2021-10-26 08:40:35 +00:00
|
|
|
<div className="woocommerce-task-header__contents">
|
2022-04-27 14:36:39 +00:00
|
|
|
<h1>{ __( 'Make your store stand out', 'woocommerce' ) }</h1>
|
2021-10-26 08:40:35 +00:00
|
|
|
<p>
|
|
|
|
{ __(
|
2022-04-27 14:36:39 +00:00
|
|
|
'Add your logo, create a homepage, and start designing your store.',
|
2022-03-30 09:00:04 +00:00
|
|
|
'woocommerce'
|
2021-10-26 08:40:35 +00:00
|
|
|
) }
|
|
|
|
</p>
|
|
|
|
<Button
|
|
|
|
isSecondary={ task.isComplete }
|
|
|
|
isPrimary={ ! task.isComplete }
|
|
|
|
onClick={ goToTask }
|
|
|
|
>
|
2021-10-27 09:41:34 +00:00
|
|
|
{ task.isComplete
|
2022-03-30 09:00:04 +00:00
|
|
|
? __( 'Modify choices', 'woocommerce' )
|
|
|
|
: __( 'Personalize', 'woocommerce' ) }
|
2021-10-26 08:40:35 +00:00
|
|
|
</Button>
|
|
|
|
<p className="woocommerce-task-header__timer">
|
|
|
|
<img src={ TimerImage } alt="Timer" />{ ' ' }
|
|
|
|
<span>{ task.time }</span>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
2021-10-20 16:16:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export default AppearanceHeader;
|