mirror of
https://github.com/brianlovin/security-checklist.git
synced 2026-03-11 08:55:31 +00:00
44 lines
1.1 KiB
JavaScript
44 lines
1.1 KiB
JavaScript
// @flow
|
|
import * as React from 'react';
|
|
import Page, { SectionHeading, Heading, Subheading } from '../components/Page';
|
|
import type { GetInitialProps } from '../types';
|
|
import Checklist from '../components/Checklist';
|
|
import ShareButtons from '../components/ShareButtons';
|
|
import BottomShare from '../components/BottomShare';
|
|
|
|
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>Be safe on the internet.</Heading>
|
|
<Subheading>
|
|
An open source checklist of resources designed to improve your
|
|
online privacy and security. Check things off to keep track as you
|
|
go.
|
|
</Subheading>
|
|
</SectionHeading>
|
|
|
|
<div style={{ marginTop: '40px' }} />
|
|
|
|
<ShareButtons />
|
|
|
|
<Checklist />
|
|
|
|
<BottomShare />
|
|
</Page>
|
|
);
|
|
}
|
|
}
|
|
|
|
export default Index;
|