Skip to content

Commit

Permalink
init phase 1 of master plan
Browse files Browse the repository at this point in the history
  • Loading branch information
mikedemarais committed Aug 9, 2018
0 parents commit 70897e7
Show file tree
Hide file tree
Showing 30 changed files with 46,566 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# See https://help.github.com/ignore-files/ for more about ignoring files.

# dependencies
/node_modules

# testing
/coverage

# production
/build
/dist
/.next

# misc
.DS_Store
.env
npm-debug.log*
yarn-debug.log*
yarn-error.log*
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
are scooters in new york yet?
@hipcityreg
@mikedemarais
52 changes: 52 additions & 0 deletions components/head.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
import NextHead from 'next/head'
import { string } from 'prop-types'

const defaultDescription = ''
const defaultOGURL = ''
const defaultOGImage = ''

const Head = (props) => (
<div>
<NextHead>
<meta charSet="UTF-8" />
<title>{props.title || ''}</title>
<meta name="description" content={props.description || defaultDescription} />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" href="/static/favicon.ico" />
<link rel="stylesheet" href="https://unpkg.com/[email protected]/normalize.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css" />
<meta property="og:url" content={props.url || defaultOGURL} />
<meta property="og:title" content={props.title || ''} />
<meta property="og:description" content={props.description || defaultDescription} />
<meta name="twitter:site" content={props.url || defaultOGURL} />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:image" content={props.ogImage || defaultOGImage} />
<meta property="og:image" content={props.ogImage || defaultOGImage} />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
</NextHead>
<style jsx global>{`
*, *:before, *:after {
box-sizing: inherit;
}
html {
box-sizing: border-box;
}
html, body {
height: 100%;
margin: 0;
padding: 0;
width: 100%;
}
`}</style>
</div>
)

Head.propTypes = {
title: string,
description: string,
url: string,
ogImage: string
}

export default Head
28 changes: 28 additions & 0 deletions components/title.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import { Fragment } from 'react';

export default () => (
<Fragment>
<h1 className="title">
<span className="scooter">
<a className="link" href="//instagram.com/p/BlZRT8TnzNG">🛴</a>
</span>
<span>
<a className="link" href="//instagram.com/p/BlBm5qHF0Gd">🗽</a>
<a className="link" href="//instagram.com/p/BkZCX6sBYjn"></a>
</span>
</h1>

<style jsx>{`
.link {
text-decoration: none;
}
.scooter {
font-size: 84px;
}
.title {
font-size: 96px;
line-height: 1.15;
}
`}</style>
</Fragment>
);
11 changes: 11 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module.exports = {
assetPrefix: process.env.NODE_ENV === 'production' ? '/are-scooters-in-new-york' : '',
webpack: (config) => {
// Fixes npm packages that depend on `fs` module
config.node = {
fs: 'empty'
}

return config
}
}
Empty file added out/.nojekyll
Empty file.
16 changes: 16 additions & 0 deletions out/_error/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!DOCTYPE html><html><head><meta charSet="utf-8" class="next-head next-head"/><meta name="viewport" content="width=device-width, initial-scale=1.0" class="next-head"/><title class="next-head">: An unexpected error has occurred</title><link rel="preload" href="/are-scooters-in-new-york/_next/d125a84a-48b1-4842-8eab-9ef88ba368ce/page/_app.js" as="script"/><link rel="preload" href="/are-scooters-in-new-york/_next/d125a84a-48b1-4842-8eab-9ef88ba368ce/page/_error.js" as="script"/><link rel="preload" href="/are-scooters-in-new-york/_next/static/commons/main-e11ff24791eec3ef6089.js" as="script"/></head><body><div id="__next"><div style="color:#000;background:#fff;font-family:-apple-system, BlinkMacSystemFont, Roboto, &quot;Segoe UI&quot;, &quot;Fira Sans&quot;, Avenir, &quot;Helvetica Neue&quot;, &quot;Lucida Grande&quot;, sans-serif;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body { margin: 0 }</style><div style="display:inline-block;text-align:left;line-height:49px;height:49px;vertical-align:middle"><h2 style="font-size:14px;font-weight:normal;line-height:inherit;margin:0;padding:0">An unexpected error has occurred<!-- -->.</h2></div></div></div></div><div id="__next-error"></div><script>
__NEXT_DATA__ = {"props":{"pageProps":{}},"page":"/_error","pathname":"/_error","query":{},"buildId":"d125a84a-48b1-4842-8eab-9ef88ba368ce","assetPrefix":"/are-scooters-in-new-york","nextExport":true,"err":null,"chunks":[]}
module={}
__NEXT_LOADED_PAGES__ = []
__NEXT_LOADED_CHUNKS__ = []

__NEXT_REGISTER_PAGE = function (route, fn) {
__NEXT_LOADED_PAGES__.push({ route: route, fn: fn })
}

__NEXT_REGISTER_CHUNK = function (chunkName, fn) {
__NEXT_LOADED_CHUNKS__.push({ chunkName: chunkName, fn: fn })
}

false
</script><script async="" id="__NEXT_PAGE__/_app" src="/are-scooters-in-new-york/_next/d125a84a-48b1-4842-8eab-9ef88ba368ce/page/_app.js"></script><script async="" id="__NEXT_PAGE__/_error" src="/are-scooters-in-new-york/_next/d125a84a-48b1-4842-8eab-9ef88ba368ce/page/_error.js"></script><script src="/are-scooters-in-new-york/_next/static/commons/main-e11ff24791eec3ef6089.js" async=""></script></body></html>

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 70897e7

Please sign in to comment.