diff --git a/src/components/main-card/MainCard.jsx b/src/components/main-card/MainCard.jsx index d3df7c1..2099d83 100644 --- a/src/components/main-card/MainCard.jsx +++ b/src/components/main-card/MainCard.jsx @@ -20,52 +20,48 @@ const MainCard = ({ imageURL, title, description, url }) => { const options = { reverse: true, speed: 1200, - reset: false, + easing: 'cubic-bezier(.09,.67,.54,.76)' + // reset: false, }; return ( - - handleClick(e)} - options={options} - children={ - - - - - - {title} - - - {{ description } !== '' && ( - {description} - )} - - - - } - style={{ padding: 0, margin: 0 }} - /> - + + + + window.open(url, '_blank')}> + + {title} + + + {{ description } !== '' && ( + {description} + )} + + + + } + /> ); }; diff --git a/src/layouts/landing/components/footer/Footer.jsx b/src/layouts/common/backToTop/BackToTop.jsx similarity index 59% rename from src/layouts/landing/components/footer/Footer.jsx rename to src/layouts/common/backToTop/BackToTop.jsx index a0f7b8c..0d10748 100644 --- a/src/layouts/landing/components/footer/Footer.jsx +++ b/src/layouts/common/backToTop/BackToTop.jsx @@ -1,14 +1,15 @@ import React from 'react'; -import useScrollTrigger from '@mui/material/useScrollTrigger'; +import { Grid, Grow, useScrollTrigger } from '@mui/material'; import KeyboardArrowUpIcon from '@mui/icons-material/KeyboardArrowUp'; -import { Grid, Grow, Box } from '@mui/material'; import { useTheme } from '@mui/material/styles'; - function ScrollTop(props) { const { children, window } = props; + // Note that you normally won't need to set the window ref as useScrollTrigger + // will default to window. + // This is only being set here because the demo is in an iframe. const trigger = useScrollTrigger({ target: window ? window() : undefined, disableHysteresis: true, @@ -26,22 +27,28 @@ function ScrollTop(props) { }; return ( - - + +
{children} - +
); } -const Footer = (props) => { +const BackToTop = (props) => { const theme = useTheme(); return ( - - + + { ); }; -export default Footer; +export default BackToTop; diff --git a/src/layouts/common/backToTop/index.js b/src/layouts/common/backToTop/index.js new file mode 100644 index 0000000..97f9420 --- /dev/null +++ b/src/layouts/common/backToTop/index.js @@ -0,0 +1 @@ +export { default } from './BackToTop'; diff --git a/src/layouts/landing/LandingLayout.jsx b/src/layouts/landing/LandingLayout.jsx index d9a54a3..307d64b 100644 --- a/src/layouts/landing/LandingLayout.jsx +++ b/src/layouts/landing/LandingLayout.jsx @@ -6,7 +6,7 @@ import { ColorModeContext } from 'App'; import { LandingWhite } from 'themes/Theme'; import FullScreenContainer from 'layouts/common/fullScreenContainer'; -import Footer from './components/footer'; +import BackToTop from '../common/backToTop'; import Header from './components/header'; const LandingLayout = (props) => { @@ -19,8 +19,10 @@ const LandingLayout = (props) => {
- {children} -