Skip to content

Commit a084dac

Browse files
committed
refactor: update logo display with title and tagline for our branding as before
1 parent 8fb31f5 commit a084dac

1 file changed

Lines changed: 14 additions & 5 deletions

File tree

ui/tui/components/header/header.go

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ const logo2 string = "" +
1414
"╦╔═┌─┐┬ ┬┌┬┐┌─┐┌─┐┌┬┐┌─┐┬─┐\n" +
1515
"╠╩╗├┤ └┬┘│││├─┤└─┐ │ ├┤ ├┬┘\n" +
1616
"╩ ╩└─┘ ┴ ┴ ┴┴ ┴└─┘ ┴ └─┘┴└─"
17-
const logo string = "🗝️ Master 🔑"
17+
const logoTitle string = "🔑 Keymaster"
18+
const logoTagline string = "An agentless SSH key manager that just does the job."
19+
const logo string = logoTitle + "\n" + logoTagline
1820

1921
// Keep `logo2` available for the TUI rewrite. Reference it so linters
2022
// don't flag it as unused while the new UI consumes it.
@@ -38,14 +40,21 @@ func (m *Model) Update(msg tea.Msg) tea.Cmd {
3840
}
3941

4042
func (m Model) View() string {
43+
brand := lipgloss.NewStyle().
44+
Bold(true).
45+
Render(logoTitle) + "\n" +
46+
lipgloss.NewStyle().
47+
Foreground(lipgloss.Color("8")).
48+
Render(logoTagline)
49+
4150
return lipgloss.
4251
NewStyle().
43-
Border(lipgloss.NormalBorder(), false).
52+
BorderStyle(lipgloss.NormalBorder()).
4453
BorderBottom(true).
4554
Render(lipgloss.PlaceHorizontal(
46-
m.size.Width, //m.size.Height-1,
47-
lipgloss.Center, //lipgloss.Center,
48-
logo,
55+
m.size.Width,
56+
lipgloss.Left,
57+
brand,
4958
))
5059
}
5160

0 commit comments

Comments
 (0)