2023-07-04 12:08:50 +00:00
|
|
|
/**
|
|
|
|
* External dependencies
|
|
|
|
*/
|
|
|
|
import { WooFooterItem } from '@woocommerce/admin-layout';
|
|
|
|
import { __ } from '@wordpress/i18n';
|
2023-08-16 09:05:53 +00:00
|
|
|
import { check, commentContent, shield } from '@wordpress/icons';
|
2023-07-04 12:08:50 +00:00
|
|
|
import { createInterpolateElement } from '@wordpress/element';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Internal dependencies
|
|
|
|
*/
|
|
|
|
import './footer.scss';
|
|
|
|
import IconWithText from '../icon-with-text/icon-with-text';
|
|
|
|
import WooIcon from '../../assets/images/woo-icon.svg';
|
2023-08-08 06:34:46 +00:00
|
|
|
import { MARKETPLACE_URL } from '../constants';
|
2023-07-04 12:08:50 +00:00
|
|
|
|
|
|
|
const refundPolicyTitle = createInterpolateElement(
|
|
|
|
__( '30 day <a>money back guarantee</a>', 'woocommerce' ),
|
|
|
|
{
|
|
|
|
// eslint-disable-next-line jsx-a11y/anchor-has-content
|
2023-08-08 06:34:46 +00:00
|
|
|
a: <a href={ MARKETPLACE_URL + '/refund-policy/' } />,
|
2023-07-04 12:08:50 +00:00
|
|
|
}
|
|
|
|
);
|
|
|
|
|
|
|
|
const supportTitle = createInterpolateElement(
|
2023-08-16 09:05:53 +00:00
|
|
|
__( '<a>Get help</a> when you need it', 'woocommerce' ),
|
2023-07-04 12:08:50 +00:00
|
|
|
{
|
|
|
|
// eslint-disable-next-line jsx-a11y/anchor-has-content
|
2023-08-08 06:34:46 +00:00
|
|
|
a: <a href={ MARKETPLACE_URL + '/docs/' } />,
|
2023-07-04 12:08:50 +00:00
|
|
|
}
|
|
|
|
);
|
|
|
|
|
|
|
|
const paymentTitle = createInterpolateElement(
|
2023-08-16 09:05:53 +00:00
|
|
|
__( '<a>Products</a> you can trust', 'woocommerce' ),
|
2023-07-04 12:08:50 +00:00
|
|
|
{
|
|
|
|
// eslint-disable-next-line jsx-a11y/anchor-has-content
|
2023-08-16 09:05:53 +00:00
|
|
|
a: <a href={ MARKETPLACE_URL + '/products/' } />,
|
2023-07-04 12:08:50 +00:00
|
|
|
}
|
|
|
|
);
|
|
|
|
|
|
|
|
function FooterContent(): JSX.Element {
|
|
|
|
return (
|
|
|
|
<div className="woocommerce-marketplace__footer">
|
|
|
|
<h2 className="woocommerce-marketplace__footer-title">
|
|
|
|
{ __(
|
2023-08-16 09:05:53 +00:00
|
|
|
'Hundreds of vetted products and services. Unlimited potential.',
|
2023-07-04 12:08:50 +00:00
|
|
|
'woocommerce'
|
|
|
|
) }
|
|
|
|
</h2>
|
|
|
|
<div className="woocommerce-marketplace__footer-columns">
|
|
|
|
<IconWithText
|
|
|
|
icon={ check }
|
|
|
|
title={ refundPolicyTitle }
|
|
|
|
description={ __(
|
2023-08-16 09:05:53 +00:00
|
|
|
"If you change your mind within 30 days of your purchase, we'll give you a full refund — hassle-free.",
|
2023-07-04 12:08:50 +00:00
|
|
|
'woocommerce'
|
|
|
|
) }
|
|
|
|
/>
|
|
|
|
<IconWithText
|
|
|
|
icon={ commentContent }
|
|
|
|
title={ supportTitle }
|
|
|
|
description={ __(
|
2023-08-16 09:05:53 +00:00
|
|
|
'With detailed documentation and a global support team, help is always available if you need it.',
|
2023-07-04 12:08:50 +00:00
|
|
|
'woocommerce'
|
|
|
|
) }
|
|
|
|
/>
|
|
|
|
<IconWithText
|
2023-08-16 09:05:53 +00:00
|
|
|
icon={ shield }
|
2023-07-04 12:08:50 +00:00
|
|
|
title={ paymentTitle }
|
|
|
|
description={ __(
|
2023-08-16 09:05:53 +00:00
|
|
|
'Everything in the Marketplace has been built by our own team or by our trusted partners, so you can be sure of its quality.',
|
2023-07-04 12:08:50 +00:00
|
|
|
'woocommerce'
|
|
|
|
) }
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
<div className="woocommerce-marketplace__footer-logo">
|
|
|
|
<img src={ WooIcon } alt="Woo Logo" aria-hidden="true" />
|
|
|
|
<span>{ __( 'Woo Marketplace', 'woocommerce' ) }</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default function Footer(): JSX.Element {
|
|
|
|
return (
|
|
|
|
<WooFooterItem>
|
|
|
|
<FooterContent />
|
|
|
|
</WooFooterItem>
|
|
|
|
);
|
|
|
|
}
|