git ssb

2+

mixmix / ticktack



Commit ca60633113df0b41f3bab3e4319dcd13a9c9555e

stylfix

mix irving committed on 8/9/2017, 4:39:06 AM
Parent: b51fde82e0d57c7264d7575dde85df093d30b696

Files changed

app/html/thread.mcsschanged
app/page/group.jschanged
app/page/home.jschanged
app/page/private.jschanged
app/page/page.mcssadded
styles/global.mcssadded
app/html/thread.mcssView
@@ -1,8 +1,8 @@
11 Thread {
2- background-color: #eee
2+ background-color: #f7f7f7
3+ font-family: 'arial'
34 padding: 1rem
4- font-family: 'arial'
55
66 max-width: 1400px
77
88 display: flex
app/page/group.jsView
@@ -15,9 +15,9 @@
1515 // TODO show specific group index described by key
1616
1717 const { goTo } = api.app.sync
1818
19- return h('div', [
19+ return h('Page -group', [
2020 h('h1', 'Group'),
2121 h('a', { 'ev-click': () => goTo({ page: 'home' }) }, 'Home'),
2222 h('p', `key: ${location.key}`)
2323 ])
app/page/home.jsView
@@ -13,13 +13,15 @@
1313 function home (location) {
1414 // location here can expected to be: { page: 'home' }
1515 const { goTo } = api.app.sync
1616
17- return h('div', [
17+ return h('Page -home', [
1818 h('h1', 'Home'),
19- h('div', { 'ev-click': () => goTo({ page: 'home' }) }, 'Home'),
20- h('div', { 'ev-click': () => goTo({ type: 'group', key: '%sadlkjas;lkdjas' }) }, 'Group'),
21- h('div', { 'ev-click': () => goTo({key: '%fXXZgQrwnj7F+Y19H0IXxNriuvPFoahvusih3UzpkfA=.sha256'}) }, 'Private Thread A'),
22- h('div', { 'ev-click': () => goTo({key: '%3cWZHeN6k03XpvDBxrxP5bGLsNByFLTvr/rKYFV4f+c=.sha256'}) }, 'Private Thread B'),
19+ h('nav', [
20+ h('div', { 'ev-click': () => goTo({ page: 'home' }) }, 'Home'),
21+ h('div', { 'ev-click': () => goTo({ type: 'group', key: '%sadlkjas;lkdjas' }) }, 'Group'),
22+ h('div', { 'ev-click': () => goTo({key: '%fXXZgQrwnj7F+Y19H0IXxNriuvPFoahvusih3UzpkfA=.sha256'}) }, 'Private Thread A'),
23+ h('div', { 'ev-click': () => goTo({key: '%3cWZHeN6k03XpvDBxrxP5bGLsNByFLTvr/rKYFV4f+c=.sha256'}) }, 'Private Thread B'),
24+ ])
2325 ])
2426 }
2527 }
app/page/private.jsView
@@ -18,11 +18,11 @@
1818 const { goTo } = api.app.sync
1919
2020 const thread = api.app.html.thread(location.key)
2121
22- return h('div', [
22+ return h('Page -private', [
2323 h('h1', 'Private message'),
24- h('div', { 'ev-click': () => goTo({ page: 'home' }) }, 'Home'),
24+ h('nav', { 'ev-click': () => goTo({ page: 'home' }) }, 'Home'),
2525 thread
2626 ])
2727 }
2828 }
app/page/page.mcssView
@@ -1,0 +1,7 @@
1+Page {
2+ h1, nav {
3+ margin-left: 1rem
4+ }
5+
6+}
7+
styles/global.mcssView
@@ -1,0 +1,7 @@
1+body {
2+ font-family: arial
3+ background-color: #fff
4+
5+ margin: 0
6+}
7+

Built with git-ssb-web