Skip to content

Commit 528208b

Browse files
Merge pull request #98 from dragoni7/Footer
footer
2 parents 25ac019 + 1c00318 commit 528208b

File tree

2 files changed

+57
-0
lines changed

2 files changed

+57
-0
lines changed

src/app/routes/Dashboard.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ import LogoutButton from '../../features/auth/components/LogoutButton';
5656
import useArtificeMods from '../../hooks/use-artifice-mods';
5757
import useStatMods from '../../hooks/use-stat-mods';
5858
import StatModifications from '../../features/subclass/components/StatModifications';
59+
import Footer from '../../components/Footer';
5960

6061
const DashboardContent = styled(Grid)(({ theme }) => ({
6162
backgroundImage: `url(${greyBackground})`,
@@ -487,6 +488,9 @@ export const Dashboard: React.FC = () => {
487488
<p>Loading....</p>
488489
)}
489490
</Grid>
491+
<Footer
492+
emblemUrl={characters[selectedCharacterIndex]?.emblem?.secondarySpecial || ''}
493+
/>
490494
</DashboardContent>
491495
</Grid>
492496
</>

src/components/Footer.tsx

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
import React from 'react';
2+
import { Box, Typography } from '@mui/material';
3+
4+
interface FooterProps {
5+
emblemUrl: string;
6+
}
7+
8+
const Footer: React.FC<FooterProps> = ({ emblemUrl }) => {
9+
return (
10+
<Box
11+
sx={{
12+
position: 'absolute',
13+
bottom: 0,
14+
left: 0,
15+
right: 0,
16+
height: '40px',
17+
backgroundImage: `url(${emblemUrl})`,
18+
backgroundSize: 'cover',
19+
backgroundPosition: 'center',
20+
display: 'flex',
21+
alignItems: 'center',
22+
justifyContent: 'center',
23+
padding: '0 20px',
24+
'&::before': {
25+
content: '""',
26+
position: 'absolute',
27+
top: 0,
28+
left: 0,
29+
right: 0,
30+
bottom: 0,
31+
backdropFilter: 'blur(5px)',
32+
backgroundColor: 'rgba(0, 0, 0, 0.5)',
33+
},
34+
zIndex: 1000,
35+
}}
36+
>
37+
<Typography
38+
variant="caption"
39+
sx={{
40+
color: 'white',
41+
textAlign: 'center',
42+
position: 'relative',
43+
zIndex: 1,
44+
}}
45+
>
46+
Built by Dragoni and Rorschach. Destiny 2 and its assets are the property of Bungie. Used
47+
under Bungie's Fan-Created Media and Art guidelines.
48+
</Typography>
49+
</Box>
50+
);
51+
};
52+
53+
export default Footer;

0 commit comments

Comments
 (0)