32 lines
619 B
JavaScript
32 lines
619 B
JavaScript
|
import styled from '@emotion/styled';
|
||
|
import React from 'react';
|
||
|
|
||
|
import { colorsRaw } from './styles.js';
|
||
|
import Icon from './Icon';
|
||
|
|
||
|
const GoBackButtonStyle = styled.a`
|
||
|
display: flex;
|
||
|
align-items: center;
|
||
|
|
||
|
margin-top: 50px;
|
||
|
padding: 10px;
|
||
|
|
||
|
font-size: 14px;
|
||
|
`;
|
||
|
|
||
|
const ButtonText = styled.p`
|
||
|
color: ${colorsRaw.gray};
|
||
|
margin: 0 10px;
|
||
|
`;
|
||
|
|
||
|
export default class GoBackButton extends React.Component {
|
||
|
render() {
|
||
|
return (
|
||
|
<GoBackButtonStyle href={this.props.href}>
|
||
|
<Icon type="arrow" size="small" />
|
||
|
<ButtonText>Go back to site</ButtonText>
|
||
|
</GoBackButtonStyle>
|
||
|
);
|
||
|
}
|
||
|
}
|