Skip to content

Instantly share code, notes, and snippets.

View zsherman's full-sized avatar
💭
👨‍💻

Zach Sherman zsherman

💭
👨‍💻
View GitHub Profile
export default class ScriptLoader {
constructor (options) {
const { src, global, protocol = document.location.protocol } = options
this.src = src
this.global = global
this.protocol = protocol
this.isLoaded = false
}
loadScript () {
import styled from 'styled-components'
const Wrapper = styled.div`
max-width: 100%;
color: ${props => props.theme.colors.text};
p {
font-size: 1rem;
line-height: 1.8;
margin-top: 0;
<Box
p={3}
m={3}
mb={2}
bg="gray.1"
color="gray.4"
borderRadius={4}
style={{
fontFamily: 'menlo',
textTransform: 'uppercase',