security-checklist/pages/index.js
2019-01-12 23:00:23 -08:00

35 lines
943 B
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 * as React from 'react';
import Page, { SectionHeading, Heading, Subheading } from '../components/Page';
import type { GetInitialProps } from '../types';
import Checklist from '../components/Checklist';
class Index extends React.Component<{}> {
static async getInitialProps({ res }: GetInitialProps) {
if (res && res.setHeader) {
// cache podcasts for a month
const cacheAge = 60 * 60 * 24 * 30;
res.setHeader('Cache-Control', `public,s-maxage=${cacheAge}`);
}
return {};
}
render() {
return (
<Page>
<SectionHeading>
<Heading>Improve your online privacy and security</Heading>
<Subheading>
The follow resources are designed to improve everyday peoples
security and privacy while using the internet.
</Subheading>
</SectionHeading>
<Checklist />
</Page>
);
}
}
export default Index;