Browse Source

The About button now displays Author, Version, License, and Description information (pulled from the package.json by the server

dev
Bryan Miller 5 years ago
parent
commit
8cab8812af
5 changed files with 24 additions and 3 deletions
  1. +1
    -1
      server.js
  2. +1
    -1
      views/header_menu.html
  3. +1
    -1
      views/index.html
  4. +1
    -0
      views/modal.html
  5. +20
    -0
      views/modals/about.html

+ 1
- 1
server.js View File

res.send(new Buffer.from(css_output)); res.send(new Buffer.from(css_output));
}); });
app.get('/', function(req, res){ app.get('/', function(req, res){
res.render('index.html', {version:GenVersion(), author:package.author});
res.render('index.html', {version:GenVersion(), author:package.author, description:package.description, license:package.license});
}); });





+ 1
- 1
views/header_menu.html View File

</ul> </ul>
</li> </li>


<li class="pure-menu-item" emit="about">
<li class="pure-menu-item" emit="modal-open" emit-args='{"cls":".about-modal"}'>
<a href="#" class="pure-menu-link"> <a href="#" class="pure-menu-link">
<i class="fa fa-info-circle"></i> <i class="fa fa-info-circle"></i>
About About

+ 1
- 1
views/index.html View File

<%- include('head.html'); %> <%- include('head.html'); %>


<div class="cover"></div> <div class="cover"></div>
<%- include('modal.html'); %>
<%- include('modal.html', {version:version, author:author, license:license, description:description}); %>
<%- include('header.html'); %> <%- include('header.html'); %>


<div class="pure-g pure-g-nw"> <div class="pure-g pure-g-nw">

+ 1
- 0
views/modal.html View File

</div> </div>
</div> </div>


<%- include("modals/about.html", {version:version, author:author, license:license, description:description}); %>
<%- include("modals/storeadd.html", {stores:[ <%- include("modals/storeadd.html", {stores:[
{"modalclass":"palettes-store-add", "title":"New Palette Name", "addevent":"palstore-add"}, {"modalclass":"palettes-store-add", "title":"New Palette Name", "addevent":"palstore-add"},
{"modalclass":"banks-store-add", "title":"New Bank Name", "addevent":"bankstore-add"}, {"modalclass":"banks-store-add", "title":"New Bank Name", "addevent":"bankstore-add"},

+ 20
- 0
views/modals/about.html View File

<div class="modal about-modal">
<div class="modal-content">
<span class="nes-color-text-06">NES </span>
<span class="color-NES-random">P</span>
<span class="color-NES-random">a</span>
<span class="color-NES-random">i</span>
<span class="color-NES-random">n</span>
<span class="color-NES-random">t</span>
<br>

Version: <%= version %><br>
Author: <%= author %><br>
License: <%= license %><br>
Description: <%= description %><br>

<form class="pure-form">
<button type="submit" class="pure-button" emit="modal-close">Close</button>
</form>
</div>
</div>

Loading…
Cancel
Save