Add share buttons to home page

This commit is contained in:
Brian Lovin 2019-01-13 12:49:54 -08:00
parent 276ea5790c
commit fa064f0ffb
3 changed files with 11 additions and 4 deletions

View file

@ -22,7 +22,9 @@ export default function ShareButtons() {
<TwitterButton>Tweet</TwitterButton>
</a>
<CopyLinkButton text="https://securitycheckli.st">Copy</CopyLinkButton>
<CopyLinkButton text="https://securitycheckli.st">
Share Link
</CopyLinkButton>
</Container>
);
}

View file

@ -5,6 +5,8 @@ export const Container = styled.div`
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-gap: 16px;
margin-top: 32px;
margin-bottom: 8px;
button {
width: 100%;

View file

@ -3,6 +3,7 @@ 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';
class Index extends React.Component<{}> {
static async getInitialProps({ res }: GetInitialProps) {
@ -19,13 +20,15 @@ class Index extends React.Component<{}> {
return (
<Page>
<SectionHeading>
<Heading>Improve your online privacy and security</Heading>
<Heading>Improve your digital privacy and security</Heading>
<Subheading>
The follow resources are designed to improve everyday peoples
security and privacy while using the internet.
The following resources are designed to keep you safe while using
digital devices and the internet.
</Subheading>
</SectionHeading>
<ShareButtons />
<Checklist />
</Page>
);