diff --git a/Client/src/App.jsx b/Client/src/App.jsx index 3e3a46702..983a205cd 100644 --- a/Client/src/App.jsx +++ b/Client/src/App.jsx @@ -1,10 +1,10 @@ -import PlayGroundPopupModals from "./screens/PlayGround/PlayGround-Popup-Modals"; +import PlayGroundTooltips from "./screens/PlayGround/PlayGround-Tooltips"; function App() { return ( <>
- +
); diff --git a/Client/src/components/Tooltips/TooltipWithTail/TooltipWithTail.tsx b/Client/src/components/Tooltips/TooltipWithTail/TooltipWithTail.tsx new file mode 100644 index 000000000..9626c0f6e --- /dev/null +++ b/Client/src/components/Tooltips/TooltipWithTail/TooltipWithTail.tsx @@ -0,0 +1,46 @@ +import "./tooltipWithTail.css"; +import React from "react"; +import { styled } from "@mui/material/styles"; +import Button from "@mui/material/Button"; +import Tooltip, { TooltipProps, tooltipClasses } from "@mui/material/Tooltip"; +import HelpOutlineIcon from "@mui/icons-material/HelpOutline"; + +const CustomizedTooltip = styled( + ({ className, placement, arrow, ...props }: TooltipProps) => ( + + ) +)(({ theme }) => ({ + [`& .${tooltipClasses.tooltip}`]: { + backgroundColor: "black", + }, + [`& .${tooltipClasses.arrow}`]: { + color: "black", + }, +})); + +function TooltipWithTail({ placement, arrow = false, title, text }) { + return ( +
+ + {title &&
{title}
} +
{text}
+ + } + className="tooltip-holder" + > + +
+
+ ); +} + +export default TooltipWithTail; diff --git a/Client/src/components/Tooltips/TooltipWithTail/tooltipWithTail.css b/Client/src/components/Tooltips/TooltipWithTail/tooltipWithTail.css new file mode 100644 index 000000000..f2188a5fb --- /dev/null +++ b/Client/src/components/Tooltips/TooltipWithTail/tooltipWithTail.css @@ -0,0 +1,21 @@ +:root { + --tooltip-color-0: #d0d5dd; + --tooltip-margin: 5px; + --tooltip-font-size: 12px; +} + +.tooltip-title { + font-size: var(--tooltip-font-size); + font-weight: bold; + margin: var(--tooltip-margin); +} + +.tooltip-description { + font-size: var(--tooltip-font-size); + color: var(--tooltip-color-0); + margin: var(--tooltip-margin); +} + +/* box-shadow: + 0px 12px 16px -4px rgba(16, 24, 40, 0.08), + 0px 4px 6px -2px rgba(16, 24, 40, 0.03); */ diff --git a/Client/src/screens/PlayGround/PlayGround-Tooltips.jsx b/Client/src/screens/PlayGround/PlayGround-Tooltips.jsx new file mode 100644 index 000000000..d5de8a29e --- /dev/null +++ b/Client/src/screens/PlayGround/PlayGround-Tooltips.jsx @@ -0,0 +1,34 @@ +import React from "react"; +import TooltipWithTail from "../../components/Tooltips/TooltipWithTail/TooltipWithTail"; +import "./playGround.css"; + +function PlayGroundTooltips() { + return ( +
+
+ +
+ +
+ +
+ +
+ ); +} + +export default PlayGroundTooltips; diff --git a/Client/src/screens/PlayGround/playGround.css b/Client/src/screens/PlayGround/playGround.css index c5b86268c..b521af537 100644 --- a/Client/src/screens/PlayGround/playGround.css +++ b/Client/src/screens/PlayGround/playGround.css @@ -5,3 +5,10 @@ .play-ground-charts-spacing { height: 110px; } + +.tooltip-playground { + margin: auto; + width: 100%; + justify-content: center; + text-align: center; +}