style: tailwind classname sorting (#1169)
This commit is contained in:
@@ -105,21 +105,21 @@ const CreateAccount: FunctionComponent<Props> = ({ viewControllerManager, applic
|
||||
|
||||
return (
|
||||
<div className="flex items-center">
|
||||
<CircleIcon className="absolute w-8 h-8 top-[40%] -left-28" />
|
||||
<BlueDotIcon className="absolute w-4 h-4 top-[35%] -left-10" />
|
||||
<DiamondIcon className="absolute w-26 h-26 -bottom-5 left-0 -translate-x-1/2 -z-[1]" />
|
||||
<CircleIcon className="absolute top-[40%] -left-28 h-8 w-8" />
|
||||
<BlueDotIcon className="absolute top-[35%] -left-10 h-4 w-4" />
|
||||
<DiamondIcon className="absolute -bottom-5 left-0 -z-[1] h-26 w-26 -translate-x-1/2" />
|
||||
|
||||
<CircleIcon className="absolute w-8 h-8 bottom-[35%] -right-20" />
|
||||
<BlueDotIcon className="absolute w-4 h-4 bottom-[25%] -right-10" />
|
||||
<DiamondIcon className="absolute w-18 h-18 top-0 -right-2 translate-x-1/2 -z-[1]" />
|
||||
<CircleIcon className="absolute bottom-[35%] -right-20 h-8 w-8" />
|
||||
<BlueDotIcon className="absolute bottom-[25%] -right-10 h-4 w-4" />
|
||||
<DiamondIcon className="absolute top-0 -right-2 -z-[1] h-18 w-18 translate-x-1/2" />
|
||||
|
||||
<div className="mr-0 md:mr-12">
|
||||
<h1 className="mt-0 mb-2 font-bold text-2xl">Create your free account</h1>
|
||||
<div className="mb-4 font-medium text-sm">to continue to Standard Notes.</div>
|
||||
<h1 className="mt-0 mb-2 text-2xl font-bold">Create your free account</h1>
|
||||
<div className="mb-4 text-sm font-medium">to continue to Standard Notes.</div>
|
||||
<form onSubmit={handleCreateAccount}>
|
||||
<div className="flex flex-col">
|
||||
<FloatingLabelInput
|
||||
className={`md:min-w-90 min-w-auto ${isEmailInvalid ? 'mb-2' : 'mb-4'}`}
|
||||
className={`min-w-auto md:min-w-90 ${isEmailInvalid ? 'mb-2' : 'mb-4'}`}
|
||||
id="purchase-sign-in-email"
|
||||
type="email"
|
||||
label="Email"
|
||||
@@ -129,9 +129,9 @@ const CreateAccount: FunctionComponent<Props> = ({ viewControllerManager, applic
|
||||
disabled={isCreatingAccount}
|
||||
isInvalid={isEmailInvalid}
|
||||
/>
|
||||
{isEmailInvalid ? <div className="text-danger mb-4">Please provide a valid email.</div> : null}
|
||||
{isEmailInvalid ? <div className="mb-4 text-danger">Please provide a valid email.</div> : null}
|
||||
<FloatingLabelInput
|
||||
className="md:min-w-90 min-w-auto mb-4"
|
||||
className="min-w-auto mb-4 md:min-w-90"
|
||||
id="purchase-create-account-password"
|
||||
type="password"
|
||||
label="Password"
|
||||
@@ -141,7 +141,7 @@ const CreateAccount: FunctionComponent<Props> = ({ viewControllerManager, applic
|
||||
disabled={isCreatingAccount}
|
||||
/>
|
||||
<FloatingLabelInput
|
||||
className={`md:min-w-90 min-w-auto ${isPasswordNotMatching ? 'mb-2' : 'mb-4'}`}
|
||||
className={`min-w-auto md:min-w-90 ${isPasswordNotMatching ? 'mb-2' : 'mb-4'}`}
|
||||
id="create-account-confirm"
|
||||
type="password"
|
||||
label="Repeat password"
|
||||
@@ -152,29 +152,29 @@ const CreateAccount: FunctionComponent<Props> = ({ viewControllerManager, applic
|
||||
isInvalid={isPasswordNotMatching}
|
||||
/>
|
||||
{isPasswordNotMatching ? (
|
||||
<div className="text-danger mb-4">Passwords don't match. Please try again.</div>
|
||||
<div className="mb-4 text-danger">Passwords don't match. Please try again.</div>
|
||||
) : null}
|
||||
</div>
|
||||
</form>
|
||||
<div className="flex flex-col-reverse md:flex-row items-start md:items-center justify-between">
|
||||
<div className="flex flex-col-reverse items-start justify-between md:flex-row md:items-center">
|
||||
<div className="flex flex-col">
|
||||
<button
|
||||
onClick={handleSignInInstead}
|
||||
disabled={isCreatingAccount}
|
||||
className="flex items-start p-0 mb-2 bg-default border-0 font-medium text-info cursor-pointer hover:underline"
|
||||
className="mb-2 flex cursor-pointer items-start border-0 bg-default p-0 font-medium text-info hover:underline"
|
||||
>
|
||||
Sign in instead
|
||||
</button>
|
||||
<button
|
||||
onClick={subscribeWithoutAccount}
|
||||
disabled={isCreatingAccount}
|
||||
className="flex items-start p-0 bg-default border-0 font-medium text-info cursor-pointer hover:underline"
|
||||
className="flex cursor-pointer items-start border-0 bg-default p-0 font-medium text-info hover:underline"
|
||||
>
|
||||
Subscribe without account
|
||||
</button>
|
||||
</div>
|
||||
<Button
|
||||
className="py-2.5 mb-4 md:mb-0"
|
||||
className="mb-4 py-2.5 md:mb-0"
|
||||
primary
|
||||
label={isCreatingAccount ? 'Creating account...' : 'Create account'}
|
||||
onClick={handleCreateAccount}
|
||||
|
||||
Reference in New Issue
Block a user