diff --git a/src/pages/_document.tsx b/src/pages/_document.tsx index 1d4a0b6..17cedcd 100644 --- a/src/pages/_document.tsx +++ b/src/pages/_document.tsx @@ -1,13 +1,24 @@ +/* eslint-disable camelcase */ /* eslint-disable react/jsx-props-no-spreading */ import Document, { Html, Head, Main, NextScript, DocumentContext, } from 'next/document'; import { ServerStyleSheet } from 'styled-components'; -const TITLE_PAGE = 'HLS video player'; -const DESCRIPTION = 'Watch streaming videos in M3U8 format super easy'; -const URL_SITE = 'https://'; -const URI_IMAGE = '/assets/preview.png'; +const META_TAGS_I18N = { + en_US: { + title_page: 'HLS video player', + description: 'Watch streaming videos in M3U8 format super easy!', + url_site: 'https://video-player-hls.vercel.app', + uri_image: 'https://video-player-hls.vercel.app/assets/preview.png', + }, + pt_BR: { + title_page: 'HLS video player', + description: 'Visualize videos no formato M3U8 de forma super fácil!', + url_site: 'https://video-player-hls.vercel.app', + uri_image: 'https://video-player-hls.vercel.app/assets/preview.png', + }, +}; export default class MyDocument extends Document { static async getInitialProps(ctx: DocumentContext) { @@ -44,30 +55,45 @@ export default class MyDocument extends Document { render() { return ( - + - - + + + + + {/* Open Graph / Facebook */} - - - - - - + + + + + + + + + + + + + {/* Twitter */} - - - - + + + + + + + + +