From 4dbd7b41f540c5e6a98a220f1e35bbf40c27d75d Mon Sep 17 00:00:00 2001 From: VakarisZ Date: Fri, 3 Sep 2021 15:27:04 +0300 Subject: [PATCH] Fix the Guardicore logo which is overlaping the landing page buttons on smaller screens --- .../ui/src/components/pages/LandingPage.tsx | 61 ++++++++++--------- .../cc/ui/src/styles/pages/LandingPage.scss | 7 --- 2 files changed, 31 insertions(+), 37 deletions(-) diff --git a/monkey/monkey_island/cc/ui/src/components/pages/LandingPage.tsx b/monkey/monkey_island/cc/ui/src/components/pages/LandingPage.tsx index 156489c22..cc1741b20 100644 --- a/monkey/monkey_island/cc/ui/src/components/pages/LandingPage.tsx +++ b/monkey/monkey_island/cc/ui/src/components/pages/LandingPage.tsx @@ -15,24 +15,24 @@ const infectionMonkey = require('../../images/infection-monkey.svg') const LandingPageComponent = (props) => { return ( - <> - - - -
- -
-
-
-
- - + <> + + + +
+ +
+ + + +
+
+
- - + ); @@ -72,8 +72,8 @@ const LandingPageComponent = (props) => { function setScenario(scenario: string) { IslandHttpClient.post('/api/island-mode', {'mode': scenario}) - .then(() => { - props.onStatusChange(); + .then(() => { + props.onStatusChange(); }); } } @@ -91,23 +91,24 @@ function MonkeyInfo() { } function ScenarioInfo() { - return ( - <> -
- Check the Infection Monkey documentation hub for more information - on - scenarios - . -
- - ); + return ( + <> +
+ Check the Infection Monkey documentation hub for more information + on + scenarios + . +
+ + ); } function MonkeyBanner(props) { return (
- - + +
); } diff --git a/monkey/monkey_island/cc/ui/src/styles/pages/LandingPage.scss b/monkey/monkey_island/cc/ui/src/styles/pages/LandingPage.scss index fe9e3657b..a4c16536e 100644 --- a/monkey/monkey_island/cc/ui/src/styles/pages/LandingPage.scss +++ b/monkey/monkey_island/cc/ui/src/styles/pages/LandingPage.scss @@ -1,6 +1,5 @@ .landing-page { background-color: rgba(255, 255, 255, 0.89); - position: absolute !important; height: 100%; bottom: 0; } @@ -27,12 +26,6 @@ height: 100%; } -.landing-page .guardicore-logo { - position: absolute; - bottom: 10px; - left: 0 !important; -} - .guardicore-logo .license-text { position: relative; }