Files
outline/server/pages/components/Layout.js
2018-01-18 00:01:34 -08:00

75 lines
2.3 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// @flow
import React from 'react';
import { Helmet } from 'react-helmet';
import { TopNavigation, BottomNavigation } from './Navigation';
import Analytics from '../../../shared/components/Analytics';
import globalStyles from '../../../shared/styles/globals';
import { color } from '../../../shared/styles/constants';
export const title = 'Outline';
export const description =
'Your teams knowledge base - Team wiki, documentation, playbooks, onboarding & more…';
export const screenshotUrl = 'https://www.getoutline.com/screenshot.png';
type Props = {
children?: React$Element<*>,
};
export default function Layout({ children }: Props) {
globalStyles();
return (
<html lang="en">
<head>
<Helmet>
<title>{title}</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="referrer" content="origin" />
<meta name="description" content={description} />
<meta name="og:site_name" content={title} />
<meta name="og:type" content="website" />
<meta property="og:title" content={title} />
<meta property="og:description" content={description} />
<meta property="og:image" content={screenshotUrl} />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:domain" value="getoutline.com" />
<meta name="twitter:title" value={title} />
<meta name="twitter:description" value={description} />
<meta name="twitter:image" content={screenshotUrl} />
<meta name="twitter:url" value="https://www.getoutline.com/" />
<meta name="theme-color" content={color.primary} />
<link
rel="shortcut icon"
type="image/png"
href="/favicon-16.png"
sizes="16x16"
/>
<link
rel="shortcut icon"
type="image/png"
href="/favicon-32.png"
sizes="32x32"
/>
<link
rel="dns-prefetch"
href={process.env.AWS_S3_UPLOAD_BUCKET_URL}
/>
</Helmet>
<Analytics />
{'{{HEAD}}'}
{'{{CSS}}'}
</head>
<body>
<TopNavigation />
{children}
<BottomNavigation />
</body>
</html>
);
}