Align welcome wizard left
[MAILPOET-1927]
This commit is contained in:
committed by
Ján Mikláš
parent
9955d0d937
commit
00950b1ec5
@@ -1,17 +1,15 @@
|
|||||||
.mailpoet_welcome_wizard_centered_column {
|
.mailpoet_welcome_wizard_header {
|
||||||
align-items: center;
|
text-align: center;
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mailpoet_welcome_wizard_header img {
|
img {
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.mailpoet_welcome_wizard_steps {
|
.mailpoet_welcome_wizard_steps {
|
||||||
padding-top: 20px;
|
padding-top: 20px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
div.updated, div.error, .notice {
|
div.updated, div.error, .notice {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
@@ -55,44 +53,51 @@
|
|||||||
margin-top: 40px;
|
margin-top: 40px;
|
||||||
max-width: 620px;
|
max-width: 620px;
|
||||||
min-height: 30vh;
|
min-height: 30vh;
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
padding-bottom: 10px;
|
padding-bottom: 10px;
|
||||||
text-align: center;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
p {
|
p {
|
||||||
color: #595c65;
|
color: #595c65;
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
line-height: 22px;
|
line-height: 22px;
|
||||||
margin: 10px 0;
|
margin: 10px 0;
|
||||||
text-align: center;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.welcome_wizard_tracking_sub_title {
|
.welcome_wizard_tracking_sub_title {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.welcome_wizard_tracking_list {
|
.welcome_wizard_tracking_list {
|
||||||
list-style: disc
|
list-style: disc;
|
||||||
|
padding-left: 30px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#mailpoet_sender_form {
|
#mailpoet_sender_form {
|
||||||
margin-top: 30px;
|
margin-top: 30px;
|
||||||
width: 330px;
|
width: 330px;
|
||||||
|
|
||||||
label {
|
label {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type="text"] {
|
input[type="text"] {
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
width: 328px;
|
width: 328px;
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type="submit"] {
|
input[type="submit"] {
|
||||||
margin: 50px 0 25px 0;
|
margin: 50px 0 25px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
a.sender_form_small {
|
a.sender_form_small {
|
||||||
color: #595c65;
|
color: #595c65;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
@@ -107,21 +112,21 @@
|
|||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
padding-top: 30px;
|
padding-top: 30px;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
left: 0;
|
left: 0;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
}
|
}
|
||||||
iframe {
|
|
||||||
margin-left: 155px;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media screen and (max-width: 520px) {
|
@media screen and (max-width: 520px) {
|
||||||
padding: 0 10px;
|
padding: 0 10px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
iframe {
|
iframe {
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
position: static;
|
position: static;
|
||||||
}
|
}
|
||||||
@@ -130,8 +135,9 @@
|
|||||||
|
|
||||||
.mailpoet_welcome_wizard_step_controls {
|
.mailpoet_welcome_wizard_step_controls {
|
||||||
margin-top: 50px;
|
margin-top: 50px;
|
||||||
.button {
|
|
||||||
margin: 0 10px;
|
.button + .button {
|
||||||
|
margin-left: 20px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|||||||
import SteppedProgressBar from '../common/stepped_progess_bar.jsx';
|
import SteppedProgressBar from '../common/stepped_progess_bar.jsx';
|
||||||
|
|
||||||
const WelcomeWizardHeader = props => (
|
const WelcomeWizardHeader = props => (
|
||||||
<div className="mailpoet_welcome_wizard_centered_column mailpoet_welcome_wizard_header">
|
<div className="mailpoet_welcome_wizard_header">
|
||||||
<img src={props.logo_src} width="200" height="87" alt="MailPoet logo" />
|
<img src={props.logo_src} width="200" height="87" alt="MailPoet logo" />
|
||||||
{
|
{
|
||||||
props.current_step <= props.steps_count
|
props.current_step <= props.steps_count
|
||||||
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|||||||
import MailPoet from 'mailpoet';
|
import MailPoet from 'mailpoet';
|
||||||
|
|
||||||
const WelcomeWizardEmailCourseStep = props => (
|
const WelcomeWizardEmailCourseStep = props => (
|
||||||
<div className="mailpoet_welcome_wizard_step_content mailpoet_welcome_wizard_centered_column">
|
<div className="mailpoet_welcome_wizard_step_content">
|
||||||
<h1>{MailPoet.I18n.t('welcomeWizardEmailCourseTitle')}</h1>
|
<h1>{MailPoet.I18n.t('welcomeWizardEmailCourseTitle')}</h1>
|
||||||
<p>{MailPoet.I18n.t('welcomeWizardEmailCourseText')}</p>
|
<p>{MailPoet.I18n.t('welcomeWizardEmailCourseText')}</p>
|
||||||
<div className="mailpoet_welcome_wizard_course_form_box">
|
<div className="mailpoet_welcome_wizard_course_form_box">
|
||||||
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|||||||
import MailPoet from 'mailpoet';
|
import MailPoet from 'mailpoet';
|
||||||
|
|
||||||
const WelcomeWizardMigratedUserStep = props => (
|
const WelcomeWizardMigratedUserStep = props => (
|
||||||
<div className="mailpoet_welcome_wizard_step_content mailpoet_welcome_wizard_centered_column">
|
<div className="mailpoet_welcome_wizard_step_content">
|
||||||
<h1>{MailPoet.I18n.t('welcomeWizardLetsStartTitle')}</h1>
|
<h1>{MailPoet.I18n.t('welcomeWizardLetsStartTitle')}</h1>
|
||||||
<p>{MailPoet.I18n.t('welcomeWizardSenderMigratedUserText')}</p>
|
<p>{MailPoet.I18n.t('welcomeWizardSenderMigratedUserText')}</p>
|
||||||
<div className="mailpoet_welcome_wizard_step_controls">
|
<div className="mailpoet_welcome_wizard_step_controls">
|
||||||
|
@@ -4,14 +4,12 @@ import MailPoet from 'mailpoet';
|
|||||||
import jQuery from 'jquery';
|
import jQuery from 'jquery';
|
||||||
|
|
||||||
const WelcomeWizardSenderStep = props => (
|
const WelcomeWizardSenderStep = props => (
|
||||||
<div className="mailpoet_welcome_wizard_step_content mailpoet_welcome_wizard_centered_column">
|
<div className="mailpoet_welcome_wizard_step_content">
|
||||||
<h1>{MailPoet.I18n.t('welcomeWizardLetsStartTitle')}</h1>
|
<h1>{MailPoet.I18n.t('welcomeWizardLetsStartTitle')}</h1>
|
||||||
<p>{MailPoet.I18n.t('welcomeWizardSenderText')}</p>
|
<p>{MailPoet.I18n.t('welcomeWizardSenderText')}</p>
|
||||||
<form
|
<form
|
||||||
id="mailpoet_sender_form"
|
id="mailpoet_sender_form"
|
||||||
className={
|
className={props.loading ? 'mailpoet_sender_form_loading' : ''}
|
||||||
`mailpoet_welcome_wizard_centered_column ${(props.loading ? 'mailpoet_sender_form_loading' : '')}`
|
|
||||||
}
|
|
||||||
onSubmit={(e) => {
|
onSubmit={(e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
if (!jQuery('#mailpoet_sender_form').parsley().validate()) { return; }
|
if (!jQuery('#mailpoet_sender_form').parsley().validate()) { return; }
|
||||||
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|||||||
import MailPoet from 'mailpoet';
|
import MailPoet from 'mailpoet';
|
||||||
|
|
||||||
const WelcomeWizardUsageTrackingStep = props => (
|
const WelcomeWizardUsageTrackingStep = props => (
|
||||||
<div className="mailpoet_welcome_wizard_step_content mailpoet_welcome_wizard_centered_column">
|
<div className="mailpoet_welcome_wizard_step_content">
|
||||||
<h1>{MailPoet.I18n.t('welcomeWizardUsageTrackingStepTitle')}</h1>
|
<h1>{MailPoet.I18n.t('welcomeWizardUsageTrackingStepTitle')}</h1>
|
||||||
<p>{MailPoet.I18n.t('welcomeWizardTrackingText')}</p>
|
<p>{MailPoet.I18n.t('welcomeWizardTrackingText')}</p>
|
||||||
<h2 className="welcome_wizard_tracking_sub_title">{MailPoet.I18n.t('welcomeWizardUsageTrackingStepSubTitle')}</h2>
|
<h2 className="welcome_wizard_tracking_sub_title">{MailPoet.I18n.t('welcomeWizardUsageTrackingStepSubTitle')}</h2>
|
||||||
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|||||||
import MailPoet from 'mailpoet';
|
import MailPoet from 'mailpoet';
|
||||||
|
|
||||||
const WelcomeWizardWooCommerceStep = props => (
|
const WelcomeWizardWooCommerceStep = props => (
|
||||||
<div className="mailpoet_welcome_wizard_step_content mailpoet_welcome_wizard_centered_column">
|
<div className="mailpoet_welcome_wizard_step_content">
|
||||||
<h1>{MailPoet.I18n.t('welcomeWizardWooCommerceStepTitle')}</h1>
|
<h1>{MailPoet.I18n.t('welcomeWizardWooCommerceStepTitle')}</h1>
|
||||||
<p>
|
<p>
|
||||||
{MailPoet.I18n.t('welcomeWizardHelpingShopOwnersText')}
|
{MailPoet.I18n.t('welcomeWizardHelpingShopOwnersText')}
|
||||||
|
@@ -76,7 +76,7 @@ const WelcomeWizardStepsController = (props) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="mailpoet_welcome_wizard_steps mailpoet_welcome_wizard_centered_column">
|
<div className="mailpoet_welcome_wizard_steps">
|
||||||
<WelcomeWizardHeader
|
<WelcomeWizardHeader
|
||||||
current_step={step}
|
current_step={step}
|
||||||
steps_count={stepsCount}
|
steps_count={stepsCount}
|
||||||
|
Reference in New Issue
Block a user