From 286d23091a00de6b4fdafa4eccff57c9d3f5ebfd Mon Sep 17 00:00:00 2001 From: Ryan Cordell Date: Mon, 8 Apr 2019 17:11:06 +0100 Subject: [PATCH 1/6] npm -> yarn --- README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ddc4bc9..b60c28f 100644 --- a/README.md +++ b/README.md @@ -59,11 +59,15 @@ Out of the box, we get: Read more about [Next's Routing](https://github.com/zeit/next.js#routing) +## Install npm packages + +`yarn install` + ## Available Scripts In the project directory, you can run: -### `npm run dev` +### `yarn dev` Runs the app in the development mode.
Open [http://localhost:3000](http://localhost:3000) to view it in the browser. @@ -71,12 +75,12 @@ Open [http://localhost:3000](http://localhost:3000) to view it in the browser. The page will reload if you make edits.
You will also see any errors in the console. -### `npm run build` +### `yarn build` Builds the app for production to the `.next` folder.
It correctly bundles React in production mode and optimizes the build for the best performance. -### `npm run start` +### `yarn start` Starts the application in production mode. The application should be compiled with \`next build\` first. From 84b6e8cd3e78cf99d8a4dc8d6785964b390b34e3 Mon Sep 17 00:00:00 2001 From: Ryan Cordell Date: Fri, 24 May 2019 11:52:45 +0100 Subject: [PATCH 2/6] New rimble site --- components/footer.js | 2 +- components/header.js | 10 +-- components/nav.js | 2 +- components/navMenu.js | 8 +-- pages/_document.js | 2 +- pages/index.js | 101 +++++++++++++++++------------- static/svg/baseline-menu-24px.svg | 2 +- static/svg/fig-4.svg | 25 ++++++++ static/svg/fig-bg.svg | 4 +- 9 files changed, 93 insertions(+), 63 deletions(-) create mode 100644 static/svg/fig-4.svg diff --git a/components/footer.js b/components/footer.js index d6e9b27..31a3911 100644 --- a/components/footer.js +++ b/components/footer.js @@ -28,7 +28,7 @@ const Footer = ({}) => ( Made by ConsenSys Design - © 2018 ConsenSys Inc. + © 2019 ConsenSys Inc. ) diff --git a/components/header.js b/components/header.js index a73d392..29383eb 100644 --- a/components/header.js +++ b/components/header.js @@ -3,14 +3,14 @@ import React from 'react' import Text from './Text' import Heading from './Heading' import Button from './Button' +import Link from './Link' const Header = ({}) => (
- Rimble Design System - Adaptable components and design standards for decentralized applications. - - - Documentation + Hi, we're Rimble 👋 + + We've got open-source guides, tools and React components to help you build dApps with great user experience. We solve UX problems common to all Ethereum products so you can focus on what's unique about your dApp. Everything we learn goes in our guides. +
); diff --git a/components/nav.js b/components/nav.js index 2e859cd..d088c8a 100644 --- a/components/nav.js +++ b/components/nav.js @@ -51,7 +51,7 @@ const Nav = () => (
  • - Rimble Design System + Rimble 🚀
  • diff --git a/components/navMenu.js b/components/navMenu.js index 19740f1..ed21d76 100644 --- a/components/navMenu.js +++ b/components/navMenu.js @@ -100,13 +100,7 @@ class Menu extends Component { diff --git a/pages/_document.js b/pages/_document.js index 4a7d39e..69f8887 100644 --- a/pages/_document.js +++ b/pages/_document.js @@ -13,7 +13,7 @@ export default class MyDocument extends Document { return ( - Rimble Design System + Rimble component library {this.props.styleTags} diff --git a/pages/index.js b/pages/index.js index 15e6c7a..6ea9e4b 100644 --- a/pages/index.js +++ b/pages/index.js @@ -7,6 +7,7 @@ import ThemeProvider from '../components/ThemeProvider' import Typography from '../components/typography' import Container from '../components/Container' import CodeBlock from '../components/CodeBlock' +import Button from '../components/Button' import Heading from '../components/Heading' import Text from '../components/Text' import Hr from '../components/Hr' @@ -47,89 +48,99 @@ const Masthead = styled(Flex)` ${backgroundImage} ` -const exampleCode = ` -import React, { Component } from 'react' -import { Button } from 'rimble-ui' - -class Example extends Component { - render () { - return ( - - ) - } -} -` const Home = () => ( - +