recreations and fixes
No files matched your search
@@ -20,7 +20,7 @@ function App() {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Routes>
|
<Routes>
|
||||||
{/* <Route exact path="/" element={<HomeLayout />}>
|
<Route exact path="/" element={<HomeLayout />}>
|
||||||
<Route path="monitors" element={<Monitors />} />
|
<Route path="monitors" element={<Monitors />} />
|
||||||
<Route path="incidents" element={<Incidents />} />
|
<Route path="incidents" element={<Incidents />} />
|
||||||
<Route path="status" element={<Status />} />
|
<Route path="status" element={<Status />} />
|
||||||
@@ -38,8 +38,7 @@ function App() {
|
|||||||
<Route
|
<Route
|
||||||
path="/new-password-confirmed"
|
path="/new-password-confirmed"
|
||||||
element={<NewPasswordConfirmed />}
|
element={<NewPasswordConfirmed />}
|
||||||
/> */}
|
/>
|
||||||
<Route exact path="/" element={<Monitors />} />
|
|
||||||
</Routes>
|
</Routes>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,56 +1,28 @@
|
|||||||
import LanguageIcon from "@mui/icons-material/Language";
|
import "./index.css";
|
||||||
import ReportGmailerrorredIcon from "@mui/icons-material/ReportGmailerrorred";
|
import DashboardMenuButton from "../DashboardMenuButton";
|
||||||
import SensorsIcon from "@mui/icons-material/Sensors";
|
|
||||||
import SettingsIcon from "@mui/icons-material/Settings";
|
import Monitors from "../../assets/Images/Icon-monitor-gray.png";
|
||||||
import AllInclusiveIcon from "@mui/icons-material/AllInclusive";
|
import Incidents from "../../assets/Images/Icon-warning-gray.png";
|
||||||
import SvgIcon from '@mui/material/SvgIcon';
|
import SensorsIcon from "../../assets/Images/Icon-signal-gray.png";
|
||||||
import './index.css';
|
import AllInclusiveIcon from "../../assets/Images/Icon-link-gray.png";
|
||||||
|
import SettingsIcon from "../../assets/Images/Icon-setting-gray.png";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @component
|
* @component
|
||||||
* DashboardMenu component displays a menu with icons and corresponding text.
|
* DashboardMenu component displays a menu with icons and corresponding text.
|
||||||
* Each menu item consists of an icon and a text label.
|
* Each menu item consists of an icon and a text label.
|
||||||
*
|
*
|
||||||
* @returns {JSX.Element} The JSX element representing the DashboardMenu component.
|
* @returns {JSX.Element} The JSX element representing the DashboardMenu component.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function DashboardMenu() {
|
function DashboardMenu() {
|
||||||
return (
|
return (
|
||||||
<div className="dashboard-menu-container">
|
<div className="dashboard-menu-container">
|
||||||
<div className="icon-container">
|
{DashboardMenuButton(Monitors, "Monitors")}
|
||||||
<SvgIcon component={LanguageIcon} />
|
{DashboardMenuButton(Incidents, "Incidents")}
|
||||||
<div className="text-container">
|
{DashboardMenuButton(SensorsIcon, "Status Pages")}
|
||||||
<span className="dashboard-menu-text">Monitors</span>
|
{DashboardMenuButton(AllInclusiveIcon, "Integrations")}
|
||||||
</div>
|
{DashboardMenuButton(SettingsIcon, "Settings")}
|
||||||
</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>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,23 @@
|
|||||||
|
.icon-container {
|
||||||
|
padding: 8px 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-container:hover {
|
||||||
|
background-color: var(--env-var-color-13);
|
||||||
|
border-radius: var(--env-var-radius-1);
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-container.active {
|
||||||
|
background-color: var(--env-var-color-13);
|
||||||
|
border-radius: var(--env-var-radius-1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon {
|
||||||
|
width: var(--env-var-img-width-1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.dashboard-menu-text {
|
||||||
|
font-size: var(--env-var-font-size-medium);
|
||||||
|
color: var(--env-var-color-12);
|
||||||
|
}
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
import "./index.css";
|
||||||
|
import React, { useState } from "react";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Renders a menu button with an icon and title.
|
||||||
|
*
|
||||||
|
* @component
|
||||||
|
* @param {React.ElementType} icon - The icon component to be rendered.
|
||||||
|
* @param {string} title - The title of the menu button.
|
||||||
|
* @returns {React.ReactElement} The rendered menu button component.
|
||||||
|
*/
|
||||||
|
|
||||||
|
const DashboardMenuButton = (icon, title) => {
|
||||||
|
const [isActive, setIsActive] = useState(false);
|
||||||
|
|
||||||
|
const handleClick = () => {
|
||||||
|
setIsActive(!isActive);
|
||||||
|
};
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div
|
||||||
|
className={`icon-container ${isActive ? "active" : ""}`}
|
||||||
|
onClick={handleClick}
|
||||||
|
>
|
||||||
|
<img className="icon" src={icon} alt="Monitors" />
|
||||||
|
<div className="text-container">
|
||||||
|
<span className="dashboard-menu-text">{title}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default DashboardMenuButton;
|
||||||
@@ -1,31 +1,34 @@
|
|||||||
.dashboard-sidebar {
|
.dashboard-sidebar {
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
width: 250px;
|
width: 250px;
|
||||||
background-color: #f4f4f4;
|
border: 1px solid var(--color-border-0);
|
||||||
box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
|
border-radius: var(--border-radius-0);
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
padding: 20px 0;
|
padding: 20px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu-container {
|
.menu-container {
|
||||||
margin-top: 60px;
|
margin-top: 60px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.support-container {
|
.support-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 10px 20px;
|
padding: 28px 35px;
|
||||||
margin-bottom: 40px;
|
margin-bottom: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.support-text {
|
.support-text {
|
||||||
margin-left: 8px;
|
font-size: var(--env-var-font-size-medium);
|
||||||
font-size: 16px;
|
color: var(--env-var-color-12);
|
||||||
color: #333;
|
}
|
||||||
}
|
|
||||||
|
.support-icon {
|
||||||
|
width: var(--env-var-img-width-1);
|
||||||
|
margin-right: 8px;
|
||||||
|
}
|
||||||
@@ -1,12 +1,12 @@
|
|||||||
import DashboardMenu from '../../Components/DashboardMenu';
|
import DashboardMenu from "../../Components/DashboardMenu";
|
||||||
import SupportIcon from '@mui/icons-material/Support';
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
import SvgIcon from '@mui/material/SvgIcon';
|
import "./index.css";
|
||||||
import './index.css';
|
import SupportIcon from "../../assets/Images/Icon-support-gray.png";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @component
|
* @component
|
||||||
* DashboardSidebar component serves as a sidebar containing the DashboardMenu and a Support icon at the bottom.
|
* DashboardSidebar component serves as a sidebar containing the DashboardMenu and a Support icon at the bottom.
|
||||||
*
|
*
|
||||||
* @returns {JSX.Element} The JSX element representing the DashboardSidebar component.
|
* @returns {JSX.Element} The JSX element representing the DashboardSidebar component.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -17,7 +17,7 @@ function DashboardSidebar() {
|
|||||||
<DashboardMenu />
|
<DashboardMenu />
|
||||||
</div>
|
</div>
|
||||||
<div className="support-container">
|
<div className="support-container">
|
||||||
<SvgIcon component={SupportIcon} />
|
<img className="support-icon" src={SupportIcon} alt="SupportIcon" />
|
||||||
<span className="support-text">Support</span>
|
<span className="support-text">Support</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1 +1,23 @@
|
|||||||
/* NavBar Component Styles*/
|
/* NavBar Component Styles*/
|
||||||
|
.icon-button-toggle {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-button-avatar {
|
||||||
|
width: 25px;
|
||||||
|
height: 25px;
|
||||||
|
margin-right: var(--env-var-spacing-1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-button-toggle-title {
|
||||||
|
font-size: var(--env-var-font-size-medium);
|
||||||
|
color: var(--env-var-color-5);
|
||||||
|
margin-right: var(--env-var-spacing-2);
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-button-toggle-pic {
|
||||||
|
width: 10px;
|
||||||
|
height: 5px;
|
||||||
|
}
|
||||||
@@ -1,18 +1,20 @@
|
|||||||
import { useState } from 'react';
|
import "./index.css";
|
||||||
import AppBar from '@mui/material/AppBar';
|
import { useState } from "react";
|
||||||
import Box from '@mui/material/Box';
|
import AppBar from "@mui/material/AppBar";
|
||||||
import Toolbar from '@mui/material/Toolbar';
|
import Box from "@mui/material/Box";
|
||||||
import IconButton from '@mui/material/IconButton';
|
import Toolbar from "@mui/material/Toolbar";
|
||||||
import Typography from '@mui/material/Typography';
|
import IconButton from "@mui/material/IconButton";
|
||||||
import Menu from '@mui/material/Menu';
|
import Typography from "@mui/material/Typography";
|
||||||
import MenuIcon from '@mui/icons-material/Menu';
|
import Menu from "@mui/material/Menu";
|
||||||
import Container from '@mui/material/Container';
|
import MenuIcon from "@mui/icons-material/Menu";
|
||||||
import Avatar from '@mui/material/Avatar';
|
import Container from "@mui/material/Container";
|
||||||
import Tooltip from '@mui/material/Tooltip';
|
import Avatar from "@mui/material/Avatar";
|
||||||
import MenuItem from '@mui/material/MenuItem';
|
import Tooltip from "@mui/material/Tooltip";
|
||||||
import { useTheme } from '@mui/material/styles';
|
import MenuItem from "@mui/material/MenuItem";
|
||||||
|
import { useTheme } from "@mui/material/styles";
|
||||||
|
import ChevronDown from "../../assets/Images/Icon-chevron-down.png";
|
||||||
|
|
||||||
const settings = ['Profile', 'Team', 'Invite Colleagues', 'Logout'];
|
const settings = ["Profile", "Team", "Invite Colleagues", "Logout"];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* NavBar component
|
* NavBar component
|
||||||
@@ -46,8 +48,15 @@ function NavBar() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<AppBar position="fixed" sx={{ width: '100%' }}>
|
<AppBar
|
||||||
<Container maxWidth="xxl" sx={{ width: '100%' }}>
|
position="fixed"
|
||||||
|
sx={{
|
||||||
|
width: "100%",
|
||||||
|
backgroundColor: "white",
|
||||||
|
boxShadow: "var(--env-var-shadow-1)",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<Container maxWidth="xxl" sx={{ width: "100%" }}>
|
||||||
<Toolbar disableGutters>
|
<Toolbar disableGutters>
|
||||||
<Typography
|
<Typography
|
||||||
variant="h6"
|
variant="h6"
|
||||||
@@ -56,18 +65,17 @@ function NavBar() {
|
|||||||
href="#"
|
href="#"
|
||||||
sx={{
|
sx={{
|
||||||
mr: 2,
|
mr: 2,
|
||||||
display: { xs: 'none', md: 'flex' },
|
display: { xs: "none", md: "flex" },
|
||||||
fontFamily: 'monospace',
|
|
||||||
fontWeight: theme.typography.fontWeightBold,
|
fontWeight: theme.typography.fontWeightBold,
|
||||||
letterSpacing: theme.spacing(0.3),
|
letterSpacing: theme.spacing(0.3),
|
||||||
color: 'inherit',
|
color: "var(--env-var-color-11)",
|
||||||
textDecoration: 'none',
|
textDecoration: "none",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
UPTIME GENIE
|
Peak Watch
|
||||||
</Typography>
|
</Typography>
|
||||||
|
|
||||||
<Box sx={{ flexGrow: 1, display: { xs: 'flex', md: 'none' } }}>
|
<Box sx={{ flexGrow: 1, display: { xs: "flex", md: "none" } }}>
|
||||||
<IconButton
|
<IconButton
|
||||||
size="large"
|
size="large"
|
||||||
aria-label="account of current user"
|
aria-label="account of current user"
|
||||||
@@ -86,13 +94,13 @@ function NavBar() {
|
|||||||
href="#"
|
href="#"
|
||||||
sx={{
|
sx={{
|
||||||
mr: 2,
|
mr: 2,
|
||||||
display: { xs: 'flex', md: 'none' },
|
display: { xs: "flex", md: "none" },
|
||||||
flexGrow: 1,
|
flexGrow: 1,
|
||||||
fontFamily: 'monospace',
|
fontFamily: "monospace",
|
||||||
fontWeight: theme.typography.fontWeightBold,
|
fontWeight: theme.typography.fontWeightBold,
|
||||||
letterSpacing: theme.spacing(0.3),
|
letterSpacing: theme.spacing(0.3),
|
||||||
color: 'inherit',
|
color: "inherit",
|
||||||
textDecoration: 'none',
|
textDecoration: "none",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
UPTIME GENIE
|
UPTIME GENIE
|
||||||
@@ -103,7 +111,20 @@ function NavBar() {
|
|||||||
<Box sx={{ flexGrow: 0 }}>
|
<Box sx={{ flexGrow: 0 }}>
|
||||||
<Tooltip title="Open settings">
|
<Tooltip title="Open settings">
|
||||||
<IconButton onClick={handleOpenUserMenu} sx={{ p: 0 }}>
|
<IconButton onClick={handleOpenUserMenu} sx={{ p: 0 }}>
|
||||||
<Avatar alt="Remy Sharp" src="/static/images/avatar/2.jpg" />
|
<div className="icon-button-toggle">
|
||||||
|
<Avatar
|
||||||
|
alt="Remy Sharp"
|
||||||
|
src="/static/images/avatar/2.jpg"
|
||||||
|
className="icon-button-avatar"
|
||||||
|
style={{ width: "25px", height: "25px" }}
|
||||||
|
/>
|
||||||
|
<div className="icon-button-toggle-title">Jackie Dawn</div>
|
||||||
|
<img
|
||||||
|
className="icon-button-toggle-pic"
|
||||||
|
src={ChevronDown}
|
||||||
|
alt="ChevronDown"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
</IconButton>
|
</IconButton>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
<Menu
|
<Menu
|
||||||
@@ -111,13 +132,13 @@ function NavBar() {
|
|||||||
id="menu-appbar"
|
id="menu-appbar"
|
||||||
anchorEl={anchorElUser}
|
anchorEl={anchorElUser}
|
||||||
anchorOrigin={{
|
anchorOrigin={{
|
||||||
vertical: 'top',
|
vertical: "top",
|
||||||
horizontal: 'right',
|
horizontal: "right",
|
||||||
}}
|
}}
|
||||||
keepMounted
|
keepMounted
|
||||||
transformOrigin={{
|
transformOrigin={{
|
||||||
vertical: 'top',
|
vertical: "top",
|
||||||
horizontal: 'right',
|
horizontal: "right",
|
||||||
}}
|
}}
|
||||||
open={Boolean(anchorElUser)}
|
open={Boolean(anchorElUser)}
|
||||||
onClose={handleCloseUserMenu}
|
onClose={handleCloseUserMenu}
|
||||||
|
|||||||
|
After Width: | Height: | Size: 170 B |
|
After Width: | Height: | Size: 171 B |
|
After Width: | Height: | Size: 633 B |
|
After Width: | Height: | Size: 897 B |
@@ -0,0 +1,3 @@
|
|||||||
|
<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<path d="M1 11H21M1 11C1 16.5228 5.47715 21 11 21M1 11C1 5.47715 5.47715 1 11 1M21 11C21 16.5228 16.5228 21 11 21M21 11C21 5.47715 16.5228 1 11 1M11 1C13.5013 3.73835 14.9228 7.29203 15 11C14.9228 14.708 13.5013 18.2616 11 21M11 1C8.49872 3.73835 7.07725 7.29203 7 11C7.07725 14.708 8.49872 18.2616 11 21" stroke="#667085" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 494 B |
|
After Width: | Height: | Size: 863 B |
|
After Width: | Height: | Size: 718 B |
|
After Width: | Height: | Size: 878 B |
|
After Width: | Height: | Size: 462 B |
@@ -25,6 +25,9 @@
|
|||||||
--env-var-color-8: #fff;
|
--env-var-color-8: #fff;
|
||||||
--env-var-color-9: #f2f2f2;
|
--env-var-color-9: #f2f2f2;
|
||||||
--env-var-color-10: #175cd3;
|
--env-var-color-10: #175cd3;
|
||||||
|
--env-var-color-11: #5d6b98;
|
||||||
|
--env-var-color-12: #182230;
|
||||||
|
--env-var-color-13: #f9fafb;
|
||||||
|
|
||||||
--env-var-radius-1: 4px;
|
--env-var-radius-1: 4px;
|
||||||
--env-var-radius-2: 8px;
|
--env-var-radius-2: 8px;
|
||||||
@@ -49,6 +52,9 @@
|
|||||||
|
|
||||||
--env-var-default-1: 24px;
|
--env-var-default-1: 24px;
|
||||||
--env-var-default-2: 40px;
|
--env-var-default-2: 40px;
|
||||||
|
|
||||||
|
--env-var-shadow-1: 0px 4px 24px -4px rgba(16, 24, 40, 0.08),
|
||||||
|
0px 3px 3px -3px rgba(16, 24, 40, 0.03);
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
|
|||||||