├── .gitignore ├── .travis.yml ├── README.md ├── components ├── Breakpoint.js └── breakpoints.css ├── config.toml ├── css ├── github.css └── main.css ├── html.js ├── package.json ├── pages ├── 404.md ├── _template.js ├── docs │ ├── _template.js │ ├── conclusion │ │ └── index.md │ ├── getting-started │ │ └── index.md │ ├── how-to-run │ │ └── index.md │ ├── index.md │ ├── some-react-code │ │ ├── 0.jpg │ │ ├── 1.jpg │ │ ├── 2.jpg │ │ ├── 3.jpg │ │ ├── 4.jpg │ │ ├── 5.jpg │ │ ├── _Demo.js │ │ └── index.js │ └── the-next-step │ │ └── index.md ├── examples │ └── index.md └── index.md ├── utils ├── colors.js └── typography.js ├── wrappers └── md.js └── yarn.lock /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | public/ 3 | .gatsby-context.js 4 | .DS_Store 5 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # back to language cpp to try to bypass osx node failure 2 | language: cpp 3 | sudo: false 4 | env: 5 | - export NODE_VERSION="0.10" 6 | - export NODE_VERSION="0.12" 7 | - export NODE_VERSION="4" 8 | - export NODE_VERSION="5" 9 | os: 10 | - linux 11 | - osx 12 | # pre-install to bring in the correct version of node via nvm 13 | before_install: 14 | - git submodule update --init --recursive 15 | - git clone https://github.com/creationix/nvm.git ./.nvm 16 | - source ./.nvm/nvm.sh 17 | - nvm install $NODE_VERSION 18 | - nvm use $NODE_VERSION 19 | - npm config set python `which python` 20 | - if [ $TRAVIS_OS_NAME == "linux" ]; then 21 | export CC="gcc-4.8"; 22 | export CXX="g++-4.8"; 23 | export LINK="gcc-4.8"; 24 | export LINKXX="g++-4.8"; 25 | fi 26 | - gcc --version 27 | - g++ --version 28 | # node 4 depends on gcc 4.8 29 | addons: 30 | apt: 31 | sources: 32 | - ubuntu-toolchain-r-test 33 | packages: 34 | - g++-4.8 35 | - gcc-4.8 36 | # script needed to test, because defaults don't work on osx 37 | script: 38 | - npm install 39 | - npm run lint 40 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # This is a v0 starter and won't be ported to v1. Check out other starters @ https://www.gatsbyjs.org/docs/gatsby-starters/ 2 | -------------------------------------------------------------------------------- /components/Breakpoint.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react' 2 | import PropTypes from 'prop-types' 3 | import './breakpoints.css' 4 | 5 | class Breakpoint extends Component { 6 | render () { 7 | const { mobile, children } = this.props 8 | 9 | if (mobile) { 10 | return ( 11 |
12 | {children} 13 |
14 | ) 15 | } 16 | 17 | return ( 18 |
19 | {children} 20 |
21 | ) 22 | } 23 | } 24 | 25 | Breakpoint.propTypes = { 26 | children: PropTypes.array, 27 | mobile: PropTypes.bool, 28 | } 29 | 30 | export default Breakpoint 31 | -------------------------------------------------------------------------------- /components/breakpoints.css: -------------------------------------------------------------------------------- 1 | @media only screen and (min-width: 700px) { 2 | .breakpoint-min-width-700 { 3 | display: block; 4 | } 5 | .breakpoint-max-width-700 { 6 | display: none; 7 | } 8 | } 9 | @media only screen and (max-width: 700px) { 10 | .breakpoint-min-width-700 { 11 | display: none; 12 | } 13 | .breakpoint-max-width-700 { 14 | display: block; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /config.toml: -------------------------------------------------------------------------------- 1 | siteTitle="AlphabetJS" 2 | baseColor = "#884499" 3 | linkPrefix = "/gatsby-starter-documentation" 4 | docPages = [ 5 | "/docs/", 6 | "/docs/getting-started/", 7 | "/docs/how-to-run/", 8 | "/docs/some-react-code/", 9 | "/docs/the-next-step/", 10 | "/docs/conclusion/", 11 | ] 12 | -------------------------------------------------------------------------------- /css/github.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | github.com style (c) Vasily Polovnyov 4 | 5 | */ 6 | .hljs-comment, 7 | .hljs-quote { 8 | color: #998; 9 | font-style: italic; 10 | } 11 | 12 | .hljs-keyword, 13 | .hljs-selector-tag, 14 | .hljs-subst { 15 | color: #333; 16 | font-weight: bold; 17 | } 18 | 19 | .hljs-number, 20 | .hljs-literal, 21 | .hljs-variable, 22 | .hljs-template-variable, 23 | .hljs-tag .hljs-attr { 24 | color: #008080; 25 | } 26 | 27 | .hljs-string, 28 | .hljs-doctag { 29 | color: #d14; 30 | } 31 | 32 | .hljs-title, 33 | .hljs-section, 34 | .hljs-selector-id { 35 | color: #900; 36 | font-weight: bold; 37 | } 38 | 39 | .hljs-subst { 40 | font-weight: normal; 41 | } 42 | 43 | .hljs-type, 44 | .hljs-class .hljs-title { 45 | color: #458; 46 | font-weight: bold; 47 | } 48 | 49 | .hljs-tag, 50 | .hljs-name, 51 | .hljs-attribute { 52 | color: #000080; 53 | font-weight: normal; 54 | } 55 | 56 | .hljs-regexp, 57 | .hljs-link { 58 | color: #009926; 59 | } 60 | 61 | .hljs-symbol, 62 | .hljs-bullet { 63 | color: #990073; 64 | } 65 | 66 | .hljs-built_in, 67 | .hljs-builtin-name { 68 | color: #0086b3; 69 | } 70 | 71 | .hljs-meta { 72 | color: #999; 73 | font-weight: bold; 74 | } 75 | 76 | .hljs-deletion { 77 | background: #fdd; 78 | } 79 | 80 | .hljs-addition { 81 | background: #dfd; 82 | } 83 | 84 | .hljs-emphasis { 85 | font-style: italic; 86 | } 87 | 88 | .hljs-strong { 89 | font-weight: bold; 90 | } 91 | 92 | -------------------------------------------------------------------------------- /css/main.css: -------------------------------------------------------------------------------- 1 | .demo1-ball { 2 | border-radius: 99px; 3 | background-color: white; 4 | width: 50px; 5 | height: 50px; 6 | border: 3px solid white; 7 | position: absolute; 8 | background-size: 50px; 9 | } 10 | -------------------------------------------------------------------------------- /html.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react' 2 | import PropTypes from 'prop-types' 3 | import DocumentTitle from 'react-document-title' 4 | 5 | import { prefixLink } from 'gatsby-helpers' 6 | import { TypographyStyle, GoogleFont } from 'react-typography' 7 | import typography from './utils/typography' 8 | import { colors } from 'utils/colors' 9 | 10 | const BUILD_TIME = new Date().getTime() 11 | 12 | class Html extends Component { 13 | render () { 14 | const title = DocumentTitle.rewind() 15 | 16 | let css 17 | if (process.env.NODE_ENV === 'production') { 18 | css =