diff --git a/Client/src/components/Charts/Servers/ServerStatus.jsx b/Client/src/components/Charts/Servers/ServerStatus.jsx new file mode 100644 index 000000000..5ca266d54 --- /dev/null +++ b/Client/src/components/Charts/Servers/ServerStatus.jsx @@ -0,0 +1,13 @@ +import React from "react"; +import "./serverStatus.css"; + +function ServerStatus({ title, value, state }) { + return ( +
+
{title}
+
{value}
+
+ ); +} + +export default ServerStatus; diff --git a/Client/src/components/Charts/Servers/serverStatus.css b/Client/src/components/Charts/Servers/serverStatus.css new file mode 100644 index 000000000..3fcb0780c --- /dev/null +++ b/Client/src/components/Charts/Servers/serverStatus.css @@ -0,0 +1,46 @@ +:root { + --spacing-general-0: 10px 25px; + --spacing-general-1: 20px; + --color-border-0: #eaecf0; + --border-radius-0: 4px; + --font-size-0: 1rem; + --font-size-2: 36px; + --font-family-0: "Roboto", "Helvetica", "Arial", sans-serif; + + --color-up: #17b26a; + --color-down: #f04438; + --color-pause: #fdb022; +} + +.server-status-tile { + width: 230px; + margin: var(--spacing-general-0); + padding: var(--spacing-general-1); + border: 1px solid var(--color-border-0); + border-radius: var(--border-radius-0); +} + +.server-status-tile-title { + font-size: var(--font-size-0); + font-family: var(--font-family-0); + font-weight: bold; + margin-bottom: 25px; +} + +.server-status-tile-value { + font-size: var(--font-size-2); + font-family: var(--font-family-0); + font-weight: bolder; +} + +.up { + color: var(--color-up); +} + +.down { + color: var(--color-down); +} + +.pause { + color: var(--color-pause); +} diff --git a/Client/src/components/Charts/Statistics/Statistic.jsx b/Client/src/components/Charts/Statistics/Statistic.jsx new file mode 100644 index 000000000..8d0775866 --- /dev/null +++ b/Client/src/components/Charts/Statistics/Statistic.jsx @@ -0,0 +1,13 @@ +import React from "react"; +import "./statistic.css"; + +function Statistic({ title, value }) { + return ( +
+
{title}
+
{value}
+
+ ); +} + +export default Statistic; diff --git a/Client/src/components/Charts/Statistics/statistic.css b/Client/src/components/Charts/Statistics/statistic.css new file mode 100644 index 000000000..31b322d28 --- /dev/null +++ b/Client/src/components/Charts/Statistics/statistic.css @@ -0,0 +1,34 @@ +:root { + --stats-spacing-general-0: 5px 10px; + --color-border-0: #eaecf0; + --border-radius-0: 4px; + --font-size-0: 1rem; + --font-size-1: 13px; + --font-family-0: "Roboto", "Helvetica", "Arial", sans-serif; + --font-color-0: #344054; + --margin-bottom-0: 10px; +} + +.statistic-tile { + margin: var(--stats-spacing-general-0); + padding: var(--stats-spacing-general-0); + border: 1px solid var(--color-border-0); + border-radius: var(--border-radius-0); + + width: 180px; +} + +.statistic-tile-title { + font-size: var(--font-size-0); + font-family: var(--font-family-0); + color: var(--font-color-0); + margin-bottom: var(--margin-bottom-0); +} + +.statistic-tile-value { + font-size: var(--font-size-1); + font-family: var(--font-family-0); + color: var(--font-color-0); + font-weight: 700; + margin-bottom: var(--margin-bottom-0); +} diff --git a/Client/src/screens/PlayGround/PlayGround-Charts.jsx b/Client/src/screens/PlayGround/PlayGround-Charts.jsx new file mode 100644 index 000000000..cf0b9dd7e --- /dev/null +++ b/Client/src/screens/PlayGround/PlayGround-Charts.jsx @@ -0,0 +1,25 @@ +import React from "react"; +import "./playGround.css"; +import Statistic from "../../components/Charts/Statistics/Statistic"; +import ServerStatus from "../../components/Charts/Servers/ServerStatus"; + +function PlayGroundCharts() { + return ( + <> +
+ + + + +
+
+
+ + + +
+ + ); +} + +export default PlayGroundCharts; diff --git a/Client/src/screens/PlayGround/playGround.css b/Client/src/screens/PlayGround/playGround.css new file mode 100644 index 000000000..c5b86268c --- /dev/null +++ b/Client/src/screens/PlayGround/playGround.css @@ -0,0 +1,7 @@ +.play-ground-charts { + display: flex; +} + +.play-ground-charts-spacing { + height: 110px; +}