Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 23 additions & 1 deletion app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,29 @@ import {
import type { Route } from "./+types/root";
import "./app.css";

export const meta: Route.MetaFunction = () => [{ title: "一人麻雀" }];
const SITE_URL = "https://mahjong.utcode.net";
const SITE_TITLE = "一人麻雀";
const SITE_DESCRIPTION =
"一人麻雀で麻雀の基礎が学べる!ランキングで他のプレイヤーと競おう!";
const OGP_IMAGE_URL = `${SITE_URL}/ogp.jpg`;

export const meta: Route.MetaFunction = () => [
{ title: SITE_TITLE },
{ name: "description", content: SITE_DESCRIPTION },
{ property: "og:type", content: "website" },
{ property: "og:url", content: SITE_URL },
{ property: "og:title", content: SITE_TITLE },
{ property: "og:description", content: SITE_DESCRIPTION },
{ property: "og:image", content: OGP_IMAGE_URL },
{ property: "og:image:width", content: "1200" },
{ property: "og:image:height", content: "630" },
{ property: "og:locale", content: "ja_JP" },
{ property: "og:site_name", content: SITE_TITLE },
{ name: "twitter:card", content: "summary_large_image" },
{ name: "twitter:title", content: SITE_TITLE },
{ name: "twitter:description", content: SITE_DESCRIPTION },
{ name: "twitter:image", content: OGP_IMAGE_URL },
];

export const links: Route.LinksFunction = () => [
{ rel: "icon", href: "/logo.svg", type: "image/svg+xml" },
Expand Down
Binary file added public/ogp.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading