2021-04-18 23:09:51 +02:00
|
|
|
import NextHead from 'next/head'
|
2021-04-18 01:56:23 +02:00
|
|
|
|
|
|
|
interface HeadProps {
|
|
|
|
title?: string
|
|
|
|
image?: string
|
2022-03-24 18:57:27 +01:00
|
|
|
description?: string
|
2021-04-18 01:56:23 +02:00
|
|
|
url?: string
|
|
|
|
}
|
|
|
|
|
2021-05-08 19:52:04 +02:00
|
|
|
export const Head: React.FC<HeadProps> = (props) => {
|
2021-04-18 01:56:23 +02:00
|
|
|
const {
|
2023-05-29 17:10:14 +02:00
|
|
|
title = 'Théo LUDWIG (Divlo)',
|
2023-05-29 16:24:49 +02:00
|
|
|
image = 'https://divlo.fr/images/icon-96x96.png',
|
2023-05-29 17:10:14 +02:00
|
|
|
description = 'Théo LUDWIG (Divlo) - Developer Full Stack • Passionate about High-Tech',
|
2021-05-08 19:52:04 +02:00
|
|
|
url = 'https://divlo.fr/'
|
2021-04-18 01:56:23 +02:00
|
|
|
} = props
|
|
|
|
|
|
|
|
return (
|
2021-04-18 23:09:51 +02:00
|
|
|
<NextHead>
|
2021-04-18 01:56:23 +02:00
|
|
|
<title>{title}</title>
|
|
|
|
<link rel='icon' type='image/png' href={image} />
|
|
|
|
|
|
|
|
{/* Meta Tag */}
|
2021-05-08 19:52:04 +02:00
|
|
|
<meta name='viewport' content='width=device-width, initial-scale=1.0' />
|
2021-04-18 01:56:23 +02:00
|
|
|
<meta name='description' content={description} />
|
2023-05-29 16:24:49 +02:00
|
|
|
<meta name='Language' content='fr-FR, en-US' />
|
2021-04-18 01:56:23 +02:00
|
|
|
<meta name='theme-color' content='#ffd800' />
|
|
|
|
|
|
|
|
{/* Open Graph Metadata */}
|
|
|
|
<meta property='og:title' content={title} />
|
|
|
|
<meta property='og:type' content='website' />
|
|
|
|
<meta property='og:url' content={url} />
|
|
|
|
<meta property='og:image' content={image} />
|
|
|
|
<meta property='og:description' content={description} />
|
2023-05-29 16:24:49 +02:00
|
|
|
<meta property='og:locale' content='fr-FR, en-US' />
|
2021-04-18 01:56:23 +02:00
|
|
|
<meta property='og:site_name' content={title} />
|
|
|
|
|
|
|
|
{/* Twitter card Metadata */}
|
|
|
|
<meta name='twitter:card' content='summary' />
|
|
|
|
<meta name='twitter:description' content={description} />
|
|
|
|
<meta name='twitter:title' content={title} />
|
2022-02-23 11:51:00 +01:00
|
|
|
<meta name='twitter:image' content={image} />
|
2021-04-18 01:56:23 +02:00
|
|
|
|
|
|
|
{/* Google Verification */}
|
|
|
|
<meta
|
|
|
|
name='google-site-verification'
|
|
|
|
content='j9CQEbSuYydXytr6gdkTfam_xX_pU97NSpVH3Bq-6f4'
|
|
|
|
/>
|
2021-04-18 23:09:51 +02:00
|
|
|
</NextHead>
|
2021-04-18 01:56:23 +02:00
|
|
|
)
|
|
|
|
}
|