1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-10-02 11:56:42 +02:00

Add hero section and prepare header

This commit is contained in:
Kamran Ahmed
2019-09-04 15:27:00 +04:00
parent b351edfa20
commit 026830d836
14 changed files with 173 additions and 30 deletions

17
components/head/index.js Normal file
View File

@@ -0,0 +1,17 @@
import NextHead from 'next/head';
const defaultDescription = 'Roadmaps, articles and resources for modern developers';
const defaultOgUrl = 'https://roadmap.sh';
const Head = (props) => (
<NextHead>
<meta charSet='UTF-8' />
<title>{ props.title || '' }</title>
<meta name='description' content={ props.description || defaultDescription } />
<meta name='viewport' content='width=device-width, initial-scale=1' />
<meta property='og:url' content={ props.url || defaultOgUrl } />
<meta property='og:title' content={ props.title || '' } />
</NextHead>
);
export default Head;