chore: update signup page style

This commit is contained in:
boojack 2022-07-01 19:53:31 +08:00
parent 1b60180b79
commit 0945b14deb
2 changed files with 11 additions and 11 deletions

View File

@ -1,8 +1,7 @@
@import "./mixin.less"; @import "./mixin.less";
.page-wrapper.signin { .page-wrapper.signin {
.flex(row, center, center); @apply flex flex-row justify-center items-center w-full min-h-screen bg-white;
@apply w-full min-h-screen bg-white;
> .page-container { > .page-container {
@apply w-80 max-w-full py-4 -mt-16; @apply w-80 max-w-full py-4 -mt-16;
@ -24,12 +23,10 @@
} }
> .page-content-container { > .page-content-container {
.flex(column, flex-start, flex-start); @apply flex flex-col justify-start items-start w-full;
@apply w-full;
> .form-item-container { > .form-item-container {
.flex(column, flex-start, flex-start); @apply flex flex-col justify-start items-start relative w-full text-base mt-2;
@apply relative w-full text-base mt-2;
> .normal-text { > .normal-text {
@apply absolute top-3 left-3 px-1 leading-10 flex-shrink-0 text-base cursor-text text-gray-400 bg-transparent transition-all select-none; @apply absolute top-3 left-3 px-1 leading-10 flex-shrink-0 text-base cursor-text text-gray-400 bg-transparent transition-all select-none;
@ -54,8 +51,7 @@
} }
> .action-btns-container { > .action-btns-container {
.flex(row, flex-end, center); @apply flex flex-row justify-end items-center w-full mt-2;
@apply w-full mt-2;
> .btn { > .btn {
@apply px-1 py-2 text-sm rounded hover:opacity-80; @apply px-1 py-2 text-sm rounded hover:opacity-80;
@ -71,7 +67,11 @@
} }
> .tip-text { > .tip-text {
@apply w-full text-sm mt-4 text-gray-500 text-right whitespace-pre-wrap; @apply w-auto inline-block float-right text-sm mt-4 text-gray-500 text-right whitespace-pre-wrap;
&.owner-tip {
@apply bg-blue-500 text-white px-2 py-1 rounded;
}
} }
} }
} }

View File

@ -148,10 +148,10 @@ const Signin: React.FC<Props> = () => {
</button> </button>
)} )}
</div> </div>
<p className="tip-text"> <p className={`tip-text ${siteOwner || pageLoadingState.isLoading ? "" : "owner-tip"}`}>
{siteOwner || pageLoadingState.isLoading {siteOwner || pageLoadingState.isLoading
? "If you don't have an account, please\ncontact the site owner." ? "If you don't have an account, please\ncontact the site owner."
: "You are registering as the site owner."} : "You are registering as the Site Owner."}
</p> </p>
</div> </div>
</div> </div>