git ssb

0+

Rômulo Alves / website



Tree: d1965e6223c3a0dba5efd21a77f674689c9f1389

Files: d1965e6223c3a0dba5efd21a77f674689c9f1389 / _components / common / Head.js

740 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 charSet="utf-8" />
18 <meta httpEquiv="X-UA-Compatible" content="IE=edge" />
19 <meta name="description" content="@romuloalves - Web Developer" />
20 <meta name="viewport" content="width=device-width, initial-scale=1.0" />
21 <link rel="icon" type="image/png" href="/static/favicon.png" />
22 <title>{getTitle(title)}</title>
23 <style>{globalStyles}</style>
24 </Head>
25 </div>
26);
27

Built with git-ssb-web