chore: add logo to footer and same look and feel as header

This commit is contained in:
Rodolfo Ruiz
2025-08-21 20:28:30 -06:00
parent 6b493265b2
commit 4368723f3f

View File

@@ -1,32 +1,43 @@
import { Box, Typography } from '@mui/material';
import fendiLogo from '/Logo.png'
import { AppBar, Toolbar, Typography, Box } from '@mui/material';
import fendiLogo from '/Logo.png';
export default function Footer({ zone = 'public' }) {
const bgColor = {
public: '#40120EFF',
restricted: '#40120EFF',
private: '#40120EFF',
};
const year = new Date().getFullYear();
return (
<Box
component="footer"
<AppBar
position="fixed"
elevation={0}
sx={{
p: 2,
textAlign: 'center',
backgroundColor: bgColor[zone],
mt: 'auto',
fontSize: { xs: '0.75rem', md: '1rem' },
top: 'auto',
bottom: 0,
backgroundColor: 'white',
color: '#40120EFF',
boxShadow: '0px -2px 4px rgba(0,0,0,0.1)',
border: 'none',
width: '100%',
left: 0,
right: 0,
}}
>
<Typography variant="body2">
<img src={fendiLogo} alt="Fendi logo" style={{ height: 10, marginRight: 10 }} />
{zone === 'private'
? `Admin Panel - Dream Views ${year}`
: `© ${year} Dream Views. All rights reserved.`}
</Typography>
</Box>
<Toolbar
sx={{
minHeight: 64,
px: 2,
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
}}
>
<Box display="flex" alignItems="center" gap={1.5}>
<img src={fendiLogo} alt="Fendi logo" style={{ height: 50 }} />
<Typography variant="body2" sx={{ color: '#40120EFF' }}>
{zone === 'private'
? `Admin Panel - Dream Views ${year}`
: `© ${year} Dream Views. All rights reserved.`}
</Typography>
</Box>
</Toolbar>
</AppBar>
);
}