This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'regenerator-runtime/runtime'; | |
import React from 'react'; | |
import fs from 'fs'; | |
import path from 'path'; | |
import ReactDomServer from 'react-dom/server'; | |
import { ServerStyleSheet, ThemeProvider } from 'styled-components'; | |
import theme from '../theme'; | |
import Fallback from '../routes/Fallback'; | |
const Fallback = () => ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Convert pixels to ems | |
// eg. for a relational value of 12px write em(12) when the parent is 16px | |
// if the parent is another value say 24px write em(12, 24) | |
@function em($pxval, $base: $fzBase) { | |
@return ($pxval / $base) * 1em; | |
} |