Merge pull request #29 from bluewave-labs/feat/DashboardMenu
Implemented the Dashboard Menu.
This commit is contained in:
5 files changed
+80
-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,58 @@
|
|||||||
|
import LanguageIcon from "@mui/icons-material/Language";
|
||||||
|
import ReportGmailerrorredIcon from "@mui/icons-material/ReportGmailerrorred";
|
||||||
|
import SensorsIcon from "@mui/icons-material/Sensors";
|
||||||
|
import SettingsIcon from "@mui/icons-material/Settings";
|
||||||
|
import AllInclusiveIcon from "@mui/icons-material/AllInclusive";
|
||||||
|
import SvgIcon from '@mui/material/SvgIcon';
|
||||||
|
import './index.css';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @component
|
||||||
|
* 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={LanguageIcon} />
|
||||||
|
<div className="text-container">
|
||||||
|
<span className="dashboard-menu-text">Monitors</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="icon-container">
|
||||||
|
<SvgIcon component={ReportGmailerrorredIcon} />
|
||||||
|
<div className="text-container">
|
||||||
|
<span className="dashboard-menu-text">Incidents</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="icon-container">
|
||||||
|
<SvgIcon component={SensorsIcon} />
|
||||||
|
<div className="text-container">
|
||||||
|
<span className="dashboard-menu-text">Status Pages</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="icon-container">
|
||||||
|
<SvgIcon component={AllInclusiveIcon} />
|
||||||
|
<div className="text-container">
|
||||||
|
<span className="dashboard-menu-text">Integrations</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="icon-container">
|
||||||
|
<SvgIcon component={SettingsIcon} />
|
||||||
|
<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