import * as React from 'react'; import { keyframes, styled, themed, css } from '../../src'; interface RibbonRendererProps { url: string; text: string; } const GitHubCatAnimation = keyframes` 0%, 100% { transform: rotate(0) } 20%, 60% { transform: rotate(-25deg) } 40%, 80% { transform: rotate(10deg) } `; const GitHubCat = styled('a')( themed( ({ theme }) => css` &:hover .octo-arm { animation: ${GitHubCatAnimation} 560ms ease-in-out; } @media (max-width: 500px) { &:hover .octo-arm { animation: none; } & .octo-arm { animation: ${GitHubCatAnimation} 560ms ease-in-out; } } svg { fill: ${theme.ui0}; color: #fff; position: absolute; top: 0; border: 0; right: 0; } `, ), ); const RibbonRenderer: React.SFC = ({ url, text }) => { return ( ); }; export default RibbonRenderer;