From d876936ff7ba9717325bb6cd4dd3241b62d36e50 Mon Sep 17 00:00:00 2001 From: Yves Biener Date: Thu, 17 Oct 2024 16:34:37 +0200 Subject: [PATCH] add(Header): social links: github and mail links --- src/widget/Header.zig | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/widget/Header.zig b/src/widget/Header.zig index c2c2989..99e134e 100644 --- a/src/widget/Header.zig +++ b/src/widget/Header.zig @@ -61,7 +61,22 @@ fn fillView(this: *@This()) void { } } - // TODO: github icon, discord icon, mail icon with corresponding links to contact me + // github + { + const cell: vaxis.Cell = .{ + .link = .{ .uri = "https://github.com/yves-biener" }, + .char = .{ .grapheme = "github" }, + }; + this.view.?.writeCell(this.view.?.screen.width - 9, 0, cell); + } + // mail + { + const cell: vaxis.Cell = .{ + .link = .{ .uri = "mailto:yves.biener@gmx.de" }, + .char = .{ .grapheme = "mail" }, + }; + this.view.?.writeCell(this.view.?.screen.width - 16, 0, cell); + } } /// Update loop for a given widget to react to the provided `Event`. It may