Skip to content
This repository was archived by the owner on Mar 7, 2024. It is now read-only.

Commit bb4c72a

Browse files
Adds hero section of CA page (#53)
1 parent 48e4fbd commit bb4c72a

File tree

2 files changed

+31
-93
lines changed

2 files changed

+31
-93
lines changed
605 KB
Loading

src/views/pages/CAView/Hero.js

Lines changed: 31 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -6,54 +6,30 @@ import {
66
Box,
77
Button,
88
Container,
9-
Grid,
10-
Hidden,
119
Typography,
1210
makeStyles
1311
} from '@material-ui/core';
14-
import PlayArrowIcon from '@material-ui/icons/PlayArrow';
1512

1613
const background = 'linear-gradient(270.72deg, #180255 0.25%, #000000 97.54%)';
1714

1815
const useStyles = makeStyles(theme => ({
1916
root: {
17+
minHeight: '350px',
2018
color: '#FFF',
2119
background,
22-
paddingTop: 80,
23-
paddingBottom: 60,
24-
paddingLeft: 70,
25-
paddingRight: 70,
20+
padding: '100px 70px',
2621
[theme.breakpoints.down('md')]: {
2722
paddingLeft: 15,
2823
paddingRight: 15
29-
}
30-
},
31-
extraPadding: {
32-
padding: '0 70px 0px 0px',
33-
textAlign: 'justify',
34-
[theme.breakpoints.down('sm')]: {
35-
padding: '0'
36-
}
37-
},
38-
image: {
39-
perspectiveOrigin: 'left center',
40-
transformStyle: 'preserve-3d',
41-
perspective: 1500,
42-
'& > img': {
43-
maxWidth: '100%',
44-
height: 'auto',
45-
backfaceVisibility: 'hidden'
4624
},
47-
[theme.breakpoints.down('md')]: {
48-
alignItems: 'center',
49-
display: 'flex',
50-
flexDirection: 'column',
51-
height: '100%',
52-
justifyContent: 'center'
53-
}
5425
},
55-
hide: {
56-
display: 'none'
26+
main: {
27+
display: 'flex',
28+
flexDirection: 'column',
29+
alignItems: 'center',
30+
justifyContent: 'center',
31+
padding: '0px',
32+
color: '#FFF',
5733
},
5834
btn: {
5935
backgroundColor: '#A60000',
@@ -66,6 +42,7 @@ const useStyles = makeStyles(theme => ({
6642
backgroundColor: 'rgba(166, 0, 0, 0.8)'
6743
}
6844
}
45+
6946
}));
7047

7148
function Hero({ className, ...rest }) {
@@ -74,68 +51,29 @@ function Hero({ className, ...rest }) {
7451
return (
7552
<div className={clsx(classes.root, className)} {...rest}>
7653
<Container maxWidth="lg">
77-
<Grid container spacing={3}>
78-
<Grid item xs={12} md={6}>
79-
<Box
80-
display="flex"
81-
flexDirection="column"
82-
justifyContent="center"
83-
height="100%"
84-
className={clsx(classes.extraPadding, className)}
85-
>
86-
<Typography variant="h1" gutterBottom>
87-
Learn for Cause
54+
<div className={classes.main}>
55+
<Typography variant="h1">
56+
Campus Leaders
8857
</Typography>
89-
<Typography variant="h1">Code for Cause</Typography>
90-
<Hidden mdUp>
91-
<Box mt={6} mb={2}>
92-
<div className={classes.image}>
93-
<img
94-
alt="codeforcauseimg"
95-
src="/static/home/codeforcause.svg"
96-
/>
97-
</div>
98-
</Box>
99-
</Hidden>
100-
<Box mt={5}>
101-
<Typography variant="body1">
102-
An initiative to help the community by providing training,
103-
guidance and awareness about the possibilities in the software
104-
field to students &amp; professionals.
105-
</Typography>
106-
</Box>
107-
<Box mt={4}>
108-
<Grid container xs={12} md={12}>
109-
<Grid item xs={12} md={12}>
110-
<Button
111-
className={classes.btn}
112-
component="a"
113-
href="https://youtube.com/codeforcause"
114-
target="_blank"
115-
size="large"
116-
variant="contained"
117-
>
118-
<PlayArrowIcon style={{ paddingRight: 5 }} />
119-
Watch Our Videos
58+
<Box mt={2}>
59+
<Typography variant="body1" align="center">
60+
Stand Up and fight for the Cause with the Code For Cause
61+
</Typography>
62+
</Box>
63+
<Box mt={2}>
64+
<Button
65+
className={classes.btn}
66+
component="a"
67+
href="https://youtube.com/codeforcause"
68+
target="_blank"
69+
size="large"
70+
variant="contained"
71+
>
72+
Apply Now
12073
</Button>
121-
</Grid>
122-
</Grid>
123-
</Box>
124-
</Box>
125-
</Grid>
126-
<Hidden smDown>
127-
<Grid item xs={12} md={6}>
128-
<Box>
129-
<div className={classes.image}>
130-
<img
131-
alt="codeforcauseimg"
132-
src="/static/home/codeforcause.svg"
133-
/>
134-
</div>
135-
</Box>
136-
</Grid>
137-
</Hidden>
138-
</Grid>
74+
</Box>
75+
76+
</div>
13977
</Container>
14078
</div>
14179
);

0 commit comments

Comments
 (0)