+
+ assign as many or as few players as you want and don't forget to πΎ
+ submit when you're done :)
+
+ {user && teams && players ? (
+
+
+
+
+
+ ) : (
+
+ )}
+
+ );
+}
diff --git a/src/Header.tsx b/src/Header.tsx
index 2fd8012..b514926 100644
--- a/src/Header.tsx
+++ b/src/Header.tsx
@@ -1,18 +1,70 @@
-import { Link, useLocation } from "react-router";
-import Avatar from "./Avatar";
+import { Link } from "react-router";
+import { useSession } from "./Session";
+import { useState } from "react";
export default function Header() {
- const location = useLocation();
+ const { user, teams, players } = useSession();
+ const [burgerActive, setBurgerActive] = useState(false);
return (
-
-
-
-

-
cutt
+
+
+
+
+
+ Sociogram
+
+
+ MVP
+
+
+ Team
+
+
+
+
+ {user?.username}
+
+ {user ? (
+
+ ) : (
+ <>
+
+
+ >
+ )}
+
+
+
+
+
);
}
diff --git a/src/Login.tsx b/src/Login.tsx
index 4a336ef..abf49e2 100644
--- a/src/Login.tsx
+++ b/src/Login.tsx
@@ -51,75 +51,54 @@ export const Login = ({ onLogin }: LoginProps) => {
}, []);
return (
- <>
-
-
);
};
diff --git a/src/Session.tsx b/src/Session.tsx
index e6626ba..691dea8 100644
--- a/src/Session.tsx
+++ b/src/Session.tsx
@@ -105,7 +105,13 @@ export function SessionProvider(props: SessionProviderProps) {
>
);
else if (err) {
- content =
;
+ content = (
+
+ );
} else
content = (
-
-
+
+
+ {children.map((child, index) => (
+
+
+ {child}
+
+
+ ))}
- {children.map((child, index) => (
-
-
- {child}
-
-
- ))}
);
}
diff --git a/src/main.css b/src/main.css
new file mode 100644
index 0000000..4dc96f0
--- /dev/null
+++ b/src/main.css
@@ -0,0 +1,12 @@
+@import "bulma/css/bulma.css";
+
+:root {
+ --bulma-primary-h: 220deg;
+ --bulma-primary-s: 60%;
+ --bulma-primary-l: 50%;
+}
+
+.overflow-y {
+ overflow-y: auto;
+ max-height: 30vh;
+}
diff --git a/src/main.tsx b/src/main.tsx
index bef5202..a61e5fd 100644
--- a/src/main.tsx
+++ b/src/main.tsx
@@ -1,10 +1,9 @@
-import { StrictMode } from 'react'
-import { createRoot } from 'react-dom/client'
-import './index.css'
-import App from './App.tsx'
+import { StrictMode } from "react";
+import { createRoot } from "react-dom/client";
+import App from "./CUTT.tsx";
-createRoot(document.getElementById('root')!).render(
+createRoot(document.getElementById("root")!).render(
- ,
-)
+
+);