react-native-video/docs/theme.config.jsx
Kamil Moskała 7b4bd9a016
fix(docs): bump next.js version & fix meta warnings (#4327)
* chore(docs): bump `next` version

* docs: fix meta warnings
2024-12-10 19:46:55 +01:00

117 lines
3.2 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import React from 'react';
import {GoogleAnalytics} from '@next/third-parties/google';
export default {
head: (
<>
<meta name="language" content="en" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<meta name="description" content="Video component for React Native" />
<meta name="og:title" content="React Native Video" />
<meta
name="og:description"
content="A Video component for React Native"
/>
<meta
name="og:image"
content="https://docs.thewidlarzgroup.com/react-native-video/thumbnail.jpg"
/>
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="React Native Video" />
<meta
name="twitter:description"
content="A Video component for React Native"
/>
<meta
name="twitter:image"
content="https://docs.thewidlarzgroup.com/react-native-video/thumbnail.jpg"
/>
<meta name="twitter:image:alt" content="React Native Video" />
<link
rel="icon"
type="image/png"
href="https://docs.thewidlarzgroup.com/react-native-video/favicon.png"
/>
<GoogleAnalytics gaId="G-4YEWQH5ZHS" />
</>
),
logo: (
<span>
🎬 <strong>Video component</strong> for React Native
</span>
),
project: {
link: 'https://github.com/TheWidlarzGroup/react-native-video',
},
docsRepositoryBase:
'https://github.com/TheWidlarzGroup/react-native-video/tree/master/docs/',
footer: {
text: (
<span>
Built with by <strong>React Native Community</strong>
</span>
),
},
toc: {
extraContent: (
<>
<style>{`
:is(html[class~=dark]) .extra-container {
background-color: #87ccef;
}
:is(html[class~=dark]) .extra-text {
color: #171717;
}
:is(html[class~=dark]) .extra-button {
background-color: #171717;
}
.extra-container {
display: flex;
flex-direction: column;
margin-top: 0.5rem;
text-align: center;
background-color: #171717;
padding: 1rem;
gap: 1rem;
border-radius: 0.5rem;
}
.extra-text {
padding-left: 0.5rem;
padding-right: 0.5rem;
font-weight: bold;
color: #fff;
}
.extra-button {
width: 100%;
border: none;
padding: 0.5rem 1rem;
font-weight: 500;
background-color: #f9d85b;
transition: transform 0.3s ease, background-color 0.3s ease;
}
.extra-button:hover {
transform: scale(1.05);
background-color: #fff;
}
`}</style>
<div className="extra-container">
<span className="extra-text">We are TheWidlarzGroup</span>
<a
target="_blank"
href="https://www.thewidlarzgroup.com/?utm_source=rnv&utm_medium=docs#Contact"
className="extra-button"
rel="noreferrer">
Premium support
</a>
</div>
</>
),
},
useNextSeoProps() {
return {
titleTemplate: '%s Video',
};
},
};