Skip to content

Commit

Permalink
Merge pull request #98 from dragoni7/Footer
Browse files Browse the repository at this point in the history
footer
  • Loading branch information
Rorschach7552 authored Sep 18, 2024
2 parents 25ac019 + 1c00318 commit 528208b
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/routes/Dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ import LogoutButton from '../../features/auth/components/LogoutButton';
import useArtificeMods from '../../hooks/use-artifice-mods';
import useStatMods from '../../hooks/use-stat-mods';
import StatModifications from '../../features/subclass/components/StatModifications';
import Footer from '../../components/Footer';

const DashboardContent = styled(Grid)(({ theme }) => ({
backgroundImage: `url(${greyBackground})`,
Expand Down Expand Up @@ -487,6 +488,9 @@ export const Dashboard: React.FC = () => {
<p>Loading....</p>
)}
</Grid>
<Footer
emblemUrl={characters[selectedCharacterIndex]?.emblem?.secondarySpecial || ''}
/>
</DashboardContent>
</Grid>
</>
Expand Down
53 changes: 53 additions & 0 deletions src/components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
import React from 'react';
import { Box, Typography } from '@mui/material';

interface FooterProps {
emblemUrl: string;
}

const Footer: React.FC<FooterProps> = ({ emblemUrl }) => {
return (
<Box
sx={{
position: 'absolute',
bottom: 0,
left: 0,
right: 0,
height: '40px',
backgroundImage: `url(${emblemUrl})`,
backgroundSize: 'cover',
backgroundPosition: 'center',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
padding: '0 20px',
'&::before': {
content: '""',
position: 'absolute',
top: 0,
left: 0,
right: 0,
bottom: 0,
backdropFilter: 'blur(5px)',
backgroundColor: 'rgba(0, 0, 0, 0.5)',
},
zIndex: 1000,
}}
>
<Typography
variant="caption"
sx={{
color: 'white',
textAlign: 'center',
position: 'relative',
zIndex: 1,
}}
>
Built by Dragoni and Rorschach. Destiny 2 and its assets are the property of Bungie. Used
under Bungie's Fan-Created Media and Art guidelines.
</Typography>
</Box>
);
};

export default Footer;

0 comments on commit 528208b

Please sign in to comment.