Skip to content

Commit

Permalink
depviz.svg: Add a depviz logo
Browse files Browse the repository at this point in the history
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]: jbenet#14
  • Loading branch information
wking committed Nov 28, 2016
1 parent 872b0d0 commit 469dc18
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 27 deletions.
2 changes: 1 addition & 1 deletion webapp/src/DepIndicators.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 <g className="DepIndicators">
<DependenciesIndicator
Expand Down
15 changes: 2 additions & 13 deletions webapp/src/Layout.css
Original file line number Diff line number Diff line change
@@ -1,20 +1,9 @@
.Layout-header {
background-color: #222;
color: white;
}

.Layout-header h1 {
display: inline;
font-size: large;
height: 40px; /* sync with .Layout-logo and HeaderHeight */
}

.Layout-header a {
text-decoration: none;
color: white;
padding: 2px; /* sync with HeaderHeight */
}

.Layout-logo {
height: 40px; /* sync with .Layout-h1 and HeaderHeight */
vertical-align: middle;
height: 36px; /* sync with HeaderHeight */
}
11 changes: 5 additions & 6 deletions webapp/src/Layout.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
import React, { Component } from 'react';
import { Link } from 'react-router'
import logo from './logo/react.svg';
import logo from './logo/depviz.svg';
import './Layout.css';

/* sync with CSS .Layout-logo and .Layout h1 height. */
/* sync with CSS .Layout-header padding and .Layout-logo height. */
export const HeaderHeight = 40;

class Layout extends Component {
render() {
return <div className="Layout">
<div className="Layout-header">
<a href="https://github.com/jbenet/depviz">
<img src={logo} className="Layout-logo" alt="logo" />
</a>
<h1><Link to="/">depviz</Link></h1>
<Link to="/">
<img src={logo} className="Layout-logo" alt="logo (homepage)" />
</Link>
</div>
{this.props.children}
</div>
Expand Down
14 changes: 14 additions & 0 deletions webapp/src/logo/depviz.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 0 additions & 7 deletions webapp/src/logo/react.svg

This file was deleted.

0 comments on commit 469dc18

Please sign in to comment.