wip
This commit is contained in:
parent
2b81ff1fb3
commit
cc85486414
28 changed files with 207 additions and 97 deletions
28
app/templates/controlArea/index.js
Normal file
28
app/templates/controlArea/index.js
Normal file
|
@ -0,0 +1,28 @@
|
|||
const html = require('choo/html');
|
||||
const assets = require('../../../common/assets');
|
||||
const userAccount = require('../userAccount');
|
||||
|
||||
module.exports = function(state, emit) {
|
||||
const account = state.capabilities.account
|
||||
? html`<li>
|
||||
${userAccount(state, emit)}
|
||||
</li>`
|
||||
: null;
|
||||
return html`
|
||||
<nav class="controlArea">
|
||||
<ul>
|
||||
${account}
|
||||
<li>
|
||||
<a href="/">
|
||||
<img src="${assets.get('addfile.svg')}"/>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/uploads">
|
||||
<img src="${assets.get('blue_file.svg')}"/>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
`;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue