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
// Takes a string and creates a hyphenated slug | |
const slug = string.toLowerCase() | |
.replace(/[\. ,:;&()-]+/g, "-") // replace spaces and some characters with "-" | |
.replace(/-\s*$/, ""); // if last character is a "-", remove it |
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, { PropTypes } from "react"; | |
import radium, { Style } from "radium"; | |
import { color } from "../../../settings.json"; | |
import font from "../../utils/font"; | |
const styles = { | |
color: color.detailHeaderSmall, | |
fontFamily: font("benton"), | |
fontSize: "11px", | |
lineHeight: (17 / 11), |
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
[ | |
{ | |
"name": "New York City", | |
"url": "https://www.lonelyplanet.com/usa/new-york-city" | |
}, | |
{ | |
"name": "San Francisco", | |
"url": "https://www.lonelyplanet.com/usa/san-francisco" | |
}, | |
{ |
OlderNewer