git ssb

0+

Rômulo Alves / website



Tree: 6b864007e8c5b621bfd0c79f8d8e177a2e6effc3

Files: 6b864007e8c5b621bfd0c79f8d8e177a2e6effc3 / _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