diff --git a/client/my-sites/backup/backup-contents-page/index.tsx b/client/my-sites/backup/backup-contents-page/index.tsx index 4501c6832ecf2..6cdd67e67ca63 100644 --- a/client/my-sites/backup/backup-contents-page/index.tsx +++ b/client/my-sites/backup/backup-contents-page/index.tsx @@ -1,8 +1,8 @@ import { Card } from '@automattic/components'; -import { Button } from '@wordpress/components'; +import { Button, ExternalLink } from '@wordpress/components'; import { arrowLeft, Icon } from '@wordpress/icons'; import { useTranslate } from 'i18n-calypso'; -import { FunctionComponent, useEffect } from 'react'; +import { FunctionComponent, useCallback, useEffect } from 'react'; import DocumentHead from 'calypso/components/data/document-head'; import QuerySiteCredentials from 'calypso/components/data/query-site-credentials'; import ActionButtons from 'calypso/components/jetpack/daily-backup-status/action-buttons'; @@ -41,6 +41,10 @@ const BackupContentsPage: FunctionComponent< OwnProps > = ( { rewindId, siteId } dispatch( recordTracksEvent( 'calypso_jetpack_backup_browser_view' ) ); }, [ dispatch ] ); + const onLearnAboutClick = useCallback( () => { + dispatch( recordTracksEvent( 'calypso_jetpack_backup_browser_learn_about_click' ) ); + }, [ dispatch ] ); + return ( <> @@ -58,7 +62,17 @@ const BackupContentsPage: FunctionComponent< OwnProps > = ( { rewindId, siteId }
-
{ translate( 'Backup contents from:' ) }
+
+
{ translate( 'Backup contents from:' ) }
+
+ + { translate( 'Learn about the file browser' ) } + +
+
{ displayDate }
{ browserCheckList.totalItems === 0 && ( diff --git a/client/my-sites/backup/backup-contents-page/style.scss b/client/my-sites/backup/backup-contents-page/style.scss index ce667fc0cb067..e6fbf805e3e4b 100644 --- a/client/my-sites/backup/backup-contents-page/style.scss +++ b/client/my-sites/backup/backup-contents-page/style.scss @@ -21,6 +21,23 @@ } } + .status-card__header-content { + align-items: center; + display: flex; + // Given the layout is mobile-first, reverse the div arrangement by default + flex-direction: column-reverse; + } + + .status-card__learn-about { + font-size: $font-body-small; + font-weight: 400; + text-decoration-line: underline; + } + + .status-card__learn-about a { + color: var(--studio-gray-80); + } + // We are using the deprecated mixin to match the when the mobile navigation appears // which is at 660px instead of the 600px break-small breakpoint. @include breakpoint-deprecated( ">660px" ) { @@ -28,6 +45,16 @@ padding: 0 0 12px 0; margin: 0; } + + .status-card__header-content { + // Return to the default div arrangement on the desktop + flex-direction: row; + flex-grow: 1; + } + + .status-card__learn-about { + margin-left: auto; + } } &__header {