Skip to content

Commit 40194d3

Browse files
committed
added discord button
1 parent 1b4a35a commit 40194d3

File tree

3 files changed

+30
-2
lines changed

3 files changed

+30
-2
lines changed

public/assets/discord.png

844 Bytes
Loading

src/components/DiscordButton.tsx

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import React from 'react';
2+
import { IconButton, Tooltip } from '@mui/material';
3+
4+
export default function DiscordButton() {
5+
return (
6+
<Tooltip title="Join our Discord">
7+
<IconButton
8+
href="https://discord.gg/WbKvNvRG"
9+
target="_blank"
10+
rel="noopener noreferrer"
11+
sx={{
12+
borderRadius: 4,
13+
mixBlendMode: 'difference',
14+
padding: 1,
15+
'&:hover': {
16+
backgroundColor: 'rgba(255, 255, 255, 0.1)',
17+
},
18+
}}
19+
>
20+
<img src="/assets/discord.png" alt="Discord logo" style={{ width: 30, height: 30 }} />
21+
</IconButton>
22+
</Tooltip>
23+
);
24+
}

src/components/Footer.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { Box, Stack, Typography } from '@mui/material';
33
import LogoutButton from '@/features/auth/components/LogoutButton';
44
import RefreshCharacters from './RefreshCharacters';
55
import CoffeeButton from './CoffeeButton';
6+
import DiscordButton from './DiscordButton';
67
import useSelectedCharacter from '@/hooks/use-selected-character';
78
import packageJson from '../../package.json';
89

@@ -58,7 +59,7 @@ const Footer: React.FC = () => {
5859
<Typography
5960
variant="caption"
6061
textAlign="center"
61-
width="95%"
62+
width="90%"
6263
sx={{
6364
color: 'white',
6465
position: 'relative',
@@ -68,9 +69,12 @@ const Footer: React.FC = () => {
6869
Built by Dragoni and Rorschach. Destiny 2 and its assets are the property of Bungie. Used
6970
under Bungie's Fan-Created Media and Art guidelines. Consider supporting us!
7071
</Typography>
71-
<Box style={{ width: '5%' }}>
72+
<Box>
7273
<CoffeeButton />
7374
</Box>
75+
<Box>
76+
<DiscordButton />
77+
</Box>
7478
<RefreshCharacters />
7579
<LogoutButton />
7680
</Stack>

0 commit comments

Comments
 (0)