This file contains hidden or 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
case talkPageActionTypes.SHARE_TALK: { | |
const service = action.payload.service.toLowerCase(); | |
sendEvent( | |
'talk.share', | |
'start', | |
service | |
); | |
share(service, { | |
url: getURLFromSlug(action.payload.slug), |
This file contains hidden or 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
state => select.getHero(select.getCurrentTalkID(state))(state); |
This file contains hidden or 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
<ThemeProvider theme={defaultTheme}> | |
<Shed | |
component="header" | |
c="magenta" | |
pl="2" | |
mb="1" | |
> | |
<h1>A header component with the color "magenta" from the theme, 2 units of left-padding, and 1 unit of margin on the bottom.</h1> | |
</Shed> | |
</ThemeProvider> |
This file contains hidden or 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
const upvotePost = gql` | |
mutation addToVotes($question: ID!, $voter: ID!) { | |
addToVotes( | |
votesQuestionId: $question, | |
votersUserId: $voter | |
) { | |
votesQuestion { | |
id | |
content | |
voters { |
This file contains hidden or 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 React from 'react'; | |
import { | |
FlexItem, | |
Box, | |
Text, | |
} from '../../theme.js'; | |
import Member from '../member/index.js'; | |
const Vertical = ({ | |
vertical = '', |
This file contains hidden or 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 ms from 'modularscale'; | |
import styled from 'styled-components'; | |
const sizes = [...Array(20)].reduce((acc, curr, i) => ({ | |
...acc, | |
[`z${i}`]: `${ms((i - 1), 'major second')}rem`, | |
z0: 0, | |
[`z${0 - i}`]: `${(ms((0 - (i)), 'major second'))}rem`, | |
}), {}); |
This file contains hidden or 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 ms from 'modularscale'; | |
import styled from 'styled-components'; | |
const sizes = [...Array(20)].reduce((acc, curr, i) => ({ | |
...acc, | |
[`z${i}`]: `${ms((i - 1), 'major second')}rem`, | |
[`z${0 - i}`]: `${(ms((0 - (i)), 'major second'))}rem`, | |
}), {}); | |
const defaultTheme = { |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
output: { | |
path: `${__dirname}/dist`, | |
publicPath: '/', | |
filename: '[name].min.js', | |
library: 'MyComponentName', | |
libraryTarget: 'umd', | |
}, | |
externals: { | |
'react': { | |
root: 'React', |
This file contains hidden or 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
.b { | |
border: 1px solid currentColor; | |
} | |
.b-b\:scanline { | |
&::after { | |
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAEAQMAAACTPww9AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAGUExURf///7+/v6NDdjkAAAAQSURBVAjXY2hgEGBQYHAAAAR4APGA2fwfAAAAAElFTkSuQmCC"); | |
content: " "; | |
display: block; | |
height: .5rem; |