From d3fa4d47af1369ca8e4e40234e5af6f381b73c33 Mon Sep 17 00:00:00 2001
From: Niklas <198754647+BlankAccountsUsername@users.noreply.github.com>
Date: Fri, 20 Jun 2025 14:55:26 +0200
Subject: [PATCH] do headerHeight in variable, change drawer items, modify
drawer design, add menu button cursor pointer
---
code/frontend/src/App.css | 1 -
code/frontend/src/components/Header.tsx | 55 ++++++++++++-------------
code/frontend/src/components/header.css | 23 ++++-------
3 files changed, 35 insertions(+), 44 deletions(-)
diff --git a/code/frontend/src/App.css b/code/frontend/src/App.css
index 80f1d26..ee84f1a 100644
--- a/code/frontend/src/App.css
+++ b/code/frontend/src/App.css
@@ -41,4 +41,3 @@ footer {
transform: rotate(360deg);
}
}
-
diff --git a/code/frontend/src/components/Header.tsx b/code/frontend/src/components/Header.tsx
index 7c0d56b..87f27c5 100644
--- a/code/frontend/src/components/Header.tsx
+++ b/code/frontend/src/components/Header.tsx
@@ -1,11 +1,12 @@
import "./header.css";
-import React, { useState, useRef, useEffect } from "react";
-import { Divider, List, ListItem, ListItemButton, ListItemIcon, ListItemText, Menu, MenuItem, SwipeableDrawer } from '@mui/material';
+import React, { useState, useRef } from "react";
+import { colors, createTheme, List, ListItem, ListItemButton, ListItemIcon, ListItemText, SwipeableDrawer, ThemeProvider } from '@mui/material';
import Box from '@mui/material/Box';
-import InboxIcon from "@mui/icons-material/Inbox";
-import MailIcon from '@mui/icons-material/Mail';
-import MenuIcon from '@mui/icons-material/Menu';
-import { Height } from "@mui/icons-material";
+import AddAPhotoIcon from '@mui/icons-material/AddAPhoto';
+import DynamicFeedIcon from '@mui/icons-material/DynamicFeed';
+import PersonIcon from '@mui/icons-material/Person';
+import InfoIcon from '@mui/icons-material/Info';
+import LogoutIcon from '@mui/icons-material/Logout';
// TODO: Dinge so umstrukturieren, dass der State für das offene menü in Header ist und das Menü auch in Header, sodass es mit width 100% die volle breite einnehmen kann
@@ -16,46 +17,44 @@ function Header() {
const toggleMenu = () => {
setIsOpen(!isOpen);
};
- const iconList = [InboxIcon, MailIcon, InboxIcon, MailIcon, InboxIcon, MailIcon];
+ const iconList = [DynamicFeedIcon, AddAPhotoIcon, PersonIcon, InfoIcon, LogoutIcon];
+ const routerLinksList = ["/feed","/app","/app","/app","/app"]
const DrawerList = (
- {["Inbox", "Starred", "Send email", "Drafts"].map((text, index) => (
-
+ {["Feed", "Create Post", "Profile", "About Us", "Log Out"].map((text, index) => (
+
-
- {["All mail", "Trash", "Spam"].map((text, index) => (
-
+
- FeatherFeed + Feather Feed
-