Gatsby.js V2 starter template based on Photon. Check out https://codebushi.com/gatsby-starters/ for more Gatsby starters and templates.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
.prettierrc initial commit Mar 30, 2018
LICENSE
README.md
gatsby-browser.js
gatsby-config.js update to v2 Sep 29, 2018
gatsby-node.js update to v2 Sep 29, 2018
gatsby-ssr.js
package.json update to v2 Sep 29, 2018

README.md

gatsby-starter-photon

Gatsby.js V2 starter based on the Photon site template, designed by HTML5 UP. Check out https://codebushi.com/gatsby-starters/ for more Gatsby starters and templates.

Preview

https://gatsby-photon.surge.sh

Installation

Install this starter (assuming Gatsby is installed) by running from your CLI: gatsby new gatsby-starter-photon https://github.com/codebushi/gatsby-starter-photon

Run gatsby develop in the terminal to start.

CSS Grid

The grid on this site was replaced with a custom version, built using CSS Grid. It's a very simple 12 column grid that is disabled on mobile. To start using the grid, wrap the desired items with grid-wrapper. Items inside the grid-wrapper use the class col- followed by a number, which should add up to 12.

Here is an example of using the grid, for a 3 column layout:

<div className="grid-wrapper">
    <div className="col-4">
        <p>Adipiscing a commodo ante nunc accumsan et interdum mi ante adipiscing. A nunc lobortis non nisl amet vis sed volutpat aclacus nascetur ac non. Lorem curae et ante amet sapien sed tempus adipiscing id accumsan.</p>
    </div>
    <div className="col-4">
        <p>Content Here</p>
    </div>
    <div className="col-4">
        <p>Adipiscing a commodo ante nunc accumsan et interdum mi ante adipiscing. A nunc lobortis non nisl amet vis sed volutpat aclacus nascetur ac non. Lorem curae et ante amet sapien sed tempus adipiscing id accumsan.</p>
    </div>
</div>