From 37e9a4431be6ce0b8228805301947ae05cd4d211 Mon Sep 17 00:00:00 2001 From: Harry Shoff Date: Fri, 6 Oct 2017 23:17:29 -0700 Subject: [PATCH] [demo] fix type on /, fix areas tile details --- packages/vx-demo/components/gallery.js | 2 +- packages/vx-demo/pages/home.js | 76 ++++++++++++++++++-------- 2 files changed, 55 insertions(+), 23 deletions(-) diff --git a/packages/vx-demo/components/gallery.js b/packages/vx-demo/components/gallery.js index 33b3db4e8..40500e37c 100644 --- a/packages/vx-demo/components/gallery.js +++ b/packages/vx-demo/components/gallery.js @@ -195,7 +195,7 @@ export default class Gallery extends React.Component { }} /> -
+
Areas
{``}
diff --git a/packages/vx-demo/pages/home.js b/packages/vx-demo/pages/home.js index 9fde62519..fed822454 100644 --- a/packages/vx-demo/pages/home.js +++ b/packages/vx-demo/pages/home.js @@ -2,14 +2,11 @@ import React from 'react'; import Page from '../components/page'; import Footer from '../components/footer'; - export default () => (
-

vx is collection of reusable low-level visualization components. vx combines the power of d3 to generate your visualization with the benefits of react for updating the DOM.

+
+

+ vx is collection of reusable low-level + visualization components. vx combines the + power of d3 to generate your visualization + with the benefits of react for updating the + DOM. +

+

Goal

-

The goal is to create a library of components you can use to make both your own resuable chart library or your slick custom one-off chart. vx is largely unopinionated and is meant to be build on top of. Keep your bundle sizes down and use only the packages you need.

+

+ The goal is to create a library of components you can use + to make both your own reusable chart library or your slick + custom one-off chart. vx is largely + unopinionated and is meant to be build on top of. Keep + your bundle sizes down and use only the packages you need. +

How?

-

Under the hood, vx is using d3 for the calculations and math. If you're creating your own awesome chart library ontop of vx, it's easy to create a component api that hides d3 entirely. Meaning your team could create charts as easily as using reusable react components.

+

+ Under the hood, vx is using d3{' '} + for the calculations and math. If you're creating your own + awesome chart library ontop of vx, it's easy to create a + component api that hides d3 entirely. Meaning + your team could create charts as easily as using reusable + react components. +

But why?

-

Mixing two mental models for updating the DOM is never a good time. Copy and pasting d3 code into componentDidMount() is just that. This collection of components lets you easily build your own reusable visualization charts or library without having to learn d3. No more selections or enter()/exit()/update().

+

+ Mixing two mental models for updating the DOM is never a + good time. Copy and pasting d3 code into{' '} + componentDidMount() is just that. This + collection of components lets you easily build your own + reusable visualization charts or library without having to + learn d3. No more selections or enter()/exit()/update(). +

FAQ

  1. -

    What does vx stand for?

    +

    + What does vx stand for? +

    -

    vx stands for visualization components.

    +

    vx stands for visualization components.

  2. Do you plan on supporting animation/transitions?

    -

    yup!

    +

    yup!

  3. Do I have to use every package to make a chart?

    -

    nope! pick and choose the packages you need.

    +

    nope! pick and choose the packages you need.

  4. -

    Can I use this to create my own library of charts for my team?

    +

    + Can I use this to create my own library of charts for + my team? +

    -

    Please do.

    +

    Please do.

  5. -

    I like using d3.

    +

    + I like using d3. +

    -

    Me too.

    +

    Me too.

@@ -75,8 +107,8 @@ export default () => ( background-color: #fc2e1c; border-radius: 30px; border-top-right-radius: 0; - color: #FFFFFF; - font-family: "Montserrat"; + color: #ffffff; + font-family: 'Montserrat'; text-transform: uppercase; margin-right: 1rem; } @@ -98,13 +130,13 @@ export default () => ( } .home h1 { - font-family: "Montserrat"; + font-family: 'Montserrat'; color: #fc2e1c; font-size: 95pt; line-height: 1em; margin: 0; padding: 0; - opacity: .9; + opacity: 0.9; margin-top: 130px; letter-spacing: 20px; text-transform: uppercase; @@ -144,7 +176,7 @@ export default () => ( blockquote { border-left: 2px solid #efefef; - padding: .5rem 1rem; + padding: 0.5rem 1rem; color: #777; } @@ -182,4 +214,4 @@ export default () => ( } `} -) +);