feat(frontend): add powered by message

This commit is contained in:
leandrofars 2024-07-08 16:31:42 -03:00
parent 9a47652b0d
commit fe2a384de2
4 changed files with 40 additions and 4 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

View File

@ -1,14 +1,17 @@
import PropTypes from 'prop-types';
import NextLink from 'next/link';
import Link from 'next/link'
import { Box, Typography, Unstable_Grid2 as Grid } from '@mui/material';
import { Box, Typography, Unstable_Grid2 as Grid, Stack } from '@mui/material';
import { Logo } from 'src/components/logo';
import { useTheme } from '@mui/material'
import { useTheme, useMediaQuery } from '@mui/material'
export const Layout = (props) => {
const { children } = props;
const lgUp = useMediaQuery((theme) => theme.breakpoints.up('lg'));
const theme = useTheme();
console.log("logUp", lgUp)
return (
<Box
component="main"
@ -79,6 +82,23 @@ export const Layout = (props) => {
</Box>
</Grid>
</Grid>
<Stack style={{position:"absolute", bottom:"2px", left:"2px"}} direction={"row"} spacing={"1"}>
<Typography
align="center"
color={lgUp ? 'neutral[900]' : 'primary.contrastText'}
component="footer"
variant="body2"
sx={{ p: 2 }}
>
Powered by
</Typography>
</Stack>
<a href='https://oktopus.app.br' style={{position:"absolute", bottom:"10px", left:"100px"}} target='_blank'>
<img
src="/assets/logo.png"
alt="Oktopus logo image"
width={80}/>
</a>
</Box>
);
};

View File

@ -4,8 +4,6 @@ import { styled } from '@mui/material/styles';
import { withAuthGuard } from 'src/hocs/with-auth-guard';
import { SideNav } from './side-nav';
import { TopNav } from './top-nav';
import Image from 'next/image'
import { Link } from '@mui/material';
const SIDE_NAV_WIDTH = 280;

View File

@ -132,6 +132,24 @@ export const SideNav = (props) => {
})}
</Stack>
</Box>
<Stack style={{position:"absolute", bottom:"2px", left:"2px"}} direction={"row"} spacing={"1"} zIndex={9999}>
<Typography
align="center"
color="primary.contrastText"
component="footer"
variant="body2"
sx={{ p: 2 }}
>
Powered by
</Typography>
</Stack>
<a href='https://oktopus.app.br' style={{position:"absolute", bottom:"10px", left:"100px"}} target='_blank'>
<img
src="/assets/logo.png"
alt="Oktopus logo image"
width={80}
/>
</a>
</Box>
</Scrollbar>
);