give
/
src
/
Promotions
/
WelcomeBanner
/
resources
/
js
/
app
/
components
/
Sections
/
RightContentSection.tsx
give
/
src
/
Promotions
/
WelcomeBanner
/
resources
/
js
/
app
/
components
/
Sections
Last commit date
LeftContentSection.tsx
2 years ago
RightContentSection.tsx
2 years ago
styles.scss
2 years ago
RightContentSection.tsx
44 lines
| 1 | import {__} from '@wordpress/i18n'; |
| 2 | import SpotLight from '../SpotLight'; |
| 3 | import VideoPlayer from '../VideoPlayer'; |
| 4 | import './styles.scss'; |
| 5 | |
| 6 | type RightContentSectionProps = { |
| 7 | assets: string; |
| 8 | }; |
| 9 | |
| 10 | /** |
| 11 | * @since 3.0.0 |
| 12 | */ |
| 13 | export default function RightContentSection({assets}: RightContentSectionProps) { |
| 14 | return ( |
| 15 | <section className={'givewp-welcome-banner-right-content'}> |
| 16 | <h2>{__('Spotlight on awesome features', 'give')}</h2> |
| 17 | <div className={'givewp-welcome-banner-right-content__media-container'}> |
| 18 | <SpotLight |
| 19 | title={__('Design mode', 'give')} |
| 20 | description={__( |
| 21 | 'See exactly what your form looks like for potential donors using the “Design” tab of the builder. Changes are visible immediately.', |
| 22 | 'give' |
| 23 | )} |
| 24 | > |
| 25 | <VideoPlayer src={`${assets}/design-mode.mp4`} fallbackImage={`${assets}/design-mode.min.png`} /> |
| 26 | </SpotLight> |
| 27 | |
| 28 | <SpotLight |
| 29 | title={__('Custom Paragraph and Sections', 'give')} |
| 30 | description={__( |
| 31 | 'Add custom paragraphs or add whole sections anywhere in your form, no code required.', |
| 32 | 'give' |
| 33 | )} |
| 34 | > |
| 35 | <VideoPlayer |
| 36 | src={`${assets}/custom-fields.mp4`} |
| 37 | fallbackImage={`${assets}/custom-fields.min.png`} |
| 38 | /> |
| 39 | </SpotLight> |
| 40 | </div> |
| 41 | </section> |
| 42 | ); |
| 43 | } |
| 44 |