fix: meta

This commit is contained in:
David Nguyen
2025-02-12 19:10:41 +11:00
parent 4c57095ee1
commit 1d7f3723bc
18 changed files with 134 additions and 59 deletions

View File

@ -3,8 +3,10 @@ import { Link } from 'react-router';
import { Button } from '@documenso/ui/primitives/button';
import { appMetaTags } from '~/utils/meta';
export function meta() {
return [{ title: 'Forgot password' }];
return appMetaTags('Forgot password');
}
export default function ForgotPasswordPage() {

View File

@ -2,9 +2,10 @@ import { Trans } from '@lingui/react/macro';
import { Link } from 'react-router';
import { ForgotPasswordForm } from '~/components/forms/forgot-password';
import { appMetaTags } from '~/utils/meta';
export function meta() {
return [{ title: 'Forgot Password' }];
return appMetaTags('Forgot Password');
}
export default function ForgotPasswordPage() {

View File

@ -4,11 +4,12 @@ import { Link, redirect } from 'react-router';
import { getResetTokenValidity } from '@documenso/lib/server-only/user/get-reset-token-validity';
import { ResetPasswordForm } from '~/components/forms/reset-password';
import { appMetaTags } from '~/utils/meta';
import type { Route } from './+types/reset-password.$token';
export function meta() {
return [{ title: 'Reset Password' }];
return appMetaTags('Reset Password');
}
export async function loader({ params }: Route.LoaderArgs) {

View File

@ -3,8 +3,10 @@ import { Link } from 'react-router';
import { Button } from '@documenso/ui/primitives/button';
import { appMetaTags } from '~/utils/meta';
export function meta() {
return [{ title: 'Reset Password' }];
return appMetaTags('Reset Password');
}
export default function ResetPasswordPage() {

View File

@ -1,6 +1,6 @@
import { redirect } from 'react-router';
import { NEXT_PUBLIC_MARKETING_URL } from '@documenso/lib/constants/app';
import { NEXT_PUBLIC_MARKETING_URL, NEXT_PUBLIC_WEBAPP_URL } from '@documenso/lib/constants/app';
import type { Route } from './+types/share.$slug';
@ -10,20 +10,36 @@ export function meta({ params: { slug } }: Route.MetaArgs) {
{ title: 'Documenso - Share' },
{ description: 'I just signed a document in style with Documenso!' },
{
openGraph: {
title: 'Documenso - Join the open source signing revolution',
description: 'I just signed with Documenso!',
type: 'website',
images: [`/share/${slug}/opengraph`],
},
property: 'og:title',
title: 'Documenso - Join the open source signing revolution',
},
{
twitter: {
site: '@documenso',
card: 'summary_large_image',
images: [`/share/${slug}/opengraph`],
description: 'I just signed with Documenso!',
},
property: 'og:description',
description: 'I just signed with Documenso!',
},
{
property: 'og:type',
type: 'website',
},
{
property: 'og:images',
images: `${NEXT_PUBLIC_WEBAPP_URL()}/share/${slug}/opengraph`,
},
{
name: 'twitter:site',
site: '@documenso',
},
{
name: 'twitter:card',
card: 'summary_large_image',
},
{
name: 'twitter:images',
images: `${NEXT_PUBLIC_WEBAPP_URL()}/share/${slug}/opengraph`,
},
{
name: 'twitter:description',
description: 'I just signed with Documenso!',
},
];
}

View File

@ -10,11 +10,12 @@ import {
import { env } from '@documenso/lib/utils/env';
import { SignInForm } from '~/components/forms/signin';
import { appMetaTags } from '~/utils/meta';
import type { Route } from './+types/signin';
export function meta() {
return [{ title: 'Sign In' }];
return appMetaTags('Sign In');
}
export function loader() {

View File

@ -4,11 +4,12 @@ import { IS_GOOGLE_SSO_ENABLED, IS_OIDC_SSO_ENABLED } from '@documenso/lib/const
import { env } from '@documenso/lib/utils/env';
import { SignUpForm } from '~/components/forms/signup';
import { appMetaTags } from '~/utils/meta';
import type { Route } from './+types/signup';
export function meta() {
return [{ title: 'Sign Up' }];
return appMetaTags('Sign Up');
}
export function loader() {

View File

@ -4,8 +4,10 @@ import { Link } from 'react-router';
import { Button } from '@documenso/ui/primitives/button';
import { appMetaTags } from '~/utils/meta';
export function meta() {
return [{ title: 'Verify Email' }];
return appMetaTags('Verify Email');
}
export default function EmailVerificationWithoutTokenPage() {