Skip to content

Commit

Permalink
Components for file list
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjstubbs committed Oct 30, 2017
1 parent 510c614 commit 2647a1a
Show file tree
Hide file tree
Showing 16 changed files with 169 additions and 15 deletions.
8 changes: 4 additions & 4 deletions build/asset-manifest.json
@@ -1,8 +1,8 @@
{ {
"main.css": "static/css/main.76ecd9c9.css", "main.css": "static/css/main.7e0941bf.css",
"main.css.map": "static/css/main.76ecd9c9.css.map", "main.css.map": "static/css/main.7e0941bf.css.map",
"main.js": "static/js/main.dba8de9e.js", "main.js": "static/js/main.57a92ca8.js",
"main.js.map": "static/js/main.dba8de9e.js.map", "main.js.map": "static/js/main.57a92ca8.js.map",
"static/media/Roboto-Thin.ttf": "static/media/Roboto-Thin.89e2666c.ttf", "static/media/Roboto-Thin.ttf": "static/media/Roboto-Thin.89e2666c.ttf",
"static/media/ionicons.eot?v=2.0.0": "static/media/ionicons.2c2ae068.eot", "static/media/ionicons.eot?v=2.0.0": "static/media/ionicons.2c2ae068.eot",
"static/media/ionicons.svg?v=2.0.0": "static/media/ionicons.621bd386.svg", "static/media/ionicons.svg?v=2.0.0": "static/media/ionicons.621bd386.svg",
Expand Down
2 changes: 1 addition & 1 deletion build/index.html
@@ -1 +1 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name="theme-color" content="#000000"><link rel="manifest" href="/manifest.json"><link rel="shortcut icon" href="/favicon.ico"><title>React App</title><link href="/static/css/main.76ecd9c9.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script type="text/javascript" src="/static/js/main.dba8de9e.js"></script></body></html> <!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name="theme-color" content="#000000"><link rel="manifest" href="/manifest.json"><link rel="shortcut icon" href="/favicon.ico"><title>React App</title><link href="/static/css/main.7e0941bf.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script type="text/javascript" src="/static/js/main.57a92ca8.js"></script></body></html>
2 changes: 1 addition & 1 deletion build/service-worker.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion build/static/css/main.76ecd9c9.css.map

This file was deleted.

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions build/static/css/main.7e0941bf.css.map

Large diffs are not rendered by default.

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions build/static/js/main.57a92ca8.js.map

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion build/static/js/main.dba8de9e.js.map

This file was deleted.

21 changes: 20 additions & 1 deletion src/App.js
@@ -1,11 +1,15 @@
import React, { Component } from 'react'; import React, { Component } from 'react';
import Avatar from './components/Avatar'; import Avatar from './components/Avatar';
import FileList from './components/FileList';
import ConsoleList from './components/ConsoleList';
import './assets/themes/neon_moon.css'; import './assets/themes/neon_moon.css';


class App extends Component { class App extends Component {
render() { render() {
return ( return (
<div className="App twelve columns"> <div className="App container">
<div className="twelve columns">

<header className="App-header"> <header className="App-header">


<Avatar></Avatar> <Avatar></Avatar>
Expand All @@ -14,6 +18,21 @@ class App extends Component {
<hr className="twelve columns" /> <hr className="twelve columns" />


</header> </header>


<div className="content">

<ConsoleList></ConsoleList>

<br />

<div className="u-cf"></div>

<FileList></FileList>

</div>

</div>
</div> </div>
); );
} }
Expand Down
27 changes: 27 additions & 0 deletions src/assets/themes/neon_moon.css
Expand Up @@ -21,6 +21,9 @@
padding: 0 !important; padding: 0 !important;
margin: 0 !important; } margin: 0 !important; }


.no-bullets {
list-style-type: none !important; }

.icon-justified { .icon-justified {
position: relative; position: relative;
top: 1.3px; top: 1.3px;
Expand Down Expand Up @@ -52,3 +55,27 @@ body {


hr { hr {
border-color: #404040; } border-color: #404040; }

/*
* Console List
*/
.console-list li {
font-size: 2em;
display: inline;
padding: 15px; }

.console-list li:not(.active) {
opacity: 0.5; }

.console-list li .active {
font-size: 2.5em;
opacity: 1; }

/*
* File List
*/
.file-list {
padding: 0px;
margin: 20px 0 0 0;
height: 100vh;
background: black; }
24 changes: 24 additions & 0 deletions src/components/ConsoleList.jsx
@@ -0,0 +1,24 @@
import React from 'react';

const Components = {
ConsoleList: function DatePicker(props) {
return (

<div className="console-list twelve columns">
<ul className="no-bullets nopadding-nomargin console-list">
<li className="active">NES</li>
<li>SNES</li>
<li>N64</li>
</ul>
</div>

);

}
}

function ConsoleList() {
return <Components.ConsoleList />;
}

export default ConsoleList;
20 changes: 20 additions & 0 deletions src/components/FileList.jsx
@@ -0,0 +1,20 @@
import React from 'react';

const Components = {
FileList: function DatePicker(props) {
return (

<div className="file-list five columns">
File List
</div>

);

}
}

function FileList() {
return <Components.FileList />;
}

export default FileList;
2 changes: 1 addition & 1 deletion src/registerServiceWorker.js
Expand Up @@ -9,7 +9,7 @@
// This link also includes instructions on opting out of this behavior. // This link also includes instructions on opting out of this behavior.


const isLocalhost = Boolean( const isLocalhost = Boolean(
window.location.hostname === 'localhost' || window.location.hostname === '127.0.0.1' ||
// [::1] is the IPv6 localhost address. // [::1] is the IPv6 localhost address.
window.location.hostname === '[::1]' || window.location.hostname === '[::1]' ||
// 127.0.0.1/8 is considered localhost for IPv4. // 127.0.0.1/8 is considered localhost for IPv4.
Expand Down
28 changes: 28 additions & 0 deletions src/themes/neon_moon.css
Expand Up @@ -21,6 +21,9 @@
padding: 0 !important; padding: 0 !important;
margin: 0 !important; } margin: 0 !important; }


.no-bullets {
list-style-type: none !important; }

.icon-justified { .icon-justified {
position: relative; position: relative;
top: 1.3px; top: 1.3px;
Expand Down Expand Up @@ -52,3 +55,28 @@ body {


hr { hr {
border-color: #404040; } border-color: #404040; }

/*
* Console List
*/
.console-list li {
font-size: 2em;
display: inline;
padding: 15px; }

.console-list li:not(.active) {
opacity: 0.5; }

.console-list li .active {
font-size: 2.5em;
opacity: 1; }

/*
* File List
*/
.file-list {
padding: 0px;
margin: 20px 0 0 0;
height: 100vh;
overflow-y: scroll;
background: black; }
38 changes: 37 additions & 1 deletion src/themes/neon_moon.scss
Expand Up @@ -34,6 +34,10 @@ $red: #C50F0F;
margin: 0 !important; margin: 0 !important;
} }


.no-bullets {
list-style-type: none !important;
}

.icon-justified { .icon-justified {
position: relative; position: relative;
top: 1.3px; top: 1.3px;
Expand Down Expand Up @@ -72,4 +76,36 @@ body {


hr { hr {
border-color: darken($text-color, 55%); border-color: darken($text-color, 55%);
} }

/*
* Console List
*/

.console-list li {
font-size: 2em;
display: inline;
padding: 15px;
}

.console-list li:not(.active) {
opacity: 0.5;
}

.console-list li .active {
font-size: 2.5em;
opacity: 1;
}


/*
* File List
*/

.file-list {
padding: 0px;
margin: 20px 0 0 0;
height: 100vh;
overflow-y: scroll;
background: darken($background-color, 40%);
}

0 comments on commit 2647a1a

Please sign in to comment.