UNPKG

react-typing-test

Version:

A react component typing test, user input and wpm calculations.

12 lines (11 loc) 1.5 kB
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } return cooked; }; import styled from "styled-components"; import { createGlobalStyle } from "styled-components"; import RobotoMono from "../assets/RobotoMono-Medium.ttf"; export var GlobalStyle = createGlobalStyle(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n @font-face {\n font-family: 'Roboto Mono';\n src: url(", ") format('truetype');\n }\n\n * {\n font-family: 'Roboto Mono';\n }\n"], ["\n @font-face {\n font-family: 'Roboto Mono';\n src: url(", ") format('truetype');\n }\n\n * {\n font-family: 'Roboto Mono';\n }\n"])), RobotoMono); export var BottomBar = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n &&&& {\n margin-top: 12px;\n display: grid;\n grid-template-columns: 2fr 0.5fr;\n text-align: center;\n }\n"], ["\n &&&& {\n margin-top: 12px;\n display: grid;\n grid-template-columns: 2fr 0.5fr;\n text-align: center;\n }\n"]))); export var ColoredSpan = styled.span(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n &&&& {\n color: ", ";\n }\n"], ["\n &&&& {\n color: ", ";\n }\n"])), function (props) { return props.theme.mainTextColor; }); var templateObject_1, templateObject_2, templateObject_3;