|
|
|
@ -68,15 +68,13 @@ export const MetaTags = () => (
|
|
|
|
|
* Before supporting <link rel="preload"> verify that it is widely supported in FireFox
|
|
|
|
|
* with out a flag here: https://caniuse.com/#feat=link-rel-preload
|
|
|
|
|
*/
|
|
|
|
|
export default function Meta() {
|
|
|
|
|
export const MetaLinks = () => {
|
|
|
|
|
const onBrowser = typeof window !== 'undefined'
|
|
|
|
|
return (
|
|
|
|
|
<div className="meta">
|
|
|
|
|
<React.Fragment>
|
|
|
|
|
<Head>
|
|
|
|
|
<title>Carbon</title>
|
|
|
|
|
<link rel="stylesheet" href="/static/react-crop.css" />
|
|
|
|
|
</Head>
|
|
|
|
|
<MetaTags />
|
|
|
|
|
<StylesheetLink theme="seti" />
|
|
|
|
|
<CodeMirrorLink />
|
|
|
|
|
{LOCAL_STYLESHEETS.map(id => (
|
|
|
|
@ -85,16 +83,23 @@ export default function Meta() {
|
|
|
|
|
{onBrowser
|
|
|
|
|
? CDN_STYLESHEETS.map(theme => <StylesheetLink key={theme.id} theme={theme.id} />)
|
|
|
|
|
: null}
|
|
|
|
|
</React.Fragment>
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export const Styles = () => (
|
|
|
|
|
<React.Fragment>
|
|
|
|
|
<Reset />
|
|
|
|
|
<Font />
|
|
|
|
|
<Typography />
|
|
|
|
|
<style jsx>
|
|
|
|
|
{`
|
|
|
|
|
.meta {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
`}
|
|
|
|
|
</style>
|
|
|
|
|
</div>
|
|
|
|
|
</React.Fragment>
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
export default function Meta() {
|
|
|
|
|
return (
|
|
|
|
|
<React.Fragment>
|
|
|
|
|
<MetaTags />
|
|
|
|
|
<Styles />
|
|
|
|
|
</React.Fragment>
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|