This commit is contained in:
Tom Moor
2017-11-12 21:39:24 -08:00
parent 00a7985383
commit 43a962496b
7 changed files with 177 additions and 6 deletions

View File

@ -1,19 +1,31 @@
// @flow
import React from 'react';
import styled from 'styled-components';
import { signin } from '../../utils/routeHelpers';
import SlackLogo from '../../../shared/components/SlackLogo';
import { color } from '../../../shared/styles/constants';
const SlackSignin = () => {
return <Button href="/auth/slack">Sign In with Slack</Button>;
return (
<Button href={signin()}>
<SlackLogo />
<Spacer>Sign In with Slack</Spacer>
</Button>
);
};
const Spacer = styled.span`
padding-left: 10px;
`;
const Button = styled.a`
display: inline-block;
display: inline-flex;
align-items: center;
padding: 10px 20px;
color: ${color.white};
background: ${color.black};
border-radius: 4px;
font-weight: 500;
font-weight: 600;
`;
export default SlackSignin;