From 1eb19ee81fce3f4e0fde621efb26eaf8fc69b10d Mon Sep 17 00:00:00 2001 From: Sergio Betanzos Date: Wed, 24 Feb 2021 13:59:10 +0100 Subject: [PATCH] F #3951: Fix logo opennebula (#871) --- .../src/client/components/Sidebar/index.js | 3 +- .../src/client/components/Sidebar/styles.js | 6 +- .../src/client/containers/Login/index.js | 2 +- src/fireedge/src/client/icons/logo.js | 78 ++++++++++++------- 4 files changed, 55 insertions(+), 34 deletions(-) diff --git a/src/fireedge/src/client/components/Sidebar/index.js b/src/fireedge/src/client/components/Sidebar/index.js index c35c6f1257..05087a3d40 100644 --- a/src/fireedge/src/client/components/Sidebar/index.js +++ b/src/fireedge/src/client/components/Sidebar/index.js @@ -69,9 +69,8 @@ const Sidebar = memo(({ endpoints }) => { ({ easing: theme.transitions.easing.sharp, duration: theme.transitions.duration.enteringScreen }), - '& #logo__text__top, & #logo__text__bottom': { + '& #logo__text': { visibility: 'visible' } }, // CONTAINER ONLY WHEN MINIFIED '&:not(:hover)': { - '& #logo__text__top, & #logo__text__bottom': { + '& #logo__text': { visibility: 'hidden' }, '& $menu': { @@ -57,7 +57,7 @@ export default makeStyles(theme => ({ }, [theme.breakpoints.up('lg')]: { width: sidebar.fixed, - '& #logo__text__top, & #logo__text__bottom': { + '& #logo__text': { visibility: 'visible !important' }, '& $expandIcon, & $subItemWrapper': { diff --git a/src/fireedge/src/client/containers/Login/index.js b/src/fireedge/src/client/containers/Login/index.js index 90506abce8..a6040114d3 100644 --- a/src/fireedge/src/client/containers/Login/index.js +++ b/src/fireedge/src/client/containers/Login/index.js @@ -68,7 +68,7 @@ function Login () { {isLoading && } {useMemo(() => ( - + ), [])} {step === STEPS.USER_FORM &&
{ child4: { from: '#80cde6', to: '#ffffff' }, child5: { from: '#bfe6f2', to: '#ffffff' } } + const textColor = { top: 'currentColor', bottom: '#0098c3' } + return ( @@ -35,51 +37,71 @@ const Logo = memo(({ width, height, spinner, withText, viewBox, ...props }) => { ))} + {/* --------------- CLOUD ------------------ */} + {withText && ( - <> - + {/* --------------- TEXT TOP ------------------ */} + - {'Open'} - - + + + + + {/* --------------- TEXT BOTTOM ------------------ */} + - {'Nebula'} - - + points="143.6,151.2 154.3,151.2 154.3,109.2 178.4,151.2 190.3,151.2 190.3,93.5 179.6,93.5 179.6,135.5 155.8,93.5 143.6,93.5" + /> + + + + + + )} ) @@ -96,7 +118,7 @@ Logo.propTypes = { Logo.defaultProps = { width: 360, height: 360, - viewBox: '0 0 640 640', + viewBox: '0 0 425 167', spinner: false, withText: false }