From 350c767a13239069e05e939eb2e1bfa82935c112 Mon Sep 17 00:00:00 2001 From: Chris Kruining Date: Mon, 14 Apr 2025 23:28:03 +0200 Subject: [PATCH] did some work on the user session and components --- src/features/shell/{index.ts => index.tsx} | 0 src/features/shell/shell.tsx | 9 ++- src/features/shell/top.module.css | 28 ++++++++ src/features/shell/top.tsx | 83 +++++++++------------- src/features/user/avatar.module.css | 7 ++ src/features/user/avatar.tsx | 30 ++++++-- src/features/user/index.ts | 3 + src/features/user/profile.module.css | 22 ++++++ src/features/user/profile.tsx | 18 +++++ src/features/user/user.ts | 2 +- src/routes/(shell).tsx | 30 +++++++- 11 files changed, 172 insertions(+), 60 deletions(-) rename src/features/shell/{index.ts => index.tsx} (100%) create mode 100644 src/features/user/avatar.module.css create mode 100644 src/features/user/profile.module.css create mode 100644 src/features/user/profile.tsx diff --git a/src/features/shell/index.ts b/src/features/shell/index.tsx similarity index 100% rename from src/features/shell/index.ts rename to src/features/shell/index.tsx diff --git a/src/features/shell/shell.tsx b/src/features/shell/shell.tsx index ea2b48b..47984b0 100644 --- a/src/features/shell/shell.tsx +++ b/src/features/shell/shell.tsx @@ -2,11 +2,16 @@ import { ParentComponent } from "solid-js"; import { Top } from "./top"; import { Nav } from "./nav"; import css from "./shell.module.css"; +import { User } from "../user"; -export const Shell: ParentComponent = (props) => { +interface ShellProps { + user: User | undefined; +} + +export const Shell: ParentComponent = (props) => { return (
- +