From 04025866b2a6ad97c8a780fb76479aa55e3fca1e Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Wed, 4 May 2022 21:29:52 +0200 Subject: [PATCH] Add credits footer --- main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 4572fb8..35878e4 100644 --- a/main.go +++ b/main.go @@ -315,7 +315,10 @@ func (m model) wordsView() string { func (m model) footerView() string { info := infoStyle.Render(fmt.Sprintf("%3.f%%", m.wordsViewport.ScrollPercent()*100)) line := strings.Repeat("─", int(math.Max(0, float64(m.wordsViewport.Width-lipgloss.Width(info))))) - return lipgloss.JoinHorizontal(lipgloss.Center, line, info) + credits := "Inspiration : https://cemantix.herokuapp.com/ (@enigmathix)\n" + + "Sources : https://gitlab.crans.org/ynerant/cemantix-charm (@ynerant)\n" + + "Données : Wikipédia France (+ Word2Vec), Grammalecte" + return lipgloss.JoinVertical(lipgloss.Center, lipgloss.JoinHorizontal(lipgloss.Center, line, info), credits) } func (m model) View() string {