From 15f5f0ff3a92646fff405c2de0c2dba84468c411 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh <hi@midhun.dev> Date: Tue, 15 Feb 2022 15:44:43 +0530 Subject: [PATCH] Add a FooterView --- src/ui/views/FooterView.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/ui/views/FooterView.ts diff --git a/src/ui/views/FooterView.ts b/src/ui/views/FooterView.ts new file mode 100644 index 0000000..3ddee05 --- /dev/null +++ b/src/ui/views/FooterView.ts @@ -0,0 +1,15 @@ +import { TemplateView } from "hydrogen-view-sdk"; +import chatterboxLogo from "../res/chat-bubbles.svg"; + +export class FooterView extends TemplateView { + render(t) { + return t.div({ className: "FooterView" }, + [ + t.div([ + t.img({ src: chatterboxLogo, className: "FooterView_logo" }), + t.span({ className: "FooterView_chatterbox-branding" }, "Chatterbox"), + ]), + t.div({ className: "FooterView_matrix-branding" }, ["Powered by Matrix"]) + ]); + } +} -- GitLab