Move logo to the top bar in the welcome wizard

[MAILPOET-4819]
This commit is contained in:
Rodrigo Primo
2022-12-02 13:09:22 -03:00
committed by Aschepikov
parent 146f5881f7
commit 88efb1f3d1
3 changed files with 13 additions and 14 deletions

View File

@@ -22,6 +22,12 @@
}
}
#mailpoet-wizard-container {
.mailpoet-top-bar {
left: 0;
}
}
.mailpoet-wizard-logo {
margin-bottom: 100px;
text-align: center;

View File

@@ -4,19 +4,9 @@ import { WelcomeWizardStepLayoutBody } from './step_layout_body.jsx';
function WelcomeWizardStepLayout(props) {
return (
<>
<div className="mailpoet-wizard-logo">
<img
src={window.mailpoet_logo_url}
width="160"
height="50"
alt="MailPoet logo"
/>
</div>
<WelcomeWizardStepLayoutBody illustrationUrl={props.illustrationUrl}>
{props.children}
</WelcomeWizardStepLayoutBody>
</>
<WelcomeWizardStepLayoutBody illustrationUrl={props.illustrationUrl}>
{props.children}
</WelcomeWizardStepLayoutBody>
);
}

View File

@@ -17,6 +17,7 @@ import {
} from './steps_numbers.jsx';
import { Steps } from '../common/steps/steps';
import { StepsContent } from '../common/steps/steps_content';
import { TopBar } from '../common/top_bar/top_bar';
function WelcomeWizardStepsController(props) {
const stepsCount = getStepsCount();
@@ -101,7 +102,9 @@ function WelcomeWizardStepsController(props) {
return (
<>
<Steps count={stepsCount} current={step} />
<TopBar>
<Steps count={stepsCount} current={step} />
</TopBar>
<StepsContent>
{stepName === 'WelcomeWizardSenderStep' ? (
<WelcomeWizardStepLayout