Skip to content

Commit

Permalink
Styling
Browse files Browse the repository at this point in the history
  • Loading branch information
ides15 committed Dec 13, 2018
1 parent 410a32b commit f52d750
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 21 deletions.
1 change: 1 addition & 0 deletions app/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const Container = styled(Card)`
height: 100%;
padding: 0;
overflow-y: auto;
border-radius: 0px;
`;

class App extends Component {
Expand Down
2 changes: 2 additions & 0 deletions app/src/components/Image.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ const ImageTag = styled.h3`

const P = styled.p`
font-weight: bold;
overflow: hidden;
text-overflow: ellipsis;
`;

class Image extends Component {
Expand Down
1 change: 0 additions & 1 deletion app/src/components/pages/Images.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React, { Component } from "react";

import styled from "styled-components";
// import _ from 'lodash'
import { Flex, Box } from "reflexbox";
import {
Collapse,
Expand Down
25 changes: 13 additions & 12 deletions app/src/components/pages/Info.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
import React, { Component } from "react";

import { Collapse, Card } from "@blueprintjs/core";
import { Collapse } from "@blueprintjs/core";
import { Route } from "react-router-dom";
// import { Flex } from "reflexbox";
import { Box } from "reflexbox";
import styled from "styled-components";

class Info extends Component {
constructor() {
super();
const Title = styled.h2`
margin: 0;
`;

this.state = {
info: null
};
}
class Info extends Component {
state = {
info: null
};

async componentDidMount() {
const info = await fetch("/api/info");
Expand All @@ -26,8 +27,8 @@ class Info extends Component {
path="/info"
render={({ match }) => (
<Collapse isOpen={match}>
<Card>
<h2>Info</h2>
<Box p={2}>
<Title>Info</Title>
{/* {info && (
<Flex column>
<Flex>
Expand All @@ -40,7 +41,7 @@ class Info extends Component {
</Flex>
</Flex>
)} */}
</Card>
</Box>
</Collapse>
)}
/>
Expand Down
14 changes: 10 additions & 4 deletions app/src/components/pages/Networks.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
import React from "react";

import { Collapse, Card } from "@blueprintjs/core";
import { Collapse } from "@blueprintjs/core";
import { Route } from "react-router-dom";
import styled from "styled-components";
import { Box } from "reflexbox";

const Title = styled.h2`
margin: 0;
`;

const Networks = () => {
return (
<Route
path="/networks"
render={({ match }) => (
<Collapse isOpen={match}>
<Card>
<h1>Networks</h1>
</Card>
<Box p={2}>
<Title>Networks</Title>
</Box>
</Collapse>
)}
/>
Expand Down
14 changes: 10 additions & 4 deletions app/src/components/pages/Volumes.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
import React from "react";

import { Collapse, Card } from "@blueprintjs/core";
import { Collapse } from "@blueprintjs/core";
import { Route } from "react-router-dom";
import styled from "styled-components";
import { Box } from "reflexbox";

const Title = styled.h2`
margin: 0;
`;

const Volumes = () => {
return (
<Route
path="/volumes"
render={({ match }) => (
<Collapse isOpen={match}>
<Card>
<h1>Volumes</h1>
</Card>
<Box p={2}>
<Title>Volumes</Title>
</Box>
</Collapse>
)}
/>
Expand Down

0 comments on commit f52d750

Please sign in to comment.