Implemented the Dashboard Menu.
This commit is contained in:
1 parent
b3dc161f56
commit
e6b0b9b2ca
5 files changed
+79
-5
No files matched your search
Generated
+4
-4
@@ -11,7 +11,7 @@
|
|||||||
"@emotion/react": "^11.11.4",
|
"@emotion/react": "^11.11.4",
|
||||||
"@emotion/styled": "^11.11.5",
|
"@emotion/styled": "^11.11.5",
|
||||||
"@fontsource/roboto": "^5.0.13",
|
"@fontsource/roboto": "^5.0.13",
|
||||||
"@mui/icons-material": "^5.15.16",
|
"@mui/icons-material": "^5.15.17",
|
||||||
"@mui/material": "^5.15.16",
|
"@mui/material": "^5.15.16",
|
||||||
"@mui/x-data-grid": "7.3.2",
|
"@mui/x-data-grid": "7.3.2",
|
||||||
"@mui/x-date-pickers": "7.3.2",
|
"@mui/x-date-pickers": "7.3.2",
|
||||||
@@ -1127,9 +1127,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@mui/icons-material": {
|
"node_modules/@mui/icons-material": {
|
||||||
"version": "5.15.16",
|
"version": "5.15.17",
|
||||||
"resolved": "https://registry.npmjs.org/@mui/icons-material/-/icons-material-5.15.16.tgz",
|
"resolved": "https://registry.npmjs.org/@mui/icons-material/-/icons-material-5.15.17.tgz",
|
||||||
"integrity": "sha512-s8vYbyACzTNZRKv+20fCfVXJwJqNcVotns2EKnu1wmAga6wv2LAo5kB1d5yqQqZlMFtp34EJvRXf7cy8X0tJVA==",
|
"integrity": "sha512-xVzl2De7IY36s/keHX45YMiCpsIx3mNv2xwDgtBkRSnZQtVk+Gqufwj1ktUxEyjzEhBl0+PiNJqYC31C+n1n6A==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.23.9"
|
"@babel/runtime": "^7.23.9"
|
||||||
},
|
},
|
||||||
|
|||||||
+1
-1
@@ -13,7 +13,7 @@
|
|||||||
"@emotion/react": "^11.11.4",
|
"@emotion/react": "^11.11.4",
|
||||||
"@emotion/styled": "^11.11.5",
|
"@emotion/styled": "^11.11.5",
|
||||||
"@fontsource/roboto": "^5.0.13",
|
"@fontsource/roboto": "^5.0.13",
|
||||||
"@mui/icons-material": "^5.15.16",
|
"@mui/icons-material": "^5.15.17",
|
||||||
"@mui/material": "^5.15.16",
|
"@mui/material": "^5.15.16",
|
||||||
"@mui/x-data-grid": "7.3.2",
|
"@mui/x-data-grid": "7.3.2",
|
||||||
"@mui/x-date-pickers": "7.3.2",
|
"@mui/x-date-pickers": "7.3.2",
|
||||||
|
|||||||
@@ -0,0 +1,15 @@
|
|||||||
|
.icon-container {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-container {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dashboard-menu-text {
|
||||||
|
margin-left: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,57 @@
|
|||||||
|
import language from '@mui/icons-material/language';
|
||||||
|
import report_gmailerrorred from '@mui/icons-material/reportGmailerrorred';
|
||||||
|
import sensors from '@mui/icons-material/sensors';
|
||||||
|
import settings from '@mui/icons-material/settings';
|
||||||
|
import all_inclusive from '@mui/icons-material/AllInclusive';
|
||||||
|
import SvgIcon from '@mui/material/SvgIcon';
|
||||||
|
import './index.css';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* DashboardMenu component displays a menu with icons and corresponding text.
|
||||||
|
* Each menu item consists of an icon and a text label.
|
||||||
|
*
|
||||||
|
* @returns {JSX.Element} The JSX element representing the DashboardMenu component.
|
||||||
|
*/
|
||||||
|
|
||||||
|
function DashboardMenu() {
|
||||||
|
return (
|
||||||
|
<div className="dashboard-menu-container">
|
||||||
|
<div className="icon-container">
|
||||||
|
<SvgIcon component={language} />
|
||||||
|
<div className="text-container">
|
||||||
|
<span className="dashboard-menu-text">Monitors</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="icon-container">
|
||||||
|
<SvgIcon component={report_gmailerrorred} />
|
||||||
|
<div className="text-container">
|
||||||
|
<span className="dashboard-menu-text">Incidents</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="icon-container">
|
||||||
|
<SvgIcon component={sensors} />
|
||||||
|
<div className="text-container">
|
||||||
|
<span className="dashboard-menu-text">Status Pages</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="icon-container">
|
||||||
|
<SvgIcon component={all_inclusive} />
|
||||||
|
<div className="text-container">
|
||||||
|
<span className="dashboard-menu-text">Integrations</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="icon-container">
|
||||||
|
<SvgIcon component={settings} />
|
||||||
|
<div className="text-container">
|
||||||
|
<span className="dashboard-menu-text">Settings</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
export default DashboardMenu;
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
import DropdownTeamMember from "../../Components/DropdownTeamMember";
|
import DropdownTeamMember from "../../Components/DropdownTeamMember";
|
||||||
import Search from "../../Components/Search";
|
import Search from "../../Components/Search";
|
||||||
import "./index.css";
|
import "./index.css";
|
||||||
|
import DashboardMenu from "../../Components/DashboardMenu";
|
||||||
|
|
||||||
const Home = () => {
|
const Home = () => {
|
||||||
return (
|
return (
|
||||||
@@ -8,6 +9,7 @@ const Home = () => {
|
|||||||
<div>Home</div>
|
<div>Home</div>
|
||||||
<DropdownTeamMember />
|
<DropdownTeamMember />
|
||||||
<Search />
|
<Search />
|
||||||
|
<DashboardMenu />
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user