diff --git a/gatsby-config.js b/gatsby-config.js index 999bd3d..f75f8c5 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -1,14 +1,17 @@ module.exports = { siteMetadata: { - title: `Gatsby Default Starter`, - description: `Kick off your next, great Gatsby project with this default starter. This barebones starter ships with the main Gatsby configuration files you might need.`, + title: `Gatsby IPFS Adminlte Starter`, + description: `A gatsbyjs app with adminlte2 integration.`, author: `@gatsbyjs`, }, + pathPrefix: '__GATSBY_IPFS_PATH_PREFIX__', plugins: [ + 'gatsby-plugin-ipfs', `gatsby-plugin-react-helmet`, { resolve: `gatsby-source-filesystem`, options: { + start_url: '__GATSBY_IPFS_PATH_PREFIX__', name: `images`, path: `${__dirname}/src/images`, }, @@ -20,13 +23,14 @@ module.exports = { options: { name: `gatsby-starter-default`, short_name: `starter`, - start_url: `/`, + start_url: '__GATSBY_IPFS_PATH_PREFIX__', background_color: `#663399`, theme_color: `#663399`, display: `minimal-ui`, icon: `src/images/gatsby-icon.png`, // This path is relative to the root of the site. }, }, + // this (optional) plugin enables Progressive Web App + Offline functionality // To learn more, visit: https://gatsby.dev/offline // `gatsby-plugin-offline`, diff --git a/package.json b/package.json index 974b6a8..906a752 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,8 @@ { - "name": "gatsby-starter-default", - "private": true, - "description": "A simple starter to get up and developing quickly with Gatsby", - "version": "0.1.0", - "author": "Kyle Mathews ", + "name": "gatsby-ipfs-adminlte", + "description": "A gatsbyjs app with adminlte2 integration.", + "version": "1.0.0", + "author": "Chris Troutner ", "dependencies": { "adminlte-2-react": "^0.1.27", "gatsby": "^2.22.15", @@ -28,7 +27,7 @@ ], "license": "MIT", "scripts": { - "build": "gatsby build", + "build": "gatsby build --prefix-paths", "develop": "gatsby develop", "format": "prettier --write \"**/*.{js,jsx,json,md}\"", "start": "npm run develop", diff --git a/src/components/admin-lte/example.js b/src/components/admin-lte/example.js new file mode 100644 index 0000000..4b5a86c --- /dev/null +++ b/src/components/admin-lte/example.js @@ -0,0 +1,36 @@ +import React from "react" + +import { Content, Row, Col, Box, Button } from "adminlte-2-react" + +class Example extends React.Component { + state = {} + + render() { + return ( + + + + } + > + Hello World + + + + Content goes here + + + + ) + } +} + +export default Example diff --git a/src/components/admin-lte/example2.js b/src/components/admin-lte/example2.js new file mode 100644 index 0000000..a16d1e2 --- /dev/null +++ b/src/components/admin-lte/example2.js @@ -0,0 +1,28 @@ +import React from "react" +import Image from "../image" + +import { Content, Row, Col } from "adminlte-2-react" + +class Example2 extends React.Component { + state = {} + + render() { + return ( + + + + + + + + + + ) + } +} + +export default Example2 diff --git a/src/components/admin-lte/example3.js b/src/components/admin-lte/example3.js new file mode 100644 index 0000000..090fad2 --- /dev/null +++ b/src/components/admin-lte/example3.js @@ -0,0 +1,285 @@ +import React from "react" + +import { + Content, + Row, + Col, + Box, + Button, + Inputs, + Divider, +} from "adminlte-2-react" + +const { Text, Checkbox, Radio, Select } = Inputs + +class Example3 extends React.Component { + state = {} + + render() { + return ( + + + + } + > + + + + + + + +
+ +
+ +
+ + + + + + + + + + + + + + + +
+ +
+ +

With icons

+ +
+ +
+ +

With checkbox and radio inputs

+ + + + + + + + +

With buttons

+

+ Large: .input-group.input-group-lg +

+ + Action + Another action + Something else here + + Separated link + + } + /> +

Normal

+ } /> +

+ Small .input-group.input-group-sm +

+ } + /> +
+ + + +