feat: optimize setup style.

This commit is contained in:
Ahmed Bouhuolia
2020-10-13 13:00:28 +02:00
parent eee3109120
commit 1467f1c284
5 changed files with 55 additions and 32 deletions

View File

@@ -8,12 +8,13 @@ export default function DashboardLoadingIndicator({
children, children,
}) { }) {
return ( return (
<div className={classNames(className)}>
<Choose> <Choose>
<Choose.When condition={isLoading}> <Choose.When condition={isLoading}>
<div className={classNames('bigcapital-loading', className)}>
<div class="center"> <div class="center">
<Icon icon="bigcapital" height={37} width={214} /> <Icon icon="bigcapital" height={37} width={214} />
<span>Please wait while resources loading...</span> <span class="text">Please wait while resources loading...</span>
</div>
</div> </div>
</Choose.When> </Choose.When>
@@ -21,6 +22,5 @@ export default function DashboardLoadingIndicator({
{ children } { children }
</Choose.Otherwise> </Choose.Otherwise>
</Choose> </Choose>
</div>
); );
} }

View File

@@ -31,7 +31,7 @@ function SetupLeftSection({
<section className={'setup-page__left-section'}> <section className={'setup-page__left-section'}>
<div className={'content'}> <div className={'content'}>
<div className={'content__logo'}> <div className={'content__logo'}>
<Icon icon="bigcapital" className={'bigcapital--alt'} height={37} width={214} /> <Icon icon="bigcapital" className={'bigcapital--alt'} height={37} width={190} />
</div> </div>
<h1 className={'content__title'}> <h1 className={'content__title'}>

View File

@@ -70,4 +70,6 @@ function SetupSubscriptionForm({
); );
} }
export default compose(withBillingActions)(SetupSubscriptionForm); export default compose(
withBillingActions,
)(SetupSubscriptionForm);

View File

@@ -67,7 +67,7 @@ $pt-font-family: Noto Sans, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto,
@import 'pages/register-organizaton'; @import 'pages/register-organizaton';
// Views // Views
@import 'views/filter-dropdown'; @import 'views/filter-dropdown';
@import 'views/sidebar'; @import 'views/sidebar';
@import 'pages/estimate'; @import 'pages/estimate';
@@ -175,3 +175,24 @@ body.authentication {
.bp3-popover.bp3-tooltip { .bp3-popover.bp3-tooltip {
max-width: 300px; max-width: 300px;
} }
.bigcapital-loading{
height: 100%;
width: 100%;
position: absolute;
display: flex;
.center{
width: auto;
margin: auto;
display: flex;
flex-direction: column;
}
.text{
margin-top: 12px;
opacity: 0.85;
display: none;
}
}

View File

@@ -15,7 +15,7 @@
width: 30%; width: 30%;
height: 1px; height: 1px;
min-width: 300px; min-width: 300px;
max-width: 400px; max-width: 350px;
} }
h1{ h1{
@@ -38,7 +38,7 @@
width: 30%; width: 30%;
left: 0; left: 0;
top: 0; top: 0;
max-width: 400px; max-width: 350px;
min-width: 300px; min-width: 300px;
.content { .content {
@@ -51,26 +51,29 @@
height: 100%; height: 100%;
&__logo { &__logo {
opacity: 0.75; opacity: 0.65;
margin-bottom: 60px; margin-bottom: 60px;
padding-left: 10px; padding-left: 10px;
} }
&__title { &__title {
font-size: 28px; font-size: 26px;
font-weight: 600; font-weight: 600;
line-height: normal; line-height: normal;
margin-bottom: 20px; margin-bottom: 20px;
margin-top: 14px; margin-top: 14px;
color: rgba(255, 255, 255, 0.85); color: rgba(255, 255, 255, 0.75);
} }
&__text { &__text {
font-size: 16px; font-size: 16px;
opacity: 0.85; opacity: 0.75;
margin-bottom: 18px; margin-bottom: 18px;
} }
&__organization { &__organization {
font-size: 16px; font-size: 16px;
opacity: 0.85; opacity: 0.75;
span > a { span > a {
text-decoration: underline; text-decoration: underline;
@@ -78,33 +81,30 @@
margin-top: 6px; margin-top: 6px;
display: inline-block; display: inline-block;
} }
}
.organization-id{
.id{
font-weight: bold;
border-bottom: 2px solid rgba(255, 255, 255, 0.4);
}
}
}
&__divider{ &__divider{
height: 3px; height: 3px;
width: 100px; width: 100px;
background: rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.15);
margin: 22px 0; margin: 20px 0;
} }
&__footer{ &__footer{
margin-top: auto; margin-top: auto;
} }
&__contact-info { &__contact-info {
font-size: 16px; font-size: 16px;
margin-bottom: 20px; margin-bottom: 20px;
opacity: 0.85; opacity: 0.75;
padding-bottom: 5px; padding-bottom: 5px;
border-bottom: 1px solid rgba(255, 255, 255, 0.15); border-bottom: 1px solid rgba(255, 255, 255, 0.15);
} }
&__links{ &__links{
text-align: left; text-align: left;
opacity: 0.75; opacity: 0.55;
> div{ > div{
font-size: 13px; font-size: 13px;