This commit is contained in:
syuilo 2017-11-02 00:20:33 +09:00
parent 667ddfea9a
commit 9f6cc8bafb
5 changed files with 25 additions and 2 deletions

View file

@ -1,4 +1,5 @@
@import "../base" @import "../base"
html html
padding 8px
background #efefef background #efefef

View file

@ -1,5 +1,5 @@
<mk-channel> <mk-channel>
<header><a href={ CONFIG.chUrl }>Misskey Channels</a></header> <mk-header/>
<hr> <hr>
<main if={ !fetching }> <main if={ !fetching }>
<h1>{ channel.title }</h1> <h1>{ channel.title }</h1>
@ -36,7 +36,6 @@
<style> <style>
:scope :scope
display block display block
padding 8px
> main > main
> h1 > h1

View file

@ -0,0 +1,20 @@
<mk-header>
<div>
<a href={ CONFIG.chUrl }>Index</a> | <a href={ CONFIG.url }>Misskey</a>
</div>
<div>
<a if={ !SIGNIN } href={ CONFIG.url }>ログイン(新規登録)</a>
<a if={ SIGNIN } href={ CONFIG.url + '/' + I.username }>{ I.username }</a>
</div>
<style>
:scope
display flex
> div:last-child
margin-left auto
</style>
<script>
this.mixin('i');
</script>
</mk-header>

View file

@ -1,2 +1,3 @@
require('./index.tag'); require('./index.tag');
require('./channel.tag'); require('./channel.tag');
require('./header.tag');

View file

@ -1,4 +1,6 @@
<mk-index> <mk-index>
<mk-header/>
<hr>
<button onclick={ n }>%i18n:ch.tags.mk-index.new%</button> <button onclick={ n }>%i18n:ch.tags.mk-index.new%</button>
<hr> <hr>
<ul if={ channels }> <ul if={ channels }>