import * as React from 'react' import { SFC } from 'react' import { get } from '@utils/theme' import styled, { keyframes } from 'styled-components' const octocatWave = keyframes` 0%, 100% { transform: rotate(0); } 20%, 60% { transform: rotate(-25deg); } 40%, 80% { transform: rotate(10deg); } ` const Link = styled.a` &:hover .octo-arm { animation: ${octocatWave} 560ms ease-in-out; } & .octo-arm { transform-origin: 130px 106px; } @media screen and (max-width: 500px) { &:hover .octo-arm { animation: none; } & .octo-arm { animation: ${octocatWave} 560ms ease-in-out; } } ` const Svg = styled.svg` z-index: 99; fill: ${get('colors.primary')}; color: ${get('colors.background')}; position: absolute; top: 0; border: 0; right: 0; ` interface GithubLinkProps { repository: string } export const GithubLink: SFC = ({ repository }) => ( )