mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-14 15:16:09 -05:00
title on frontpage
This commit is contained in:
@@ -2,10 +2,11 @@ import Head from "next/head";
|
||||
|
||||
interface Props {
|
||||
title: string;
|
||||
appendSendouInk?: boolean;
|
||||
}
|
||||
|
||||
const MyHead: React.FC<Props> = ({ title }) => {
|
||||
const pageTitle = `${title} | sendou.ink`;
|
||||
const MyHead: React.FC<Props> = ({ title, appendSendouInk = true }) => {
|
||||
const pageTitle = appendSendouInk ? `${title} | sendou.ink` : title;
|
||||
return (
|
||||
<Head>
|
||||
<title>{pageTitle}</title>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { Box, Container, Flex, Heading, useColorMode } from "@chakra-ui/react";
|
||||
import { t, Trans } from "@lingui/macro";
|
||||
import MyHead from "components/common/MyHead";
|
||||
import MyLink from "components/common/MyLink";
|
||||
import { useMyTheme } from "lib/useMyTheme";
|
||||
import Image from "next/image";
|
||||
@@ -10,6 +11,10 @@ const Home = () => {
|
||||
const { colorMode } = useColorMode();
|
||||
return (
|
||||
<>
|
||||
<MyHead
|
||||
title={`sendou.ink | ${t`Competitive Splatoon Hub`}`}
|
||||
appendSendouInk={false}
|
||||
/>
|
||||
<Box textAlign="center">
|
||||
<Image
|
||||
className="rgb"
|
||||
|
||||
Reference in New Issue
Block a user