* hide link to register page

* have google not index auth pages
This commit is contained in:
m5r 2022-07-13 23:56:14 +02:00
parent 31e5d00c74
commit cb655d9f77
5 changed files with 11 additions and 7 deletions

View File

@ -16,7 +16,7 @@ export default function SignInPage() {
<section> <section>
<header> <header>
<h2 className="mt-6 text-center text-3xl leading-9 font-extrabold text-gray-900">Welcome back!</h2> <h2 className="mt-6 text-center text-3xl leading-9 font-extrabold text-gray-900">Welcome back!</h2>
<p className="mt-2 text-center text-sm leading-5 text-gray-600"> {/*<p className="mt-2 text-center text-sm leading-5 text-gray-600">
Need an account?&nbsp; Need an account?&nbsp;
<Link <Link
to="/register" to="/register"
@ -25,7 +25,7 @@ export default function SignInPage() {
> >
Create yours for free Create yours for free
</Link> </Link>
</p> </p>*/}
</header> </header>
<Form method="post" action={`./?${searchParams}`} className="mt-8 mx-auto w-full max-w-sm"> <Form method="post" action={`./?${searchParams}`} className="mt-8 mx-auto w-full max-w-sm">
@ -62,11 +62,7 @@ export default function SignInPage() {
} }
/> />
<Button <Button type="submit" disabled={transition.state === "submitting"} tabIndex={3}>
type="submit"
disabled={transition.state === "submitting"}
tabIndex={3}
>
Sign in Sign in
</Button> </Button>
</Form> </Form>

View File

@ -10,4 +10,6 @@ export const action = forgotPasswordAction;
export const loader = forgotPasswordLoader; export const loader = forgotPasswordLoader;
export const meta: MetaFunction = () => ({ export const meta: MetaFunction = () => ({
...getSeoMeta({ title: "Forgot password" }), ...getSeoMeta({ title: "Forgot password" }),
robots: "noindex",
googlebot: "noindex",
}); });

View File

@ -10,4 +10,6 @@ export const action = registerAction;
export const loader = registerLoader; export const loader = registerLoader;
export const meta: MetaFunction = () => ({ export const meta: MetaFunction = () => ({
...getSeoMeta({ title: "Register" }), ...getSeoMeta({ title: "Register" }),
robots: "noindex",
googlebot: "noindex",
}); });

View File

@ -10,4 +10,6 @@ export const action = resetPasswordAction;
export const loader = resetPasswordLoader; export const loader = resetPasswordLoader;
export const meta: MetaFunction = () => ({ export const meta: MetaFunction = () => ({
...getSeoMeta({ title: "Reset password" }), ...getSeoMeta({ title: "Reset password" }),
robots: "noindex",
googlebot: "noindex",
}); });

View File

@ -10,4 +10,6 @@ export const action = signInAction;
export const loader = signInLoader; export const loader = signInLoader;
export const meta: MetaFunction = () => ({ export const meta: MetaFunction = () => ({
...getSeoMeta({ title: "Sign in" }), ...getSeoMeta({ title: "Sign in" }),
robots: "noindex",
googlebot: "noindex",
}); });