Browse Source

Added a simple footer as well as passing along author information.

dev-bank
Bryan Miller 5 years ago
parent
commit
81c584643a
4 changed files with 22 additions and 1 deletions
  1. +4
    -0
      app/css/nespaint.css
  2. +1
    -1
      server.js
  3. +15
    -0
      views/footer.html
  4. +2
    -0
      views/index.html

+ 4
- 0
app/css/nespaint.css View File

@@ -27,6 +27,10 @@ body{
padding-right: 8px;
}

.text-align-right{
text-align: right;
}

div.NES-palette{
font-size:0.55em;
}

+ 1
- 1
server.js View File

@@ -33,7 +33,7 @@ app.engine('html', require('ejs').renderFile);
app.set('view engine', 'html');
app.use("/app", express.static(path.join(__dirname, "/app")));
app.get('/', function(req, res){
res.render('index.html', {version:version});
res.render('index.html', {version:version, author:package.author});
});

app.listen(port, () => {

+ 15
- 0
views/footer.html View File

@@ -0,0 +1,15 @@
<div class="pure-g">
<div class="pure-u-1-3">
<span class="simple-padding">
Version: <%= version %>
</span>
</div>
<div class="pure-u-2-3 text-align-right">
<span class="simple-padding">
Author: <%= author %>
</span>
</div>
</div>




+ 2
- 0
views/index.html View File

@@ -17,5 +17,7 @@
<%- include('workspace.html'); %>

</div>

<%- include('footer.html', {version:version, author:author}); %>
</div>
<%- include('tail.html'); %>

Loading…
Cancel
Save