diff options
-rw-r--r-- | packages/demobank-ui/src/pages/LoginForm.tsx | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/packages/demobank-ui/src/pages/LoginForm.tsx b/packages/demobank-ui/src/pages/LoginForm.tsx index 7e5631cfb..83aaff9fa 100644 --- a/packages/demobank-ui/src/pages/LoginForm.tsx +++ b/packages/demobank-ui/src/pages/LoginForm.tsx @@ -70,8 +70,8 @@ export function LoginForm({ username: !username ? i18n.str`Missing username` : // : !USERNAME_REGEX.test(username) - // ? i18n.str`Use letters and numbers only, and start with a lowercase letter` - undefined, + // ? i18n.str`Use letters and numbers only, and start with a lowercase letter` + undefined, password: !password ? i18n.str`Missing password` : undefined, }) ?? busy; @@ -241,14 +241,12 @@ export function LoginForm({ </form> {config.allow_registrations && routeRegister && ( - <p class="mt-10 text-center text-sm text-gray-500 border-t"> - <a - href={routeRegister.url({})} - class="flex mt-4 rounded-md bg-blue-600 px-3 py-1.5 text-sm font-semibold leading-6 text-white shadow-sm hover:bg-blue-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-600" - > - <i18n.Translate>Register</i18n.Translate> - </a> - </p> + <a + href={routeRegister.url({})} + class="flex justify-center border-t mt-4 rounded-md bg-blue-600 px-3 py-1.5 text-sm font-semibold leading-6 text-white shadow-sm hover:bg-blue-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-600" + > + <i18n.Translate>Register</i18n.Translate> + </a> )} </div> </div> |