);
}
\ No newline at end of file
diff --git a/front/src/components/TopBar.tsx b/front/src/components/TopBar.tsx
new file mode 100644
index 0000000..35f1c72
--- /dev/null
+++ b/front/src/components/TopBar.tsx
@@ -0,0 +1,32 @@
+import { Link } from "react-router-dom"
+import { User } from "../types"
+
+import "../styles/TopBar.css"
+
+export default function TopBar({ user }: { user: User | undefined }) {
+ return (
+
+
+
Tanuki's Forum
+ Home
+ Channels
+
+ {user ? (
+
+ {user.username}
+
+
+ ) : (
+
+ Login
+ Register
+
+ )}
+
+ )
+}
\ No newline at end of file
diff --git a/front/src/index.css b/front/src/index.css
index 75e6ee3..1809dd7 100644
--- a/front/src/index.css
+++ b/front/src/index.css
@@ -1,3 +1,7 @@
+html {
+ background-color: #FFE0E3;
+}
+
.cat {
width: 100px;
}
diff --git a/front/src/pages/ChannelPage.tsx b/front/src/pages/ChannelPage.tsx
index c9658b3..e8f8656 100644
--- a/front/src/pages/ChannelPage.tsx
+++ b/front/src/pages/ChannelPage.tsx
@@ -1,9 +1,12 @@
import { useParams, Link } from "react-router-dom";
import React, { useEffect, useState } from "react";
import { Channel, Messages, User } from "../types";
+import TopBar from "../components/TopBar";
import MessageComponent from "../components/MessageComponent";
import axios from "axios";
+import "../styles/ChannelPage.css";
+
export default function ChannelPage() {
const { name } = useParams();
const [channel, setChannel] = useState();
@@ -102,17 +105,24 @@ export default function ChannelPage() {
}
return (
-