Add Status logo

This commit is contained in:
Ivan Danyliuk 2018-10-22 21:11:20 +02:00
parent 04106c6fb0
commit 5525f3c95f
No known key found for this signature in database
GPG Key ID: 97ED33CE024E1DBF
3 changed files with 11 additions and 4 deletions

BIN
images/status.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

@ -55,7 +55,7 @@ func (n *NetworkSelector) Render() vecty.ComponentOrHTML {
widgets.Header("Network graph:"), widgets.Header("Network graph:"),
elem.Div( elem.Div(
vecty.Markup( vecty.Markup(
vecty.Class("select"), vecty.Class("select", "is-fullwidth"),
event.Change(n.onChange), event.Change(n.onChange),
), ),
elem.Select( elem.Select(

13
page.go
View File

@ -7,6 +7,7 @@ import (
"github.com/gopherjs/vecty" "github.com/gopherjs/vecty"
"github.com/gopherjs/vecty/elem" "github.com/gopherjs/vecty/elem"
"github.com/gopherjs/vecty/event" "github.com/gopherjs/vecty/event"
"github.com/gopherjs/vecty/prop"
"github.com/status-im/whispervis/widgets" "github.com/status-im/whispervis/widgets"
) )
@ -163,17 +164,23 @@ func (p *Page) replaySimulation() {
func (p *Page) header() *vecty.HTML { func (p *Page) header() *vecty.HTML {
return elem.Section( return elem.Section(
elem.Image(
vecty.Markup(
vecty.Style("padding-top", "5px"),
prop.Src("images/status.png"),
),
),
elem.Heading2( elem.Heading2(
vecty.Markup( vecty.Markup(
vecty.Class("title", "has-text-weight-light"), vecty.Class("title", "has-text-weight-light"),
), ),
vecty.Text("Whisper Message Propagation"), vecty.Text("Whisper Simulator"),
), ),
elem.Heading5( elem.Heading6(
vecty.Markup( vecty.Markup(
vecty.Class("subtitle", "has-text-weight-light"), vecty.Class("subtitle", "has-text-weight-light"),
), ),
vecty.Text("This visualization represents message propagation in the p2p network."), vecty.Text("This simulator shows message propagation in the Whisper network."),
), ),
) )
} }