mirror of
https://github.com/tubearchivist/tubearchivist-frontend.git
synced 2024-11-22 11:50:14 +00:00
chore: add custom head element
This commit is contained in:
parent
734078c5d7
commit
62c219c2de
50
tubearchivist/www/src/components/CustomHead.tsx
Normal file
50
tubearchivist/www/src/components/CustomHead.tsx
Normal file
@ -0,0 +1,50 @@
|
||||
import Head from "next/head";
|
||||
|
||||
export const CustomHead = ({ title }: { title: string }) => {
|
||||
return (
|
||||
<Head>
|
||||
<meta charSet="UTF-8" />
|
||||
<meta httpEquiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link
|
||||
rel="apple-touch-icon"
|
||||
sizes="180x180"
|
||||
href="/favicon/apple-touch-icon.png"
|
||||
/>
|
||||
<link
|
||||
rel="icon"
|
||||
type="image/png"
|
||||
sizes="32x32"
|
||||
href="/favicon/favicon-32x32.png"
|
||||
/>
|
||||
<link
|
||||
rel="icon"
|
||||
type="image/png"
|
||||
sizes="16x16"
|
||||
href="/favicon/favicon-16x16.png"
|
||||
/>
|
||||
<link rel="manifest" href="/favicon/site.webmanifest" />
|
||||
<link
|
||||
rel="mask-icon"
|
||||
href="/favicon/safari-pinned-tab.svg"
|
||||
color="#01202e"
|
||||
/>
|
||||
<link rel="shortcut icon" href="/favicon/favicon.ico" />
|
||||
<meta name="apple-mobile-web-app-title" content="TubeArchivist" />
|
||||
<meta name="application-name" content="TubeArchivist" />
|
||||
<meta name="msapplication-TileColor" content="#01202e" />
|
||||
<meta name="msapplication-config" content="/favicon/browserconfig.xml" />
|
||||
<meta name="theme-color" content="#01202e" />
|
||||
{/* {% if title %} */}
|
||||
<title>TA | {{ title }}</title>
|
||||
{/* {% else %} */}
|
||||
<title>TubeArchivist</title>
|
||||
{/* {% endif %} */}
|
||||
{/* {% if colors == "dark" %} */}
|
||||
{/* <link rel="stylesheet" href="/css/dark.css" /> */}
|
||||
{/* {% else %} */}
|
||||
{/* <link rel="stylesheet" href="/css/light.css" /> */}
|
||||
{/* {% endif %} */}
|
||||
</Head>
|
||||
);
|
||||
};
|
Loading…
Reference in New Issue
Block a user