- https://css-tricks.com/using-svg/
- https://lincolnloop.com/blog/svg-sprites-and-icon-systems-are-super/
- https://css-tricks.com/svg-sprites-use-better-icon-fonts/
- https://css-tricks.com/icon-fonts-vs-svg/
- https://24ways.org/2014/an-overview-of-svg-sprite-creation-techniques/
- https://css-tricks.com/creating-svg-icon-system-react/
- Deprecated, but a differing opinion: https://css-tricks.com/creating-svg-icon-system-react/
- https://cloudfour.com/thinks/seriously-dont-use-icon-fonts/
- http://ianfeather.co.uk/ten-reasons-we-switched-from-an-icon-font-to-svg/
- https://speakerdeck.com/ninjanails/death-to-icon-fonts
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 React, { Component } from 'react'; | |
// _icon is my namespacing choice for glyphs--it could easily be set | |
// as an env variable | |
export default class Icon extends Component { | |
fullName(href='') { | |
return `#${href}_icon-${this.props.glyph}`; | |
} | |
render() { |
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 React, { Component } from 'react'; | |
export default class Icon extends Component { | |
fullName(href='') { | |
return `#${href}_icon-${this.props.glyph}`; | |
} | |
render() { | |
const { glyph } = this.props; | |
let wrapperClasses = [ | |
'_icon', |
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
<?php | |
/** | |
* Sets up theme-wide options | |
* | |
* @since _geekery_ 1.0 | |
*/ | |
use Carbon_Fields\Container; | |
use Carbon_Fields\Field; | |
Container::make('theme_options', 'Geekery settings') |
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
export const actionTypes = [ | |
'ACTION_NAME', | |
].reduce((actions, action) => { | |
actions[action] = action; | |
return actions | |
}, {}); | |
//will output { ACTION_NAME: 'ACTION_NAME' } |
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
export const actionTypes = [ | |
'ACTION_NAME', | |
].reduce((actions, action) => { | |
actions[action] = action; | |
return actions | |
}, {}); | |
//will output { ACTION_NAME: 'ACTION_NAME' } |
Did you know guys can be seen as exclusive language? Consider $generNeutralTerm
instead. $articleLink Come to #guybot-discussions for more information
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
{ | |
"name": "nm-engineering-tech-blog", | |
"main": "src/server/server.js", | |
"engines": { | |
"node": "^8.9.1" | |
}, | |
"scripts": { | |
"start": "...", | |
"dev": "rimraf ./dist && yarn build:copy && export NODE_ENV=dev && ./node_modules/.bin/nodemon --exec 'yarn server'", | |
"server": "...", |