diff --git a/mailpoet/assets/css/src/components-automation-listing/_sections.scss b/mailpoet/assets/css/src/components-automation-listing/_sections.scss index 4bab8e104d..18a77c7bba 100644 --- a/mailpoet/assets/css/src/components-automation-listing/_sections.scss +++ b/mailpoet/assets/css/src/components-automation-listing/_sections.scss @@ -11,6 +11,19 @@ } .mailpoet-automation-section { + @include full-width; +} + +.mailpoet-automation-white-background { + background: #fff; +} + +.mailpoet-automation-section-content { + display: block; + margin: auto; + max-width: 1072px; + padding: 65px 0; + h2 { font-size: 23px; font-weight: 400; @@ -29,14 +42,10 @@ } .mailpoet-automation-section-hero { - background: #fff; display: flex; flex-wrap: wrap; justify-content: space-between; margin-top: -20px; - padding: 65px; - - @include full-width; h1 { font-size: 32px; @@ -71,7 +80,7 @@ } .mailpoet-section-templates { - padding: 48px 64px 48px 84px; + padding: 48px 0; .components-button { display: block; @@ -129,13 +138,9 @@ } .mailpoet-section-build-your-own { - background: #fff; display: flex; flex-wrap: wrap; justify-content: space-between; - padding: 64px; - - @include full-width; ol { list-style: decimal-leading-zero inside; diff --git a/mailpoet/assets/js/src/automation/sections/build-your-own-section.tsx b/mailpoet/assets/js/src/automation/sections/build-your-own-section.tsx index d260f6c79c..17f969c321 100644 --- a/mailpoet/assets/js/src/automation/sections/build-your-own-section.tsx +++ b/mailpoet/assets/js/src/automation/sections/build-your-own-section.tsx @@ -46,39 +46,41 @@ export function BuildYourOwnSection(): JSX.Element { const selectedItem = list.filter((item) => item.slug === itemOpen)[0]; return ( -
-
-

{__('Build your own automation workflows', 'mailpoet')}

-

- {__( - 'Create customized email sequences with our new automation editor.', - 'mailpoet', - )} -

-
    - {list.map((item, index) => ( -
  1. -
    - {index < 10 ? `0${index + 1}` : index + 1} -
    -
    - -

    {item.text}

    -
    -
  2. - ))} -
+
+
+
+

{__('Build your own automation workflows', 'mailpoet')}

+

+ {__( + 'Create customized email sequences with our new automation editor.', + 'mailpoet', + )} +

+
    + {list.map((item, index) => ( +
  1. +
    + {index < 10 ? `0${index + 1}` : index + 1} +
    +
    + +

    {item.text}

    +
    +
  2. + ))} +
+
+ {selectedItem.title}
- {selectedItem.title}
); } diff --git a/mailpoet/assets/js/src/automation/sections/hero-section.tsx b/mailpoet/assets/js/src/automation/sections/hero-section.tsx index f5654f912f..c5d00f8ec3 100644 --- a/mailpoet/assets/js/src/automation/sections/hero-section.tsx +++ b/mailpoet/assets/js/src/automation/sections/hero-section.tsx @@ -9,33 +9,35 @@ export function HeroSection(): JSX.Element { [], ); return ( -
-
- - {__('Automations', 'mailpoet')} - -

{__('Better engagement begins with automation', 'mailpoet')}

-

- {__( - 'Send emails that inform, reward, and engage your audience through powerful segmenting, scheduling, and design tools.', - 'mailpoet', - )} -

+
+
+
+ + {__('Automations', 'mailpoet')} + +

{__('Better engagement begins with automation', 'mailpoet')}

+

+ {__( + 'Send emails that inform, reward, and engage your audience through powerful segmenting, scheduling, and design tools.', + 'mailpoet', + )} +

- { - window.location.href = MailPoet.urls.automationTemplates; - }} - title={__('Start with a template', 'mailpoet')} - > - {buttonActions} - + { + window.location.href = MailPoet.urls.automationTemplates; + }} + title={__('Start with a template', 'mailpoet')} + > + {buttonActions} + +
+ {__('Welcome',
- {__('Welcome',
); } diff --git a/mailpoet/assets/js/src/automation/sections/templates-section.tsx b/mailpoet/assets/js/src/automation/sections/templates-section.tsx index 99db36a132..cd408e8370 100644 --- a/mailpoet/assets/js/src/automation/sections/templates-section.tsx +++ b/mailpoet/assets/js/src/automation/sections/templates-section.tsx @@ -8,26 +8,28 @@ export function TemplatesSection(): JSX.Element { const templates = workflowTemplates.slice(0, 3); return ( -
-

{__('Explore essentials', 'mailpoet')}

-

- {__( - 'Choose from our list of pre-made templates and make it your own.', - 'mailpoet', - )} -

-
    - {templates.map((template) => ( - - ))} -
- +
+
+

{__('Explore essentials', 'mailpoet')}

+

+ {__( + 'Choose from our list of pre-made templates and make it your own.', + 'mailpoet', + )} +

+
    + {templates.map((template) => ( + + ))} +
+ +
); }