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
/*eslint no-unused-vars: ["warn", { "argsIgnorePattern": "h" }]*/ | |
import Vue from 'vue' | |
import Viewport from '../helpers/viewport' | |
import axios from 'axios' | |
import chunk from 'lodash.chunk' | |
const fetchTeam = () => { | |
const response = response || axios.get('/team.json') | |
return response |
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
/* | |
BEFORE | |
*/ | |
import React, { Component } from 'react' | |
export const Icon = props => ( | |
<div className={`icon icon--${props.icon}`}> | |
<svg> |
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 gulp from 'gulp' | |
import rollup from 'rollup-stream' | |
import babel from 'rollup-plugin-babel' | |
import eslint from 'rollup-plugin-eslint' | |
import resolve from 'rollup-plugin-node-resolve' | |
import commonjs from 'rollup-plugin-commonjs' | |
import replace from 'rollup-plugin-replace' | |
import uglify from 'rollup-plugin-uglify' | |
import config from '../config' | |
import source from 'vinyl-source-stream' |
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 raf from 'raf'; | |
import Concert from 'concert'; | |
export default class Viewport { | |
constructor(opts = {}) { | |
this.window = window; | |
this.current = this.initialQuery; | |
const { width, height } = this.getDimensions(); | |
this.width = width; | |
this.height = height; |
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 Barba from 'barba.js'; | |
import mud from '../loader/behaviour'; | |
import events from '../helpers/events'; | |
import { transitionEnd, css3 } from '../helpers/prefix'; | |
import Tweezer from 'tweezer.js'; | |
export const views = () => { | |
const heroClassName = 'is-page-with-hero'; | |
const heroWithOutClassName = 'is-page-without-hero'; |
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
@mixin side__panel($b: side, $e: panel, $m: alert) { | |
$selector: $b; | |
@if $e != false { | |
$selector: #{$selector}__#{$e}; | |
} | |
@if $m != false { | |
$selector: #{$selector}--#{$m}; | |
} | |
.#{$selector} { |
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
<h1>I'm text yeah</h1> |
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
<div class="line"></div> |
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
<div class="test"></div> | |
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
<h1>I'm text yeah</h1> |