Add Help Center section in the overview tab

This commit is contained in:
Daniel Dudzic 2024-12-18 11:01:40 +01:00
parent ba7fbb0943
commit 7a223de4a7
No known key found for this signature in database
GPG key ID: 31B40D33E3465483
2 changed files with 62 additions and 8 deletions

View file

@ -11,10 +11,6 @@
} }
// Todo List and Feature Items // Todo List and Feature Items
.ppcp-r-tab-overview-todo {
margin: 0 0 48px 0;
}
.ppcp-r-todo-item { .ppcp-r-todo-item {
position: relative; position: relative;
display: flex; display: flex;
@ -231,6 +227,10 @@
} }
// Settings Card and Block Styles // Settings Card and Block Styles
.ppcp-r-settings-card {
margin: 0 0 48px 0;
}
.ppcp-r-settings-card__content { .ppcp-r-settings-card__content {
> .ppcp-r-settings-block { > .ppcp-r-settings-block {
&:not(:last-child) { &:not(:last-child) {

View file

@ -72,16 +72,16 @@ const TabOverview = () => {
className="ppcp-r-tab-overview-features" className="ppcp-r-tab-overview-features"
title={ __( 'Features', 'woocommerce-paypal-payments' ) } title={ __( 'Features', 'woocommerce-paypal-payments' ) }
description={ description={
<div> <>
<p> <p>
{ __( { __(
'Enable additional features', 'Enable additional features and capabilities on your WooCommerce store.',
'woocommerce-paypal-payments' 'woocommerce-paypal-payments'
) } ) }
</p> </p>
<p> <p>
{ __( { __(
'Click Refresh', 'Click Refresh to update your current features after making changes.',
'woocommerce-paypal-payments' 'woocommerce-paypal-payments'
) } ) }
</p> </p>
@ -101,7 +101,7 @@ const TabOverview = () => {
'woocommerce-paypal-payments' 'woocommerce-paypal-payments'
) } ) }
</Button> </Button>
</div> </>
} }
contentItems={ features.map( ( feature ) => ( contentItems={ features.map( ( feature ) => (
<FeatureSettingsBlock <FeatureSettingsBlock
@ -125,6 +125,60 @@ const TabOverview = () => {
/> />
) ) } ) ) }
/> />
<SettingsCard
className="ppcp-r-tab-overview-help"
title={ __( 'Help Center', 'woocommerce-paypal-payments' ) }
description={ __(
'Access detailed guides and responsive support to streamline setup and enhance your experience.',
'woocommerce-paypal-payments'
) }
contentItems={ [
<FeatureSettingsBlock
key="documentation"
title={ __(
'Documentation',
'woocommerce-paypal-payments'
) }
description={ __(
'Find detailed guides and resources to help you set up, manage, and optimize your PayPal integration.',
'woocommerce-paypal-payments'
) }
actionProps={ {
buttons: [
{
type: 'tertiary',
text: __(
'View full documentation',
'woocommerce-paypal-payments'
),
url: '#',
},
],
} }
/>,
<FeatureSettingsBlock
key="support"
title={ __( 'Support', 'woocommerce-paypal-payments' ) }
description={ __(
'Need help? Access troubleshooting tips or contact our support team for personalized assistance.',
'woocommerce-paypal-payments'
) }
actionProps={ {
buttons: [
{
type: 'tertiary',
text: __(
'View support options',
'woocommerce-paypal-payments'
),
url: '#',
},
],
} }
/>,
] }
/>
</div> </div>
); );
}; };