-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #96 from newfold-labs/add/PRESS2-254-257-260-ecom-…
…steps-sidebars Learn more sidebar: Ecommerce
- Loading branch information
Showing
11 changed files
with
418 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
src/OnboardingSPA/pages/Steps/Ecommerce/StepAddress/Sidebar/LearnMore/contents.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
import { __, sprintf } from '@wordpress/i18n'; | ||
|
||
import { translations } from '../../../../../../utils/locales/translations'; | ||
import { store } from '@wordpress/icons'; | ||
|
||
const getContents = ( brandName ) => { | ||
return { | ||
introduction: { | ||
heading: __( 'Street Address', 'wp-module-onboarding' ), | ||
subheading: __( | ||
'Whether this is where the magic happens or the mail goes, tell us where your business is located.' | ||
), | ||
icon: store, | ||
}, | ||
illustration: { | ||
icon: 'nfd-onboarding-sidebar-learn-more-ecommerce-address-illustration', | ||
}, | ||
information: { | ||
headingWithDescriptions: [ | ||
{ | ||
heading: __( | ||
'Whether it’s a storefront or a PO Box, we’re proud to help you connect your real-world and online businesses', | ||
'wp-module-onboarding' | ||
), | ||
description: sprintf( | ||
/* translators: 1: Brand 2: Site */ | ||
__( | ||
`We use this address to setup WooCommerce, your payment provider, Contact Page and more so you can start stocking the shelves of your %s Online %s.`, | ||
'wp-module-onboarding' | ||
), | ||
brandName, | ||
translations( 'Site' ) | ||
), | ||
}, | ||
], | ||
}, | ||
help: { | ||
fullService: { | ||
text: __( | ||
'Hire Our Full-Service Creative Studio', | ||
'wp-module-onboarding' | ||
), | ||
link: '#', | ||
}, | ||
support: { | ||
text: __( 'Technical Support', 'wp-module-onboarding' ), | ||
link: '#', | ||
}, | ||
}, | ||
}; | ||
}; | ||
|
||
export default getContents; |
74 changes: 74 additions & 0 deletions
74
src/OnboardingSPA/pages/Steps/Ecommerce/StepAddress/Sidebar/LearnMore/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
import { lazy } from '@wordpress/element'; | ||
import { useSelect } from '@wordpress/data'; | ||
|
||
import { store as nfdOnboardingStore } from '../../../../../../store'; | ||
import getContents from './contents'; | ||
|
||
const IllustrationPanel = lazy( () => | ||
import( | ||
'../../../../../../components/Sidebar/components/LearnMore/IllustrationPanel' | ||
) | ||
); | ||
const InfoPanel = lazy( () => | ||
import( | ||
'../../../../../../components/Sidebar/components/LearnMore/InfoPanel' | ||
) | ||
); | ||
const HelpPanel = lazy( () => | ||
import( | ||
'../../../../../../components/Sidebar/components/LearnMore/HelpPanel' | ||
) | ||
); | ||
const ButtonWhite = lazy( () => | ||
import( '../../../../../../components/Button/ButtonWhite' ) | ||
); | ||
const SupportLink = lazy( () => | ||
import( | ||
'../../../../../../components/Sidebar/components/LearnMore/SupportLink' | ||
) | ||
); | ||
const StepIntroPanel = lazy( () => | ||
import( | ||
'../../../../../../components/Sidebar/components/LearnMore/StepIntroPanel' | ||
) | ||
); | ||
|
||
const LearnMore = () => { | ||
const { brandName } = useSelect( ( select ) => { | ||
return { | ||
brandName: select( nfdOnboardingStore ).getNewfoldBrandName(), | ||
}; | ||
} ); | ||
|
||
const content = getContents( brandName ); | ||
|
||
return ( | ||
<div className="nfd-onboarding-sidebar-learn-more__ecommerce-address"> | ||
<StepIntroPanel | ||
heading={ content.introduction.heading } | ||
subheading={ content.introduction.subheading } | ||
icon={ content.introduction.icon } | ||
/> | ||
<IllustrationPanel cssIcon={ content.illustration.icon } /> | ||
<InfoPanel | ||
headingWithDescriptions={ | ||
content.information.headingWithDescriptions | ||
} | ||
/> | ||
<HelpPanel> | ||
<ButtonWhite | ||
text={ content.help.fullService.text } | ||
onClick={ () => | ||
( window.location.href = content.help.fullService.link ) | ||
} | ||
/> | ||
<SupportLink | ||
text={ content.help.support.text } | ||
link={ content.help.support.link } | ||
/> | ||
</HelpPanel> | ||
</div> | ||
); | ||
}; | ||
|
||
export default LearnMore; |
53 changes: 53 additions & 0 deletions
53
src/OnboardingSPA/pages/Steps/Ecommerce/StepProducts/Sidebar/LearnMore/contents.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
import { __, sprintf } from '@wordpress/i18n'; | ||
|
||
import { translations } from '../../../../../../utils/locales/translations'; | ||
import { box } from '@wordpress/icons'; | ||
|
||
const getContents = ( brandName ) => { | ||
return { | ||
introduction: { | ||
heading: __( 'Products Info', 'wp-module-onboarding' ), | ||
subheading: __( | ||
'Whether you call it a menu, catalog, portfolio or project, we’d love to hear more about your offerings.' | ||
), | ||
icon: box, | ||
}, | ||
illustration: { | ||
icon: 'nfd-onboarding-sidebar-learn-more-ecommerce-products-illustration', | ||
}, | ||
information: { | ||
headingWithDescriptions: [ | ||
{ | ||
heading: __( | ||
'Go from multiple sizes to multiple locations to multiple online channels', | ||
'wp-module-onboarding' | ||
), | ||
description: sprintf( | ||
/* translators: 1: Brand 2: Website */ | ||
__( | ||
`Tell us a little about how and what you’re planning to sell and we’ll bring the power of WooCommerce and unique %s %s solutions to elevate your business and enhance your capabilities.`, | ||
'wp-module-onboarding' | ||
), | ||
brandName, | ||
translations( 'site' ) | ||
), | ||
}, | ||
], | ||
}, | ||
help: { | ||
fullService: { | ||
text: __( | ||
'Hire Our Full-Service Creative Studio', | ||
'wp-module-onboarding' | ||
), | ||
link: '#', | ||
}, | ||
support: { | ||
text: __( 'Technical Support', 'wp-module-onboarding' ), | ||
link: '#', | ||
}, | ||
}, | ||
}; | ||
}; | ||
|
||
export default getContents; |
74 changes: 74 additions & 0 deletions
74
src/OnboardingSPA/pages/Steps/Ecommerce/StepProducts/Sidebar/LearnMore/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
import { lazy } from '@wordpress/element'; | ||
import { useSelect } from '@wordpress/data'; | ||
|
||
import { store as nfdOnboardingStore } from '../../../../../../store'; | ||
import getContents from './contents'; | ||
|
||
const IllustrationPanel = lazy( () => | ||
import( | ||
'../../../../../../components/Sidebar/components/LearnMore/IllustrationPanel' | ||
) | ||
); | ||
const InfoPanel = lazy( () => | ||
import( | ||
'../../../../../../components/Sidebar/components/LearnMore/InfoPanel' | ||
) | ||
); | ||
const HelpPanel = lazy( () => | ||
import( | ||
'../../../../../../components/Sidebar/components/LearnMore/HelpPanel' | ||
) | ||
); | ||
const ButtonWhite = lazy( () => | ||
import( '../../../../../../components/Button/ButtonWhite' ) | ||
); | ||
const SupportLink = lazy( () => | ||
import( | ||
'../../../../../../components/Sidebar/components/LearnMore/SupportLink' | ||
) | ||
); | ||
const StepIntroPanel = lazy( () => | ||
import( | ||
'../../../../../../components/Sidebar/components/LearnMore/StepIntroPanel' | ||
) | ||
); | ||
|
||
const LearnMore = () => { | ||
const { brandName } = useSelect( ( select ) => { | ||
return { | ||
brandName: select( nfdOnboardingStore ).getNewfoldBrandName(), | ||
}; | ||
} ); | ||
|
||
const content = getContents( brandName ); | ||
|
||
return ( | ||
<div className="nfd-onboarding-sidebar-learn-more__ecommerce-products"> | ||
<StepIntroPanel | ||
heading={ content.introduction.heading } | ||
subheading={ content.introduction.subheading } | ||
icon={ content.introduction.icon } | ||
/> | ||
<IllustrationPanel cssIcon={ content.illustration.icon } /> | ||
<InfoPanel | ||
headingWithDescriptions={ | ||
content.information.headingWithDescriptions | ||
} | ||
/> | ||
<HelpPanel> | ||
<ButtonWhite | ||
text={ content.help.fullService.text } | ||
onClick={ () => | ||
( window.location.href = content.help.fullService.link ) | ||
} | ||
/> | ||
<SupportLink | ||
text={ content.help.support.text } | ||
link={ content.help.support.link } | ||
/> | ||
</HelpPanel> | ||
</div> | ||
); | ||
}; | ||
|
||
export default LearnMore; |
58 changes: 58 additions & 0 deletions
58
src/OnboardingSPA/pages/Steps/Ecommerce/StepTax/Sidebar/LearnMore/contents.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
import { __, sprintf } from '@wordpress/i18n'; | ||
|
||
import { translations } from '../../../../../../utils/locales/translations'; | ||
import { institution } from '@wordpress/icons'; | ||
|
||
const getContents = ( brandName ) => { | ||
return { | ||
introduction: { | ||
heading: __( 'Tax Info', 'wp-module-onboarding' ), | ||
subheading: sprintf( | ||
/* translators: 1: Site 2: Brand 3: Site */ | ||
__( | ||
'A %s that does taxes in one click. That’s pretty novel. That’s a %s Online %s.' | ||
), | ||
translations( 'site' ), | ||
brandName, | ||
translations( 'Site' ) | ||
), | ||
icon: institution, | ||
}, | ||
illustration: { | ||
icon: 'nfd-onboarding-sidebar-learn-more-ecommerce-tax-info-illustration', | ||
}, | ||
information: { | ||
headingWithDescriptions: [ | ||
{ | ||
heading: __( | ||
'Let us crunch the tax rates and receipts, while you expand the business and the boldness', | ||
'wp-module-onboarding' | ||
), | ||
description: sprintf( | ||
/* translators: %s: Site */ | ||
__( | ||
`We can take the frustration out of calculating taxes for purchases your visitors make! Let us auto-calculate taxes and worry about the math, you focus on your %s’s mission.`, | ||
'wp-module-onboarding' | ||
), | ||
translations( 'site' ) | ||
), | ||
}, | ||
], | ||
}, | ||
help: { | ||
fullService: { | ||
text: __( | ||
'Hire Our Full-Service Creative Studio', | ||
'wp-module-onboarding' | ||
), | ||
link: '#', | ||
}, | ||
support: { | ||
text: __( 'Technical Support', 'wp-module-onboarding' ), | ||
link: '#', | ||
}, | ||
}, | ||
}; | ||
}; | ||
|
||
export default getContents; |
Oops, something went wrong.