PluginProbe
Elementor Website Builder – more than just a page builder / 3.8.0-beta1
Elementor Website Builder – more than just a page builder v3.8.0-beta1
4.3.4 4.3.3 4.3.2 4.3.1 4.3.0 4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 All 457 releases
elementor / app / modules / site-editor / assets / js / pages / promotion.js

promotion.js in Elementor Website Builder – more than just a page builder 3.8.0-beta1, at app/modules/site-editor/assets/js/pages/promotion.js

60 lines 2.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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