Skip to content

Commit 60feb86

Browse files
committed
Add css styles
1 parent 84b9a67 commit 60feb86

File tree

5 files changed

+25
-4
lines changed

5 files changed

+25
-4
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
node_modules/
22
npm-debug.log
3-
dist/
4-
!dist/index.html
3+
dist/app.js

dist/index.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
<html>
22
<head>
33
<title>Lambda Blocks</title>
4+
<meta charset="UTF-8">
5+
6+
<link rel="stylesheet" type="text/css" href="styles.css">
47
</head>
58
<body>
69
<div id="main">

dist/styles.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
html, body {
2+
margin: 0;
3+
padding: 0;
4+
}
5+
6+
html, body, #main {
7+
height: 100%;
8+
}

src/components/Library.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
11
import React, { PropTypes, Component } from 'react'
22
import Module from './Module'
33

4+
const styles = {
5+
float: 'left',
6+
height: '100%',
7+
width: '250px',
8+
overflow: 'auto'
9+
}
10+
411
export default class Library extends Component {
512
render() {
613
const { isFetching, items } = this.props
714

815
return (
9-
<div>
16+
<div style={ styles }>
1017
<h2>Library</h2>
1118
{ isFetching &&
1219
<h3>Loading...</h3>

src/containers/App.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ import { connect } from 'react-redux'
33
import { fetchLibraryIfNeeded, invalidateLibrary } from '../actions'
44
import Library from '../components/Library'
55

6+
const styles = {
7+
height: '100%'
8+
}
9+
610
class App extends Component {
711
constructor(props) {
812
super(props)
@@ -16,7 +20,7 @@ class App extends Component {
1620
render() {
1721
const { library } = this.props
1822
return (
19-
<div>
23+
<div style={ styles }>
2024
<Library { ...library } />
2125
</div>
2226
)

0 commit comments

Comments
 (0)