feat(frontend): add powered by message
This commit is contained in:
parent
9a47652b0d
commit
fe2a384de2
BIN
frontend/public/assets/logo.png
Normal file
BIN
frontend/public/assets/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 19 KiB |
|
|
@ -1,14 +1,17 @@
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import NextLink from 'next/link';
|
import NextLink from 'next/link';
|
||||||
import Link 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 { Logo } from 'src/components/logo';
|
||||||
import { useTheme } from '@mui/material'
|
import { useTheme, useMediaQuery } from '@mui/material'
|
||||||
|
|
||||||
export const Layout = (props) => {
|
export const Layout = (props) => {
|
||||||
const { children } = props;
|
const { children } = props;
|
||||||
|
const lgUp = useMediaQuery((theme) => theme.breakpoints.up('lg'));
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
|
|
||||||
|
console.log("logUp", lgUp)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box
|
<Box
|
||||||
component="main"
|
component="main"
|
||||||
|
|
@ -79,6 +82,23 @@ export const Layout = (props) => {
|
||||||
</Box>
|
</Box>
|
||||||
</Grid>
|
</Grid>
|
||||||
</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>
|
</Box>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,6 @@ import { styled } from '@mui/material/styles';
|
||||||
import { withAuthGuard } from 'src/hocs/with-auth-guard';
|
import { withAuthGuard } from 'src/hocs/with-auth-guard';
|
||||||
import { SideNav } from './side-nav';
|
import { SideNav } from './side-nav';
|
||||||
import { TopNav } from './top-nav';
|
import { TopNav } from './top-nav';
|
||||||
import Image from 'next/image'
|
|
||||||
import { Link } from '@mui/material';
|
|
||||||
|
|
||||||
const SIDE_NAV_WIDTH = 280;
|
const SIDE_NAV_WIDTH = 280;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -132,6 +132,24 @@ export const SideNav = (props) => {
|
||||||
})}
|
})}
|
||||||
</Stack>
|
</Stack>
|
||||||
</Box>
|
</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>
|
</Box>
|
||||||
</Scrollbar>
|
</Scrollbar>
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user