Skip to content

Commit

Permalink
Add about link
Browse files Browse the repository at this point in the history
  • Loading branch information
agajdosi committed Nov 25, 2021
1 parent eb5ff9e commit efa7abe
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion FyneApp.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ Website = "https://gajdosik.org/nomin"
Name = "Nomin"
ID = "org.gajdosik.nomin"
Version = "0.2.0"
Build = 62
Build = 72
16 changes: 15 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
package main

import (
"net/url"

"fyne.io/fyne/v2"
"fyne.io/fyne/v2/app"
"fyne.io/fyne/v2/container"
"fyne.io/fyne/v2/dialog"
"fyne.io/fyne/v2/layout"
"fyne.io/fyne/v2/widget"

"github.com/nomin-project/nomin-mobile/sender"
Expand Down Expand Up @@ -36,6 +39,10 @@ func main() {
sendButton := widget.NewButton("Send Mail", func() {
verifyAndSend(from, to, subject, text, server, port, window)
})
sendButton.Importance = widget.HighImportance

aboutURL, _ := url.Parse("https://gajdosik.org/nomin")
aboutNomin := widget.NewHyperlink("About Nomin app.", aboutURL)

mailAbout := widget.NewRichTextWithText("Get recommended by a famous curator. Write an email recommending your artistic persona, select the sending curator and receiving gallery or other institution and just get recommended without any need for boring and slow networking!")
mailAbout.Wrapping = fyne.TextWrapWord
Expand Down Expand Up @@ -66,11 +73,18 @@ func main() {
)

sendLayout :=
container.NewVBox(
container.New(
layout.NewVBoxLayout(),
container.NewPadded(
sendAbout,
),
sendButton,
layout.NewSpacer(),
container.NewMax(
container.NewCenter(
aboutNomin,
),
),
)

tabs := container.NewAppTabs(
Expand Down

0 comments on commit efa7abe

Please sign in to comment.