-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #129 from IEEE-RVCE/mtts
Added mtts page
- Loading branch information
Showing
9 changed files
with
152 additions
and
8 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
import React, { useState, useEffect } from 'react'; | ||
import axios from 'axios'; | ||
import { Container, Grid, Typography, Paper } from '@material-ui/core'; | ||
import { Link } from 'react-router-dom'; | ||
import { makeStyles } from '@material-ui/core/styles'; | ||
import Avatar from '../components/Avatar'; | ||
import EventCard from '../components/EventCard'; | ||
import { hostname, ecats, images, execom, alumni } from '../links'; | ||
import AlumniAccordions from '../components/AlumniAccordions'; | ||
import SpacyDivider from '../components/SpacyDivider'; | ||
|
||
const useStyles = makeStyles(theme => ({ | ||
root: theme.root, | ||
container: theme.page, | ||
paper: { | ||
...theme.paper, | ||
padding: theme.spacing(4), | ||
}, | ||
link: { | ||
...theme.link, | ||
float: 'right', | ||
textDecoration: 'none', | ||
}, | ||
carousel: { | ||
margin: 'auto', | ||
paddingTop: theme.spacing(4), | ||
}, | ||
})); | ||
|
||
export default function MTTSSocietyPage(props) { | ||
const classes = useStyles(); | ||
|
||
const [events, setEvents] = useState([]); | ||
|
||
useEffect(() => { | ||
axios.get(hostname + '/api/event/cat/' + ecats.mtts).then(response => { | ||
setEvents( | ||
response.data.events.sort((a, b) => { | ||
return new Date(b.eventstart) - new Date(a.eventstart); | ||
}) | ||
); | ||
}); | ||
}, []); | ||
|
||
return ( | ||
<div className={classes.root}> | ||
<img | ||
src={images.landing.mtts} | ||
id="soclanding" | ||
alt="Microwave Theory and Technology Society" | ||
style={{ width: '100%', maxHeight: '100vh' }} | ||
/> | ||
<Container maxWidth="md"> | ||
<br /> | ||
<Paper className={classes.paper}> | ||
<Typography variant="h3">Vision</Typography> | ||
<br /> | ||
<Typography variant="body1"> | ||
To make study of RF and Microwaves accessible, enjoyable, and sustainable while fostering a vibrant community of enthusiasts. | ||
|
||
</Typography> | ||
</Paper> | ||
<SpacyDivider color="rgb(110 110 193)" /> | ||
<Paper className={classes.paper}> | ||
<Typography variant="h3">Mission</Typography> | ||
<br /> | ||
<Typography variant="body1"> | ||
Provide comprehensible resources for learning electromagnetics, catering to a diverse audience with varying levels of expertise. | ||
Foster a culture of excellence in research and publications, emphasizing quality and relevance in advancing the field of RF and Microwaves. | ||
Curate a vibrant community where members can exchange ideas, collaborate on projects, gain practical hands-on experience, and find support and inspiration in their shared passion for RF and Microwaves. | ||
Collaborate with industry and academia to develop and implement sustainable antenna designs and frontends, promoting efficient energy usage and environmental stewardship. | ||
</Typography> | ||
</Paper> | ||
<SpacyDivider color="rgb(110 110 193)" /> | ||
{events.length !== 0 && ( | ||
<> | ||
<Paper className={classes.paper}> | ||
<Typography variant="h3">Events</Typography> | ||
<br /> | ||
<Grid container spacing={2} justify="center"> | ||
{events.slice(0, 3).map(item => { | ||
return ( | ||
<Grid item xs={12} md={4}> | ||
<EventCard event={item} /> | ||
</Grid> | ||
); | ||
})} | ||
</Grid> | ||
<br /> | ||
{events.length >= 4 && ( | ||
<Link to={'/events?ecat=' + ecats.mtts} className={classes.link}> | ||
Click here for more events | ||
</Link> | ||
)} | ||
</Paper> | ||
<SpacyDivider color="rgb(110 110 193)" /> | ||
</> | ||
)} | ||
<Paper className={classes.paper}> | ||
<Typography variant="h3">Executive Committee</Typography> | ||
<br /> | ||
<Grid container spacing={2} justify="center"> | ||
{execom.mtts.map(member => ( | ||
<Grid item xs={12} md={4}> | ||
<Avatar name={member.name} position={member.position} src={member.image} /> | ||
</Grid> | ||
))} | ||
</Grid> | ||
</Paper> | ||
<AlumniAccordions members={alumni.aess} color="rgb(110 110 193)" /> | ||
<br /> | ||
</Container> | ||
</div> | ||
); | ||
} |