A business card concept I created for a little challenge over at http://reddit.com/r/web_design!
A Pen by Eduard Kosicky on CodePen.
A business card concept I created for a little challenge over at http://reddit.com/r/web_design!
A Pen by Eduard Kosicky on CodePen.
// <refrence path="https://jsfiddle.net/dm1ufzz3/" /> | |
function QueryStringToJSON(str) { | |
var pairs = str.split('&'); | |
var result = {}; | |
pairs.forEach(function (pair) { | |
pair = pair.split('='); | |
var name = pair[0] | |
var value = pair[1] | |
if (name.length) |
/** | |
* npm install --save-dev webpack babel-loader babel-core babel-preset-{es2015,react} style-loader css-loader sass-loader | |
* npm install --save react react-dom | |
* directory folders: static, public | |
*/ | |
const path = require("path"); | |
const webpack = require("webpack"); | |
module.exports = { |
// ---- | |
// Sass (v3.3.0.rc.2) | |
// Compass (v1.0.0.alpha.17) | |
// ---- | |
$sections: red, gold, orange, grey; | |
@each $i in $sections { | |
.section-#{$i} { |
/** | |
* prepareTransition | |
* | |
* jQuery Plugin for ensuring transitions with display:none or visibility:hidden | |
* are in the right state until the end of the transition | |
* | |
* By John W. Long (http://wiseheartdesign.com) | |
* April 18, 2013 | |
* | |
* Based on the prepareTransition plugin by Jonathan Snook (http://snook.ca). This version |
var recognition; | |
function startRecognition() { | |
recognition = new webkitSpeechRecognition(); | |
recognition.onstart = function(event) { | |
updateRec(); | |
}; | |
recognition.onresult = function(event) { | |
var text = ""; | |
for (var i = event.resultIndex; i < event.results.length; ++i) { |
class Client { | |
constructor(foo) { | |
this.name = foo | |
} | |
} | |
class Message { | |
constructor(content) { | |
this.content = content | |
} |
How to use webpack resolve-alias to solve relative paths.
npm install
mkdir -p src/components/Header
mv index.jsx src/components/Header
mkdir -p src/utils
mv myUtils.js src/utils
npm run build