Skip to content

Commit

Permalink
html menu wip
Browse files Browse the repository at this point in the history
  • Loading branch information
krl committed Jun 15, 2015
1 parent eb520fe commit f8db567
Show file tree
Hide file tree
Showing 18 changed files with 29,679 additions and 78 deletions.
File renamed without changes.
4 changes: 4 additions & 0 deletions wizard/css/wizard.css → css/help.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
height: 50;
}

#error_row {
display: none;
}

#header h3 {
color: white;
margin-top: 15px;
Expand Down
43 changes: 43 additions & 0 deletions css/menu.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
html {
width: 240px;
padding: 10px;
background: #eee;
}

.panel {
padding: 4px;
margin-top: 10px;
margin-bottom: 0;
}

.bound {
background: white;
padding: 4px;
}

#logo {
display: table;
width: 100%;
}

.control {
display: block;
margin-top: 6px;
}

.toggle {
height: 32px !important;
width: 64px !important;
}

.cell {
width: 33%;
display: table-cell;
text-align: center;
padding-bottom: 6px;
}

.version {
text-align: center;
margin-bottom: 4px;
}
5 changes: 5 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
standard index.js || exit
rm -R pkg
sudo rm -R /home/mumin/Desktop/x64
npm run package
sudo cp -R pkg/0.1.0/linux/x64 /home/mumin/Desktop
5 changes: 5 additions & 0 deletions help/css/bootstrap.min.css

Large diffs are not rendered by default.

30 changes: 30 additions & 0 deletions help/css/help.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#logo {
height: 25px;
padding-left: 20px;
margin: 12px;
}

#header {
background: black;
padding: 0;
height: 50;
}

#error_row {
display: none;
}

#header h3 {
color: white;
margin-top: 15px;
}

h3 {
font-size: 18px;
text-transform: uppercase;
}

.panel-heading {
text-transform: uppercase;
font-weight: bold;
}
32 changes: 16 additions & 16 deletions wizard/wizard.html → help/help.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,18 @@
<title>IPFS Setup wizard</title>
<meta charset="utf-8"/>
<link rel="stylesheet" href="css/bootstrap.min.css"/>
<link rel="stylesheet" href="css/wizard.css"/>
<link rel="stylesheet" href="css/help.css"/>
</head>
<body>
<div id="header" class="row">
<div class="col-xs-2">
<img id="logo" src="img/logo.png"/>
</div>
<div class="col-xs-7">
<h3>setup wizard</h3>
</div>
</div>
<br/>
<div class="row">
<div id="error_row" class="row">
<div class="col-xs-9 col-xs-offset-2">
<div class="panel panel-danger">
<div class="panel-heading">
Expand All @@ -26,19 +25,20 @@ <h3>setup wizard</h3>
</div>
</div>
</div>
<!-- <div class="row"> -->
<!-- <div class="col-xs-9 col-xs-offset-2"> -->
<!-- <div class="panel panel-default"> -->
<!-- <div class="panel-heading"> -->
<!-- Initialize node -->
<!-- </div> -->
<!-- <div class="panel-body"> -->
<!-- <p>You need to initialize your local node, this only needs to be done once</p> -->
<!-- <button class="btn btn-active" onclick="initialize()">Initialize</button> -->
<!-- </div> -->
<!-- </div> -->
<!-- </div> -->
<!-- </div> -->

<div class="row">
<div class="col-xs-9 col-xs-offset-2">
<div class="panel panel-default">
<div class="panel-heading">
Status
</div>
<div class="panel-body">
Your daemon is not running, console unavailable
</div>
</div>
</div>
</div>

<script src="js/wizard.js"></script>
</body>
</html>
File renamed without changes
8 changes: 6 additions & 2 deletions wizard/js/wizard.js → help/js/help.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ function initialize () {
}

ipc.on('err', function (err) {
var error = window.document.getElementById('error')
error.innerHTML = '<pre>' + err + '</pre>'
if (err) {
var error = window.document.getElementById('error')
error.innerHTML = '<pre>' + err + '</pre>'
} else {

}
})
44 changes: 44 additions & 0 deletions html/help.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<html>
<head>
<title>IPFS Setup wizard</title>
<meta charset="utf-8"/>
<link rel="stylesheet" href="css/bootstrap.min.css"/>
<link rel="stylesheet" href="css/help.css"/>
</head>
<body>
<div id="header" class="row">
<div class="col-xs-2">
<img id="logo" src="img/logo.png"/>
</div>
<div class="col-xs-7">
</div>
</div>
<br/>
<div id="error_row" class="row">
<div class="col-xs-9 col-xs-offset-2">
<div class="panel panel-danger">
<div class="panel-heading">
Error
</div>
<div class="panel-body" id="error">
</div>
</div>
</div>
</div>

<div class="row">
<div class="col-xs-9 col-xs-offset-2">
<div class="panel panel-default">
<div class="panel-heading">
Status
</div>
<div class="panel-body">
Your daemon is not running, console unavailable
</div>
</div>
</div>
</div>

<script src="js/wizard.js"></script>
</body>
</html>
13 changes: 13 additions & 0 deletions html/menu.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<html>
<head>
<meta charset="utf-8"/>
<title>Example App</title>
<link rel="stylesheet" href="../node_modules/bootstrap/dist/css/bootstrap.css"/>
<link rel="stylesheet" href="../node_modules/bootstrap-toggle/css/bootstrap2-toggle.css"/>
<link rel="stylesheet" href="../css/menu.css"/>
<script src="../js/menu.js"></script>
</head>
<body>
<div id="menu-app"/>
</body>
</html>
Binary file added img/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit f8db567

Please sign in to comment.