Add mailpoet-automation-section-content to define a max-width for section content
[MAILPOET-4536]
This commit is contained in:
@ -11,6 +11,19 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.mailpoet-automation-section {
|
.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 {
|
h2 {
|
||||||
font-size: 23px;
|
font-size: 23px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
@ -29,14 +42,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.mailpoet-automation-section-hero {
|
.mailpoet-automation-section-hero {
|
||||||
background: #fff;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
margin-top: -20px;
|
margin-top: -20px;
|
||||||
padding: 65px;
|
|
||||||
|
|
||||||
@include full-width;
|
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
font-size: 32px;
|
font-size: 32px;
|
||||||
@ -71,7 +80,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.mailpoet-section-templates {
|
.mailpoet-section-templates {
|
||||||
padding: 48px 64px 48px 84px;
|
padding: 48px 0;
|
||||||
|
|
||||||
.components-button {
|
.components-button {
|
||||||
display: block;
|
display: block;
|
||||||
@ -129,13 +138,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.mailpoet-section-build-your-own {
|
.mailpoet-section-build-your-own {
|
||||||
background: #fff;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
padding: 64px;
|
|
||||||
|
|
||||||
@include full-width;
|
|
||||||
|
|
||||||
ol {
|
ol {
|
||||||
list-style: decimal-leading-zero inside;
|
list-style: decimal-leading-zero inside;
|
||||||
|
@ -46,7 +46,8 @@ export function BuildYourOwnSection(): JSX.Element {
|
|||||||
const selectedItem = list.filter((item) => item.slug === itemOpen)[0];
|
const selectedItem = list.filter((item) => item.slug === itemOpen)[0];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<section className="mailpoet-automation-section mailpoet-section-build-your-own">
|
<section className="mailpoet-automation-section mailpoet-automation-white-background">
|
||||||
|
<div className="mailpoet-automation-section-content mailpoet-section-build-your-own">
|
||||||
<div>
|
<div>
|
||||||
<h2>{__('Build your own automation workflows', 'mailpoet')}</h2>
|
<h2>{__('Build your own automation workflows', 'mailpoet')}</h2>
|
||||||
<p>
|
<p>
|
||||||
@ -79,6 +80,7 @@ export function BuildYourOwnSection(): JSX.Element {
|
|||||||
</ol>
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
<img src={selectedItem.image} alt={selectedItem.title} />
|
<img src={selectedItem.image} alt={selectedItem.title} />
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,8 @@ export function HeroSection(): JSX.Element {
|
|||||||
[],
|
[],
|
||||||
);
|
);
|
||||||
return (
|
return (
|
||||||
<section className="mailpoet-automation-section mailpoet-automation-section-hero">
|
<section className="mailpoet-automation-section mailpoet-automation-white-background">
|
||||||
|
<div className="mailpoet-automation-section-content mailpoet-automation-section-hero">
|
||||||
<div>
|
<div>
|
||||||
<span className="mailpoet-automation-preheading">
|
<span className="mailpoet-automation-preheading">
|
||||||
{__('Automations', 'mailpoet')}
|
{__('Automations', 'mailpoet')}
|
||||||
@ -36,6 +37,7 @@ export function HeroSection(): JSX.Element {
|
|||||||
src={`${MailPoet.cdnUrl}automation/sections/hero.png`}
|
src={`${MailPoet.cdnUrl}automation/sections/hero.png`}
|
||||||
alt={__('Welcome', 'mailpoet')}
|
alt={__('Welcome', 'mailpoet')}
|
||||||
/>
|
/>
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,8 @@ export function TemplatesSection(): JSX.Element {
|
|||||||
const templates = workflowTemplates.slice(0, 3);
|
const templates = workflowTemplates.slice(0, 3);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<section className="mailpoet-automation-section mailpoet-section-templates">
|
<section className="mailpoet-automation-section">
|
||||||
|
<div className="mailpoet-automation-section-content mailpoet-section-templates">
|
||||||
<h2>{__('Explore essentials', 'mailpoet')}</h2>
|
<h2>{__('Explore essentials', 'mailpoet')}</h2>
|
||||||
<p>
|
<p>
|
||||||
{__(
|
{__(
|
||||||
@ -28,6 +29,7 @@ export function TemplatesSection(): JSX.Element {
|
|||||||
<Button variant="link" href={MailPoet.urls.automationTemplates}>
|
<Button variant="link" href={MailPoet.urls.automationTemplates}>
|
||||||
{__('Browse all templates →', 'mailpoet')}
|
{__('Browse all templates →', 'mailpoet')}
|
||||||
</Button>
|
</Button>
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user