Skip to content
Snippets Groups Projects
FooterView.ts 1.29 KiB
Newer Older
David Langley's avatar
David Langley committed
Copyright 2025 New Vector Ltd.
Copyright 2022 The Matrix.org Foundation C.I.C.

David Langley's avatar
David Langley committed
SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
Please see LICENSE files in the repository root for full details.
RMidhunSuresh's avatar
RMidhunSuresh committed
import { TemplateView } from "hydrogen-view-sdk";
import chatterboxLogo from "../res/chat-bubbles.svg";
import { FooterViewModel } from "../../viewmodels/FooterViewModel";
RMidhunSuresh's avatar
RMidhunSuresh committed

export class FooterView extends TemplateView<FooterViewModel> {
    constructor(value) {
        super(value);
    }

    render(t, vm) {
        return t.div({ className: "FooterView" }, [
            t.div([
                t.img({ src: chatterboxLogo, className: "FooterView_logo" }),
                    {
                        className: "FooterView_chatterbox-branding",
                        href: vm.chatterboxLink,
                        target: "_top",
                        rel: "noopener"
                    },
                    "Chatterbox"
                ),
            ]),
                {
                    className: "FooterView_matrix-branding",
                    href: vm.matrixLink,
                    target: "_top",
                    rel: "noopener"
                "Powered by Matrix"
RMidhunSuresh's avatar
RMidhunSuresh committed
    }
}