diff --git a/src/App.jsx b/src/App.jsx
index 55be451..31c1d45 100644
--- a/src/App.jsx
+++ b/src/App.jsx
@@ -23,6 +23,8 @@ function App() {
>
+
+ {/* Main content area */}
Welcome to the Fendi Casa Experience
This is a sample box.
diff --git a/src/components/AppHeader.jsx b/src/components/AppHeader.jsx
index 3606574..8f330d5 100644
--- a/src/components/AppHeader.jsx
+++ b/src/components/AppHeader.jsx
@@ -1,17 +1,34 @@
+import { useState } from 'react';
import fendiLogo from '/favicon.png'
import { AppBar, Toolbar, Typography, InputBase, IconButton, Box } from '@mui/material';
import SearchIcon from '@mui/icons-material/Search';
+import MenuDrawer from './MenuDrawer';
export default function AppHeader({ zone = 'public' }) {
+
+ const bgColor = {
+ public: '#000000a0',
+ restricted: '#e0e0ff',
+ private: '#d0f0e0',
+ };
+
+ const [menuOpen, setMenuOpen] = useState(false);
+
const isPrivate = zone === 'private';
const isRestricted = zone === 'restricted';
const isPublic = zone === 'public';
return (
-
+
-
+ setMenuOpen(true)}>
@@ -30,7 +47,7 @@ export default function AppHeader({ zone = 'public' }) {
pr: 2,
py: 0.5,
borderRadius: 1,
- backgroundColor: '#000000a0',
+ bgcolor: '#000000a0',
color: 'gray',
width: { md: '300px', lg: '400px' }
}}
@@ -49,6 +66,9 @@ export default function AppHeader({ zone = 'public' }) {
)}
+ {/* Rendering the Drawer */}
+ setMenuOpen(false)} />
+
);
diff --git a/src/components/MenuDrawer.jsx b/src/components/MenuDrawer.jsx
new file mode 100644
index 0000000..9495b99
--- /dev/null
+++ b/src/components/MenuDrawer.jsx
@@ -0,0 +1,41 @@
+import { Drawer, List, ListItem, ListItemText, useMediaQuery } from '@mui/material';
+
+const menuOptions = {
+ public: ['Home', 'Explore', 'Contact'],
+ restricted: ['Dashboard', 'Projects', 'Support'],
+ private: ['Admin', 'Users', 'Settings'],
+};
+
+export default function MenuDrawer({ zone = 'public', open, onClose }) {
+ const isMobile = useMediaQuery('(max-width:900px)');
+ const items = menuOptions[zone];
+
+ return (
+
+
+ {items.map((text, index) => (
+
+
+
+ ))}
+
+
+ );
+}
\ No newline at end of file