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
| /** @jsx jsx */ | |
| import { jsx, css } from '@emotion/core' | |
| import tw from 'twin.macro' | |
| import { Button, Input } from 'systems/Core' | |
| export const Subscribe: React.FC = () => { | |
| return ( | |
| <div css={styles.Root}> | |
| <h4>Subscribe to our newsletter</h4> |
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 { Link } from 'systems/Core/Link' | |
| import css from 'styled-jsx/css' | |
| export const Header = () => { | |
| return ( | |
| <header className="Root"> | |
| <img src="/logo.svg" width={100} /> | |
| <div className="MainMenu"> | |
| <ul className="MenuList"> |
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
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions |
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
| # mix.exs | |
| defmodule PhoenixRelaySample.Mixfile do | |
| use Mix.Project | |
| def project do | |
| [app: :phoenix_relay_sample, | |
| version: "0.0.1", | |
| elixir: "~> 1.2", | |
| elixirc_paths: elixirc_paths(Mix.env), | |
| compilers: [:phoenix, :gettext] ++ Mix.compilers, |
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 { useEffect } from 'react' | |
| import hotkeys from 'hotkeys-js' | |
| export const useHotkeys = (key: string, cb: () => any, inputs?: any[]) => { | |
| useEffect(() => { | |
| hotkeys(key, cb) | |
| return () => hotkeys.unbind(key) | |
| }, inputs) | |
| } |
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 styled from 'react-emotion' | |
| import { rescss } from 'rescss' | |
| const mq = resprops([ | |
| '@media(min-width: 420px)', | |
| '@media(min-width: 920px)', | |
| '@media(min-width: 1120px)' | |
| ]) | |
| const Text = styled('div')` |
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 pose from 'react-pose' | |
| const AnimatedDiv = pose('div')({ | |
| opened: { scale: 1 }, | |
| closed: { scale: 2 }, | |
| }) | |
| export const MyComponent = ({ opened }) => ( | |
| <AnimatedDiv state="opened"> |
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
| {"lastUpload":"2017-10-26T19:31:38.634Z","extensionVersion":"v2.8.3"} |
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 { | |
| FuseBox, | |
| BabelPlugin, | |
| QuantumPlugin, | |
| WebIndexPlugin, | |
| TypeScriptHelpers, | |
| Sparky, | |
| } from 'fuse-box' | |
| import * as path from 'path' |