From 334445ece3a94d89e64cafa42b23978c4b34e969 Mon Sep 17 00:00:00 2001 From: grngxd <36968271+grngxd@users.noreply.github.com> Date: Sat, 10 Aug 2024 08:18:34 +0100 Subject: [PATCH] left sidebar --- web/src/components/button/Button.tsx | 8 +++- web/src/components/sidebars/Sidebars.tsx | 32 ++++++++++--- web/src/components/user/User.tsx | 59 ++++++++++++++++-------- web/src/lib/contexts.ts | 3 ++ web/src/routes/layout.tsx | 2 +- web/tailwind.config.js | 3 ++ 6 files changed, 79 insertions(+), 28 deletions(-) create mode 100644 web/src/lib/contexts.ts diff --git a/web/src/components/button/Button.tsx b/web/src/components/button/Button.tsx index 0678c9a..d464c91 100644 --- a/web/src/components/button/Button.tsx +++ b/web/src/components/button/Button.tsx @@ -1,8 +1,12 @@ import { component$, IntrinsicHTMLElements, Slot } from "@builder.io/qwik"; -export default component$((props: IntrinsicHTMLElements["div"]) => { +interface ButtonProps { + light?: boolean; +} + +export default component$((props: IntrinsicHTMLElements["div"] & ButtonProps) => { return ( -
{props.user.displayName}
- @ - + @ + {props.user.userName} {props.action}
@@ -48,4 +69,4 @@ export default component$((props: UserProps) => {