From b3cefa32b79bd70bb380f62ea08470116412119a Mon Sep 17 00:00:00 2001 From: Jakob Moser Date: Thu, 13 Nov 2025 19:42:27 +0100 Subject: [PATCH] Add tab bar --- .../ui/static/components/pieces/TabBar.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 karaokatalog/ui/static/components/pieces/TabBar.js diff --git a/karaokatalog/ui/static/components/pieces/TabBar.js b/karaokatalog/ui/static/components/pieces/TabBar.js new file mode 100644 index 0000000..3dd4870 --- /dev/null +++ b/karaokatalog/ui/static/components/pieces/TabBar.js @@ -0,0 +1,16 @@ +import { Tab } from "./Tab.js" + +export default { + view() { + return m("nav", [ + m(Tab, { + href: "/all", + label: "Alle", + }), + m(Tab, { + href: "/favorites", + label: "Favoriten", + }), + ]) + }, +}