Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create new About, Sponsors, Archive pages #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
115 changes: 115 additions & 0 deletions client/src/components/about/About.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import AppBar from '@material-ui/core/AppBar';
import Box from '@material-ui/core/Box';
import CssBaseline from '@material-ui/core/CssBaseline';
import Grid from '@material-ui/core/Grid';
import Link from '@material-ui/core/Link';
import Paper from '@material-ui/core/Paper';
import Toolbar from '@material-ui/core/Toolbar';
import Typography from '@material-ui/core/Typography';
import classNames from 'classnames';
import { withStyles } from '@material-ui/core/styles';

const styles = theme => ({
root: {
position: 'absolute',
width: '100vw',
height: '100vh',
display: 'flex',
flexDirection: 'column',
minHeight: '100vh',
zIndex: 100,
},

appBar: { position: 'relative' },
appBarTitle: {
borderRight: '1px',
marginRight: theme.spacing(1),
},

main: {
padding: theme.spacing(4),
marginLeft: theme.spacing(3),
marginRight: theme.spacing(3),

maxWidth: 600,
marginLeft: 'auto',
marginRight: 'auto',
},

divider: { margin: theme.spacing(2) },
shortDivider: {
margin: 'auto',
width: '40px',
},

linkContainer: {
padding: theme.spacing(2),
paddingTop: theme.spacing(3),
textAlign: 'center',
color: theme.palette.text.secondary,
zIndex: 1000
},

link: { margin: theme.spacing(2.5) },
bottomLink: {
marginTop: theme.spacing(2.5),
marginBottom: theme.spacing(1.5),
},

footer: {
backgroundColor: theme.palette.background.paper,
marginTop: 'auto',
padding: theme.spacing(6),
},
})

class DirectoryIndex extends Component {

componentDidMount() {
console.log(this)
}

render() {
const { classes } = this.props;
return (
<React.Fragment>
<CssBaseline />

<div className={classes.root}>

<main className={classes.main}>
<Grid container justify="center" spacing={2}>

<Grid item xs={12} md={10}>
<Paper className={classes.linkContainer}>
<Typography variant="h4" color="textPrimary">
ABOUT
</Typography>

<hr className={classes.divider} />

<Typography variant="h5" color="textPrimary">
We are a ...
</Typography>

</Paper>
</Grid>

</Grid>
</main>

</div>
</React.Fragment>
);
}
}

function mapStateToProps(state) {
return {
};
}

export default connect(mapStateToProps, _ => {})(withStyles(styles)(DirectoryIndex));
27 changes: 27 additions & 0 deletions client/src/components/directory/DirectoryIndex.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import Toolbar from '@material-ui/core/Toolbar';
import Typography from '@material-ui/core/Typography';
import classNames from 'classnames';
import { withStyles } from '@material-ui/core/styles';
import { Link as RouterLink } from "react-router-dom";

const styles = theme => ({
root: {
Expand Down Expand Up @@ -110,6 +111,15 @@ class DirectoryIndex extends Component {

<hr className={classes.divider} />

<Typography className={classes.link} variant="h5" color="textPrimary">

<RouterLink to='/about'>
About
</RouterLink>
</Typography>

<hr className={classes.shortDivider} />

<Typography className={classes.link} variant="h5" color="textPrimary">
<Link href="https://www.meetup.com/Astoria-Tech-Meetup/events/265892329/">
Monthly Meetup #14:<br/>
Expand Down Expand Up @@ -142,6 +152,23 @@ class DirectoryIndex extends Component {
Community chat on Slack
</Link>
</Typography>

<hr className={classes.shortDivider} />

<Typography className={classes.link} variant="h5" color="textPrimary">
<RouterLink to='/sponsors'>
Sponsors
</RouterLink>
</Typography>

<hr className={classes.shortDivider} />

<Typography className={classes.link} variant="h5" color="textPrimary">
<RouterLink to="/presentations_archive">
Presentations Archive
</RouterLink>
</Typography>

</Paper>
</Grid>

Expand Down
113 changes: 113 additions & 0 deletions client/src/components/presentations_archive/PresentationsArchive.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import AppBar from '@material-ui/core/AppBar';
import Box from '@material-ui/core/Box';
import CssBaseline from '@material-ui/core/CssBaseline';
import Grid from '@material-ui/core/Grid';
import Link from '@material-ui/core/Link';
import Paper from '@material-ui/core/Paper';
import Toolbar from '@material-ui/core/Toolbar';
import Typography from '@material-ui/core/Typography';
import classNames from 'classnames';
import { withStyles } from '@material-ui/core/styles';

const styles = theme => ({
root: {
position: 'absolute',
width: '100vw',
height: '100vh',
display: 'flex',
flexDirection: 'column',
minHeight: '100vh',
zIndex: 100,
},

appBar: { position: 'relative' },
appBarTitle: {
borderRight: '1px',
marginRight: theme.spacing(1),
},

main: {
padding: theme.spacing(4),
marginLeft: theme.spacing(3),
marginRight: theme.spacing(3),

maxWidth: 600,
marginLeft: 'auto',
marginRight: 'auto',
},

divider: { margin: theme.spacing(2) },
shortDivider: {
margin: 'auto',
width: '40px',
},

linkContainer: {
padding: theme.spacing(2),
paddingTop: theme.spacing(3),
textAlign: 'center',
color: theme.palette.text.secondary,
zIndex: 1000
},

link: { margin: theme.spacing(2.5) },
bottomLink: {
marginTop: theme.spacing(2.5),
marginBottom: theme.spacing(1.5),
},

footer: {
backgroundColor: theme.palette.background.paper,
marginTop: 'auto',
padding: theme.spacing(6),
},
})

class DirectoryIndex extends Component {

componentDidMount() {
console.log(this)
}

render() {
const { classes } = this.props;
return (
<React.Fragment>
<CssBaseline />

<div className={classes.root}>

<main className={classes.main}>
<Grid container justify="center" spacing={2}>

<Grid item xs={12} md={10}>
<Paper className={classes.linkContainer}>
<Typography variant="h4" color="textPrimary">
Presentations Archive
</Typography>

<hr className={classes.divider} />

Wed, Nov 20th: Sadie

</Paper>
</Grid>

</Grid>
</main>

</div>
</React.Fragment>
);
}
}

function mapStateToProps(state) {
return {
};
}

export default connect(mapStateToProps, _ => {})(withStyles(styles)(DirectoryIndex));
113 changes: 113 additions & 0 deletions client/src/components/sponsors/Sponsors.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import AppBar from '@material-ui/core/AppBar';
import Box from '@material-ui/core/Box';
import CssBaseline from '@material-ui/core/CssBaseline';
import Grid from '@material-ui/core/Grid';
import Link from '@material-ui/core/Link';
import Paper from '@material-ui/core/Paper';
import Toolbar from '@material-ui/core/Toolbar';
import Typography from '@material-ui/core/Typography';
import classNames from 'classnames';
import { withStyles } from '@material-ui/core/styles';

const styles = theme => ({
root: {
position: 'absolute',
width: '100vw',
height: '100vh',
display: 'flex',
flexDirection: 'column',
minHeight: '100vh',
zIndex: 100,
},

appBar: { position: 'relative' },
appBarTitle: {
borderRight: '1px',
marginRight: theme.spacing(1),
},

main: {
padding: theme.spacing(4),
marginLeft: theme.spacing(3),
marginRight: theme.spacing(3),

maxWidth: 600,
marginLeft: 'auto',
marginRight: 'auto',
},

divider: { margin: theme.spacing(2) },
shortDivider: {
margin: 'auto',
width: '40px',
},

linkContainer: {
padding: theme.spacing(2),
paddingTop: theme.spacing(3),
textAlign: 'center',
color: theme.palette.text.secondary,
zIndex: 1000
},

link: { margin: theme.spacing(2.5) },
bottomLink: {
marginTop: theme.spacing(2.5),
marginBottom: theme.spacing(1.5),
},

footer: {
backgroundColor: theme.palette.background.paper,
marginTop: 'auto',
padding: theme.spacing(6),
},
})

class DirectoryIndex extends Component {

componentDidMount() {
console.log(this)
}

render() {
const { classes } = this.props;
return (
<React.Fragment>
<CssBaseline />

<div className={classes.root}>

<main className={classes.main}>
<Grid container justify="center" spacing={2}>

<Grid item xs={12} md={10}>
<Paper className={classes.linkContainer}>
<Typography variant="h4" color="textPrimary">
Sponsors
</Typography>

<hr className={classes.divider} />

We are proudly sponsored by ...

</Paper>
</Grid>

</Grid>
</main>

</div>
</React.Fragment>
);
}
}

function mapStateToProps(state) {
return {
};
}

export default connect(mapStateToProps, _ => {})(withStyles(styles)(DirectoryIndex));
Loading