git ssb

0+

Rômulo Alves / website



Tree: 6b5b84b3614cf087b2199be76f9d915b13d8ae89

Files: 6b5b84b3614cf087b2199be76f9d915b13d8ae89 / _components / common / Head.js

709 bytesRaw
1// Packages
2import React from 'react';
3import Head from 'next/head';
4
5import globalStyles from './globalStyles'
6
7const defaultTitle = '@romuloalves';
8
9const getTitle = partialTitle => {
10 if (!partialTitle) return defaultTitle;
11 return `${defaultTitle} - ${partialTitle}`;
12};
13
14export default ({title}) => (
15 <div>
16 <Head>
17 <meta httpEquiv="X-UA-Compatible" content="IE=edge" />
18 <meta name="description" content="@romuloalves - Web Developer" />
19 <meta name="viewport" content="width=device-width, initial-scale=1.0" />
20 <link rel="icon" type="image/png" href="/static/favicon.png" />
21 <title>{getTitle(title)}</title>
22 <style>{globalStyles}</style>
23 </Head>
24 </div>
25);
26

Built with git-ssb-web