Skip to content

Instantly share code, notes, and snippets.

View davidyeiser's full-sized avatar

David Yeiser davidyeiser

View GitHub Profile
//
// Media Queries
// —·—·—·—·—·—·—·—·—·—·—·—
// NOTE: a 93.75% reduction in full resolution width was
// made for the desktop breakpoints to accommodate
// browser chrome and small vertical spaces in
// approximating a full-screen browser on that
// specific resolution.
componentDidMount() {
const cachedAirtableNotes = localStorage.getItem('_cachedAirtableNotes')
if (cachedAirtableNotes) {
// Local data exists, now let's see if it has "expired"
// parse data
const parsedAirtableNotes = JSON.parse(cachedAirtableNotes)
// Check current time against timestamp
@davidyeiser
davidyeiser / Post.js
Created April 2, 2018 13:02
Example Post component for React
import Link from 'next/link'
import dateFormat from 'dateformat'
import Markdown from 'react-markdown'
class Post extends React.Component {
render() {
const {
title,
content,
publish_date,