Default preview image for Discord etc. links

This commit is contained in:
Kalle
2022-09-14 23:04:52 +03:00
parent 84d042431e
commit 35dbe4e6cc
3 changed files with 4 additions and 0 deletions

View File

@@ -31,6 +31,7 @@ import { useChangeLanguage } from "remix-i18next";
import { useTranslation } from "react-i18next";
import { Theme, ThemeHead, useTheme, ThemeProvider } from "./modules/theme";
import { getThemeSession } from "./modules/theme/session.server";
import { COMMON_PREVIEW_IMAGE } from "./utils/urls";
export const unstable_shouldReload: ShouldReloadFunction = () => false;
@@ -49,6 +50,7 @@ export const meta: MetaFunction = () => ({
title: "sendou.ink",
viewport: "width=device-width,initial-scale=1",
"theme-color": "#8263de",
"og:image": COMMON_PREVIEW_IMAGE,
});
export interface RootLoaderData {

View File

@@ -28,6 +28,8 @@ export const CALENDAR_PAGE = "/calendar";
export const STOP_IMPERSONATING_URL = "/auth/impersonate/stop";
export const SEED_URL = "/seed";
export const COMMON_PREVIEW_IMAGE = "/img/layout/common-preview.png";
export const userPage = (discordId: string) => `/u/${discordId}`;
export const userBuildsPage = (discordId: string) =>
`${userPage(discordId)}/builds`;

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 MiB