feat: optimize setup wizard style.

This commit is contained in:
Ahmed Bouhuolia
2020-10-13 11:23:40 +02:00
parent a2eba0cef3
commit eee3109120
4 changed files with 133 additions and 71 deletions

View File

@@ -1,11 +1,21 @@
import React, { useState, useCallback } from 'react';
import { Icon } from 'components';
import { Icon, For } from 'components';
import { FormattedMessage as T } from 'react-intl';
import withAuthenticationActions from 'containers/Authentication/withAuthenticationActions';
import footerLinks from 'config/footerLinks';
import { compose } from 'utils';
function FooterLinkItem({ title, link }) {
return (
<div class="">
<a href={link} target="_blank">{ title }</a>
</div>
);
}
/**
* Wizard setup left section.
*/
@@ -13,8 +23,6 @@ function SetupLeftSection({
// #withAuthenticationActions
requestLogout,
}) {
const [org] = useState('LibyanSpider');
const onClickLogout = useCallback(() => {
requestLogout();
}, [requestLogout]);
@@ -22,44 +30,33 @@ function SetupLeftSection({
return (
<section className={'setup-page__left-section'}>
<div className={'content'}>
<div className={'content-logo'}>
<Icon
icon={'bigcapital'}
width={165}
height={28}
className="bigcapital--alt"
/>
<div className={'content__logo'}>
<Icon icon="bigcapital" className={'bigcapital--alt'} height={37} width={214} />
</div>
<h1 className={'content-title'}>
<h1 className={'content__title'}>
<T id={'register_a_new_organization_now'} />
</h1>
<p className={'content-text'}>
<p className={'content__text'}>
<T id={'you_have_a_bigcapital_account'} />
</p>
<div className={'content-org'}>
<span>
<T id={'welcome'} />
{org},
</span>
<span>
<a onClick={onClickLogout} href="#"><T id={'sign_out'} /></a>
</span>
<div className={'content__organization'}>
<span class="organization-id">Your oragnization ID: <span class="id">12342313</span>,</span><br />
<span class="signout"><a onClick={onClickLogout} href="#"><T id={'sign_out'} /></a></span>
</div>
<div className={'content-contact'}>
<a href={'#!'}>
<p>
<T id={'we_re_here_to_help'} /> {'+21892-791-8381'}
</p>
</a>
<a href={'#!'}>
<p>
<T id={'contact_us_technical_support'} />
</p>
</a>
<span class="content__divider"></span>
<div className={'content__footer'}>
<div className={'content__contact-info'}>
<p><T id={'we_re_here_to_help'} /> {'+21892-791-8381'}</p>
</div>
<div className={'content__links'}>
<For render={FooterLinkItem} of={footerLinks} />
</div>
</div>
</div>
</section>

View File

@@ -52,7 +52,7 @@ function SetupRightSection ({
basename={'/setup'}
history={history}
render={({ step, steps }) => (
<div>
<div class="setup-page__content">
<WizardSetupSteps currentStep={steps.indexOf(step) + 1} />
<TransitionGroup>