This repository has been archived on 2024-10-29. You can view files and clone it, but cannot push or open issues or pull requests.
FunctionProject/website/components/HeadTag.jsx

50 lines
1.7 KiB
React
Raw Permalink Normal View History

2020-08-03 12:04:07 +02:00
import Head from 'next/head'
2020-03-18 16:26:18 +01:00
2020-12-28 13:07:21 +01:00
const HeadTag = (props) => {
const {
title = 'FunctionProject',
image = '/images/FunctionProject_icon_small.png',
description = "Apprenez la programmation grâce à l'apprentissage par projet alias fonction.",
url = 'https://function.divlo.fr/'
} = props
return (
<Head>
<title>{title}</title>
2020-12-28 13:11:02 +01:00
<link rel='icon' type='image/png' href={image} />
2020-12-28 13:07:21 +01:00
{/* Meta Tag */}
2020-12-28 13:11:02 +01:00
<meta name='viewport' content='width=device-width, initial-scale=1' />
<meta name='description' content={description} />
<meta name='Language' content='fr' />
<meta name='theme-color' content='#ffd800' />
2020-12-28 13:07:21 +01:00
{/* Open Graph Metadata */}
2020-12-28 13:11:02 +01:00
<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} />
<meta property='og:locale' content='fr_FR' />
<meta property='og:site_name' content={title} />
2020-12-28 13:07:21 +01:00
{/* Twitter card Metadata */}
2020-12-28 13:11:02 +01:00
<meta name='twitter:card' content='summary' />
<meta name='twitter:description' content={description} />
<meta name='twitter:title' content={title} />
<meta name='twitter:image:src' content={image} />
2020-12-28 13:07:21 +01:00
{/* PWA Data */}
2020-12-28 13:11:02 +01:00
<link rel='manifest' href='/manifest.json' />
<meta name='apple-mobile-web-app-capable' content='yes' />
<meta name='mobile-web-app-capable' content='yes' />
<link rel='apple-touch-icon' href={image} />
2020-12-28 13:07:21 +01:00
{/* Preloader script */}
2020-12-28 13:11:02 +01:00
<script src='/js/preloader.js' />
2020-12-28 13:07:21 +01:00
</Head>
)
}
2020-08-03 12:04:07 +02:00
export default HeadTag