浏览代码

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

dev-bank
Bryan Miller 5 年前
父节点
当前提交
81c584643a
共有 4 个文件被更改,包括 22 次插入1 次删除
  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 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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 查看文件

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

</div>

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

正在加载...
取消
保存