From 469dc18ee49311c6bff806904554eecf4fd1e67b Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Fri, 25 Nov 2016 12:18:56 -0800 Subject: [PATCH] depviz.svg: Add a depviz logo Discussion in [1]. This logo is my suggested simplicification of Juan's DepCard-icon idea. I also reduce the short-card relatedX offset to avoid exposing a bit of the card border between the top and bottom DepIndicators. That makes the numbers more crowded as you get double-digit indicators, but they aren't too bad. [1]: https://github.com/jbenet/depviz/issues/14 --- webapp/src/DepIndicators.js | 2 +- webapp/src/Layout.css | 15 ++------------- webapp/src/Layout.js | 11 +++++------ webapp/src/logo/depviz.svg | 14 ++++++++++++++ webapp/src/logo/react.svg | 7 ------- 5 files changed, 22 insertions(+), 27 deletions(-) create mode 100644 webapp/src/logo/depviz.svg delete mode 100644 webapp/src/logo/react.svg diff --git a/webapp/src/DepIndicators.js b/webapp/src/DepIndicators.js index 69c7e1c..7bc3f52 100644 --- a/webapp/src/DepIndicators.js +++ b/webapp/src/DepIndicators.js @@ -58,7 +58,7 @@ class DepIndicators extends PureComponent { render() { var relatedX = this.props.cx; if (this.props.dy < 1.75) { - relatedX += 1; + relatedX += 0.6; } return
- - logo - -

depviz

+ + logo (homepage) +
{this.props.children} diff --git a/webapp/src/logo/depviz.svg b/webapp/src/logo/depviz.svg new file mode 100644 index 0000000..08e1d08 --- /dev/null +++ b/webapp/src/logo/depviz.svg @@ -0,0 +1,14 @@ + + + + + + + + + + depviz + + + diff --git a/webapp/src/logo/react.svg b/webapp/src/logo/react.svg deleted file mode 100644 index 6b60c10..0000000 --- a/webapp/src/logo/react.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - -