From 3c879e02c9f0a9822e66bb97435ee1b40d6b87bf Mon Sep 17 00:00:00 2001 From: Luiz Kowalski Date: Thu, 2 May 2024 18:31:27 -0300 Subject: [PATCH 1/2] Add 'new' badge to featured image video on Jetpack AI product page --- .../jetpack-ai/product-page.jsx | 7 +++++++ .../jetpack-ai/style.module.scss | 14 ++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/projects/packages/my-jetpack/_inc/components/product-interstitial/jetpack-ai/product-page.jsx b/projects/packages/my-jetpack/_inc/components/product-interstitial/jetpack-ai/product-page.jsx index 7089c73725828..92f1b085eeddb 100644 --- a/projects/packages/my-jetpack/_inc/components/product-interstitial/jetpack-ai/product-page.jsx +++ b/projects/packages/my-jetpack/_inc/components/product-interstitial/jetpack-ai/product-page.jsx @@ -148,6 +148,12 @@ export default function () { setShowNotice( showRenewalNotice || showUpgradeNotice ); }, [ showRenewalNotice, showUpgradeNotice ] ); + const newBadge = ( + + { __( 'New', 'jetpack-my-jetpack' ) }{ ' ' } + + ); + return ( @@ -312,6 +318,7 @@ export default function () {
{ videoTitleFeaturedImages } + { newBadge }
{ __( diff --git a/projects/packages/my-jetpack/_inc/components/product-interstitial/jetpack-ai/style.module.scss b/projects/packages/my-jetpack/_inc/components/product-interstitial/jetpack-ai/style.module.scss index d2da56ccf9b3a..c7b649dbfa3f0 100644 --- a/projects/packages/my-jetpack/_inc/components/product-interstitial/jetpack-ai/style.module.scss +++ b/projects/packages/my-jetpack/_inc/components/product-interstitial/jetpack-ai/style.module.scss @@ -247,3 +247,17 @@ .product-interstitial__ai-notice { margin-bottom: calc( var( --spacing-base ) * 8 ); } + +.product-interstitial__new-badge { + color: var( --jp-green-40 ); + border: 1px solid var( --jp-green-40 ); + border-radius: 4px; + text-transform: uppercase; + padding: 2px 8px 2px 8px; + font-size: 12px; + font-weight: 500; + margin-left: 5px; + height: 22px; + position: relative; + top: -2px; +} From 45fcaaba157ba9901d1cde38106c7c7176e835ed Mon Sep 17 00:00:00 2001 From: Luiz Kowalski Date: Thu, 2 May 2024 18:32:36 -0300 Subject: [PATCH 2/2] changelog --- ...tpack-ai-add-new-badge-to-featured-image-produc-page-video | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 projects/packages/my-jetpack/changelog/update-jetpack-ai-add-new-badge-to-featured-image-produc-page-video diff --git a/projects/packages/my-jetpack/changelog/update-jetpack-ai-add-new-badge-to-featured-image-produc-page-video b/projects/packages/my-jetpack/changelog/update-jetpack-ai-add-new-badge-to-featured-image-produc-page-video new file mode 100644 index 0000000000000..ab40674dbdb89 --- /dev/null +++ b/projects/packages/my-jetpack/changelog/update-jetpack-ai-add-new-badge-to-featured-image-produc-page-video @@ -0,0 +1,4 @@ +Significance: minor +Type: added + +Jetpack AI: add new badge to Featured Image video on the product page.