diff --git a/includes/Data/Brands.php b/includes/Data/Brands.php index 0477310e3..c53d92605 100644 --- a/includes/Data/Brands.php +++ b/includes/Data/Brands.php @@ -67,6 +67,7 @@ public static function get_brands() { 'utm_medium' => 'brand-plugin', ), ), + 'config' => array(), ), 'bluehost-india' => array( 'brand' => 'bluehost-india', @@ -114,6 +115,7 @@ public static function get_brands() { 'utm_medium' => 'brand-plugin', ), ), + 'config' => array(), ), 'webcom' => array( 'brand' => 'webcom', @@ -165,6 +167,67 @@ public static function get_brands() { 'utm_medium' => '', ), ), + 'config' => array(), + ), + 'crazy-domains' => array( + 'brand' => 'crazy-domains', + 'name' => 'Crazy Domains', + 'url' => 'https://www.crazydomains.com', + 'knowledgeBaseUrl' => 'https://www.crazydomains.com/learn/online-academy/', + 'helpUrl' => 'https://www.crazydomains.com/help', + 'blogUrl' => 'https://www.crazydomains.com/learn/', + 'facebookUrl' => 'https://www.facebook.com/crazydomains/', + 'twitterName' => '@crazydomains', + 'twitterUrl' => 'https://twitter.com/crazydomains', + 'youtubeUrl' => 'https://www.youtube.com/user/CrazyDomains', + 'linkedinUrl' => '', + 'accountUrl' => 'https://www.crazydomains.com/my-account/home/', + 'domainsUrl' => '', + 'emailUrl' => 'https://www.crazydomains.com/contact/', + 'pluginDashboardPage' => \admin_url( 'admin.php?page=crazy-domains' ), + 'phoneNumbers' => array( + 'support' => '2135592459', + ), + 'hireExpertsInfo' => array( + 'defaultLink' => 'https://www.crazydomains.com/help/', + 'fragment' => '', + 'queryParameters' => array( + 'utm_source' => 'wp-onboarding', + 'utm_medium' => 'brand-plugin', + 'utm_campaign' => 'wp-setup', + ), + ), + 'expertsInfo' => array( + 'defaultLink' => 'https://www.crazydomains.com/help/', + 'queryParams' => array( + 'utm_source' => 'wp-onboarding', + 'utm_medium' => 'brand-plugin', + ), + ), + 'fullServiceCreativeTeamInfo' => array( + 'defaultLink' => 'https://www.crazydomains.com/help/', + 'fragment' => '', + 'queryParams' => array( + 'utm_source' => 'wp-onboarding', + 'utm_medium' => 'brand-plugin', + ), + ), + 'techSupportInfo' => array( + 'defaultLink' => 'https://www.crazydomains.com/contact/', + 'queryParams' => array( + 'utm_source' => 'wp-onboarding', + 'utm_medium' => 'brand-plugin', + ), + ), + 'config' => array( + 'views' => array( + 'sidebar' => array( + 'illustration' => array( + 'shown' => false, + ), + ), + ), + ), ), ); } diff --git a/src/OnboardingSPA/static/images/bluesky.png b/src/Brands/bluehost/bluesky.png similarity index 100% rename from src/OnboardingSPA/static/images/bluesky.png rename to src/Brands/bluehost/bluesky.png diff --git a/src/OnboardingSPA/static/icons/learn-more-basic-info.svg b/src/Brands/bluehost/learn-more-basic-info.svg similarity index 100% rename from src/OnboardingSPA/static/icons/learn-more-basic-info.svg rename to src/Brands/bluehost/learn-more-basic-info.svg diff --git a/src/OnboardingSPA/static/icons/learn-more-design-colors.svg b/src/Brands/bluehost/learn-more-design-colors.svg similarity index 100% rename from src/OnboardingSPA/static/icons/learn-more-design-colors.svg rename to src/Brands/bluehost/learn-more-design-colors.svg diff --git a/src/OnboardingSPA/static/icons/learn-more-design-header-menu.svg b/src/Brands/bluehost/learn-more-design-header-menu.svg similarity index 100% rename from src/OnboardingSPA/static/icons/learn-more-design-header-menu.svg rename to src/Brands/bluehost/learn-more-design-header-menu.svg diff --git a/src/OnboardingSPA/static/icons/learn-more-design-homepage.svg b/src/Brands/bluehost/learn-more-design-homepage.svg similarity index 100% rename from src/OnboardingSPA/static/icons/learn-more-design-homepage.svg rename to src/Brands/bluehost/learn-more-design-homepage.svg diff --git a/src/OnboardingSPA/static/icons/learn-more-design-theme-styles.svg b/src/Brands/bluehost/learn-more-design-theme-styles.svg similarity index 100% rename from src/OnboardingSPA/static/icons/learn-more-design-theme-styles.svg rename to src/Brands/bluehost/learn-more-design-theme-styles.svg diff --git a/src/OnboardingSPA/static/icons/learn-more-design-typography.svg b/src/Brands/bluehost/learn-more-design-typography.svg similarity index 100% rename from src/OnboardingSPA/static/icons/learn-more-design-typography.svg rename to src/Brands/bluehost/learn-more-design-typography.svg diff --git a/src/OnboardingSPA/static/icons/learn-more-ecommerce-address.svg b/src/Brands/bluehost/learn-more-ecommerce-address.svg similarity index 100% rename from src/OnboardingSPA/static/icons/learn-more-ecommerce-address.svg rename to src/Brands/bluehost/learn-more-ecommerce-address.svg diff --git a/src/OnboardingSPA/static/icons/learn-more-ecommerce-products.svg b/src/Brands/bluehost/learn-more-ecommerce-products.svg similarity index 100% rename from src/OnboardingSPA/static/icons/learn-more-ecommerce-products.svg rename to src/Brands/bluehost/learn-more-ecommerce-products.svg diff --git a/src/OnboardingSPA/static/icons/learn-more-ecommerce-tax-info.svg b/src/Brands/bluehost/learn-more-ecommerce-tax-info.svg similarity index 100% rename from src/OnboardingSPA/static/icons/learn-more-ecommerce-tax-info.svg rename to src/Brands/bluehost/learn-more-ecommerce-tax-info.svg diff --git a/src/OnboardingSPA/static/icons/learn-more-get-started-site-type.svg b/src/Brands/bluehost/learn-more-get-started-site-type.svg similarity index 100% rename from src/OnboardingSPA/static/icons/learn-more-get-started-site-type.svg rename to src/Brands/bluehost/learn-more-get-started-site-type.svg diff --git a/src/OnboardingSPA/static/icons/learn-more-get-started-welcome.svg b/src/Brands/bluehost/learn-more-get-started-welcome.svg similarity index 100% rename from src/OnboardingSPA/static/icons/learn-more-get-started-welcome.svg rename to src/Brands/bluehost/learn-more-get-started-welcome.svg diff --git a/src/OnboardingSPA/static/icons/learn-more-get-started-wp-experience.svg b/src/Brands/bluehost/learn-more-get-started-wp-experience.svg similarity index 100% rename from src/OnboardingSPA/static/icons/learn-more-get-started-wp-experience.svg rename to src/Brands/bluehost/learn-more-get-started-wp-experience.svg diff --git a/src/OnboardingSPA/static/icons/learn-more-pages.svg b/src/Brands/bluehost/learn-more-pages.svg similarity index 100% rename from src/OnboardingSPA/static/icons/learn-more-pages.svg rename to src/Brands/bluehost/learn-more-pages.svg diff --git a/src/OnboardingSPA/static/icons/learn-more-site-features.svg b/src/Brands/bluehost/learn-more-site-features.svg similarity index 100% rename from src/OnboardingSPA/static/icons/learn-more-site-features.svg rename to src/Brands/bluehost/learn-more-site-features.svg diff --git a/src/OnboardingSPA/static/icons/learn-more-what-next.svg b/src/Brands/bluehost/learn-more-what-next.svg similarity index 100% rename from src/OnboardingSPA/static/icons/learn-more-what-next.svg rename to src/Brands/bluehost/learn-more-what-next.svg diff --git a/src/OnboardingSPA/static/images/wp-admin.png b/src/Brands/bluehost/wp-admin.png similarity index 100% rename from src/OnboardingSPA/static/images/wp-admin.png rename to src/Brands/bluehost/wp-admin.png diff --git a/src/Brands/crazy-domains/full-service.png b/src/Brands/crazy-domains/full-service.png new file mode 100644 index 000000000..76a53dd82 Binary files /dev/null and b/src/Brands/crazy-domains/full-service.png differ diff --git a/src/Brands/crazy-domains/icon-z.svg b/src/Brands/crazy-domains/icon-z.svg new file mode 100644 index 000000000..2359b74e0 --- /dev/null +++ b/src/Brands/crazy-domains/icon-z.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/Brands/crazy-domains/icon.svg b/src/Brands/crazy-domains/icon.svg new file mode 100644 index 000000000..1f38a2859 --- /dev/null +++ b/src/Brands/crazy-domains/icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/Brands/crazy-domains/logo.svg b/src/Brands/crazy-domains/logo.svg new file mode 100644 index 000000000..4f4a5cdcc --- /dev/null +++ b/src/Brands/crazy-domains/logo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/Brands/crazy-domains/step-error-logo.svg b/src/Brands/crazy-domains/step-error-logo.svg new file mode 100644 index 000000000..f554b5ba5 --- /dev/null +++ b/src/Brands/crazy-domains/step-error-logo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/Brands/crazy-domains/step-loader-logo.svg b/src/Brands/crazy-domains/step-loader-logo.svg new file mode 100644 index 000000000..0c5ca0e5e --- /dev/null +++ b/src/Brands/crazy-domains/step-loader-logo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/Brands/crazy-domains/wp-admin.png b/src/Brands/crazy-domains/wp-admin.png new file mode 100644 index 000000000..591a570f9 Binary files /dev/null and b/src/Brands/crazy-domains/wp-admin.png differ diff --git a/src/OnboardingSPA/components/CheckboxTemplate/CheckboxItem/index.js b/src/OnboardingSPA/components/CheckboxTemplate/CheckboxItem/index.js index b2c91c1b1..f0935d1a7 100644 --- a/src/OnboardingSPA/components/CheckboxTemplate/CheckboxItem/index.js +++ b/src/OnboardingSPA/components/CheckboxTemplate/CheckboxItem/index.js @@ -23,6 +23,7 @@ const CheckboxItem = ( { desc, subtitle, callback, + tabIndex = 0, isSelectedDefault, className = 'checkbox-item', } ) => { @@ -54,14 +55,13 @@ const CheckboxItem = ( {
diff --git a/src/OnboardingSPA/components/CheckboxTemplate/CheckboxItem/stylesheet.scss b/src/OnboardingSPA/components/CheckboxTemplate/CheckboxItem/stylesheet.scss index 5a607410f..fa438ee21 100644 --- a/src/OnboardingSPA/components/CheckboxTemplate/CheckboxItem/stylesheet.scss +++ b/src/OnboardingSPA/components/CheckboxTemplate/CheckboxItem/stylesheet.scss @@ -7,6 +7,11 @@ $main-border-main: var(--nfd-onboarding-primary-alt); $box-shadow: var(--nfd-onboarding-light-gray-highlighted); .checkbox-item { + + .highlighted { + fill: var(--wp-admin-theme-color-darker-10); + } + margin: 12px; padding: 16px; margin-top: 16px; @@ -80,7 +85,12 @@ $box-shadow: var(--nfd-onboarding-light-gray-highlighted); } &-help { - cursor: pointer; + fill: #666; + + &:hover { + cursor: pointer; + fill: var(--wp-admin-theme-color-darker-10); + } } } @@ -121,6 +131,6 @@ $box-shadow: var(--nfd-onboarding-light-gray-highlighted); border-left: 1px solid rgba($main-color, 0.1); border-right: 1px solid rgba($main-color, 0.1); border-bottom: 1px solid rgba($main-color, 0.1); - box-shadow: 0 11px 8px -3px rgba($main-color, 0.2); + box-shadow: 0 11px 8px -3px rgba($main-color, 0.37); } } diff --git a/src/OnboardingSPA/components/LivePreview/SelectableCard/stylesheet.scss b/src/OnboardingSPA/components/LivePreview/SelectableCard/stylesheet.scss index 8733e1634..5c7489a20 100644 --- a/src/OnboardingSPA/components/LivePreview/SelectableCard/stylesheet.scss +++ b/src/OnboardingSPA/components/LivePreview/SelectableCard/stylesheet.scss @@ -29,7 +29,7 @@ $main-border-main: var(--nfd-onboarding-primary-alt); justify-content: center; &__dot { - background-color: #989EA7; + background-color: #989ea7; width: 8px; margin: 3px; height: 8px; @@ -71,6 +71,7 @@ $main-border-main: var(--nfd-onboarding-primary-alt); .live-preview { &__container { + &-custom { width: 100%; overflow: hidden; @@ -89,9 +90,10 @@ $main-border-main: var(--nfd-onboarding-primary-alt); width: 100%; opacity: 0; transition: 0.5s ease; - background-color: rgba(28, 92, 186); + background-color: + rgb(var(--wp-admin-theme-color-darker-10--rgb)) - &__icon { + &__icon{ fill: $main-color-light; font-size: 20px; position: absolute; @@ -111,4 +113,3 @@ $main-border-main: var(--nfd-onboarding-primary-alt); } } - diff --git a/src/OnboardingSPA/components/Sidebar/components/LearnMore/IllustrationPanel/index.js b/src/OnboardingSPA/components/Sidebar/components/LearnMore/IllustrationPanel/index.js index 418c44f21..e7b3eb70e 100644 --- a/src/OnboardingSPA/components/Sidebar/components/LearnMore/IllustrationPanel/index.js +++ b/src/OnboardingSPA/components/Sidebar/components/LearnMore/IllustrationPanel/index.js @@ -3,10 +3,12 @@ import { PanelBody } from '@wordpress/components'; const IllustrationPanel = ( { cssIcon = 'nfd-onboarding-sidebar-learn-more-get-started-welcome-illustration', baseClassName = 'nfd-onboarding-sidebar-learn-more--illustration-panel', - backgroundPosition = 'center' + backgroundPosition = 'center', } ) => { + const iconExists = window.getComputedStyle( document.body ).getPropertyValue( `--${ cssIcon }` ) !== ''; + return ( - @@ -18,7 +20,7 @@ const IllustrationPanel = ( { height: '100%', backgroundSize: 'contain', backgroundRepeat: 'no-repeat', - backgroundPosition: backgroundPosition, + backgroundPosition, } } >
diff --git a/src/OnboardingSPA/components/Sidebar/components/LearnMore/Skeleton/SidebarSkeleton.js b/src/OnboardingSPA/components/Sidebar/components/LearnMore/Skeleton/SidebarSkeleton.js index 24434aa27..1f38fbc26 100644 --- a/src/OnboardingSPA/components/Sidebar/components/LearnMore/Skeleton/SidebarSkeleton.js +++ b/src/OnboardingSPA/components/Sidebar/components/LearnMore/Skeleton/SidebarSkeleton.js @@ -1,7 +1,17 @@ +import { useSelect } from '@wordpress/data'; +import { Fragment } from '@wordpress/element'; + import Animate from '../../../../Animate'; +import { store as nfdOnboardingStore } from '../../../../../store'; /** Skeleton Structure for the SideBar */ const SidebarSkeleton = () => { + const { brandConfig } = useSelect( ( select ) => { + return { + brandConfig: select( nfdOnboardingStore ).getNewfoldBrandConfig(), + }; + } ); + return (
@@ -27,13 +37,15 @@ const SidebarSkeleton = () => {
-
- -
-
+ { brandConfig?.views?.sidebar?.illustration?.shown !== false && +
+ +
+
+ }
); const LearnMore = () => { - const { brandName, techSupportLink, fullServiceCreativeTeamLink } = useSelect( ( select ) => { + const { brandName, techSupportLink, fullServiceCreativeTeamLink, brandConfig } = useSelect( ( select ) => { return { brandName: select( nfdOnboardingStore ).getNewfoldBrandName(), techSupportLink: select( nfdOnboardingStore ).getTechSupportUrl(), fullServiceCreativeTeamLink: select( nfdOnboardingStore ).getfullServiceCreativeTeamUrl(), + brandConfig: select( nfdOnboardingStore ).getNewfoldBrandConfig(), }; } ); @@ -47,7 +48,8 @@ const LearnMore = () => { subheading={ content.introduction.subheading } icon={ content.introduction.icon } /> - + { brandConfig?.views?.sidebar?.illustration?.shown !== false && + } { - ( window.open( content.help.fullService.link, '_blank') ) + ( window.open( content.help.fullService.link, '_blank' ) ) } /> ); const LearnMore = () => { - - const { techSupportLink, fullServiceCreativeTeamLink } = useSelect( ( select ) => { + const { techSupportLink, fullServiceCreativeTeamLink, brandConfig } = useSelect( ( select ) => { return { techSupportLink: select( nfdOnboardingStore ).getTechSupportUrl(), fullServiceCreativeTeamLink: select( nfdOnboardingStore ).getfullServiceCreativeTeamUrl(), + brandConfig: select( nfdOnboardingStore ).getNewfoldBrandConfig(), }; } ); @@ -47,7 +47,8 @@ const LearnMore = () => { subheading={ content.introduction.subheading } icon={ content.introduction.icon } /> - + { brandConfig?.views?.sidebar?.illustration?.shown !== false && + } ); const LearnMore = () => { - - const { techSupportLink, fullServiceCreativeTeamLink } = useSelect( ( select ) => { + const { techSupportLink, fullServiceCreativeTeamLink, brandConfig } = useSelect( ( select ) => { return { techSupportLink: select( nfdOnboardingStore ).getTechSupportUrl(), fullServiceCreativeTeamLink: select( nfdOnboardingStore ).getfullServiceCreativeTeamUrl(), + brandConfig: select( nfdOnboardingStore ).getNewfoldBrandConfig(), }; } ); @@ -47,7 +47,8 @@ const LearnMore = () => { subheading={ content.introduction.subheading } icon={ content.introduction.icon } /> - + { brandConfig?.views?.sidebar?.illustration?.shown !== false && + } ); const LearnMore = () => { - - const { techSupportLink, fullServiceCreativeTeamLink } = useSelect( ( select ) => { + const { techSupportLink, fullServiceCreativeTeamLink, brandConfig } = useSelect( ( select ) => { return { techSupportLink: select( nfdOnboardingStore ).getTechSupportUrl(), fullServiceCreativeTeamLink: select( nfdOnboardingStore ).getfullServiceCreativeTeamUrl(), + brandConfig: select( nfdOnboardingStore ).getNewfoldBrandConfig(), }; } ); @@ -47,7 +47,8 @@ const LearnMore = () => { subheading={ content.introduction.subheading } icon={ content.introduction.icon } /> - + { brandConfig?.views?.sidebar?.illustration?.shown !== false && + } ); const LearnMore = () => { - const { brandName, techSupportLink, fullServiceCreativeTeamLink } = useSelect( ( select ) => { + const { brandName, techSupportLink, fullServiceCreativeTeamLink, brandConfig } = useSelect( ( select ) => { return { brandName: select( nfdOnboardingStore ).getNewfoldBrandName(), techSupportLink: select( nfdOnboardingStore ).getTechSupportUrl(), fullServiceCreativeTeamLink: select( nfdOnboardingStore ).getfullServiceCreativeTeamUrl(), + brandConfig: select( nfdOnboardingStore ).getNewfoldBrandConfig(), }; } ); @@ -51,7 +52,8 @@ const LearnMore = () => { subheading={ content.introduction.subheading } icon={ content.introduction.icon } /> - + { brandConfig?.views?.sidebar?.illustration?.shown !== false && + } ); const LearnMore = () => { - const { brandName, techSupportLink, fullServiceCreativeTeamLink } = useSelect( ( select ) => { + const { brandName, techSupportLink, fullServiceCreativeTeamLink, brandConfig } = useSelect( ( select ) => { return { brandName: select( nfdOnboardingStore ).getNewfoldBrandName(), techSupportLink: select( nfdOnboardingStore ).getTechSupportUrl(), fullServiceCreativeTeamLink: select( nfdOnboardingStore ).getfullServiceCreativeTeamUrl(), + brandConfig: select( nfdOnboardingStore ).getNewfoldBrandConfig(), }; } ); @@ -51,7 +52,8 @@ const LearnMore = () => { subheading={ content.introduction.subheading } icon={ content.introduction.icon } /> - + { brandConfig?.views?.sidebar?.illustration?.shown !== false && + } ); const LearnMore = () => { - const { techSupportLink, fullServiceCreativeTeamLink } = useSelect( ( select ) => { + const { techSupportLink, fullServiceCreativeTeamLink, brandConfig } = useSelect( ( select ) => { return { techSupportLink: select( nfdOnboardingStore ).getTechSupportUrl(), fullServiceCreativeTeamLink: select( nfdOnboardingStore ).getfullServiceCreativeTeamUrl(), + brandConfig: select( nfdOnboardingStore ).getNewfoldBrandConfig(), }; } ); @@ -45,7 +46,8 @@ const LearnMore = () => { subheading={ content.introduction.subheading } icon={ content.introduction.icon } /> - + { brandConfig?.views?.sidebar?.illustration?.shown !== false && + } ); const LearnMore = () => { - const { brandName, techSupportLink, fullServiceCreativeTeamLink } = useSelect( ( select ) => { + const { brandName, techSupportLink, fullServiceCreativeTeamLink, brandConfig } = useSelect( ( select ) => { return { brandName: select( nfdOnboardingStore ).getNewfoldBrandName(), techSupportLink: select( nfdOnboardingStore ).getTechSupportUrl(), fullServiceCreativeTeamLink: select( nfdOnboardingStore ).getfullServiceCreativeTeamUrl(), + brandConfig: select( nfdOnboardingStore ).getNewfoldBrandConfig(), }; } ); @@ -51,7 +52,8 @@ const LearnMore = () => { subheading={ content.introduction.subheading } icon={ content.introduction.icon } /> - + { brandConfig?.views?.sidebar?.illustration?.shown !== false && + } { - ( window.open( content.help.fullService.link, '_blank') ) + ( window.open( content.help.fullService.link, '_blank' ) ) } /> ); const LearnMore = () => { - const { brandName, techSupportLink, fullServiceCreativeTeamLink } = useSelect( ( select ) => { + const { brandName, techSupportLink, fullServiceCreativeTeamLink, brandConfig } = useSelect( ( select ) => { return { brandName: select( nfdOnboardingStore ).getNewfoldBrandName(), techSupportLink: select( nfdOnboardingStore ).getTechSupportUrl(), fullServiceCreativeTeamLink: select( nfdOnboardingStore ).getfullServiceCreativeTeamUrl(), + brandConfig: select( nfdOnboardingStore ).getNewfoldBrandConfig(), }; } ); @@ -51,7 +52,8 @@ const LearnMore = () => { subheading={ content.introduction.subheading } icon={ content.introduction.icon } /> - + { brandConfig?.views?.sidebar?.illustration?.shown !== false && + } { - ( window.open( content.help.fullService.link, '_blank') ) + ( window.open( content.help.fullService.link, '_blank' ) ) } /> ); const LearnMore = () => { - const { brandName, techSupportLink, fullServiceCreativeTeamLink } = + const { brandName, techSupportLink, fullServiceCreativeTeamLink, brandConfig } = useSelect( ( select ) => { return { brandName: select( nfdOnboardingStore ).getNewfoldBrandName(), @@ -44,6 +44,7 @@ const LearnMore = () => { select( nfdOnboardingStore ).getfullServiceCreativeTeamUrl(), + brandConfig: select( nfdOnboardingStore ).getNewfoldBrandConfig(), }; } ); @@ -60,7 +61,8 @@ const LearnMore = () => { subheading={ content.introduction.subheading } icon={ content.introduction.icon } /> - + { brandConfig?.views?.sidebar?.illustration?.shown !== false && + } ); const LearnMore = () => { - const { techSupportLink, fullServiceCreativeTeamLink } = useSelect( + const { techSupportLink, fullServiceCreativeTeamLink, brandConfig } = useSelect( ( select ) => { return { techSupportLink: @@ -43,6 +43,7 @@ const LearnMore = () => { select( nfdOnboardingStore ).getfullServiceCreativeTeamUrl(), + brandConfig: select( nfdOnboardingStore ).getNewfoldBrandConfig(), }; } ); @@ -56,7 +57,8 @@ const LearnMore = () => { subheading={ content.introduction.subheading } icon={ content.introduction.icon } /> - + { brandConfig?.views?.sidebar?.illustration?.shown !== false && + } ); const LearnMore = () => { - - const { techSupportLink, fullServiceCreativeTeamLink } = useSelect( ( select ) => { + const { techSupportLink, fullServiceCreativeTeamLink, brandConfig } = useSelect( ( select ) => { return { techSupportLink: select( nfdOnboardingStore ).getTechSupportUrl(), fullServiceCreativeTeamLink: select( nfdOnboardingStore ).getfullServiceCreativeTeamUrl(), + brandConfig: select( nfdOnboardingStore ).getNewfoldBrandConfig(), }; } ); @@ -51,7 +51,8 @@ const LearnMore = () => { subheading={ content.introduction.subheading } icon={ content.introduction.icon } /> - + { brandConfig?.views?.sidebar?.illustration?.shown !== false && + } ); const LearnMore = () => { - - const { techSupportLink, fullServiceCreativeTeamLink } = useSelect( ( select ) => { + const { techSupportLink, fullServiceCreativeTeamLink, brandConfig } = useSelect( ( select ) => { return { techSupportLink: select( nfdOnboardingStore ).getTechSupportUrl(), fullServiceCreativeTeamLink: select( nfdOnboardingStore ).getfullServiceCreativeTeamUrl(), + brandConfig: select( nfdOnboardingStore ).getNewfoldBrandConfig(), }; } ); const content = getContents( techSupportLink, fullServiceCreativeTeamLink ); - return (
{ subheading={ content.introduction.subheading } icon={ content.introduction.icon } /> - + { brandConfig?.views?.sidebar?.illustration?.shown !== false && + } { - ( window.open( content.help.fullService.link, '_blank') ) + ( window.open( content.help.fullService.link, '_blank' ) ) } /> ); const LearnMore = () => { - const { brandName, expertsLink, techSupportLink, fullServiceCreativeTeamLink } = useSelect( ( select ) => { + const { brandName, expertsLink, techSupportLink, fullServiceCreativeTeamLink, brandConfig } = useSelect( ( select ) => { return { brandName: select( nfdOnboardingStore ).getNewfoldBrandName(), expertsLink: select( nfdOnboardingStore ).getExpertsUrl(), techSupportLink: select( nfdOnboardingStore ).getTechSupportUrl(), fullServiceCreativeTeamLink: select( nfdOnboardingStore ).getfullServiceCreativeTeamUrl(), + brandConfig: select( nfdOnboardingStore ).getNewfoldBrandConfig(), }; } ); @@ -55,7 +56,8 @@ const LearnMore = () => { subheading={ content.introduction.subheading } icon={ content.introduction.icon } /> - + { brandConfig?.views?.sidebar?.illustration?.shown !== false && + } ); const LearnMore = () => { - const { brandName, techSupportLink, fullServiceCreativeTeamLink } = useSelect( ( select ) => { + const { brandName, techSupportLink, fullServiceCreativeTeamLink, brandConfig } = useSelect( ( select ) => { return { brandName: select( nfdOnboardingStore ).getNewfoldBrandName(), techSupportLink: select( nfdOnboardingStore ).getTechSupportUrl(), fullServiceCreativeTeamLink: select( nfdOnboardingStore ).getfullServiceCreativeTeamUrl(), + brandConfig: select( nfdOnboardingStore ).getNewfoldBrandConfig(), }; } ); @@ -47,7 +48,8 @@ const LearnMore = () => { subheading={ content.introduction.subheading } icon={ content.introduction.icon } /> - + { brandConfig?.views?.sidebar?.illustration?.shown !== false && + } ); const LearnMore = () => { - const { techSupportLink, fullServiceCreativeTeamLink } = useSelect( ( select ) => { + const { techSupportLink, fullServiceCreativeTeamLink, brandConfig } = useSelect( ( select ) => { return { techSupportLink: select( nfdOnboardingStore ).getTechSupportUrl(), fullServiceCreativeTeamLink: select( nfdOnboardingStore ).getfullServiceCreativeTeamUrl(), + brandConfig: select( nfdOnboardingStore ).getNewfoldBrandConfig(), }; } ); @@ -45,7 +46,8 @@ const LearnMore = () => { subheading={ content.introduction.subheading } icon={ content.introduction.icon } /> - + { brandConfig?.views?.sidebar?.illustration?.shown !== false && + } ); const LearnMore = () => { - - const { brandName, techSupportLink, fullServiceCreativeTeamLink } = useSelect( ( select ) => { + const { brandName, techSupportLink, fullServiceCreativeTeamLink, brandConfig } = useSelect( ( select ) => { return { brandName: select( nfdOnboardingStore ).getNewfoldBrandName(), techSupportLink: select( nfdOnboardingStore ).getTechSupportUrl(), fullServiceCreativeTeamLink: select( nfdOnboardingStore ).getfullServiceCreativeTeamUrl(), + brandConfig: select( nfdOnboardingStore ).getNewfoldBrandConfig(), }; } ); @@ -48,11 +48,12 @@ const LearnMore = () => { subheading={ content.introduction.subheading } icon={ content.introduction.icon } /> + { brandConfig?.views?.sidebar?.illustration?.shown !== false && + backgroundPosition={ 'right bottom' } + /> } { + return { + heading: __( 'Nice work: Your site is ready 🎉', 'wp-module-onboarding' ), + subheading: __( 'Move-in day begins! Let us know if you\'d like a hand.', 'wp-module-onboarding' ), + buttonText: __( 'Complete Setup', 'wp-module-onboarding' ), + tabs: [ + { + name: __( 'tab1', 'wp-module-onboarding' ), + title: __( 'WHATS NEXT', 'wp-module-onboarding' ), + subtitle: __( + 'Add content, organize your menu and launch.', + 'wp-module-onboarding' + ), + text: sprintf( + /* translators: %s: Brand */ + __( + "✅ Theme created, features added and Coming Soon mode activated. Thank you for building your site with %s, we're always here to help!", + 'wp-module-onboarding' + ), + brandName + ), + imgType: 'img-1', + animationName: 'fade-in-right', + }, + { + name: __( 'tab2', 'wp-module-onboarding' ), + title: __( 'HELP & RESOURCES', 'wp-module-onboarding' ), + subtitle: __( + "Next step or next level, we're your partner.", + 'wp-module-onboarding' + ), + text: sprintf( + /* translators: %s: Site */ + __( + 'WordPress make it easy to grow your %s. Send a newsletter, broadcast a podcast, create courses and trainings. Dream it, build it.', + 'wp-module-onboarding' + ), + translations( 'site' ) + ), + imgType: 'img-2', + animationName: 'fade-in-up', + }, + { + name: __( 'tab3', 'wp-module-onboarding' ), + title: __( 'HIRE OUR EXPERTS', 'wp-module-onboarding' ), + subtitle: __( + 'Make our great people your people.', + 'wp-module-onboarding' + ), + text: sprintf( + /* translators: %s: Site */ + __( + "Pick your %s's unique design now and refine by customing your block templates, colors and fonts in the WordPress Site Editor.", + 'wp-module-onboarding' + ), + translations( 'site' ) + ), + imgType: 'img-3', + animationName: 'fade-in-left', + }, + ], + }; +}; + +export default getContents; diff --git a/src/OnboardingSPA/pages/Steps/WhatNext/index.js b/src/OnboardingSPA/pages/Steps/WhatNext/index.js index 1ee8e805e..0f6c53372 100644 --- a/src/OnboardingSPA/pages/Steps/WhatNext/index.js +++ b/src/OnboardingSPA/pages/Steps/WhatNext/index.js @@ -1,18 +1,16 @@ -import CommonLayout from '../../../components/Layouts/Common'; -import { store as nfdOnboardingStore } from '../../../store'; -import { useDispatch } from '@wordpress/data'; +import { useDispatch, useSelect } from '@wordpress/data'; import { useEffect } from '@wordpress/element'; -import NewfoldLargeCard from '../../../components/NewfoldLargeCard'; -import { __ } from '@wordpress/i18n'; -import {translations} from '../../../utils/locales/translations'; +import CommonLayout from '../../../components/Layouts/Common'; +import NewfoldLargeCard from '../../../components/NewfoldLargeCard'; import CardHeader from '../../../components/CardHeader'; import NavCardButton from '../../../components/Button/NavCardButton'; - import Tab from '../../../components/Tab'; -import tabContent from './tabContent.json'; import TabPanelHover from '../../../components/TabPanelHover'; +import { store as nfdOnboardingStore } from '../../../store'; + import { SIDEBAR_LEARN_MORE } from '../../../../constants'; +import getContents from './contents'; const StepWhatNext = () => { const { setIsDrawerOpened, setSidebarActiveView, setIsHeaderNavigationEnabled } = @@ -24,33 +22,41 @@ const StepWhatNext = () => { setIsHeaderNavigationEnabled( true ); }, [] ); + const { brandName } = useSelect( ( select ) => { + return { + brandName: select( nfdOnboardingStore ).getNewfoldBrandName(), + }; + } ); + + const content = getContents( brandName ); + return ( - -
+ +
+ heading={ content.heading } + subHeading={ content.subheading } > { + tabs={ content.tabs.map( ( tab ) => { return { - name: __( tab.name , 'wp-module-onboarding'), - title: __( tab.title , 'wp-module-onboarding'), + name: tab.name, + title: tab.title, content: + title={ tab.subtitle } + text={ tab.text } + imgType={ tab.imgType } + animationName={ tab.animationName } + className="tab-data" />, }; - } )} + } ) } > - {( tab ) =>
{tab.content}
} + { ( tab ) =>
{ tab.content }
}
- +
diff --git a/src/OnboardingSPA/pages/Steps/WhatNext/stylesheet.scss b/src/OnboardingSPA/pages/Steps/WhatNext/stylesheet.scss index 0c990399c..a69f91d6e 100644 --- a/src/OnboardingSPA/pages/Steps/WhatNext/stylesheet.scss +++ b/src/OnboardingSPA/pages/Steps/WhatNext/stylesheet.scss @@ -1,137 +1,150 @@ @import "./Sidebar/LearnMore/stylesheet"; + .nfd-onboarding-overview { - width: 100%; - max-width: 960px; - background-color: var(--nfd-onboarding-light); - padding: 20px; - &__header { - display: flex; - align-items: center; - column-gap: 1rem; - &-icon { - display: flex; - place-items: center; - svg { - fill: var(--nfd-onboarding-primary); - } - } - &-heading { - margin: 0 0 6px 0; - color: var(--nfd-onboarding-dark); - } - &-subheading { - color: var(--nfd-onboarding-dark); - } - } - - &__tab-panel { - width: 90%; - padding-bottom: 40px; - color: var(--nfd-onboarding-dark); - } + width: 100%; + max-width: 960px; + background-color: var(--nfd-onboarding-light); + padding: 20px; + + &__header { + display: flex; + align-items: center; + column-gap: 1rem; + + &-icon { + display: flex; + place-items: center; + + svg { + fill: var(--nfd-onboarding-primary); + } + } + + &-heading { + margin: 0 0 6px 0; + color: var(--nfd-onboarding-dark); + } + + &-subheading { + color: var(--nfd-onboarding-dark); + } + } + + &__tab-panel { + width: 90%; + padding-bottom: 40px; + color: var(--nfd-onboarding-dark); + } } .nfd-step-card-subheading { - display: flex; - justify-content: space-around; + display: flex; + justify-content: space-around; } .components-tab-panel__tabs { - justify-content: space-around; + justify-content: space-around; + @media screen and ( max-width: 480px ) { - width: 100%; - } + width: 100%; + } } .components-tab-panel__tabs > .components-button:focus:not(:disabled), .components-tab-panel__tabs > .components-button.is-pressed:focus:not(:disabled) { - box-shadow: inset 0 0 -($border-width-tab - 0.5) 0 0 var(--wp-admin-theme-color); + box-shadow: inset 0 0 - ($border-width-tab - 0.5) 0 0 var(--wp-admin-theme-color); } .components-tab-panel__tabs-item { - justify-content: center; - border-bottom: 1px solid #CCCCCC; - width: 100%; - font-size: clamp(0.55rem, 1vw + 0.3rem, 1rem); - line-height: 1.5; - - &.is-active { - color: var(--wp-admin-theme-color); - box-shadow: inset 0 0 -($border-width-tab - 0.5) 0 0 var(--wp-admin-theme-color); - } - - &.is-not-active { - box-shadow: none !important; - } + justify-content: center; + border-bottom: 1px solid #ccc; + width: 100%; + font-size: clamp(0.55rem, 1vw + 0.3rem, 1rem); + line-height: 1.5; + + &.is-active { + color: var(--wp-admin-theme-color); + box-shadow: inset 0 0 - ($border-width-tab - 0.5) 0 0 var(--wp-admin-theme-color); + } + + &.is-not-active { + box-shadow: none !important; + } } -.tab-data{ - width: 100%; - padding-top: 40px; - display: flex; - flex-direction: row; - align-items: stretch; - justify-content: space-between; - +.tab-data { + width: 100%; + padding-top: 40px; + display: flex; + flex-direction: row; + align-items: stretch; + justify-content: space-between; + } -.content-text{ - padding-right: 10px; - font-size: clamp(0.88rem, 0.45rem + 0.76vw, 1.13rem); - line-height: 1.6; +.content-text { + padding-right: 10px; + font-size: clamp(0.88rem, 0.45rem + 0.76vw, 1.13rem); + line-height: 1.6; } .content-image { - background-color: var(--nfd-onboarding-tertiary); - overflow: hidden; + background-color: var(--nfd-onboarding-tertiary); + overflow: hidden; } -.whatsnext-image { - background-size: contain; - background-repeat: no-repeat; - height: 228px; - width: clamp(180px, 50vw, 400px); +%whatsnext-image { + background-size: contain; + background-repeat: no-repeat; + height: 228px; + width: clamp(180px, 50vw, 400px); } -.wpadmin-img { - @extend .whatsnext-image; - background-image: var(--what-next-wp-admin-img); +.img-1 { + + @extend %whatsnext-image; + background-image: var(--nfd-onboarding-step-what-next-img-1); } -.help-img { - @extend .whatsnext-image; - background-image: var(--what-next-help-img); +.img-2 { + + @extend %whatsnext-image; + background-image: var(--nfd-onboarding-step-what-next-img-2); } -.bluesky-img { - @extend .whatsnext-image; - background-image: var(--what-next-bluesky-img); +.img-3 { + + @extend %whatsnext-image; + background-image: var(--nfd-onboarding-step-what-next-img-3); } .whatnext-card { display: flex; - flex-direction: column; - align-items: center; - justify-content: space-around; - height: clamp(600px, 59vh, 800px) !important; - width: 100%; - padding-bottom: 10px; + flex-direction: column; + align-items: center; + justify-content: space-around; + height: clamp(600px, 59vh, 800px) !important; + width: 100%; + padding-bottom: 10px; } @media screen and ( max-width: #{ ($break-medium)} ) { - .tab-data { - flex-direction: column-reverse; - align-items: center; - } - - .content-text { - text-align: center; - width: 100%; - min-height: 10px; - } - - .wpadmin-img, .help-img, .bluesky-img { - max-height: 100px; - } + + .tab-data { + flex-direction: column-reverse; + align-items: center; + } + + .content-text { + text-align: center; + width: 100%; + min-height: 10px; + } + + .wpadmin-img, + .help-img, + .bluesky-img { + max-height: 100px; + } } diff --git a/src/OnboardingSPA/pages/Steps/WhatNext/tabContent.json b/src/OnboardingSPA/pages/Steps/WhatNext/tabContent.json deleted file mode 100644 index 31aa1b20a..000000000 --- a/src/OnboardingSPA/pages/Steps/WhatNext/tabContent.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "tabs": [ - { - "name": "tab1", - "title": "WHATS NEXT", - "subtitle": "Add content, organize your menu and launch.", - "text": "✅ Theme created, features added and Coming Soon mode activated. Thank you for building your site with Bluehost, we're always here to help!", - "imgType": "wpadmin-img", - "animationName": "fade-in-right" - }, - { - "name": "tab2", - "title": "HELP & RESOURCES", - "subtitle": "Next step or next level, we're your partner.", - "text": "WordPress make it easy to grow your %s. Send a newsletter, broadcast a podcast, create courses and trainings. Dream it, build it.", - "imgType": "help-img", - "animationName": "fade-in-up" - }, - { - "name": "tab3", - "title": "HIRE OUR EXPERTS", - "subtitle": "Make our great people your people.", - "text": "Pick your %s's unique design now and refine by customing your block templates, colors and fonts in the WordPress Site Editor.", - "imgType": "bluesky-img", - "animationName": "fade-in-left" - } - ] -} diff --git a/src/OnboardingSPA/store/selectors.js b/src/OnboardingSPA/store/selectors.js index d2c50fee9..6637280e6 100644 --- a/src/OnboardingSPA/store/selectors.js +++ b/src/OnboardingSPA/store/selectors.js @@ -1,11 +1,12 @@ +// eslint-disable-next-line import/no-extraneous-dependencies import { filter, findIndex } from 'lodash'; -import { addQueryArgs, getFragment } from '@wordpress/url'; +import { addQueryArgs } from '@wordpress/url'; /** * Get the currently active drawer view * * @param {*} state - * @return string + * @return {string} Drawer View */ export function getDrawerView( state ) { return state.drawer.view; @@ -15,7 +16,7 @@ export function getDrawerView( state ) { * Check if the drawer is opened * * @param {*} state - * @return boolean + * @return {boolean} Drawer isOpen */ export function isDrawerOpened( state ) { return state.drawer.isOpen; @@ -25,7 +26,7 @@ export function isDrawerOpened( state ) { * Check if the drawer is suppressed * * @param {*} state - * @return boolean + * @return {boolean} Drawer isSuppressed */ export function isDrawerSuppressed( state ) { return state.drawer.isSuppressed; @@ -39,7 +40,7 @@ export function isHeaderNavigationEnabled( state ) { * Gets current Newfold brand * * @param {*} state - * @return string + * @return {string} Newfold Brand */ export function getNewfoldBrand( state ) { return state.runtime.currentBrand.brand; @@ -49,17 +50,27 @@ export function getNewfoldBrand( state ) { * Gets current Newfold brand * * @param {*} state - * @return string + * @return {string} Current Brand Name */ export function getNewfoldBrandName( state ) { return state.runtime.currentBrand.name; } +/** + * Gets the current Newfold Brand's Onboarding Configuration. + * + * @param {*} state + * @return {Object} Brand Onboarding Configuration. + */ +export function getNewfoldBrandConfig( state ) { + return state.runtime.currentBrand.config; +} + /** * Gets dynamic Hire Experts URL for Need Help Tag per brand * * @param {*} state - * @return string + * @return {string} hireExpertsUrl */ export function getHireExpertsUrl( state ) { const hireExpertsInfo = state.runtime.currentBrand.hireExpertsInfo; @@ -75,7 +86,7 @@ export function getHireExpertsUrl( state ) { * Gets the current Onboarding Data * * @param {*} state - * @return string + * @return {string} Current Onboarding Data */ export function getCurrentOnboardingData( state ) { return state.currentData; @@ -85,7 +96,7 @@ export function getCurrentOnboardingData( state ) { * Gets current Onboarding Flow * * @param {*} state - * @return string + * @return {string} Onboarding Flow */ export function getOnboardingFlow( state ) { return state.runtime.currentFlow ?? 'wp-setup'; @@ -103,7 +114,7 @@ export function getAllSteps( state ) { * Gets steps to display in drawer. * * @param {*} state - * @return + * @return {Array} Top Steps */ export function getTopSteps( state ) { return state.flow.steps.topSteps; @@ -113,7 +124,7 @@ export function getTopSteps( state ) { * Gets design steps to display in drawer submenu. * * @param {*} state - * @return + * @return {Array} Design Steps */ export function getDesignSteps( state ) { return state.flow.steps.designSteps; @@ -123,7 +134,7 @@ export function getDesignSteps( state ) { * Gets get-started setup steps to display in drawer submenu. * * @param {*} state - * @return + * @return {Array} Get Started Steps */ export function getGetStartedSteps( state ) { return state.flow.steps.getStartedSteps; @@ -133,7 +144,7 @@ export function getGetStartedSteps( state ) { * Get the path to the current step. * * @param {*} state - * @return + * @return {string} Current Step Path */ export function getCurrentStepPath( state ) { return state.flow.steps.currentStep; @@ -143,7 +154,7 @@ export function getCurrentStepPath( state ) { * Gets the First step object. * * @param {*} state - * @return object + * @return {Object} First Step */ export function getFirstStep( state ) { return state.flow.steps.allSteps[ 0 ]; @@ -153,7 +164,7 @@ export function getFirstStep( state ) { * Gets the Last step object. * * @param {*} state - * @return object + * @return {Object} Last Step */ export function getLastStep( state ) { return state.flow.steps.allSteps[ state.flow.steps.allSteps.length - 1 ]; @@ -163,7 +174,7 @@ export function getLastStep( state ) { * Gets the current step object. * * @param {*} state - * @return object + * @return {Object} Current Step */ export function getCurrentStep( state ) { const filtered = filter( state.flow.steps.allSteps, [ @@ -182,7 +193,7 @@ export function getStepFromPath( state, path ) { * Get's the previous step's object. * * @param {*} state - * @return object|null|false + * @return {object|null|false} Previous Step */ export function getPreviousStep( state ) { const currentStepIndex = findIndex( state.flow.steps.allSteps, { @@ -201,7 +212,7 @@ export function getPreviousStep( state ) { * Gets the next steps object. * * @param {*} state - * @return object|null|false + * @return {object|null|false} Next Step */ export function getNextStep( state ) { const totalIndexes = state.flow.steps.allSteps.length - 1; @@ -257,7 +268,7 @@ export function getStepPreviewData( state ) { * Gets the current header menu Data * * @param {*} state - * @return string + * @return {string} menu */ export function getHeaderMenuData( state ) { return state.header.menu; @@ -267,9 +278,9 @@ export function getHeaderMenuData( state ) { * Gets 1-1 Experts URL for Help Section in the Sidebars * * @param {*} state - * @return string + * @return {string} expertsUrl */ - export function getExpertsUrl( state ) { +export function getExpertsUrl( state ) { const expertsInfo = state.runtime.currentBrand.expertsInfo; const expertsUrl = addQueryArgs( @@ -283,9 +294,9 @@ export function getHeaderMenuData( state ) { * Gets Full Service Creative Team URL for Help Section in the Sidebars * * @param {*} state - * @return string + * @return {string} fullServiceCreativeTeamUrl */ - export function getfullServiceCreativeTeamUrl( state ) { +export function getfullServiceCreativeTeamUrl( state ) { const fullServiceCreativeTeamInfo = state.runtime.currentBrand.fullServiceCreativeTeamInfo; const fullServiceCreativeTeamUrl = addQueryArgs( @@ -299,9 +310,9 @@ export function getHeaderMenuData( state ) { * Gets Technical Support URL for Help Section in the Sidebars * * @param {*} state - * @return string + * @return {string} techSupportUrl */ - export function getTechSupportUrl( state ) { +export function getTechSupportUrl( state ) { const techSupportInfo = state.runtime.currentBrand.techSupportInfo; const techSupportUrl = addQueryArgs( @@ -309,14 +320,14 @@ export function getHeaderMenuData( state ) { techSupportInfo?.queryParams ) + ( techSupportInfo?.fragment || '' ); return techSupportUrl; - } +} /** * Gets the Plugin Install Hash for security * * @param {*} state - * @return string + * @return {string} pluginInstallHash */ export function getPluginInstallHash( state ) { return state.runtime.pluginInstallHash; -} \ No newline at end of file +} diff --git a/src/OnboardingSPA/styles/_branding.scss b/src/OnboardingSPA/styles/_branding.scss index fd3ec319a..656d56746 100644 --- a/src/OnboardingSPA/styles/_branding.scss +++ b/src/OnboardingSPA/styles/_branding.scss @@ -7,9 +7,9 @@ body { --wp-admin-theme-color-darker-10--rgb: 28, 92, 186; --wp-admin-theme-color-darker-20: #0242a0; --wp-admin-theme-color-darker-20--rgb: 2, 66, 160; - --nfd-onboarding-dark-icon: url("../../Brands/bluehost/dark.svg"); - --nfd-onboarding-icon: url("../../Brands/bluehost/icon.svg"); - --nfd-onboarding-logo: url("../../Brands/bluehost/logo.svg"); + --nfd-onboarding-dark-icon: url(../../Brands/bluehost/dark.svg); + --nfd-onboarding-icon: url(../../Brands/bluehost/icon.svg); + --nfd-onboarding-logo: url(../../Brands/bluehost/logo.svg); --nfd-onboarding-primary: #3575d3; --nfd-onboarding-highlighted--rgb: 123, 177, 253; --nfd-onboarding-primary-alt: #2c76dc; @@ -30,8 +30,27 @@ body { --nfd-onboarding-drawer-icon-active-fill: var(--nfd-onboarding-light); --nfd-onboarding-loader-start: var(--nfd-onboarding-primary); --nfd-onboarding-loader-end: var(--nfd-onboarding-tertiary); - --nfd-onboarding-step-loader-icon: url("../../Brands/bluehost/step-loader-logo.svg"); - --nfd-onboarding-step-error-icon: url("../../Brands/bluehost/step-error-logo.svg"); + --nfd-onboarding-step-loader-icon: url(../../Brands/bluehost/step-loader-logo.svg); + --nfd-onboarding-step-error-icon: url(../../Brands/bluehost/step-error-logo.svg); + --nfd-onboarding-step-what-next-img-3: url(../../Brands/bluehost/bluesky.png); + --nfd-onboarding-step-what-next-img-1: url(../../Brands/bluehost/wp-admin.png); + --nfd-onboarding-step-what-next-img-2: url(../static/images/help.png); + + --nfd-onboarding-sidebar-learn-more-get-started-welcome-illustration: url(../../Brands/bluehost/learn-more-get-started-welcome.svg); + --nfd-onboarding-sidebar-learn-more-get-started-wp-experience-illustration: url(../../Brands/bluehost/learn-more-get-started-wp-experience.svg); + --nfd-onboarding-sidebar-learn-more-get-started-site-type-illustration: url(../../Brands/bluehost/learn-more-get-started-site-type.svg); + --nfd-onboarding-sidebar-learn-more-ecommerce-address-illustration: url(../../Brands/bluehost/learn-more-ecommerce-address.svg); + --nfd-onboarding-sidebar-learn-more-ecommerce-tax-info-illustration: url(../../Brands/bluehost/learn-more-ecommerce-tax-info.svg); + --nfd-onboarding-sidebar-learn-more-ecommerce-products-illustration: url(../../Brands/bluehost/learn-more-ecommerce-products.svg); + --nfd-onboarding-sidebar-learn-more-basic-info-illustration: url(../../Brands/bluehost/learn-more-basic-info.svg); + --nfd-onboarding-sidebar-learn-more-design-theme-styles-illustration: url(../../Brands/bluehost/learn-more-design-theme-styles.svg); + --nfd-onboarding-sidebar-learn-more-design-colors-illustration: url(../../Brands/bluehost/learn-more-design-colors.svg); + --nfd-onboarding-sidebar-learn-more-design-typography-illustration: url(../../Brands/bluehost/learn-more-design-typography.svg); + --nfd-onboarding-sidebar-learn-more-design-header-menu-illustration: url(../../Brands/bluehost/learn-more-design-header-menu.svg); + --nfd-onboarding-sidebar-learn-more-design-homepage-illustration: url(../../Brands/bluehost/learn-more-design-homepage.svg); + --nfd-onboarding-sidebar-learn-more-pages-illustration: url(../../Brands/bluehost/learn-more-pages.svg); + --nfd-onboarding-sidebar-learn-more-site-features-illustration: url(../../Brands/bluehost/learn-more-site-features.svg); + --nfd-onboarding-sidebar-learn-more-what-next-illustration: url(../../Brands/bluehost/learn-more-what-next.svg); } &.nfd-brand-hostgator { @@ -41,9 +60,9 @@ body { --wp-admin-theme-color-darker-10--rgb: 20, 133, 236; --wp-admin-theme-color-darker-20: #1177d2; --wp-admin-theme-color-darker-20--rgb: 17, 119, 210; - --nfd-onboarding-dark-icon: url("../../Brands/hostgator/dark.svg"); - --nfd-onboarding-icon: url("../../Brands/hostgator/icon.svg"); - --nfd-onboarding-logo: url("../../Brands/hostgator/logo.svg"); + --nfd-onboarding-dark-icon: url(../../Brands/hostgator/dark.svg); + --nfd-onboarding-icon: url(../../Brands/hostgator/icon.svg); + --nfd-onboarding-logo: url(../../Brands/hostgator/logo.svg); --nfd-onboarding-primary: #2e93ee; --nfd-onboarding-highlighted--rgb: 30, 32, 68; --nfd-onboarding-primary-alt: #3b97ff; @@ -72,9 +91,9 @@ body { --wp-admin-theme-color-darker-10--rgb: 43, 92, 251; --wp-admin-theme-color-darker-20: #0b44fb; --wp-admin-theme-color-darker-20--rgb: 11, 68, 251; - --nfd-onboarding-dark-icon: url("../../Brands/webcom/dark.svg"); - --nfd-onboarding-icon: url("../../Brands/webcom/icon.svg"); - --nfd-onboarding-logo: url("../../Brands/webcom/logo.svg"); + --nfd-onboarding-dark-icon: url(../../Brands/webcom/dark.svg); + --nfd-onboarding-icon: url(../../Brands/webcom/icon.svg); + --nfd-onboarding-logo: url(../../Brands/webcom/logo.svg); --nfd-onboarding-primary: #4b75fc; --nfd-onboarding-highlighted--rgb: 13, 71, 251; --nfd-onboarding-primary-alt: #0d47fb; @@ -95,4 +114,41 @@ body { --nfd-onboarding-loader-start: var(--nfd-onboarding-primary); --nfd-onboarding-loader-end: var(--nfd-onboarding-tertiary); } + + &.nfd-brand-crazy-domains { + --wp-admin-theme-color: #6fac2f; + --wp-admin-theme-color--rgb: 111, 172, 47; + --wp-admin-theme-color-darker-10: #568f1b; + --wp-admin-theme-color-darker-10--rgb: 86, 143, 27; + --wp-admin-theme-color-darker-20: #484848; + --wp-admin-theme-color-darker-20--rgb: 72, 72, 72; + --nfd-onboarding-dark-icon: url(../../Brands/crazy-domains/icon-z.svg); + --nfd-onboarding-icon: url(../../Brands/crazy-domains/icon.svg); + --nfd-onboarding-logo: url(../../Brands/crazy-domains/logo.svg); + --nfd-onboarding-primary: var(--wp-admin-theme-color); + --nfd-onboarding-highlighted--rgb: var(--wp-admin-theme-color-darker-10--rgb); + --nfd-onboarding-primary-alt: var(--wp-admin-theme-color-darker-10); + --nfd-onboarding-secondary: var(--wp-admin-theme-color-darker-10); + --nfd-onboarding-secondary-alt: var(--wp-admin-theme-color-darker-20); + --nfd-onboarding-tertiary: var(--nfd-onboarding-primary); + --nfd-onboarding-tertiary-alt: var(--nfd-onboarding-primary-alt); + --nfd-onboarding-light: #fff; + --nfd-onboarding-light-gray: #f0f0f0; + --nfd-onboarding-light-gray-2: #efefef; + --nfd-onboarding-light-gray-3: #f2f2f2; + --nfd-onboarding-light-gray-4: #a7a7a7; + --nfd-onboarding-light-gray-5: #eee; + --nfd-onboarding-light-gray-highlighted: #e2e9f4; + --nfd-onboarding-dark: var(--wp-admin-theme-color-darker-20); + --nfd-onboarding-border: 219, 219, 219; + --nfd-onboarding-drawer-icon-fill: var(--nfd-onboarding-tertiary); + --nfd-onboarding-drawer-icon-active-fill: var(--nfd-onboarding-light); + --nfd-onboarding-loader-start: var(--nfd-onboarding-primary); + --nfd-onboarding-loader-end: var(--nfd-onboarding-secondary); + --nfd-onboarding-step-loader-icon: url(../../Brands/crazy-domains/step-loader-logo.svg); + --nfd-onboarding-step-error-icon: url(../../Brands/crazy-domains/step-error-logo.svg); + --nfd-onboarding-step-what-next-img-3: url(../../Brands/crazy-domains/full-service.png); + --nfd-onboarding-step-what-next-img-1: url(../../Brands/crazy-domains/wp-admin.png); + --nfd-onboarding-step-what-next-img-2: url(../static/images/help.png); + } } diff --git a/src/OnboardingSPA/styles/_icons.scss b/src/OnboardingSPA/styles/_icons.scss index 0057b5b62..994d4f4c8 100644 --- a/src/OnboardingSPA/styles/_icons.scss +++ b/src/OnboardingSPA/styles/_icons.scss @@ -1,118 +1,59 @@ body { - --nfd-publish-icon: url("../static/icons/publish.svg"); - --nfd-selling-icon: url("../static/icons/sell.svg"); - --nfd-design-icon: url("../static/icons/design.svg"); - --more-icon: url("../static/icons/more.svg"); - --reload-icon: url("../static/icons/reload.svg"); - --forward-icon: url("../static/icons/forward.svg"); - --back-icon: url("../static/icons/back.svg"); - --chevron-up-icon: url("../static/icons/chevron-up.svg"); - --chevron-down-icon: url("../static/icons/chevron-down.svg"); - --default-logo-icon: url("../static/icons/default-logo.svg"); - --facebook-icon: url("../static/icons/social/facebook.svg"); - --facebook-colored-icon: url("../static/icons/social/facebook-colored.svg"); - --twitter-icon: url("../static/icons/social/twitter.svg"); - --twitter-colored-icon: url("../static/icons/social/twitter-colored.svg"); - --instagram-icon: url("../static/icons/social/instagram.svg"); - --instagram-colored-icon: url("../static/icons/social/instagram-colored.svg"); - --linkedin-icon: url("../static/icons/social/linkedin.svg"); - --linkedin-colored-icon: url("../static/icons/social/linkedin-colored.svg"); - --yelp-icon: url("../static/icons/social/yelp.svg"); - --yelp-colored-icon: url("../static/icons/social/yelp-colored.svg"); - --youtube-icon: url("../static/icons/social/youtube.svg"); - --youtube-colored-icon: url("../static/icons/social/youtube-colored.svg"); - --tiktok-icon: url("../static/icons/social/tiktok.svg"); - --tiktok-colored-icon: url("../static/icons/social/tiktok-colored.svg"); - - --get-started-content-img: url("../static/images/content.png"); - --get-started-design-img: url("../static/images/design.png"); - --get-started-features-img: url("../static/images/features.png"); - --what-next-bluesky-img: url("../static/images/bluesky.png"); - --what-next-wp-admin-img: url("../static/images/wp-admin.png"); - --what-next-help-img: url("../static/images/help.png"); - - - --chevron-left-icon: url("../static/icons/chevron-left.svg"); - --chevron-right-icon: url("../static/icons/chevron-right.svg"); - - --business-icon: url("../static/icons/business.svg"); - --business-white-icon: url("../static/icons/business-white.svg"); - --nfd-onboarding-step-error-icon: url("../../Brands/bluehost/step-error-logo.svg"); - - --nfd-onboarding-sidebar-learn-more-get-started-welcome-illustration: url("../static/icons/learn-more-get-started-welcome.svg"); - --nfd-onboarding-sidebar-learn-more-get-started-wp-experience-illustration: url("../static/icons/learn-more-get-started-wp-experience.svg"); - --nfd-onboarding-sidebar-learn-more-get-started-site-type-illustration: url("../static/icons/learn-more-get-started-site-type.svg"); - --nfd-onboarding-sidebar-learn-more-ecommerce-address-illustration: url("../static/icons/learn-more-ecommerce-address.svg"); - --nfd-onboarding-sidebar-learn-more-ecommerce-tax-info-illustration: url("../static/icons/learn-more-ecommerce-tax-info.svg"); - --nfd-onboarding-sidebar-learn-more-ecommerce-products-illustration: url("../static/icons/learn-more-ecommerce-products.svg"); - --nfd-onboarding-sidebar-learn-more-basic-info-illustration: url("../static/icons/learn-more-basic-info.svg"); - --nfd-onboarding-sidebar-learn-more-design-theme-styles-illustration: url("../static/icons/learn-more-design-theme-styles.svg"); - --nfd-onboarding-sidebar-learn-more-design-colors-illustration: url("../static/icons/learn-more-design-colors.svg"); - --nfd-onboarding-sidebar-learn-more-design-typography-illustration: url("../static/icons/learn-more-design-typography.svg"); - --nfd-onboarding-sidebar-learn-more-design-header-menu-illustration: url("../static/icons/learn-more-design-header-menu.svg"); - --nfd-onboarding-sidebar-learn-more-design-homepage-illustration: url("../static/icons/learn-more-design-homepage.svg"); - --nfd-onboarding-sidebar-learn-more-pages-illustration: url("../static/icons/learn-more-pages.svg"); - --nfd-onboarding-sidebar-learn-more-site-features-illustration: url("../static/icons/learn-more-site-features.svg"); - --nfd-onboarding-sidebar-learn-more-what-next-illustration: url("../static/icons/learn-more-what-next.svg"); - - --site-features-analytics: url("../static/icons/site-features/analytics.svg"); - --site-features-analytics--light: url("../static/icons/site-features/analytics_light.svg"); - --site-features-bookingcalendar: url("../static/icons/site-features/bookingcalendar.svg"); - --site-features-bookingcalendar--light: url("../static/icons/site-features/bookingcalendar_light.svg"); - --site-features-email: url("../static/icons/site-features/email.svg"); - --site-features-email--light: url("../static/icons/site-features/email_light.svg"); - --site-features-filter: url("../static/icons/site-features/filter.svg"); - --site-features-filter--light: url("../static/icons/site-features/filter_light.svg"); - --site-features-form: url("../static/icons/site-features/form.svg"); - --site-features-form--light: url("../static/icons/site-features/form_light.svg"); - --site-features-lead: url("../static/icons/site-features/lead.svg"); - --site-features-lead--light: url("../static/icons/site-features/lead_light.svg"); - --site-features-search: url("../static/icons/site-features/search.svg"); - --site-features-search--light: url("../static/icons/site-features/search_light.svg"); - --site-features-security: url("../static/icons/site-features/security.svg"); - --site-features-security--light: url("../static/icons/site-features/security_light.svg"); - --site-features-share: url("../static/icons/site-features/share.svg"); - --site-features-share--light: url("../static/icons/site-features/share_light.svg"); - --site-features-wishlist: url("../static/icons/site-features/wishlist.svg"); - --site-features-wishlist--light: url("../static/icons/site-features/wishlist_light.svg"); - - /* - * Below Icons are commented because they get added to the CSS bundle and - * CSS bundle created exceeded the permissible size. - * Need to find a solution how do we deal with below icons or do we split page wise CSS bundles - * Or can using these icon paths in background-image in pages's CSS help? - */ - - // --dog-icon: url("../static/icons/dog.svg"); - // --dog-white-icon: url("../static/icons/dog-white.svg"); - - // --education-icon: url("../static/icons/education.svg"); - // --education-white-icon: url("../static/icons/education-white.svg"); - - // --entertainment-icon: url("../static/icons/entertainment.svg"); - // --entertainment-white-icon: url("../static/icons/entertainment-white.svg"); - - // --food-icon: url("../static/icons/food.svg"); - // --food-white-icon: url("../static/icons/food-white.svg"); - - // --group-icon: url("../static/icons/group-team.svg"); - // --group-white-icon: url("../static/icons/group-team-white.svg"); - - // --health-icon: url("../static/icons/health.svg"); - // --health-white-icon: url("../static/icons/health-white.svg"); - - // --news-icon: url("../static/icons/news.svg"); - // --news-white-icon: url("../static/icons/news-white.svg"); - - // --creative-icon: url("../static/icons/creative.svg"); - // --creative-white-icon: url("../static/icons/creative-white.svg"); - - // --heart-icon: url("../static/icons/heart.svg"); - // --heart-white-icon: url("../static/icons/heart-white.svg"); - - // --tech-icon: url("../static/icons/tech.svg"); - // --tech-white-icon: url("../static/icons/tech-white.svg"); - - // --politics-icon: url("../static/icons/politics.svg"); - // --politics-white-icon: url("../static/icons/politics-white.svg"); + --nfd-publish-icon: url(../static/icons/publish.svg); + --nfd-selling-icon: url(../static/icons/sell.svg); + --nfd-design-icon: url(../static/icons/design.svg); + --more-icon: url(../static/icons/more.svg); + --reload-icon: url(../static/icons/reload.svg); + --forward-icon: url(../static/icons/forward.svg); + --back-icon: url(../static/icons/back.svg); + --chevron-up-icon: url(../static/icons/chevron-up.svg); + --chevron-down-icon: url(../static/icons/chevron-down.svg); + --default-logo-icon: url(../static/icons/default-logo.svg); + --facebook-icon: url(../static/icons/social/facebook.svg); + --facebook-colored-icon: url(../static/icons/social/facebook-colored.svg); + --twitter-icon: url(../static/icons/social/twitter.svg); + --twitter-colored-icon: url(../static/icons/social/twitter-colored.svg); + --instagram-icon: url(../static/icons/social/instagram.svg); + --instagram-colored-icon: url(../static/icons/social/instagram-colored.svg); + --linkedin-icon: url(../static/icons/social/linkedin.svg); + --linkedin-colored-icon: url(../static/icons/social/linkedin-colored.svg); + --yelp-icon: url(../static/icons/social/yelp.svg); + --yelp-colored-icon: url(../static/icons/social/yelp-colored.svg); + --youtube-icon: url(../static/icons/social/youtube.svg); + --youtube-colored-icon: url(../static/icons/social/youtube-colored.svg); + --tiktok-icon: url(../static/icons/social/tiktok.svg); + --tiktok-colored-icon: url(../static/icons/social/tiktok-colored.svg); + + --get-started-content-img: url(../static/images/content.png); + --get-started-design-img: url(../static/images/design.png); + --get-started-features-img: url(../static/images/features.png); + + + --chevron-left-icon: url(../static/icons/chevron-left.svg); + --chevron-right-icon: url(../static/icons/chevron-right.svg); + + --business-icon: url(../static/icons/business.svg); + --business-white-icon: url(../static/icons/business-white.svg); + --nfd-onboarding-step-error-icon: url(../../Brands/bluehost/step-error-logo.svg); + + --site-features-analytics: url(../static/icons/site-features/analytics.svg); + --site-features-analytics--light: url(../static/icons/site-features/analytics_light.svg); + --site-features-bookingcalendar: url(../static/icons/site-features/bookingcalendar.svg); + --site-features-bookingcalendar--light: url(../static/icons/site-features/bookingcalendar_light.svg); + --site-features-email: url(../static/icons/site-features/email.svg); + --site-features-email--light: url(../static/icons/site-features/email_light.svg); + --site-features-filter: url(../static/icons/site-features/filter.svg); + --site-features-filter--light: url(../static/icons/site-features/filter_light.svg); + --site-features-form: url(../static/icons/site-features/form.svg); + --site-features-form--light: url(../static/icons/site-features/form_light.svg); + --site-features-lead: url(../static/icons/site-features/lead.svg); + --site-features-lead--light: url(../static/icons/site-features/lead_light.svg); + --site-features-search: url(../static/icons/site-features/search.svg); + --site-features-search--light: url(../static/icons/site-features/search_light.svg); + --site-features-security: url(../static/icons/site-features/security.svg); + --site-features-security--light: url(../static/icons/site-features/security_light.svg); + --site-features-share: url(../static/icons/site-features/share.svg); + --site-features-share--light: url(../static/icons/site-features/share_light.svg); + --site-features-wishlist: url(../static/icons/site-features/wishlist.svg); + --site-features-wishlist--light: url(../static/icons/site-features/wishlist_light.svg); }