diff --git a/portals/publisher/src/main/webapp/source/src/app/components/Apis/Listing/Landing/Menus/DesignAssistantMenu.jsx b/portals/publisher/src/main/webapp/source/src/app/components/Apis/Listing/Landing/Menus/DesignAssistantMenu.jsx
index 0580d794426..4af2cac858d 100644
--- a/portals/publisher/src/main/webapp/source/src/app/components/Apis/Listing/Landing/Menus/DesignAssistantMenu.jsx
+++ b/portals/publisher/src/main/webapp/source/src/app/components/Apis/Listing/Landing/Menus/DesignAssistantMenu.jsx
@@ -17,35 +17,37 @@
* under the License.
*/
import React from 'react';
-import { Box, Button, Typography, useTheme } from '@mui/material';
-import Paper from '@mui/material/Paper';
+import { Box, Button, Typography } from '@mui/material';
import { FormattedMessage } from 'react-intl';
import { Link } from 'react-router-dom';
import { app } from 'Settings';
import { isRestricted } from 'AppData/AuthManager';
-import useMediaQuery from '@mui/material/useMediaQuery';
+import { styled } from '@mui/material/styles';
+
+const PREFIX = 'DesignAssistantMenu';
+
+const classes = {
+ root: `${PREFIX}-root`,
+};
+
+const StyledBox = styled(Box)(({ theme }) => ({
+ [`&`]: {
+ display: 'flex',
+ justifyContent: 'center',
+ alignItems: 'center',
+ border: '1px solid #e5e5e5',
+ backgroundColor: '#fff',
+ padding: theme.spacing(3),
+ borderRadius: theme.spacing(1),
+ },
+}));
const DesignAssistantMenu = () => {
- const theme = useTheme();
- const isSmallScreen = useMediaQuery(theme.breakpoints.down('sm'));
- const isMediumScreen = useMediaQuery(theme.breakpoints.between('md', 'lg'));
return (
-
-
+
+
{
-
+
);
};
diff --git a/portals/publisher/src/main/webapp/source/src/app/components/Apis/Listing/Landing/components/LandingMenu.jsx b/portals/publisher/src/main/webapp/source/src/app/components/Apis/Listing/Landing/components/LandingMenu.jsx
index 6c002bc7af8..0706003a971 100644
--- a/portals/publisher/src/main/webapp/source/src/app/components/Apis/Listing/Landing/components/LandingMenu.jsx
+++ b/portals/publisher/src/main/webapp/source/src/app/components/Apis/Listing/Landing/components/LandingMenu.jsx
@@ -6,7 +6,6 @@ import Configurations from 'Config';
import Fade from '@mui/material/Fade';
import IconButton from '@mui/material/IconButton';
import CloseIcon from '@mui/icons-material/Close';
-import { blue } from '@mui/material/colors';
const PREFIX = 'LandingMenu';
@@ -23,16 +22,20 @@ const StyledGrid = styled(Grid)(({ theme }) => ({
},
[`& .${classes.boxTransition}`]: {
- transition: 'box-shadow 0.9s cubic-bezier(.25,.8,.25,1)',
+ transition: '0.5s',
cursor: 'pointer',
+ border: '1px solid #e5e5e5',
+ '&:hover': {
+ border: '1px solid #ccc',
+ },
},
[`& .${classes.overlayBox}`]: {
cursor: 'auto',
outline: 'none',
- 'border-color': '#f9f9f9', // TODO: take from theme ~tmkb
- 'box-shadow': '0 0 6px 4px #f9f9f9',
- 'border-radius': '5px',
+ backgroundColor: 'rgba(255, 255, 255, 0.75)',
+ backdropFilter: 'blur(5px)',
+ borderRadius: theme.spacing(1),
},
[`& .${classes.overlayCloseButton}`]: {
@@ -44,17 +47,9 @@ const LandingMenu = (props) => {
const {
title, icon, children, id,
} = props;
- const [isHover, setIsHover] = useState(false);
const [isCollapsed, setIsCollapsed] = useState(false);
const [isFadeOut, setIsFadeOut] = useState(true);
- const onMouseOver = () => {
- setIsHover(true);
- };
- const onMouseOut = () => {
- setIsHover(false);
- };
-
return (
{
{
{
top={5}
left={5}
height='97%'
- bgcolor='#f8f8fb'
textAlign='center'
width='97%'
className={classes.overlayBox}