Skip to content

Commit 1d3b939

Browse files
committed
added support page
1 parent 3b7371e commit 1d3b939

File tree

5 files changed

+178
-1
lines changed

5 files changed

+178
-1
lines changed

src/assets/tea-animation.gif

742 KB
Loading
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
/**
2+
* Become a Patreon Button
3+
*/
4+
5+
// Dependencies
6+
import React from 'react';
7+
8+
// MUI
9+
import { Box, styled, Typography, Link } from '@mui/material';
10+
11+
// Custom
12+
import patreonSvg from './patreon.svg'
13+
14+
const BecomeAPatreon = () => {
15+
return (
16+
<Button target="_blank" href="https://www.patreon.com/bePatron?u=72210783">
17+
<Image component='img' src={patreonSvg} alt="Become a Patreon" />
18+
<Text>Become a Patreon</Text>
19+
</Button>
20+
)
21+
};
22+
23+
const Button = styled(Link)({
24+
textDecoration: 'none',
25+
display: 'inline-flex',
26+
color: '#FFFFFF',
27+
backgroundColor: '#E1000A',
28+
borderRadius: '5px',
29+
border: '1px solid transparent',
30+
padding: '0.7rem 1rem 0.7rem 1rem',
31+
boxShadow: '0px 1px 2px rgba(190, 190, 190, 0.5)',
32+
transition: '0.3s all linear',
33+
fontFamily: 'cursive',
34+
width: 'fit-content',
35+
'&:hover, &:active, &:focus': {
36+
backgroundColor: '#E1000D',
37+
textDecoration: 'none',
38+
boxShadow: '0px 1px 2px 2px rgba(190, 190, 190, 0.5)',
39+
opacity: '0.85',
40+
color: '#FFFFFF',
41+
}
42+
});
43+
44+
const Image = styled(Box)({
45+
height: '20px',
46+
width: '21px',
47+
boxShadow: 'none',
48+
border: 'none',
49+
verticalAlign: 'middle',
50+
})
51+
52+
const Text = styled(Typography)({
53+
marginLeft: '15px',
54+
fontSize: '1rem',
55+
verticalAlign: 'middle',
56+
});
57+
58+
export default BecomeAPatreon
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
/**
2+
* Buy Me a Coffee Button
3+
*/
4+
5+
// Dependencies
6+
import React from 'react';
7+
8+
// MUI
9+
import { Box, styled, Typography, Link } from '@mui/material';
10+
11+
const BuyMeACoffee = () => {
12+
return (
13+
<Button target="_blank" href="https://www.buymeacoffee.com/kunalkeshan">
14+
<Image component='img' src="https://cdn.buymeacoffee.com/buttons/bmc-new-btn-logo.svg" alt="Buy me a coffee" />
15+
<Text>Buy me a coffee</Text>
16+
</Button>
17+
)
18+
};
19+
20+
const Button = styled(Link)({
21+
textDecoration: 'none',
22+
display: 'inline-flex',
23+
color: '#FFFFFF',
24+
backgroundColor: '#FF813F',
25+
borderRadius: '5px',
26+
border: '1px solid transparent',
27+
padding: '0.7rem 1rem 0.7rem 1rem',
28+
boxShadow: '0px 1px 2px rgba(190, 190, 190, 0.5)',
29+
transition: '0.3s all linear',
30+
fontFamily: 'cursive',
31+
width: 'fit-content',
32+
'&:hover, &:active, &:focus': {
33+
textDecoration: 'none',
34+
boxShadow: '0px 1px 2px 2px rgba(190, 190, 190, 0.5)',
35+
opacity: '0.85',
36+
color: '#FFFFFF',
37+
}
38+
});
39+
40+
const Image = styled(Box)({
41+
height: '20px',
42+
width: '21px',
43+
boxShadow: 'none',
44+
border: 'none',
45+
verticalAlign: 'middle',
46+
})
47+
48+
const Text = styled(Typography)({
49+
marginLeft: '15px',
50+
fontSize: '1rem',
51+
verticalAlign: 'middle',
52+
});
53+
54+
export default BuyMeACoffee

src/components/support/patreon.svg

Lines changed: 1 addition & 0 deletions
Loading

src/pages/Support.jsx

Lines changed: 65 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,48 @@
66
import React from 'react';
77

88
// MUI
9-
import { Box, styled, Typography, Divider } from '@mui/material';
9+
import { Box, styled, Typography, Divider, Link } from '@mui/material';
10+
11+
// Custom
12+
import TeaGif from '../assets/tea-animation.gif';
13+
import BuyMeACoffee from '../components/support/BuyMeACoffee';
14+
import BecomeAPatreon from '../components/support/BecomeAPatreon';
1015

1116
const Support = () => {
17+
1218
return (
1319
<Main>
1420
<Typography variant='h1' fontSize='4rem'>Support</Typography>
1521
<Divider />
22+
23+
<Content>
24+
<Animation
25+
display={{ xs: 'none', md: 'block' }}
26+
>
27+
<img
28+
src={TeaGif}
29+
alt='Contact gif'
30+
width='100%'
31+
height='100%'
32+
style={{
33+
backgroundColor: 'transparent',
34+
}}
35+
/>
36+
</Animation>
37+
<SupportContent
38+
width={{ xs: '100%', md: '50%' }}
39+
>
40+
<Typography variant='body1'>When I joined college, I hardly had any access to notes and question papers to practice from. I had to wait for the teachers to share them and wait until the exam to have a collection of question papers at my disposal.</Typography>
41+
<Typography variant='body1'>I started this project in my third year, with the philosophy</Typography>
42+
<Typography variant='body1' fontWeight={600} fontSize='1.5rem'><q>Be the Senior you need the most as a Junior.</q></Typography>
43+
<Typography variant='body1'>Any one is free to access the resources of this project and I aim to keep it that way.</Typography>
44+
<Typography variant='body1'>If you like the work I am doing, and want to keep the project active, your support would mean a lot. Buying me a coffee would mean a 1000 times more than a Thank You!</Typography>
45+
<Box className='supportButtons'>
46+
<BuyMeACoffee />
47+
<BecomeAPatreon />
48+
</Box>
49+
</SupportContent>
50+
</Content>
1651
</Main>
1752
)
1853
};
@@ -27,4 +62,33 @@ const Main = styled(Box)({
2762
}
2863
});
2964

65+
const Content = styled(Box)({
66+
display: 'flex',
67+
alignItems: 'center',
68+
justifyContent: 'space-around',
69+
marginTop: '1em',
70+
});
71+
72+
const Animation = styled(Box)({
73+
width: '50%',
74+
height: 'auto'
75+
});
76+
77+
const SupportContent = styled(Box)({
78+
padding: '1em',
79+
width: '50%',
80+
background: 'rgba( 255, 255, 255, 0.4 )',
81+
backdropFilter: 'blur(4px)',
82+
webkitBackdropFilter: 'blur(4px)',
83+
borderRadius: '8px',
84+
marginTop: '1em',
85+
display: 'flex',
86+
flexDirection: 'column',
87+
gap: '0.25em',
88+
'.supportButtons': {
89+
display: 'flex',
90+
gap: '1em',
91+
}
92+
});
93+
3094
export default Support;

0 commit comments

Comments
 (0)