| 1 |
import AllPartsButton from '../organisms/all-parts-button'; |
| 2 |
import Button from 'elementor-app/ui/molecules/button'; |
| 3 |
import CardOverlay from 'elementor-app/ui/card/card-overlay'; |
| 4 |
import Grid from 'elementor-app/ui/grid/grid'; |
| 5 |
import Heading from 'elementor-app/ui/atoms/heading'; |
| 6 |
import Layout from '../templates/layout'; |
| 7 |
import SiteParts from '../organisms/site-parts'; |
| 8 |
import Text from 'elementor-app/ui/atoms/text'; |
| 9 |
|
| 10 |
import './promotion.scss'; |
| 11 |
|
| 12 |
export default function Promotion() { |
| 13 |
const promotionUrl = 'https://go.elementor.com/go-pro-theme-builder/', |
| 14 |
PromotionHoverElement = ( props ) => { |
| 15 |
const promotionUrlWithType = `${ promotionUrl }?type=${ props.type }`; |
| 16 |
return ( |
| 17 |
<CardOverlay className="e-site-editor__promotion-overlay"> |
| 18 |
<a className="e-site-editor__promotion-overlay__link" target="_blank" rel="noopener noreferrer" href={ promotionUrlWithType }> |
| 19 |
<i className="e-site-editor__promotion-overlay__icon eicon-lock" /> |
| 20 |
<Button size="sm" color="cta" variant="contained" text={ __( 'Upgrade', 'elementor' ) } /> |
| 21 |
</a> |
| 22 |
</CardOverlay> |
| 23 |
); |
| 24 |
}; |
| 25 |
|
| 26 |
PromotionHoverElement.propTypes = { |
| 27 |
className: PropTypes.string, |
| 28 |
type: PropTypes.string.isRequired, |
| 29 |
}; |
| 30 |
|
| 31 |
return ( |
| 32 |
<Layout allPartsButton={ <AllPartsButton promotion /> } promotion> |
| 33 |
<section className="e-site-editor__promotion"> |
| 34 |
<Grid container className="page-header"> |
| 35 |
<Grid item sm={ 7 } justify="end"> |
| 36 |
<Heading variant="h1"> |
| 37 |
{ __( 'Customize every part of your site', 'elementor' ) } |
| 38 |
</Heading> |
| 39 |
<Text> |
| 40 |
{ __( 'Get total control, consistency and a faster workflow by designing the recurring parts that make up a complete website like the Header & Footer, Archive, 404, WooCommerce pages and more.', 'elementor' ) } |
| 41 |
</Text> |
| 42 |
</Grid> |
| 43 |
<Grid item container justify="end" alignItems="start" sm={ 5 }> |
| 44 |
<Button |
| 45 |
size="sm" |
| 46 |
color="cta" |
| 47 |
variant="contained" |
| 48 |
url={ promotionUrl } |
| 49 |
target="_blank" |
| 50 |
text={ __( 'Upgrade Now', 'elementor' ) } |
| 51 |
/> |
| 52 |
</Grid> |
| 53 |
</Grid> |
| 54 |
<hr className="eps-separator" /> |
| 55 |
<SiteParts hoverElement={ PromotionHoverElement } /> |
| 56 |
</section> |
| 57 |
</Layout> |
| 58 |
); |
| 59 |
} |
| 60 |
|