From 26ee7a0239491399f16aa678cb46efbb5cddc7c9 Mon Sep 17 00:00:00 2001 From: Ekta Yadav Date: Mon, 1 Apr 2024 13:20:26 +0530 Subject: [PATCH] header ui --- packages/nulp_elite/src/components/header.js | 205 +++++++++++++++++++ 1 file changed, 205 insertions(+) create mode 100644 packages/nulp_elite/src/components/header.js diff --git a/packages/nulp_elite/src/components/header.js b/packages/nulp_elite/src/components/header.js new file mode 100644 index 00000000..6589d196 --- /dev/null +++ b/packages/nulp_elite/src/components/header.js @@ -0,0 +1,205 @@ +import * as React from 'react'; +import AppBar from '@mui/material/AppBar'; +import Box from '@mui/material/Box'; +import Toolbar from '@mui/material/Toolbar'; +import Typography from '@mui/material/Typography'; +import Menu from '@mui/material/Menu'; +import MenuIcon from '@mui/icons-material/Menu'; +import Container from '@mui/material/Container'; +import Tooltip from '@mui/material/Tooltip'; +import GroupsOutlinedIcon from '@mui/icons-material/GroupsOutlined'; +import AccountCircleOutlinedIcon from '@mui/icons-material/AccountCircleOutlined'; +import EditNoteOutlinedIcon from '@mui/icons-material/EditNoteOutlined'; +import TextField from '@mui/material/TextField'; +import IconButton from '@mui/material/IconButton'; +import SearchIcon from '@mui/icons-material/Search'; +import Link from '@mui/material/Link'; +import DevicesIcon from '@mui/icons-material/Devices'; +import WebIcon from '@mui/icons-material/Web'; +import InputLabel from '@mui/material/InputLabel'; +import MenuItem from '@mui/material/MenuItem'; +import FormControl from '@mui/material/FormControl'; +import Select from '@mui/material/Select'; +import LanguageIcon from '@mui/icons-material/Language'; +import { useTranslation } from "react-i18next"; +import{changeLanguage} from "i18next"; + + + +const pages = ['Content', 'Connections', 'Profile']; +const settings = ['Profile', 'Account', 'Dashboard', 'Logout']; + + +function ResponsiveAppBar( ) { + const [age, setAge] = React.useState(''); + const { t } = useTranslation(); + + + const handleChange = (event) => { + setAge(event.target.value); + }; + + const [anchorElNav, setAnchorElNav] = React.useState(null); + const [anchorElUser, setAnchorElUser] = React.useState(null); + + const handleOpenNavMenu = (event) => { + setAnchorElNav(event.currentTarget); + }; + const handleOpenUserMenu = (event) => { + setAnchorElUser(event.currentTarget); + }; + + const handleCloseNavMenu = () => { + setAnchorElNav(null); + }; + + const handleCloseUserMenu = () => { + setAnchorElUser(null); + }; + + return ( +<> + + Main Content + +A A - A + Screen Reader + + + {t("LANGUAGE")} + + + + + + + + + + + + + + + + + + + + + + {pages.map((page) => ( + + {page} + + ))} + + + + + + + ), + }} + /> + + + + + Content + Connections + {/* Profile */} + + + + + Profile + + + + {settings.map((setting) => ( + + {setting} + + ))} + + + + + + + ); +} +export default ResponsiveAppBar; \ No newline at end of file