Skip to content

Commit

Permalink
Add some style for the dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
SFantasy committed Dec 16, 2015
1 parent 84f3ccc commit 215919b
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 20 deletions.
35 changes: 18 additions & 17 deletions dist/bundle.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/Repo.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ export default class Repo extends React.Component {

render () {
if (!this.state.loaded) {
return <p>Loading...</p>;
return <p style={{textAlign:'center'}}>Loading...</p>;
}

return (
<table>
<table className="repo-table">
<thead>
<tr>
<th>Repo</th>
Expand Down
6 changes: 5 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@ import React from 'react';
import ReactDOM from 'react-dom';

import Repo from './Repo';
import './style.scss';

class App extends React.Component {
render () {
return (
<div>
<h1>RNComponents</h1>
<h1 className="title">RNComponents</h1>
<Repo />
<footer className="footer">
<p>Copyright 2015 <a href="https://github.com/RNComponents">RNComponents</a></p>
</footer>
</div>
);
}
Expand Down
39 changes: 39 additions & 0 deletions src/style.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
body {
margin: 0;
color: #666;
font-family: "Lato", Geneva, Verdana, sans-serif;
}

a {
text-decoration: none;
color: #1D62F0;
&:hover {
text-decoration: underline;
}
}

.title {
text-align: center;
}

.repo-table {
width: 1024px;
margin: 0 auto;
border-collapse: collapse;

th, td {
padding: 10px;
}

td {
border: 1px solid rgba(200, 200, 200, 0.5);
}
}

.footer {
text-align: center;
margin: 20px 0;
p {
font-size: 14px;
}
}

0 comments on commit 215919b

Please sign in to comment.