give
/
src
/
Promotions
/
WelcomeBanner
/
resources
/
js
/
app
/
components
/
Sections
/
LeftContentSection.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
LeftContentSection.tsx
60 lines
| 1 | import Row from '../Row'; |
| 2 | import {__} from '@wordpress/i18n'; |
| 3 | import Badge from '../Badge'; |
| 4 | import {ExternalLink, InternalLink} from '../Link'; |
| 5 | import './styles.scss'; |
| 6 | |
| 7 | type LeftContentSectionProps = { |
| 8 | assets: string; |
| 9 | }; |
| 10 | |
| 11 | /** |
| 12 | * @since 3.0.0 |
| 13 | */ |
| 14 | export default function LeftContentSection({assets}: LeftContentSectionProps) { |
| 15 | return ( |
| 16 | <section className={'givewp-welcome-banner-left-content'}> |
| 17 | <Row> |
| 18 | <header className={'givewp-welcome-banner-row__header'}> |
| 19 | <h1>{__("What's new in GiveWP 3.0", 'give')}</h1> |
| 20 | <p> |
| 21 | {__( |
| 22 | 'GiveWP 3.0 introduces an enhanced forms experience powered by the new Visual Donations Form Builder.', |
| 23 | 'give' |
| 24 | )} |
| 25 | </p> |
| 26 | </header> |
| 27 | </Row> |
| 28 | |
| 29 | <Row> |
| 30 | <span> |
| 31 | <Badge |
| 32 | variant={'secondary'} |
| 33 | caption={__('NEW', 'give')} |
| 34 | iconSrc={`${assets}/shades-white-star-icon.svg`} |
| 35 | alt={'star'} |
| 36 | /> |
| 37 | <h2>{__('Create a donation form', 'give')}</h2> |
| 38 | </span> |
| 39 | <p>{__('This is powered by the new Visual Donation Form Builder', 'give')}</p> |
| 40 | <InternalLink href={'/wp-admin/edit.php?post_type=give_forms&page=givewp-form-builder'}> |
| 41 | {__('Try the new form builder', 'give')} |
| 42 | </InternalLink> |
| 43 | </Row> |
| 44 | |
| 45 | <Row> |
| 46 | <h2>{__('GiveWP 3.0 Updates', 'give')}</h2> |
| 47 | <p> |
| 48 | {__( |
| 49 | 'The team is still working on some new features, add-on and payment gateway compatibility to make your form experience better.', |
| 50 | 'give' |
| 51 | )} |
| 52 | </p> |
| 53 | <ExternalLink href={'https://docs.givewp.com/welcome-docs'}> |
| 54 | {__('Read documentation', 'give')} |
| 55 | </ExternalLink> |
| 56 | </Row> |
| 57 | </section> |
| 58 | ); |
| 59 | } |
| 60 |