From 68bfd226fb7e9851ddbfa90c40b40cf1ebe51659 Mon Sep 17 00:00:00 2001 From: Augustin Husson Date: Tue, 1 Feb 2022 15:39:35 +0100 Subject: [PATCH] Add Prometheus Logo (#10233) * Add Prometheus logo in react UI Signed-off-by: Julien Pivotto * Use REM Signed-off-by: Julien Pivotto * increase the margin top of the navbar-brand Signed-off-by: Augustin Husson Co-authored-by: Julien Pivotto --- .../react-app/public/prometheus_logo_grey.svg | 19 +++++++++++++++++++ web/ui/react-app/src/Navbar.tsx | 6 ++++++ web/ui/react-app/src/themes/_shared.scss | 9 +++++++++ 3 files changed, 34 insertions(+) create mode 100644 web/ui/react-app/public/prometheus_logo_grey.svg diff --git a/web/ui/react-app/public/prometheus_logo_grey.svg b/web/ui/react-app/public/prometheus_logo_grey.svg new file mode 100644 index 0000000000..b914095ecf --- /dev/null +++ b/web/ui/react-app/public/prometheus_logo_grey.svg @@ -0,0 +1,19 @@ + + + + + + + + + + diff --git a/web/ui/react-app/src/Navbar.tsx b/web/ui/react-app/src/Navbar.tsx index 3963c2e318..8ef4acb8fd 100644 --- a/web/ui/react-app/src/Navbar.tsx +++ b/web/ui/react-app/src/Navbar.tsx @@ -28,6 +28,12 @@ const Navigation: FC = ({ consolesLink, agentMode }) => { + Prometheus logo Prometheus{agentMode && ' Agent'} diff --git a/web/ui/react-app/src/themes/_shared.scss b/web/ui/react-app/src/themes/_shared.scss index c47d07f8b2..e0af8191c2 100644 --- a/web/ui/react-app/src/themes/_shared.scss +++ b/web/ui/react-app/src/themes/_shared.scss @@ -104,6 +104,15 @@ button.execute-btn { margin-bottom: 20px; } +.navbar-brand img { + padding-right: 1rem; + height: 1.9rem; +} + +.navbar-brand { + margin-top: 4px; +} + input[type='checkbox']:checked + label { color: #286090; }