Verified Commit 04025866 authored by ynerant's avatar ynerant
Browse files

Add credits footer

parent 98559b66
......@@ -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 {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment