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

Commit ebeee52

Browse files
Adds stand for section in campus leads (#55)
* Add stand for section in campus leads * Removes redundent element
1 parent bb4c72a commit ebeee52

File tree

3 files changed

+147
-0
lines changed

3 files changed

+147
-0
lines changed
617 KB
Loading

src/views/pages/CAView/StandFor.js

Lines changed: 145 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,145 @@
1+
import React from 'react';
2+
import PropTypes from 'prop-types';
3+
import clsx from 'clsx';
4+
5+
import {
6+
Box,
7+
Container,
8+
Grid,
9+
Hidden,
10+
Typography,
11+
makeStyles
12+
} from '@material-ui/core';
13+
14+
15+
const useStyles = makeStyles(theme => ({
16+
root: {
17+
background: '#FFF',
18+
paddingTop: 80,
19+
paddingBottom: 60,
20+
paddingLeft: 70,
21+
paddingRight: 70,
22+
[theme.breakpoints.down('md')]: {
23+
paddingLeft: 15,
24+
paddingRight: 15
25+
}
26+
},
27+
extraPadding: {
28+
padding: '0 70px 0px 0px',
29+
textAlign: 'justify',
30+
[theme.breakpoints.down('sm')]: {
31+
padding: '0'
32+
}
33+
},
34+
image: {
35+
perspectiveOrigin: 'left center',
36+
transformStyle: 'preserve-3d',
37+
perspective: 1500,
38+
'& > img': {
39+
maxWidth: '100%',
40+
height: 'auto',
41+
backfaceVisibility: 'hidden'
42+
},
43+
[theme.breakpoints.down('md')]: {
44+
alignItems: 'center',
45+
display: 'flex',
46+
flexDirection: 'column',
47+
height: '100%',
48+
justifyContent: 'center'
49+
}
50+
},
51+
hide: {
52+
display: 'none'
53+
},
54+
btn: {
55+
backgroundColor: '#A60000',
56+
color: '#ffffff',
57+
textTransform: 'capitalize',
58+
[theme.breakpoints.down('sm')]: {
59+
width: '100%'
60+
},
61+
'&:hover': {
62+
backgroundColor: 'rgba(166, 0, 0, 0.8)'
63+
}
64+
},
65+
listPointers: {
66+
fontSize: '45px',
67+
marginRight: '5px'
68+
}
69+
}));
70+
71+
function StandsFor({ className, ...rest }) {
72+
const classes = useStyles();
73+
74+
return (
75+
<div className={clsx(classes.root, className)} {...rest}>
76+
<Container maxWidth="lg">
77+
<Typography
78+
style={{ marginTop: '10px' }}
79+
variant="h2"
80+
align="center"
81+
gutterBottom
82+
color="textPrimary"
83+
>
84+
What Does the Campus Leader Stands For
85+
</Typography>
86+
<Grid container spacing={3} style={{ marginTop: '50px' }}>
87+
<Grid item xs={12} md={6}>
88+
<Box
89+
display="flex"
90+
flexDirection="column"
91+
justifyContent="center"
92+
height="100%"
93+
className={clsx(classes.extraPadding, className)}
94+
>
95+
<Box>
96+
<Typography variant="body1">
97+
<b>Campus Leaders at Code For Cause</b> are the entreprenurial mindset people who want create value in the community by awaring people, and gathering the like minded to work for cause. And above all set example and influence on people for contributing. So, some values and the expectations we have from our campus leaders are
98+
</Typography>
99+
</Box>
100+
<Box mt={5}>
101+
<Typography variant="body1">
102+
He/she shall be entusiastic about going social and build &amp; contribute for the community<h4>- An Initiative taker</h4>
103+
</Typography>
104+
</Box>
105+
<Box mt={4}>
106+
<Typography variant="body1">
107+
A Leader shall always have a way of talking people out from problems and leading them to do that for others too <h4> - A Community Builder</h4>
108+
</Typography>
109+
</Box>
110+
<Box mt={4}>
111+
<Typography variant="body1">
112+
He/she should be connecting to the resources available in community that might help in building a better &amp; more helpful community <h4>- A Resource Seeker</h4>
113+
</Typography>
114+
</Box>
115+
<Box mt={4}>
116+
<Typography variant="body1">
117+
Most sought after value - an effort maker and giving peronality <h4>- An Investor</h4>
118+
</Typography>
119+
</Box>
120+
121+
</Box>
122+
</Grid>
123+
<Hidden smDown>
124+
<Grid item xs={12} md={6}>
125+
<Box>
126+
<div className={classes.image}>
127+
<img
128+
alt="codeforcauseimg"
129+
src="/static/campusLeaders/standFor.png"
130+
/>
131+
</div>
132+
</Box>
133+
</Grid>
134+
</Hidden>
135+
</Grid>
136+
</Container>
137+
</div >
138+
);
139+
}
140+
141+
StandsFor.propTypes = {
142+
className: PropTypes.string
143+
};
144+
145+
export default StandsFor;

src/views/pages/CAView/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React from 'react';
22
import { makeStyles } from '@material-ui/core';
33
import Page from 'src/components/Page';
44
import Hero from './Hero';
5+
import StandFor from './StandFor';
56

67
const useStyles = makeStyles(() => ({
78
root: {}
@@ -13,6 +14,7 @@ function HomeView() {
1314
return (
1415
<Page className={classes.root} title="Campus Leaders">
1516
<Hero />
17+
<StandFor />
1618
</Page>
1719
);
1820
}

0 commit comments

Comments
 (0)